java.io.IOException: Remote call on Channel to Maven [java, -Djava.awt.headless=true, -cp, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.4.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Default_Maven_2/boot/classworlds-1.1.jar, hudson.maven.agent.Main, /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Default_Maven_2, /tmp/jetty-0.0.0.0-9080-jenkins.war-_jenkins-any-/webapp/WEB-INF/lib/remoting-2.32.jar, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.4.jar, 58820, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar] failed

Jenkins JIRA | Holger Lehmann | 3 years ago
  1. 0

    The current version of Jenkins is only capable of running Maven 3 Tasks when the Artifactory Plugin version 2.2.1 is installed. Any Maven 2 I tried fails with the java exception from below. This breaks *all* of our jobs since we develop Atlassian JIRA/Confluence plugins and thus need Atlassians Maven 2 (or equivalent). Googling did not produce anything suitable :-( I will attach any logfiles if required, please let me know. This failure occurred *after* upgrading to the latest version from (I think) 1.531 (RPM) Jenkins is running as user "jenkins" This is the Java stacktrace: --- {noformat} java.io.IOException: Remote call on Channel to Maven [java, -Djava.awt.headless=true, -cp, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.4.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Default_Maven_2/boot/classworlds-1.1.jar, hudson.maven.agent.Main, /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Default_Maven_2, /tmp/jetty-0.0.0.0-9080-jenkins.war-_jenkins-any-/webapp/WEB-INF/lib/remoting-2.32.jar, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.4.jar, 58820, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar] failed at hudson.remoting.Channel.call(Channel.java:723) at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:160) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:823) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562) at hudson.model.Run.execute(Run.java:1679) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/codehaus/classworlds/RealmClassLoader) previously initiated loading for a different type with name "org/codehaus/plexus/configuration/PlexusConfiguration" at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2436) at java.lang.Class.getMethod0(Class.java:2679) at java.lang.Class.getMethod(Class.java:1605) at hudson.maven.MavenBuilder.callSetListenerWithReflectOnInterceptors(MavenBuilder.java:211) at hudson.maven.MavenBuilder.callSetListenerWithReflectOnInterceptorsQuietly(MavenBuilder.java:231) at hudson.maven.MavenBuilder.call(MavenBuilder.java:199) at hudson.maven.Maven2Builder.call(Maven2Builder.java:79) at hudson.maven.Maven2Builder.call(Maven2Builder.java:55) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) {noformat}

    Jenkins JIRA | 3 years ago | Holger Lehmann
    java.io.IOException: Remote call on Channel to Maven [java, -Djava.awt.headless=true, -cp, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.4.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Default_Maven_2/boot/classworlds-1.1.jar, hudson.maven.agent.Main, /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Default_Maven_2, /tmp/jetty-0.0.0.0-9080-jenkins.war-_jenkins-any-/webapp/WEB-INF/lib/remoting-2.32.jar, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.4.jar, 58820, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar] failed
  2. 0

    [JENKINS-20554] The version 2.2.1 of the Artifactory Plugin breaks all Maven 2 jobs - Jenkins JIRA

    jenkins-ci.org | 6 months ago
    java.io.IOException: Remote call on Channel to Maven [java, -Djava.awt.headless=true, -cp, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.4.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Default_Maven_2/boot/classworlds-1.1.jar, hudson.maven.agent.Main, /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Default_Maven_2, /tmp/jetty-0.0.0.0-9080-jenkins.war-_jenkins-any-/webapp/WEB-INF/lib/remoting-2.32.jar, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.4.jar, 58820, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar] failed
  3. 0

    The current version of Jenkins is only capable of running Maven 3 Tasks when the Artifactory Plugin version 2.2.1 is installed. Any Maven 2 I tried fails with the java exception from below. This breaks *all* of our jobs since we develop Atlassian JIRA/Confluence plugins and thus need Atlassians Maven 2 (or equivalent). Googling did not produce anything suitable :-( I will attach any logfiles if required, please let me know. This failure occurred *after* upgrading to the latest version from (I think) 1.531 (RPM) Jenkins is running as user "jenkins" This is the Java stacktrace: --- {noformat} java.io.IOException: Remote call on Channel to Maven [java, -Djava.awt.headless=true, -cp, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.4.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Default_Maven_2/boot/classworlds-1.1.jar, hudson.maven.agent.Main, /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Default_Maven_2, /tmp/jetty-0.0.0.0-9080-jenkins.war-_jenkins-any-/webapp/WEB-INF/lib/remoting-2.32.jar, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.4.jar, 58820, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar] failed at hudson.remoting.Channel.call(Channel.java:723) at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:160) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:823) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:562) at hudson.model.Run.execute(Run.java:1679) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:509) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:230) Caused by: java.lang.LinkageError: loader constraint violation: loader (instance of org/codehaus/classworlds/RealmClassLoader) previously initiated loading for a different type with name "org/codehaus/plexus/configuration/PlexusConfiguration" at java.lang.ClassLoader.defineClass1(Native Method) at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631) at java.lang.ClassLoader.defineClass(ClassLoader.java:615) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141) at java.net.URLClassLoader.defineClass(URLClassLoader.java:283) at java.net.URLClassLoader.access$000(URLClassLoader.java:58) at java.net.URLClassLoader$1.run(URLClassLoader.java:197) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195) at org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255) at org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) at java.lang.Class.getDeclaredMethods0(Native Method) at java.lang.Class.privateGetDeclaredMethods(Class.java:2436) at java.lang.Class.getMethod0(Class.java:2679) at java.lang.Class.getMethod(Class.java:1605) at hudson.maven.MavenBuilder.callSetListenerWithReflectOnInterceptors(MavenBuilder.java:211) at hudson.maven.MavenBuilder.callSetListenerWithReflectOnInterceptorsQuietly(MavenBuilder.java:231) at hudson.maven.MavenBuilder.call(MavenBuilder.java:199) at hudson.maven.Maven2Builder.call(Maven2Builder.java:79) at hudson.maven.Maven2Builder.call(Maven2Builder.java:55) at hudson.remoting.UserRequest.perform(UserRequest.java:118) at hudson.remoting.UserRequest.perform(UserRequest.java:48) at hudson.remoting.Request$2.run(Request.java:326) at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918) at java.lang.Thread.run(Thread.java:662) {noformat}

    Jenkins JIRA | 3 years ago | Holger Lehmann
    java.io.IOException: Remote call on Channel to Maven [java, -Djava.awt.headless=true, -cp, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-agent-1.4.jar:/var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Default_Maven_2/boot/classworlds-1.1.jar, hudson.maven.agent.Main, /var/lib/jenkins/tools/hudson.tasks.Maven_MavenInstallation/Default_Maven_2, /tmp/jetty-0.0.0.0-9080-jenkins.war-_jenkins-any-/webapp/WEB-INF/lib/remoting-2.32.jar, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven-interceptor-1.4.jar, 58820, /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven2.1-interceptor-1.2.jar] failed
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Linkage error in JMockit 1.12

    GitHub | 2 years ago | svenwaibel
    java.lang.LinkageError: loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: "..../ToTest$1"
  6. 0

    JMockit 1.10 causes linkage errors when used with eclEmma or Cobertura

    GitHub | 2 years ago | drath3000
    java.lang.LinkageError: loader (instance of sun/misc/Launcher$AppClassLoader): attempted duplicate class definition for name: "my/pkg/TestMyBean$1"

    7 unregistered visitors
    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.LinkageError

      loader constraint violation: loader (instance of org/codehaus/classworlds/RealmClassLoader) previously initiated loading for a different type with name "org/codehaus/plexus/configuration/PlexusConfiguration"

      at java.lang.ClassLoader.defineClass1()
    2. Java RT
      ClassLoader.loadClass
      1. java.lang.ClassLoader.defineClass1(Native Method)
      2. java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
      3. java.lang.ClassLoader.defineClass(ClassLoader.java:615)
      4. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
      5. java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
      6. java.net.URLClassLoader.access$000(URLClassLoader.java:58)
      7. java.net.URLClassLoader$1.run(URLClassLoader.java:197)
      8. java.security.AccessController.doPrivileged(Native Method)
      9. java.net.URLClassLoader.findClass(URLClassLoader.java:190)
      10. java.lang.ClassLoader.loadClass(ClassLoader.java:306)
      10 frames
    3. Plexus
      RealmClassLoader.loadClass
      1. org.codehaus.classworlds.RealmClassLoader.loadClassDirect(RealmClassLoader.java:195)
      2. org.codehaus.classworlds.DefaultClassRealm.loadClass(DefaultClassRealm.java:255)
      3. org.codehaus.classworlds.RealmClassLoader.loadClass(RealmClassLoader.java:214)
      3 frames
    4. Java RT
      Class.getMethod
      1. java.lang.ClassLoader.loadClass(ClassLoader.java:247)
      2. java.lang.Class.getDeclaredMethods0(Native Method)
      3. java.lang.Class.privateGetDeclaredMethods(Class.java:2436)
      4. java.lang.Class.getMethod0(Class.java:2679)
      5. java.lang.Class.getMethod(Class.java:1605)
      5 frames
    5. Hudson Maven Embedder
      Maven2Builder.call
      1. hudson.maven.MavenBuilder.callSetListenerWithReflectOnInterceptors(MavenBuilder.java:211)
      2. hudson.maven.MavenBuilder.callSetListenerWithReflectOnInterceptorsQuietly(MavenBuilder.java:231)
      3. hudson.maven.MavenBuilder.call(MavenBuilder.java:199)
      4. hudson.maven.Maven2Builder.call(Maven2Builder.java:79)
      5. hudson.maven.Maven2Builder.call(Maven2Builder.java:55)
      5 frames
    6. Hudson :: Remoting Layer
      InterceptingExecutorService$1.call
      1. hudson.remoting.UserRequest.perform(UserRequest.java:118)
      2. hudson.remoting.UserRequest.perform(UserRequest.java:48)
      3. hudson.remoting.Request$2.run(Request.java:326)
      4. hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
      4 frames
    7. Java RT
      Thread.run
      1. java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
      2. java.util.concurrent.FutureTask.run(FutureTask.java:138)
      3. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
      4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
      5. java.lang.Thread.run(Thread.java:662)
      5 frames