[jbosstools-issues] [JBoss JIRA] (JBIDE-20050) Explorer: Cannot refresh project
Andre Dietisheim (JIRA)
issues at jboss.org
Fri Jun 19 17:03:03 EDT 2015
[ https://issues.jboss.org/browse/JBIDE-20050?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13081854#comment-13081854 ]
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/openshift-infra
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/openshift-infra
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)
More information about the jbosstools-issues
mailing list