[JBoss JIRA] (JBIDE-20050) Explorer: Cannot refresh project
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20050?page=com.atlassian.jira.plugi... ]
Andre Dietisheim edited comment on JBIDE-20050 at 6/19/15 5:02 PM:
-------------------------------------------------------------------
With the PR applied I see refresh available and happening for projects. Nice!
But I found the following 2 issues:
1) "Loading" will not show up if you "Refresh" a project, the ResourceGroupings stay and (if unfolded) collpase once the resources are loaded
2) I have a NPE when refreshing when I do the following:
2-1) select a Resource (ex. BuildConfig) and refresh it
2-2) select Project and refresh it
Result:
I get an error dialog and the following error in log:
{code}
com.openshift.restclient.OpenShiftException: Exception getting the resource
at com.openshift.internal.restclient.DefaultClient.handleHttpClientException(DefaultClient.java:391)
at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:241)
at org.jboss.tools.openshift.core.connection.Connection.get(Connection.java:340)
at org.jboss.tools.openshift.internal.ui.handler.RefreshResourceHandler$1.doRun(RefreshResourceHandler.java:78)
at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: com.openshift.internal.restclient.http.NotFoundException: {
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "the server could not find the requested resource",
"reason": "NotFound",
"details": {},
"code": 404
}
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:210)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:151)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:130)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.get(UrlConnectionHttpClient.java:92)
at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:237)
... 4 more
Caused by: java.io.FileNotFoundException: https://localhost:8443/osapi/v1beta3/namespaces/openshift-infra/projects/...
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1835)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:147)
... 7 more
{code}
was (Author: adietish):
With the PR applied I see refresh available and happening for projects. Nice!
But I found the following 2 issues:
1) "Loading" will not show up if you "Refresh" a project, the ResourceGroupings stay and (if unfolded) collpase once the resources are loaded
2) I have a NPE when refreshing when I do the following:
2-1) select a Resource (ex. BuildConfig) and refresh it
2-2) select Project and refresh it
Result:
I get an error dialog and the following error in log:
{code}
com.openshift.restclient.OpenShiftException: Exception getting the resource
at com.openshift.internal.restclient.DefaultClient.handleHttpClientException(DefaultClient.java:391)
at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:241)
at org.jboss.tools.openshift.core.connection.Connection.get(Connection.java:340)
at org.jboss.tools.openshift.internal.ui.handler.RefreshResourceHandler$1.doRun(RefreshResourceHandler.java:78)
at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: com.openshift.internal.restclient.http.NotFoundException: {
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "the server could not find the requested resource",
"reason": "NotFound",
"details": {},
"code": 404
}
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:210)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:151)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:130)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.get(UrlConnectionHttpClient.java:92)
at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:237)
... 4 more
Caused by: java.io.FileNotFoundException: https://localhost:8443/osapi/v1beta3/namespaces/openshift-infra/projects/...
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1835)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:147)
... 7 more
{code}
> Explorer: Cannot refresh project
> --------------------------------
>
> Key: JBIDE-20050
> URL: https://issues.jboss.org/browse/JBIDE-20050
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift
> Affects Versions: 4.3.0.Beta1
> Reporter: Andre Dietisheim
> Assignee: Jeff Cantrill
> Labels: openshift_v3
> Fix For: 4.3.0.Beta2
>
> Attachments: no-refresh.png
>
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 9 months
[JBoss JIRA] (JBIDE-20050) Explorer: Cannot refresh project
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20050?page=com.atlassian.jira.plugi... ]
Andre Dietisheim edited comment on JBIDE-20050 at 6/19/15 5:02 PM:
-------------------------------------------------------------------
With the PR applied I see refresh available and happening for projects. Nice!
But I found the following 2 issues:
1) "Loading" will not show up if you "Refresh" a project, the ResourceGroupings stay and (if unfolded) collpase once the resources are loaded
2) I have a NPE when refreshing when I do the following:
* 2-1) select a Resource (ex. BuildConfig) and refresh it
* 2-2) select Project and refresh it
Result:
I get an error dialog and the following error in log:
{code}
com.openshift.restclient.OpenShiftException: Exception getting the resource
at com.openshift.internal.restclient.DefaultClient.handleHttpClientException(DefaultClient.java:391)
at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:241)
at org.jboss.tools.openshift.core.connection.Connection.get(Connection.java:340)
at org.jboss.tools.openshift.internal.ui.handler.RefreshResourceHandler$1.doRun(RefreshResourceHandler.java:78)
at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: com.openshift.internal.restclient.http.NotFoundException: {
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "the server could not find the requested resource",
"reason": "NotFound",
"details": {},
"code": 404
}
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:210)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:151)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:130)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.get(UrlConnectionHttpClient.java:92)
at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:237)
... 4 more
Caused by: java.io.FileNotFoundException: https://localhost:8443/osapi/v1beta3/namespaces/openshift-infra/projects/...
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1835)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:147)
... 7 more
{code}
was (Author: adietish):
With the PR applied I see refresh available and happening for projects. Nice!
But I found the following 2 issues:
1) "Loading" will not show up if you "Refresh" a project, the ResourceGroupings stay and (if unfolded) collpase once the resources are loaded
2) I have a NPE when refreshing when I do the following:
2-1) select a Resource (ex. BuildConfig) and refresh it
2-2) select Project and refresh it
Result:
I get an error dialog and the following error in log:
{code}
com.openshift.restclient.OpenShiftException: Exception getting the resource
at com.openshift.internal.restclient.DefaultClient.handleHttpClientException(DefaultClient.java:391)
at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:241)
at org.jboss.tools.openshift.core.connection.Connection.get(Connection.java:340)
at org.jboss.tools.openshift.internal.ui.handler.RefreshResourceHandler$1.doRun(RefreshResourceHandler.java:78)
at org.jboss.tools.openshift.internal.common.core.job.AbstractDelegatingMonitorJob.run(AbstractDelegatingMonitorJob.java:36)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: com.openshift.internal.restclient.http.NotFoundException: {
"kind": "Status",
"apiVersion": "v1",
"metadata": {},
"status": "Failure",
"message": "the server could not find the requested resource",
"reason": "NotFound",
"details": {},
"code": 404
}
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:210)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:151)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:130)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.get(UrlConnectionHttpClient.java:92)
at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:237)
... 4 more
Caused by: java.io.FileNotFoundException: https://localhost:8443/osapi/v1beta3/namespaces/openshift-infra/projects/...
at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1835)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:147)
... 7 more
{code}
> Explorer: Cannot refresh project
> --------------------------------
>
> Key: JBIDE-20050
> URL: https://issues.jboss.org/browse/JBIDE-20050
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift
> Affects Versions: 4.3.0.Beta1
> Reporter: Andre Dietisheim
> Assignee: Jeff Cantrill
> Labels: openshift_v3
> Fix For: 4.3.0.Beta2
>
> Attachments: no-refresh.png
>
>
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 9 months
[JBoss JIRA] (JBIDE-20039) Application wizard: templates tree should look disabled when I switch to use templates from local disk (Linux GTK3 only)
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20039?page=com.atlassian.jira.plugi... ]
Andre Dietisheim commented on JBIDE-20039:
------------------------------------------
[~snjeza] Great, your patch solved it. It definitely looks like quite a few issues in trees are caused by issues in GTK3/owner draw?
> Application wizard: templates tree should look disabled when I switch to use templates from local disk (Linux GTK3 only)
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-20039
> URL: https://issues.jboss.org/browse/JBIDE-20039
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift, upstream
> Affects Versions: 4.3.0.Beta1
> Reporter: Andre Dietisheim
> Assignee: Snjezana Peco
> Priority: Minor
> Labels: application_wizard, openshift_v3
> Fix For: 4.3.0.Beta2
>
> Attachments: my_wizard_with_disabled_tree.png, templates-tree-no-disabled.png
>
>
> steps to reproduce:
> # ASSERT: make sure that you have a connection to a v3 OpenShift server in explorer
> # EXEC: in Explorer: pick "New"->"Application" from context menu when selecting a project in your connection
> # ASSERT: application wizard pops up, radio "Use a template from server" is preselected
> # EXEC: switch radio "Use a template from my local file system"
> Result:
> There's no visual indication that the tree with server templates is not clickable any more. The "problem" is only visual, the tree is not clickable but doesnt look disabled for me.
> !templates-tree-no-disabled.png!
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 9 months
[JBoss JIRA] (JBIDE-20039) Application wizard: templates tree should look disabled when I switch to use templates from local disk (Linux GTK3 only)
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-20039?page=com.atlassian.jira.plugi... ]
Andre Dietisheim commented on JBIDE-20039:
------------------------------------------
rebased, merged and pushed to upstream/master
> Application wizard: templates tree should look disabled when I switch to use templates from local disk (Linux GTK3 only)
> ------------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-20039
> URL: https://issues.jboss.org/browse/JBIDE-20039
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: openshift, upstream
> Affects Versions: 4.3.0.Beta1
> Reporter: Andre Dietisheim
> Assignee: Snjezana Peco
> Priority: Minor
> Labels: application_wizard, openshift_v3
> Fix For: 4.3.0.Beta2
>
> Attachments: my_wizard_with_disabled_tree.png, templates-tree-no-disabled.png
>
>
> steps to reproduce:
> # ASSERT: make sure that you have a connection to a v3 OpenShift server in explorer
> # EXEC: in Explorer: pick "New"->"Application" from context menu when selecting a project in your connection
> # ASSERT: application wizard pops up, radio "Use a template from server" is preselected
> # EXEC: switch radio "Use a template from my local file system"
> Result:
> There's no visual indication that the tree with server templates is not clickable any more. The "problem" is only visual, the tree is not clickable but doesnt look disabled for me.
> !templates-tree-no-disabled.png!
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 9 months
[JBoss JIRA] (JBIDE-19799) JBoss Modules classpath option should guide users more
by Rob Stryker (JIRA)
[ https://issues.jboss.org/browse/JBIDE-19799?page=com.atlassian.jira.plugi... ]
Rob Stryker resolved JBIDE-19799.
---------------------------------
Assignee: Rob Stryker
Resolution: Done
I've pushed a fix to beta2. It enables autocomplete for module and slot listings.
Something important to know is that it is only pulling from runtimes the workspace knows about. If you have no declared runtimes for the given runtime type, you won't get any autocompletion here.
> JBoss Modules classpath option should guide users more
> ------------------------------------------------------
>
> Key: JBIDE-19799
> URL: https://issues.jboss.org/browse/JBIDE-19799
> Project: Tools (JBoss Tools)
> Issue Type: Enhancement
> Components: server
> Affects Versions: 4.3.0.Alpha2
> Reporter: Rob Stryker
> Assignee: Rob Stryker
> Fix For: 4.3.0.Beta2
>
>
> See https://issues.jboss.org/browse/JBIDE-19789 for more info.
> Max said: "but sounds like we could actually provide guidance to user which modules and slots are available. But thats separate issue."
> And now it *is* a separate issue ;)
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 9 months
[JBoss JIRA] (JBIDE-19954) Connection wizard: connecting to a server configured for basic auth with Oauth scheme provides no indication
by Andre Dietisheim (JIRA)
[ https://issues.jboss.org/browse/JBIDE-19954?page=com.atlassian.jira.plugi... ]
Andre Dietisheim commented on JBIDE-19954:
------------------------------------------
ok, got what you screenshotted, works for me.
merged and pushed to upstream/master
> Connection wizard: connecting to a server configured for basic auth with Oauth scheme provides no indication
> ------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-19954
> URL: https://issues.jboss.org/browse/JBIDE-19954
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.3.0.Beta1
> Reporter: Jeff Cantrill
> Assignee: Jeff Cantrill
> Labels: connection_wizard, openshift_v3
> Fix For: 4.3.0.Beta2
>
> Attachments: connection-wiazrd.png, oauth_dialog.png, oauth_for_basic_setup.png
>
>
> # ASSERT: make sure you have an openshift server configured to basic auth (only, no oauth)
> # EXEC: Launch connection wizard, create a new connection, use url of this server in "Server Url" and server type to "OpenShift v3".
> # EXEC: in "Authentication" details pane hit the "retrieve link"
> Result:
> The progress bar shows up for a short time and disappears right afterwards. There's no info in the wizard that tells you why retrieval didnt show up the browser.
> Expected result:
> There's an error that tells you that the local server doesnt support oauth and that you should use basic auth.
> !connection-wiazrd.png!
> It previously worked until we had to alter the 'retrieve' browser to utilize external. This may be resolved if we can re-introduce the original browser dialog
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
10 years, 9 months