Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13303

errors in error log when navigating openshift explorer and no connection setup

XMLWordPrintable

    • Hide
      1. ASSERT: make sure that you have a connection with password stored (in secured storage) in your OpenShift Explorer
      2. ASSERT: make sure you have no network
      3. ASSERT: tail -f your Eclipse logs so that you get what happens in it
      4. EXEC: launch a fresh Eclipse and open OpenShift Explorer & Properties view
      5. EXEC: select your connection in OpenShift Explorer
      6. ASSERT: secure storage prompts your for the secure storage pw (if you already used secure storage and gave it the pw before, you wont get the prompt)
      7. EXEC: give secure storage pw
      8. EXEC: look into your Eclipse log:

      Result:

      com.openshift.client.OpenShiftEndpointException: Could not request https://openshift.redhat.com/broker/rest/api: java.net.UnknownHostException: openshift.redhat.com
      	at com.openshift.internal.client.RestService.request(RestService.java:117)
      	at com.openshift.internal.client.RestService.request(RestService.java:102)
      	at com.openshift.internal.client.RestService.request(RestService.java:83)
      	at com.openshift.internal.client.AbstractOpenShiftConnectionFactory.getConnection(AbstractOpenShiftConnectionFactory.java:34)
      	at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:134)
      	at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:103)
      	at org.jboss.tools.openshift.express.internal.core.connection.Connection.createUser(Connection.java:219)
      	at org.jboss.tools.openshift.express.internal.core.connection.Connection.connect(Connection.java:199)
      	at org.jboss.tools.openshift.express.internal.ui.property.UserPropertySource$1.run(UserPropertySource.java:112)
      	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      Caused by: com.openshift.internal.client.httpclient.HttpClientException: java.net.UnknownHostException: openshift.redhat.com
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:213)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:180)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.get(UrlConnectionHttpClient.java:111)
      	at com.openshift.internal.client.RestService.request(RestService.java:153)
      	at com.openshift.internal.client.RestService.request(RestService.java:109)
      	... 9 more
      Caused by: java.net.UnknownHostException: openshift.redhat.com
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      	at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      	at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1491)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1485)
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)
      	at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:196)
      	... 13 more
      Caused by: java.net.UnknownHostException: openshift.redhat.com
      	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
      	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
      	at java.net.Socket.connect(Socket.java:529)
      	at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:559)
      	at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
      	at sun.net.www.http.HttpClient.openServer(HttpClient.java:395)
      	at sun.net.www.http.HttpClient.openServer(HttpClient.java:530)
      	at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272)
      	at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329)
      	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172)
      	at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
      	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158)
      	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
      	at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:178)
      	... 12 more
      
      Show
      ASSERT: make sure that you have a connection with password stored (in secured storage) in your OpenShift Explorer ASSERT: make sure you have no network ASSERT: tail -f your Eclipse logs so that you get what happens in it EXEC: launch a fresh Eclipse and open OpenShift Explorer & Properties view EXEC: select your connection in OpenShift Explorer ASSERT: secure storage prompts your for the secure storage pw (if you already used secure storage and gave it the pw before, you wont get the prompt) EXEC: give secure storage pw EXEC: look into your Eclipse log: Result: com.openshift.client.OpenShiftEndpointException: Could not request https: //openshift.redhat.com/broker/ rest /api: java.net.UnknownHostException: openshift.redhat.com at com.openshift.internal.client.RestService.request(RestService.java:117) at com.openshift.internal.client.RestService.request(RestService.java:102) at com.openshift.internal.client.RestService.request(RestService.java:83) at com.openshift.internal.client.AbstractOpenShiftConnectionFactory.getConnection(AbstractOpenShiftConnectionFactory.java:34) at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:134) at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:103) at org.jboss.tools.openshift.express.internal.core.connection.Connection.createUser(Connection.java:219) at org.jboss.tools.openshift.express.internal.core.connection.Connection.connect(Connection.java:199) at org.jboss.tools.openshift.express.internal.ui.property.UserPropertySource$1.run(UserPropertySource.java:112) at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121) Caused by: com.openshift.internal.client.httpclient.HttpClientException: java.net.UnknownHostException: openshift.redhat.com at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:213) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:180) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.get(UrlConnectionHttpClient.java:111) at com.openshift.internal.client.RestService.request(RestService.java:153) at com.openshift.internal.client.RestService.request(RestService.java:109) ... 9 more Caused by: java.net.UnknownHostException: openshift.redhat.com at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1491) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1485) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139) at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:196) ... 13 more Caused by: java.net.UnknownHostException: openshift.redhat.com at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:559) at sun.net.NetworkClient.doConnect(NetworkClient.java:158) at sun.net.www.http.HttpClient.openServer(HttpClient.java:395) at sun.net.www.http.HttpClient.openServer(HttpClient.java:530) at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272) at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.write(UrlConnectionHttpClient.java:178) ... 12 more
    • Low

      Open openshift explorer with properties view and no connection open and no network attached.

      com.openshift.client.OpenShiftEndpointException: Could not request /api: java.net.UnknownHostException: openshift.redhat.com
      at com.openshift.internal.client.RestService.request(RestService.java:103)
      at com.openshift.internal.client.RestService.request(RestService.java:91)
      at com.openshift.internal.client.RestService.request(RestService.java:72)
      at com.openshift.internal.client.AbstractOpenShiftConnectionFactory.getConnection(AbstractOpenShiftConnectionFactory.java:34)
      at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:135)
      at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:104)
      at org.jboss.tools.openshift.express.internal.core.connection.Connection.createUser(Connection.java:219)
      at org.jboss.tools.openshift.express.internal.core.connection.Connection.connect(Connection.java:199)
      at org.jboss.tools.openshift.express.internal.ui.property.UserPropertySource$1.run(UserPropertySource.java:112)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
      Caused by: com.openshift.internal.client.httpclient.HttpClientException: java.net.UnknownHostException: openshift.redhat.com
      at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:194)
      at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.get(UrlConnectionHttpClient.java:99)
      at com.openshift.internal.client.RestService.request(RestService.java:139)
      at com.openshift.internal.client.RestService.request(RestService.java:97)
      ... 9 more
      Caused by: java.net.UnknownHostException: openshift.redhat.com
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
      at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1491)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1485)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1139)
      at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:379)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:318)
      at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:177)
      ... 12 more
      Caused by: java.net.UnknownHostException: openshift.redhat.com
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:195)
      at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:432)
      at java.net.Socket.connect(Socket.java:529)
      at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:570)
      at sun.net.NetworkClient.doConnect(NetworkClient.java:158)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
      at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
      at sun.net.www.protocol.https.HttpsClient.<init>(HttpsClient.java:272)
      at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:329)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:172)
      at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911)
      at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:158)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
      at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:234)
      at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.get(UrlConnectionHttpClient.java:94)
      ... 11 more

            adietish@redhat.com André Dietisheim
            manderse@redhat.com Max Andersen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: