Jenkins slave exception: Exception in thread "main" Java.lang.ClassNotFoundException:hudson.remoting.Launcher

Source: Internet
Author: User

When the task is assigned to slave, the following error is reported:

Parsing pomsestablished TCP socket on 38257maven33-agent.jar already up to Datemaven33-interceptor.jar already up to Datem Aven3-interceptor-commons.jar already up to DATE[B012EF95D917292E062FE3D70C7A9B01] $ java-cp/var/lib/jenkins/ maven33-agent.jar:/usr/install/apache-maven-3.3.9/boot/plexus-classworlds-2.5.2.jar:/usr/install/ Apache-maven-3.3.9/conf/logging Jenkins.maven3.agent.maven33main/usr/install/apache-maven-3.3.9/var/lib/jenkins /slave.jar/var/lib/jenkins/maven33-interceptor.jar/var/lib/jenkins/maven3-interceptor-commons.jar 38257Exception in thread "main" Java.lang.ClassNotFoundException:hudson.remoting.Launcherat 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.maven33main.main (maven33main.java:133) at Jenkins.maven3.agent.Maven33Main.main (Maven33main.java : 64)


Error:failed to parse POMsjava.io.EOFException:unexpected stream Terminationat Hudson.remoting.ChannelBuilder.negotiate (channelbuilder.java:365) at Hudson.remoting.ChannelBuilder.build ( channelbuilder.java:310) at Hudson.slaves.Channels.forProcess (channels.java:115) at Hudson.maven.AbstractMavenProcessFactory.newProcess (abstractmavenprocessfactory.java:294) at Hudson.maven.ProcessCache.get (processcache.java:236) at hudson.maven.mavenmodulesetbuild$ Mavenmodulesetbuildexecution.dorun (mavenmodulesetbuild.java:798) at hudson.model.abstractbuild$ Abstractbuildexecution.run (abstractbuild.java:534) at Hudson.model.Run.execute (run.java:1730) at Hudson.maven.MavenModuleSetBuild.run (mavenmodulesetbuild.java:544) at Hudson.model.ResourceController.execute ( RESOURCECONTROLLER.JAVA:97) atHudson.model.Executor.run (executor.java:405)


Search for the next solution: said to be re-connected under the slave. Do as you are, problem solved. Look at the log information of master connection slave, I think the reason is that I have modified the slave environment variable hostname. It is not known whether modifying other environment variables will have the same effect.
From the log information, there is a process to get the slave environment variable





Jenkins slave exception: Exception in thread "main" Java.lang.ClassNotFoundException:hudson.remoting.Launcher

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.