Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-62086

Getting java.lang.ClassNotFoundException exception javax.xml.bind.JAXBException checkmarx plaugin with agent using open jdk 11

    XMLWordPrintable

Details

    Description

      I am getting exception Getting java.lang.ClassNotFoundException exception javax.xml.bind.JAXBException checkmarx plaugin with agent using open jdk 11

       

      Stack trace

      java.lang.ClassNotFoundException: Bootstrap pseudo-classloader disabled: javax.xml.bind.JAXBException via null
      at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:858)
      at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:893)
      at sun.reflect.GeneratedMethodAccessor42.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:498)
      at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:931)
      at hudson.remoting.Request$2.run(Request.java:369)
      at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:18)
      at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)
      at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
      at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)
      at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      at java.lang.Thread.run(Thread.java:748)

      Attachments

        Activity

          farcop Andrey Gusev added a comment - - edited

          Confirm and set Priority to Blocker because there is no workaround known.

          Full stack here:

          Aug 20, 2020 8:43:48 AM hudson.remoting.UserRequest performWARNING: LinkageError while performing UserRequest:com.checkmarx.jenkins.CxScanCallable@18cb2483java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException    at com.cx.restclient.CxSASTClient.createSASTScan(CxSASTClient.java:109)    at com.cx.restclient.CxShragaClient.createSASTScan(CxShragaClient.java:82)    at com.checkmarx.jenkins.CxScanCallable.invoke(CxScanCallable.java:90)    at com.checkmarx.jenkins.CxScanCallable.invoke(CxScanCallable.java:21)    at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3073)    at hudson.remoting.UserRequest.perform(UserRequest.java:211)    at hudson.remoting.UserRequest.perform(UserRequest.java:54)    at hudson.remoting.Request$2.run(Request.java:369)    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)    at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)    at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)    at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)    at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:117)    at java.base/java.lang.Thread.run(Thread.java:834)Caused by: java.lang.ClassNotFoundException: Bootstrap pseudo-classloader disabled: javax.xml.bind.JAXBException via null    at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:858)    at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:893)    at sun.reflect.GeneratedMethodAccessor3769.invoke(Unknown Source)    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)    at java.lang.reflect.Method.invoke(Method.java:498)    at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:931)    at hudson.remoting.Request$2.run(Request.java:369)    at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)    at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:18)    at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21)    at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)    at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71)    at java.util.concurrent.FutureTask.run(FutureTask.java:266)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)    at java.lang.Thread.run(Thread.java:748)    Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection to dgm-jenkins.sigma.sbrf.ru/10.53.116.92:50000        at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)        at hudson.remoting.Request.call(Request.java:202)        at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:288)        at com.sun.proxy.$Proxy7.fetch3(Unknown Source)        at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:211)        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:589)        at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)        at com.cx.restclient.CxSASTClient.createSASTScan(CxSASTClient.java:109)        at com.cx.restclient.CxShragaClient.createSASTScan(CxShragaClient.java:82)        at com.checkmarx.jenkins.CxScanCallable.invoke(CxScanCallable.java:90)        at com.checkmarx.jenkins.CxScanCallable.invoke(CxScanCallable.java:21)        at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3073)        at hudson.remoting.UserRequest.perform(UserRequest.java:211)        at hudson.remoting.UserRequest.perform(UserRequest.java:54)        at hudson.remoting.Request$2.run(Request.java:369)        at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)        at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:117)        at java.base/java.lang.Thread.run(Thread.java:834)
          
          
          farcop Andrey Gusev added a comment - - edited Confirm and set Priority to Blocker because there is no workaround known. Full stack here: Aug 20, 2020 8:43:48 AM hudson.remoting.UserRequest performWARNING: LinkageError while performing UserRequest:com.checkmarx.jenkins.CxScanCallable@18cb2483java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException at com.cx.restclient.CxSASTClient.createSASTScan(CxSASTClient.java:109) at com.cx.restclient.CxShragaClient.createSASTScan(CxShragaClient.java:82) at com.checkmarx.jenkins.CxScanCallable.invoke(CxScanCallable.java:90) at com.checkmarx.jenkins.CxScanCallable.invoke(CxScanCallable.java:21) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3073) at hudson.remoting.UserRequest.perform(UserRequest.java:211) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:117) at java.base/java.lang. Thread .run( Thread .java:834)Caused by: java.lang.ClassNotFoundException: Bootstrap pseudo-classloader disabled: javax.xml.bind.JAXBException via null at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch4(RemoteClassLoader.java:858) at hudson.remoting.RemoteClassLoader$ClassLoaderProxy.fetch3(RemoteClassLoader.java:893) at sun.reflect.GeneratedMethodAccessor3769.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at hudson.remoting.RemoteInvocationHandler$RPCRequest.perform(RemoteInvocationHandler.java:931) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at org.jenkinsci.remoting.CallableDecorator.call(CallableDecorator.java:18) at hudson.remoting.CallableDecoratorList$1.call(CallableDecoratorList.java:21) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at jenkins.security.ImpersonatingExecutorService$2.call(ImpersonatingExecutorService.java:71) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang. Thread .run( Thread .java:748) Suppressed: hudson.remoting.Channel$CallSiteStackTrace: Remote call to JNLP4-connect connection to dgm-jenkins.sigma.sbrf.ru/10.53.116.92:50000 at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788) at hudson.remoting.Request.call(Request.java:202) at hudson.remoting.RemoteInvocationHandler.invoke(RemoteInvocationHandler.java:288) at com.sun.proxy.$Proxy7.fetch3(Unknown Source) at hudson.remoting.RemoteClassLoader.findClass(RemoteClassLoader.java:211) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:589) at java.base/java.lang. ClassLoader .loadClass( ClassLoader .java:522) at com.cx.restclient.CxSASTClient.createSASTScan(CxSASTClient.java:109) at com.cx.restclient.CxShragaClient.createSASTScan(CxShragaClient.java:82) at com.checkmarx.jenkins.CxScanCallable.invoke(CxScanCallable.java:90) at com.checkmarx.jenkins.CxScanCallable.invoke(CxScanCallable.java:21) at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3073) at hudson.remoting.UserRequest.perform(UserRequest.java:211) at hudson.remoting.UserRequest.perform(UserRequest.java:54) at hudson.remoting.Request$2.run(Request.java:369) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:117) at java.base/java.lang. Thread .run( Thread .java:834)

          farcop can you please check whether you actually have https://plugins.jenkins.io/jaxb/ installed?

          This should be installed automatically, but if it is not, or if this is, I think we need more informations on your environment.

          Ideally also, providing a step by step reproducer would be critical to move forward (disclaimer: I am NOT a maintainer of this plugin, but I've worked on the Java 11 compatibility update of the Jenkins ecosystem).

          batmat Baptiste Mathus added a comment - farcop can you please check whether you actually have https://plugins.jenkins.io/jaxb/ installed? This should be installed automatically, but if it is not, or if this is, I think we need more informations on your environment. Ideally also, providing a step by step reproducer would be critical to move forward (disclaimer: I am NOT a maintainer of this plugin, but I've worked on the Java 11 compatibility update of the Jenkins ecosystem).
          markewaite Mark Waite added a comment -

          https://checkmarx.atlassian.net/wiki/spaces/SD/pages/1850213969/Jenkins+Plugin+Change+Log reports that the 2021.3.1 version of the Jenkins checkmarx plugin supports Java 11.

          markewaite Mark Waite added a comment - https://checkmarx.atlassian.net/wiki/spaces/SD/pages/1850213969/Jenkins+Plugin+Change+Log reports that the 2021.3.1 version of the Jenkins checkmarx plugin supports Java 11.

          People

            sergeyk Sergey Kadaner
            xs2bharat Bharat Bhatia
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: