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

Cannot start CDK/Openshift with Oracle JDK 11.0.1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.11.0.AM1
    • 4.10.0.AM1
    • cdk, openshift
    • None
    • Hide

      1. Install devstudio with Java 11 (I used JDK 11.0.1 - oracle openjdk, should be under GPL2 as no openjdk-11-jdk are not yet available, as of my knowledge - link: https://jdk.java.net/11/)
      2. Download cdk-3.6.0, configure it
      3. Create CDK server adapter 3.2+
      4. Start server adapter
      5. ASSERT: Adapter is started and openshift/docker connection exist and are functional (check web console)
      Actual result: Openshift tooling throws an error (java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter) and creates "connection" with such name

      Show
      1. Install devstudio with Java 11 (I used JDK 11.0.1 - oracle openjdk, should be under GPL2 as no openjdk-11-jdk are not yet available, as of my knowledge - link: https://jdk.java.net/11/ ) 2. Download cdk-3.6.0, configure it 3. Create CDK server adapter 3.2+ 4. Start server adapter 5. ASSERT: Adapter is started and openshift/docker connection exist and are functional (check web console) Actual result: Openshift tooling throws an error (java.lang.NoClassDefFoundError: javax/xml/bind/DatatypeConverter) and creates "connection" with such name

      While starting CDK 3.6.0, I get an error while creating openshift connection.

      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
      

              adietish@redhat.com André Dietisheim
              odockal@redhat.com Ondrej Dockal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: