[jbosstools-issues] [JBoss JIRA] (JBIDE-26460) Cannot start CDK/Openshift with Oracle JDK 11.0.1

Andre Dietisheim (Jira) issues at jboss.org
Fri Dec 7 10:46:00 EST 2018


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

Andre Dietisheim commented on JBIDE-26460:
------------------------------------------

This is caused by an incompatibility in openshift-restclient-java which prevents it from running with java 11: https://github.com/openshift/openshift-restclient-java/issues/357

> Cannot start CDK/Openshift with Oracle JDK 11.0.1
> -------------------------------------------------
>
>                 Key: JBIDE-26460
>                 URL: https://issues.jboss.org/browse/JBIDE-26460
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: cdk, openshift
>    Affects Versions: 4.10.0.AM1
>         Environment: Fedora 28, Java 11 (oracle's JDK 11.0.1)
>            Reporter: Ondrej Dockal
>            Assignee: Andre Dietisheim
>            Priority: Critical
>             Fix For: 4.11.0.AM1
>
>         Attachments: Screenshot_20181029_171905.png
>
>
> While starting CDK 3.6.0, I get an error while creating openshift connection.
> {code}
> eclipse.buildId=12.10.0.AM1-v20181026-0745-B3616
> java.version=11.0.1
> java.vendor=Oracle Corporation
> BootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_US
> Framework arguments:  -product com.jboss.devstudio.core.product
> Command-line arguments:  -os linux -ws gtk -arch x86_64 -product com.jboss.devstudio.core.product
> org.eclipse.core.jobs
> Error
> Mon Oct 29 17:00:57 CET 2018
> An internal error occurred during: "Inspecting CDK environment...".
> java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter
> 	at com.openshift.restclient.utils.Base64Coder.encode(Base64Coder.java:43)
> 	at com.openshift.restclient.utils.Base64Coder.encode(Base64Coder.java:55)
> 	at com.openshift.internal.restclient.okhttp.BasicChallangeHandler.handleChallange(BasicChallangeHandler.java:47)
> 	at com.openshift.internal.restclient.okhttp.OpenShiftAuthenticator$1.authenticate(OpenShiftAuthenticator.java:91)
> 	at okhttp3.internal.http.RetryAndFollowUpInterceptor.followUpRequest(RetryAndFollowUpInterceptor.java:294)
> 	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:160)
> 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
> 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
> 	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:55)
> 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
> 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
> 	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
> 	at okhttp3.RealCall.execute(RealCall.java:77)
> 	at com.openshift.internal.restclient.okhttp.OpenShiftAuthenticator.tryAuth(OpenShiftAuthenticator.java:97)
> 	at com.openshift.internal.restclient.okhttp.OpenShiftAuthenticator.authenticate(OpenShiftAuthenticator.java:59)
> 	at okhttp3.internal.http.RetryAndFollowUpInterceptor.followUpRequest(RetryAndFollowUpInterceptor.java:294)
> 	at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:160)
> 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
> 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
> 	at com.openshift.internal.restclient.okhttp.ResponseCodeInterceptor.intercept(ResponseCodeInterceptor.java:55)
> 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147)
> 	at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121)
> 	at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200)
> 	at okhttp3.RealCall.execute(RealCall.java:77)
> 	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:298)
> 	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:274)
> 	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:238)
> 	at com.openshift.internal.restclient.DefaultClient.execute(DefaultClient.java:219)
> 	at com.openshift.internal.restclient.DefaultClient.get(DefaultClient.java:400)
> 	at com.openshift.internal.restclient.authorization.AuthorizationContext.isAuthorized(AuthorizationContext.java:63)
> 	at org.jboss.tools.openshift.core.connection.Connection.authorize(Connection.java:237)
> 	at org.jboss.tools.openshift.core.connection.Connection.connect(Connection.java:226)
> 	at org.jboss.tools.openshift.internal.cdk.server.core.listeners.ConfigureDependentFrameworksListener.configureOpenshift(ConfigureDependentFrameworksListener.java:115)
> 	at org.jboss.tools.openshift.internal.cdk.server.core.listeners.ConfigureDependentFrameworksListener.configureFrameworks(ConfigureDependentFrameworksListener.java:73)
> 	at org.jboss.tools.openshift.internal.cdk.server.core.listeners.ConfigureDependentFrameworksListener$1.run(ConfigureDependentFrameworksListener.java:60)
> 	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
> Caused by: java.lang.ClassNotFoundException: javax.xml.bind.DatatypeConverter cannot be found by org.jboss.tools.openshift.client_3.6.0.AM1-v20181026-0330-B4105
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:511)
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:422)
> 	at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:414)
> 	at org.eclipse.osgi.internal.loader.ModuleClassLoader.loadClass(ModuleClassLoader.java:153)
> 	at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
> 	... 36 more
> {code}



--
This message was sent by Atlassian Jira
(v7.12.1#712002)


More information about the jbosstools-issues mailing list