Error when trying to create a new JBOSS OpenShift project

我只是一个虾纸丫 提交于 2019-12-25 06:48:06

问题


I am trying to have a play around with openshift, but am running into a config issue at the first hurdle.

i have RedHatJBOSS Developer Studio 8.0.0 installed, and have the JBOSS Integration and SOA Development Plugin installed.

I also have an openshift user account and can login just fine to their website.

Basically, when I select the create openshift project from the JBoss central page, and enter my valid openshift credentials and pres next, it tries to connect and immediately throws an error stating an SSL handshake exception occurred (details below).

I am a bit lost if I am honest; is there something I need to install?

I am using JRE 7 in case that is significant

com.openshift.client.OpenShiftEndpointException: Could not request https://openshift.redhat.com/broker/rest/api: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
    at com.openshift.internal.client.RestService.request(RestService.java:120)
    at com.openshift.internal.client.RestService.request(RestService.java:92)
    at com.openshift.internal.client.AbstractOpenShiftConnectionFactory.getConnection(AbstractOpenShiftConnectionFactory.java:36)
    at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:198)
    at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:158)
    at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:114)
    at com.openshift.client.OpenShiftConnectionFactory.getConnection(OpenShiftConnectionFactory.java:103)
    at org.jboss.tools.openshift.express.internal.core.connection.Connection.createUser(Connection.java:229)
    at org.jboss.tools.openshift.express.internal.core.connection.Connection.connect(Connection.java:205)
    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:479)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: com.openshift.internal.client.httpclient.HttpClientException: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
    at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:201)
    at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:161)
    at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:140)
    at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.get(UrlConnectionHttpClient.java:99)
    at com.openshift.internal.client.RestService.request(RestService.java:160)
    at com.openshift.internal.client.RestService.request(RestService.java:107)
    ... 11 more
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:85)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:57)
    at java.lang.reflect.Constructor.newInstance(Constructor.java:541)
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1686)
    at sun.net.www.protocol.http.HttpURLConnection$6.run(HttpURLConnection.java:1684)
    at java.security.AccessController.doPrivileged(AccessController.java:330)
    at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1682)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1255)
    at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:479)
    at com.ibm.net.ssl.www2.protocol.https.b.getResponseCode(b.java:40)
    at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.createException(UrlConnectionHttpClient.java:184)
    ... 16 more
Caused by: javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
    at com.ibm.jsse2.j.a(j.java:33)
    at com.ibm.jsse2.j.a(j.java:31)
    at com.ibm.jsse2.qc.b(qc.java:190)
    at com.ibm.jsse2.qc.a(qc.java:456)
    at com.ibm.jsse2.qc.h(qc.java:352)
    at com.ibm.jsse2.qc.a(qc.java:523)
    at com.ibm.jsse2.qc.startHandshake(qc.java:730)
    at com.ibm.net.ssl.www2.protocol.https.c.afterConnect(c.java:70)
    at com.ibm.net.ssl.www2.protocol.https.d.connect(d.java:9)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1311)
    at com.ibm.net.ssl.www2.protocol.https.b.getInputStream(b.java:89)
    at com.openshift.internal.client.httpclient.UrlConnectionHttpClient.request(UrlConnectionHttpClient.java:157)
    ... 15 more

回答1:


This looks very weird, I didnt spot this so far. SSL handshake is failing for some unknown reason.

What is the exact version of your JDK7? What is your OS?

Cheers Andre



来源:https://stackoverflow.com/questions/27923831/error-when-trying-to-create-a-new-jboss-openshift-project

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!