{"action":"created","issue":{"url":"https://api.github.com/repos/eclipse/che/issues/3362","repository_url":"https://api.github.com/repos/eclipse/che","labels_url":"https://api.github.com/repos/eclipse/che/issues/3362/labels{/name}","comments_url":"https://api.github.com/repos/eclipse/che/issues/3362/comments","events_url":"https://api.github.com/repos/eclipse/che/issues/3362/events","html_url":"https://github.com/eclipse/che/issues/3362","id":195149967,"number":3362,"title":"REST call fails from GWT view, but works from menu action in Che","user":{"login":"BarryDrez","id":24534027,"avatar_url":"https://avatars.githubusercontent.com/u/24534027?v=3","gravatar_id":"","url":"https://api.github.com/users/BarryDrez","html_url":"https://github.com/BarryDrez","followers_url":"https://api.github.com/users/BarryDrez/followers","following_url":"https://api.github.com/users/BarryDrez/following{/other_user}","gists_url":"https://api.github.com/users/BarryDrez/gists{/gist_id}","starred_url":"https://api.github.com/users/BarryDrez/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BarryDrez/subscriptions","organizations_url":"https://api.github.com/users/BarryDrez/orgs","repos_url":"https://api.github.com/users/BarryDrez/repos","events_url":"https://api.github.com/users/BarryDrez/events{/privacy}","received_events_url":"https://api.github.com/users/BarryDrez/received_events","type":"User","site_admin":false},"labels":[{"id":192367931,"url":"https://api.github.com/repos/eclipse/che/labels/kind/question","name":"kind/question","color":"cc317c","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2016-12-13T03:21:21Z","updated_at":"2016-12-15T17:36:24Z","closed_at":null,"body":"I have an action class that performs a REST call via my client class.  I invoke the action from a menu, and it works perfectly fine.  When I use the Action Manager to retrieve the same action and run it from a view, I get a ServerDisconnectionException.  The stack trace with the exception is not very helpful.\r\n\r\nI am attaching the following Java classes to show what I am doing:\r\n\r\nNavigatorServiceClientImpl.java - performs the REST calls.\r\nGetPackagesAction.java - Successfully invokes the REST API client and gets a list of web tree nodes from the server\r\nServiceDevPackageNavigatorViewImpl.java - extends org.eclipse.che.ide.api.parts.base.BaseView.  Invokes the REST API client, but gets ServerDisconnectionException.\r\nServiceDevGinModule.java - binds ServiceDevServiceTesterView to ServiceDevPackageNavigatorViewImpl\r\n\r\n\r\n**Che version:**   5.0.0-M6   \r\n**OS and version:** \r\nLinux usrscp28 4.4.0-53-generic #74-Ubuntu SMP Fri Dec 2 15:59:10 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux\r\nsystem     VMware Virtual Platform\r\nbus        440BX Desktop Reference Platform\r\nmemory     87KiB BIOS\r\nprocessor  Intel(R) Xeon(R) CPU E5-2660 0 @ 2.20GHz\r\n\r\n**Docker version:** 1.12.1  \r\nAPI version: 1.24\r\n**Che install:**   Codenvy\r\n\r\nThis is the first version of Che I have worked with.  I haven't tried this in earlier versions.\r\n\r\nPlease let me know if you require any additional information.  Thank you"},"comment":{"url":"https://api.github.com/repos/eclipse/che/issues/comments/267390830","html_url":"https://github.com/eclipse/che/issues/3362#issuecomment-267390830","issue_url":"https://api.github.com/repos/eclipse/che/issues/3362","id":267390830,"user":{"login":"TylerJewell","id":392458,"avatar_url":"https://avatars.githubusercontent.com/u/392458?v=3","gravatar_id":"","url":"https://api.github.com/users/TylerJewell","html_url":"https://github.com/TylerJewell","followers_url":"https://api.github.com/users/TylerJewell/followers","following_url":"https://api.github.com/users/TylerJewell/following{/other_user}","gists_url":"https://api.github.com/users/TylerJewell/gists{/gist_id}","starred_url":"https://api.github.com/users/TylerJewell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TylerJewell/subscriptions","organizations_url":"https://api.github.com/users/TylerJewell/orgs","repos_url":"https://api.github.com/users/TylerJewell/repos","events_url":"https://api.github.com/users/TylerJewell/events{/privacy}","received_events_url":"https://api.github.com/users/TylerJewell/received_events","type":"User","site_admin":false},"created_at":"2016-12-15T17:36:24Z","updated_at":"2016-12-15T17:36:24Z","body":"@BarryDrez - I think the closest we have on this matter is researcing the Che source code and this documentation page - https://eclipse-che.readme.io/docs/calling-workspace-apis.  It's not a step by step tutorial, but it does cover the basics of the REST APIs.  \r\n\r\nVitalli will also keep investigating this particular issue."}}
{"actor":{"display_login":"TylerJewell"}}