[jbosstools-issues] [JBoss JIRA] (JBIDE-19626) Explorer: If you have an erroring v3 connection, refresh has no visible effect

Andre Dietisheim (JIRA) issues at jboss.org
Tue May 19 08:54:19 EDT 2015


    [ https://issues.jboss.org/browse/JBIDE-19626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13069134#comment-13069134 ] 

Andre Dietisheim edited comment on JBIDE-19626 at 5/19/15 8:53 AM:
-------------------------------------------------------------------

[~jcantrill] i applied your PR and did the following:
# ASSERT: make sure you have a connection to your OpenShift server in OpenShift explorer. Make sure it's not unfolded yet (ex. have a freshly restarted Eclipse)
# EXEC: make sure openshift container is not running (ex. stop the docker container). 
# EXEC: unfold your connection in explorer

Result:
An error dialog pops up (not the error child) and an endless loop trying to connect to the server happens, having the error repeatedly coming up in the dialog and in the log. Only killing Eclipse then helps:
!repeated-error-while-loading.png!
{code}
!repeated-error-while-loading.png!
!MESSAGE An internal error occurred during: "Loading OpenShift resources...".
!STACK 0
com.openshift.internal.restclient.http.HttpClientException: java.net.ConnectException: Connection refused
	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:217)
	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.getVersion(DefaultClient.java:297)
	at com.openshift.internal.restclient.DefaultClient.getOpenShiftVersions(DefaultClient.java:273)
	at com.openshift.internal.restclient.DefaultClient.getOpenShiftAPIVersion(DefaultClient.java:287)
	at com.openshift.internal.restclient.DefaultClient.getTypeMappings(DefaultClient.java:322)
	at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:109)
	at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:103)
	at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:98)
	at org.jboss.tools.openshift.core.connection.Connection.get(Connection.java:257)
	at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.getChildrenFor(OpenShiftExplorerContentProvider.java:56)
	at org.jboss.tools.openshift.internal.common.ui.explorer.BaseExplorerContentProvider$1.run(BaseExplorerContentProvider.java:124)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.net.ConnectException: Connection refused
	at sun.reflect.GeneratedConstructorAccessor25.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675)
	at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:200)
	... 14 more
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:579)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:147)
	... 13 more
{code}


was (Author: adietish):
[~jcantrill] i applied your PR and did the following:
# ASSERT: make sure you have a connection to your OpenShift server in OpenShift explorer. Make sure it's not unfolded yet (ex. have a freshly restarted Eclipse)
# EXEC: sure my openshift container is not running. 
# EXEC: unfold your connection in explorer

Result:
An error dialog pops up (not the error child) and an endless loop trying to connect to the server happens, having the error repeatedly coming up in the dialog and in the log. Only killing Eclipse then helps:
!repeated-error-while-loading.png!
{code}
!repeated-error-while-loading.png!
!MESSAGE An internal error occurred during: "Loading OpenShift resources...".
!STACK 0
com.openshift.internal.restclient.http.HttpClientException: java.net.ConnectException: Connection refused
	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:217)
	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.getVersion(DefaultClient.java:297)
	at com.openshift.internal.restclient.DefaultClient.getOpenShiftVersions(DefaultClient.java:273)
	at com.openshift.internal.restclient.DefaultClient.getOpenShiftAPIVersion(DefaultClient.java:287)
	at com.openshift.internal.restclient.DefaultClient.getTypeMappings(DefaultClient.java:322)
	at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:109)
	at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:103)
	at com.openshift.internal.restclient.DefaultClient.list(DefaultClient.java:98)
	at org.jboss.tools.openshift.core.connection.Connection.get(Connection.java:257)
	at org.jboss.tools.openshift.internal.ui.explorer.OpenShiftExplorerContentProvider.getChildrenFor(OpenShiftExplorerContentProvider.java:56)
	at org.jboss.tools.openshift.internal.common.ui.explorer.BaseExplorerContentProvider$1.run(BaseExplorerContentProvider.java:124)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.net.ConnectException: Connection refused
	at sun.reflect.GeneratedConstructorAccessor25.newInstance(Unknown Source)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
	at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1675)
	at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1673)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1671)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1244)
	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:200)
	... 14 more
Caused by: java.net.ConnectException: Connection refused
	at java.net.PlainSocketImpl.socketConnect(Native Method)
	at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:339)
	at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:200)
	at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:182)
	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
	at java.net.Socket.connect(Socket.java:579)
	at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:618)
	at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:160)
	at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
	at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:275)
	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:371)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:932)
	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1300)
	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
	at com.openshift.internal.restclient.http.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:147)
	... 13 more
{code}

> Explorer: If you have an erroring v3 connection, refresh has no visible effect
> ------------------------------------------------------------------------------
>
>                 Key: JBIDE-19626
>                 URL: https://issues.jboss.org/browse/JBIDE-19626
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.3.0.Alpha2
>            Reporter: Andre Dietisheim
>            Assignee: Jeff Cantrill
>             Fix For: 4.3.0.Beta1
>
>         Attachments: connection-error.png, connection-listing-resources.png, connection-refused.png, repeated-error-while-loading.png
>
>
> # ASSERT: make sure that you have a connection to an openshift v3 server under your full control
> # ASSERT: make sure your connection to it was not unfolded/loaded yet
> # EXEC: shut down your local openshift v3 server so that it does not answer
> # EXEC: unfold your connection
> # ASSERT: the connection shows an error "child"
> !connection-error.png!
> # EXEC: re-start your local v3 server
> # EXEC: pick "Refresh" from the context menu of your connection
> Result:
> Nothing happens, the error "child" stays



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)


More information about the jbosstools-issues mailing list