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

Connection dialog: cannot connect to DEVENV

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Critical
    • Resolution: Done
    • 4.2.0.Alpha2
    • 4.2.0.Beta2
    • openshift
    • None
    • Hide
      1. ASSERT: make sure that you have a DEVENV running
      2. ASSERT: make sure that you have sse extensions turned off (-Djsse.enableSNIExtension=false)
      3. EXEC: create a new connection to a devenv
      4. ASSERT: in connection dialog: once you have provided all settings the certificate dialog shows up
      5. EXEC: accept it

      Result:
      Back in connection dialog you get an error:

      In Eclipse log you'll spot the following:

      com.openshift.client.OpenShiftEndpointException: Could not request https://184.73.45.42/broker/rest/api: java.io.IOException: HTTPS hostname wrong:  should be <184.73.45.42>
      	at com.openshift.internal.client.RestService.request(RestService.java:136)
      	at com.openshift.internal.client.RestService.request(RestService.java:109)
      	at com.openshift.internal.client.RestService.request(RestService.java:92)
      	at com.openshift.internal.client.AbstractOpenShiftConnectionFactory.getConnection(AbstractOpenShiftConnectionFactory.java:34)
      	at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:164)
      	at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:150)
      	at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:111)
      	at org.jboss.tools.openshift.express.internal.core.connection.Connection.createUser(Connection.java:227)
      	at org.jboss.tools.openshift.express.internal.core.connection.Connection.connect(Connection.java:203)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.connection.ConnectionWizardPageModel.connect(ConnectionWizardPageModel.java:247)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.connection.ConnectionWizardPage$ConnectJob.run(ConnectionWizardPage.java:474)
      	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
      Caused by: com.openshift.internal.client.httpclient.HttpClientException: java.io.IOException: HTTPS hostname wrong:  should be <184.73.45.42>
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:186)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:154)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:129)
      	at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.get(UrlConnectionHttpClient.java:88)
      	at com.openshift.internal.client.RestService.request(RestService.java:175)
      	at com.openshift.internal.client.RestService.request(RestService.java:123)
      	... 11 more
      Caused by: java.io.IOException: HTTPS hostname wrong:  should be <184.73.45.42>
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
      	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.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:169)
      	... 16 more
      Caused by: java.io.IOException: HTTPS hostname wrong:  should be <184.73.45.42>
      	at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:652)
      	at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:577)
      	at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
      	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.client.httpclient.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:150)
      	... 15 more
      

      Expected result:
      You should be able to successfully create the connection if you accept the certificate.

      Show
      ASSERT: make sure that you have a DEVENV running ASSERT: make sure that you have sse extensions turned off (-Djsse.enableSNIExtension=false) EXEC: create a new connection to a devenv ASSERT: in connection dialog: once you have provided all settings the certificate dialog shows up EXEC: accept it Result: Back in connection dialog you get an error: In Eclipse log you'll spot the following: com.openshift.client.OpenShiftEndpointException: Could not request https: //184.73.45.42/broker/ rest /api: java.io.IOException: HTTPS hostname wrong: should be <184.73.45.42> at com.openshift.internal.client.RestService.request(RestService.java:136) at com.openshift.internal.client.RestService.request(RestService.java:109) at com.openshift.internal.client.RestService.request(RestService.java:92) at com.openshift.internal.client.AbstractOpenShiftConnectionFactory.getConnection(AbstractOpenShiftConnectionFactory.java:34) at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:164) at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:150) at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:111) at org.jboss.tools.openshift.express.internal.core.connection.Connection.createUser(Connection.java:227) at org.jboss.tools.openshift.express.internal.core.connection.Connection.connect(Connection.java:203) at org.jboss.tools.openshift.express.internal.ui.wizard.connection.ConnectionWizardPageModel.connect(ConnectionWizardPageModel.java:247) at org.jboss.tools.openshift.express.internal.ui.wizard.connection.ConnectionWizardPage$ConnectJob.run(ConnectionWizardPage.java:474) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53) Caused by: com.openshift.internal.client.httpclient.HttpClientException: java.io.IOException: HTTPS hostname wrong: should be <184.73.45.42> at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:186) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:154) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:129) at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.get(UrlConnectionHttpClient.java:88) at com.openshift.internal.client.RestService.request(RestService.java:175) at com.openshift.internal.client.RestService.request(RestService.java:123) ... 11 more Caused by: java.io.IOException: HTTPS hostname wrong: should be <184.73.45.42> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) 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.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:169) ... 16 more Caused by: java.io.IOException: HTTPS hostname wrong: should be <184.73.45.42> at sun.net.www.protocol.https.HttpsClient.checkURLSpoofing(HttpsClient.java:652) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:577) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) 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.client.httpclient.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:150) ... 15 more Expected result: You should be able to successfully create the connection if you accept the certificate.

    Attachments

      Issue Links

        Activity

          People

            adietish@redhat.com André Dietisheim
            adietish@redhat.com André Dietisheim
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: