java.lang.ClassNotFoundException: hudson.remoting.Launcher

Jenkins JIRA | Håvard Rykkelid | 1 year ago
  1. 0

    When trying to build a small local test project, it failed giving me a ClassNotFoundException: hudson.remoting.Launcher. I eventually figured out the problem: Jetty unpacks the files of the war in a temporary file under my profile folder in windows. Unfortunately I had a norwegian username with the norwegian letter "å", and this was not handled correctly with the remoting-2.52.jar dependency. (The other dependencies seemed to be fine) Changing my username, folder name and a registry key fixed the problem for me. {color:red}This is the output I got when trying to build a small testproject:{color} Started by user anonymous Building in workspace C:\Users\Håvard\.jenkins\jobs\CI\workspace > git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git.exe config remote.origin.url file:///F:/Kurs%20fasit/git # timeout=10 Fetching upstream changes from file:///F:/Kurs fasit/git > git.exe --version # timeout=10 > git.exe -c core.askpass=true fetch --tags --progress file:///F:/Kurs fasit/git +refs/heads/*:refs/remotes/origin/* > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10 > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10 Checking out Revision f9878edebfb6ed3530d875098b72759d69744ef8 (refs/remotes/origin/master) > git.exe config core.sparsecheckout # timeout=10 > git.exe checkout -f f9878edebfb6ed3530d875098b72759d69744ef8 > git.exe rev-list f9878edebfb6ed3530d875098b72759d69744ef8 # timeout=10 Parsing POMs Established TCP socket on 13308 [CI-parent] $ "C:\Program Files\Java\jdk1.8.0_66/bin/java" -cp C:\Users\Håvard\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-agent-1.7.jar;F:\apache-maven-3.2.5\boot\plexus-classworlds-2.5.2.jar;F:\apache-maven-3.2.5/conf/logging jenkins.maven3.agent.Maven32Main F:\apache-maven-3.2.5 C:\Users\H?vard\AppData\Local\Temp\jetty-0.0.0.0-8080-jenkins.war-_jenkins-any-3884816799918590233.dir\webapp\WEB-INF\lib\remoting-2.52.jar C:\Users\Håvard\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-interceptor-1.7.jar C:\Users\Håvard\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.7.jar 13308 Exception in thread "main" java.lang.ClassNotFoundException: hudson.remoting.Launcher at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:143) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:74) ERROR: [JENKINS-18403] JDK 5 not supported to run Maven; retrying with slave Java and setting compile/test properties to point to C:\Program Files\Java\jdk1.8.0_66 Established TCP socket on 13310 [CI-parent] $ "C:\Program Files\Java\jre1.8.0_66/bin/java" -cp C:\Users\Håvard\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-agent-1.7.jar;F:\apache-maven-3.2.5\boot\plexus-classworlds-2.5.2.jar;F:\apache-maven-3.2.5/conf/logging jenkins.maven3.agent.Maven32Main F:\apache-maven-3.2.5 C:\Users\H?vard\AppData\Local\Temp\jetty-0.0.0.0-8080-jenkins.war-_jenkins-any-3884816799918590233.dir\webapp\WEB-INF\lib\remoting-2.52.jar C:\Users\Håvard\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-interceptor-1.7.jar C:\Users\Håvard\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.7.jar 13310 Exception in thread "main" java.lang.ClassNotFoundException: hudson.remoting.Launcher at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:143) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:74) ERROR: Failed to parse POMs java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:331) at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:282) at hudson.slaves.Channels.forProcess(Channels.java:115) at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:297) at hudson.maven.ProcessCache.get(ProcessCache.java:236) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:778) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE

    Jenkins JIRA | 1 year ago | Håvard Rykkelid
    java.lang.ClassNotFoundException: hudson.remoting.Launcher
  2. 0

    When trying to build a small local test project, it failed giving me a ClassNotFoundException: hudson.remoting.Launcher. I eventually figured out the problem: Jetty unpacks the files of the war in a temporary file under my profile folder in windows. Unfortunately I had a norwegian username with the norwegian letter "å", and this was not handled correctly with the remoting-2.52.jar dependency. (The other dependencies seemed to be fine) Changing my username, folder name and a registry key fixed the problem for me. {color:red}This is the output I got when trying to build a small testproject:{color} Started by user anonymous Building in workspace C:\Users\Håvard\.jenkins\jobs\CI\workspace > git.exe rev-parse --is-inside-work-tree # timeout=10 Fetching changes from the remote Git repository > git.exe config remote.origin.url file:///F:/Kurs%20fasit/git # timeout=10 Fetching upstream changes from file:///F:/Kurs fasit/git > git.exe --version # timeout=10 > git.exe -c core.askpass=true fetch --tags --progress file:///F:/Kurs fasit/git +refs/heads/*:refs/remotes/origin/* > git.exe rev-parse "refs/remotes/origin/master^{commit}" # timeout=10 > git.exe rev-parse "refs/remotes/origin/origin/master^{commit}" # timeout=10 Checking out Revision f9878edebfb6ed3530d875098b72759d69744ef8 (refs/remotes/origin/master) > git.exe config core.sparsecheckout # timeout=10 > git.exe checkout -f f9878edebfb6ed3530d875098b72759d69744ef8 > git.exe rev-list f9878edebfb6ed3530d875098b72759d69744ef8 # timeout=10 Parsing POMs Established TCP socket on 13308 [CI-parent] $ "C:\Program Files\Java\jdk1.8.0_66/bin/java" -cp C:\Users\Håvard\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-agent-1.7.jar;F:\apache-maven-3.2.5\boot\plexus-classworlds-2.5.2.jar;F:\apache-maven-3.2.5/conf/logging jenkins.maven3.agent.Maven32Main F:\apache-maven-3.2.5 C:\Users\H?vard\AppData\Local\Temp\jetty-0.0.0.0-8080-jenkins.war-_jenkins-any-3884816799918590233.dir\webapp\WEB-INF\lib\remoting-2.52.jar C:\Users\Håvard\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-interceptor-1.7.jar C:\Users\Håvard\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.7.jar 13308 Exception in thread "main" java.lang.ClassNotFoundException: hudson.remoting.Launcher at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:143) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:74) ERROR: [JENKINS-18403] JDK 5 not supported to run Maven; retrying with slave Java and setting compile/test properties to point to C:\Program Files\Java\jdk1.8.0_66 Established TCP socket on 13310 [CI-parent] $ "C:\Program Files\Java\jre1.8.0_66/bin/java" -cp C:\Users\Håvard\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-agent-1.7.jar;F:\apache-maven-3.2.5\boot\plexus-classworlds-2.5.2.jar;F:\apache-maven-3.2.5/conf/logging jenkins.maven3.agent.Maven32Main F:\apache-maven-3.2.5 C:\Users\H?vard\AppData\Local\Temp\jetty-0.0.0.0-8080-jenkins.war-_jenkins-any-3884816799918590233.dir\webapp\WEB-INF\lib\remoting-2.52.jar C:\Users\Håvard\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven32-interceptor-1.7.jar C:\Users\Håvard\.jenkins\plugins\maven-plugin\WEB-INF\lib\maven3-interceptor-commons-1.7.jar 13310 Exception in thread "main" java.lang.ClassNotFoundException: hudson.remoting.Launcher at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:143) at jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:74) ERROR: Failed to parse POMs java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.net.SocketInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at hudson.remoting.ChannelBuilder.negotiate(ChannelBuilder.java:331) at hudson.remoting.ChannelBuilder.build(ChannelBuilder.java:282) at hudson.slaves.Channels.forProcess(Channels.java:115) at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:297) at hudson.maven.ProcessCache.get(ProcessCache.java:236) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:778) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) at hudson.model.Run.execute(Run.java:1741) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Finished: FAILURE

    Jenkins JIRA | 1 year ago | Håvard Rykkelid
    java.lang.ClassNotFoundException: hudson.remoting.Launcher
  3. 0

    Jenkins Build error java.lang.ClassNotFoundException: hudson.remoting.Launcher

    Stack Overflow | 4 years ago | ghTvNath
    java.lang.ClassNotFoundException: hudson.remoting.Launcher
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Build failure with Exception in thread "main" java.lang.ClassNotFoundException: hudson.remoting.Launcher

    Google Groups | 1 year ago | Unknown author
    java.lang.ClassNotFoundException: hudson.remoting.Launcher
  6. 0

    Recently, i've upgraded the Jenkins from 1.532 to 1.547, but after upgradation, Maven build alone fails with the following reason, if i restart the Jenkins, build is getting succeeded but it fails after some time (say fails after 5 hours) and also some of the image is not visible (attached screenshot) /eas/jenkins/home/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.4.jar:/eas/jenkins/home/tools/hudson.tasks.Maven_MavenInstallation/3.0.4/boot/plexus-classworlds-2.4.jar org.jvnet.hudson.maven3.agent.Maven3Main /eas/jenkins/home/tools/hudson.tasks.Maven_MavenInstallation/3.0.4 /tmp/jetty-0.0.0.0-8080-jenkins.war--any-/webapp/WEB-INF/lib/remoting-2.33.jar /eas/jenkins/home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.4.jar /eas/jenkins/home/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-commons-1.4.jar 51932 Exception in thread "main" java.lang.ClassNotFoundException: hudson.remoting.Launcher at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:135) at org.jvnet.hudson.maven3.agent.Maven3Main.main(Maven3Main.java:64) ERROR: Failed to parse POMs java.net.SocketException: Connection reset at java.net.SocketInputStream.read(Unknown Source) at java.io.FilterInputStream.read(Unknown Source) at java.io.BufferedInputStream.fill(Unknown Source) at java.io.BufferedInputStream.read(Unknown Source) at hudson.remoting.ClassicCommandTransport.create(ClassicCommandTransport.java:133) at hudson.remoting.Channel.<init>(Channel.java:406) at hudson.remoting.Channel.<init>(Channel.java:402) at hudson.remoting.Channel.<init>(Channel.java:363) at hudson.remoting.Channel.<init>(Channel.java:359) at hudson.remoting.Channel.<init>(Channel.java:355) at hudson.slaves.Channels$1.<init>(Channels.java:71) at hudson.slaves.Channels.forProcess(Channels.java:71) at hudson.maven.AbstractMavenProcessFactory.newProcess(AbstractMavenProcessFactory.java:253) at hudson.maven.ProcessCache.get(ProcessCache.java:235) at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:749) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:566) at hudson.model.Run.execute(Run.java:1678) at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:519) at hudson.model.ResourceController.execute(ResourceController.java:88) at hudson.model.Executor.run(Executor.java:231) Archiving artifacts Finished: FAILURE

    Jenkins JIRA | 3 years ago | Senthil Kumar Chandran
    java.lang.ClassNotFoundException: hudson.remoting.Launcher

  1. andyglick 2 times, last 2 weeks ago
  2. andyglick 3 times, last 2 weeks ago
  3. davidvanlaatum 1 times, last 3 weeks ago
  4. davidvanlaatum 15 times, last 3 months ago
  5. Adarro 1 times, last 4 months ago
1 more registered users
90 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.ClassNotFoundException

    hudson.remoting.Launcher

    at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass()
  2. Plexus
    ClassRealm.loadClass
    1. org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50)
    2. org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271)
    3. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247)
    4. org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239)
    4 frames
  3. jenkins.maven3.agent
    Maven32Main.main
    1. jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:143)
    2. jenkins.maven3.agent.Maven32Main.main(Maven32Main.java:74)
    2 frames