[jbosstools-issues] [JBoss JIRA] (JBIDE-16646) Connection dialog: cannot connect to DEVENV

Andre Dietisheim (JIRA) issues at jboss.org
Tue Feb 25 08:45:48 EST 2014


     [ https://issues.jboss.org/browse/JBIDE-16646?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andre Dietisheim updated JBIDE-16646:
-------------------------------------

    Steps to Reproduce: 
# 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
!devenv-certificate.png!
# EXEC: accept it

Result:
Back in connection dialog you get an error:
!connection-dialog-error.png!

In Eclipse log you'll spot the following:
{code}
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
{code}

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


  was:
# ASSERT: make sure that you have a DEVENV running
# ASSERT: make sure that you have sse extensions turned off (
# EXEC: create a new connection to a devenv
# ASSERT: in connection dialog: once you have provided all settings the certificate dialog shows up
!devenv-certificate.png!
# EXEC: accept it

Result:
Back in connection dialog you get an error:
!connection-dialog-error.png!

In Eclipse log you'll spot the following:
{code}
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
{code}

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



    
> Connection dialog: cannot connect to DEVENV
> -------------------------------------------
>
>                 Key: JBIDE-16646
>                 URL: https://issues.jboss.org/browse/JBIDE-16646
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.2.0.Alpha2
>            Reporter: Andre Dietisheim
>            Assignee: Andre Dietisheim
>            Priority: Critical
>             Fix For: 4.2.0.Beta1
>
>         Attachments: connection-dialog-error.png, devenv-certificate.png
>
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list