When launching via WebStart, you might be using a different Java Runtime Environment than you're using when launched from the command line.
If your web browser is running a Java 9 plugin, or a Java 7 plugin, that could cause many problems for Web Start which won't be seen with the command line. Mark Waite On Tue, Feb 27, 2018 at 10:38 AM SmokingPC <[email protected]> wrote: > My agent is slave is started via WebStart. > If I launch agent via command line, git will be launched correctly in > slave node. > > Why? > > SmokingPC於 2018年2月28日星期三 UTC+8上午12時41分15秒寫道: > >> Hi, >> I am building a Jenkins server with 1 slave node. >> Jenkins server is linux (ubuntu 16.04) and slave is Win7(to build some C# >> codes). >> Created a test project and node configuration. Git for windows is >> installed in slave node. >> I tested it, sources are cloned from my gitlab well. >> Git path is set correctly in Global Tool Configuration and Node >> Configuration. >> >> But my test project is always failed with same exception message as >> following. >> According this exception, I guess it launch git with path >> "C:\Jenkins\workspace\SerialPortTool". >> Can anyone help me? >> >> Thank you. >> >> =============== >> Started by user SmokingPC >> Building remotely on My_Build (Test) in workspace >> C:\Jenkins\workspace\SerialPortTool >> java.lang.ClassNotFoundException: >> java.lang.reflect.InaccessibleObjectException >> at java.net.URLClassLoader.findClass(URLClassLoader.java:381) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:424) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) >> at >> org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:560) >> at java.lang.ClassLoader.loadClass(ClassLoader.java:357) >> at java.lang.Class.forName0(Native Method) >> at java.lang.Class.forName(Class.java:348) >> at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:683) >> at >> hudson.remoting.MultiClassLoaderSerializer$Input.resolveClass(MultiClassLoaderSerializer.java:132) >> at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1863) >> at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1746) >> at >> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2037) >> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568) >> at >> java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:2282) >> at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:2206) >> at >> java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:2064) >> at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1568) >> at java.io.ObjectInputStream.readObject(ObjectInputStream.java:428) >> at hudson.remoting.UserRequest.deserialize(UserRequest.java:274) >> at hudson.remoting.UserResponse.retrieve(UserRequest.java:307) >> at hudson.remoting.Channel.call(Channel.java:908) >> Caused: java.io.IOException: Remote call on JNLP4-connect connection from >> xxx.xxx.xxx.xxx/xxx.xxx.xxx.xxx:49416 failed >> at hudson.remoting.Channel.call(Channel.java:912) >> at hudson.FilePath.act(FilePath.java:986) >> Caused: java.io.IOException: remote file operation failed: >> C:\Jenkins\workspace\SerialPortTool at >> hudson.remoting.Channel@10168037:JNLP4-connect >> connection from 192.168.0.124/192.168.0.124:49416 >> at hudson.FilePath.act(FilePath.java:993) >> at hudson.FilePath.act(FilePath.java:975) >> at org.jenkinsci.plugins.gitclient.Git.getClient(Git.java:137) >> at hudson.plugins.git.GitSCM.createClient(GitSCM.java:795) >> at hudson.plugins.git.GitSCM.createClient(GitSCM.java:786) >> at hudson.plugins.git.GitSCM.checkout(GitSCM.java:1154) >> at hudson.scm.SCM.checkout(SCM.java:495) >> at hudson.model.AbstractProject.checkout(AbstractProject.java:1202) >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:574) >> at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86) >> at >> hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:499) >> at hudson.model.Run.execute(Run.java:1724) >> at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) >> at hudson.model.ResourceController.execute(ResourceController.java:97) >> at hudson.model.Executor.run(Executor.java:421) >> Finished: FAILURE >> >> >> -- > You received this message because you are subscribed to the Google Groups > "Jenkins Users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/35007f20-15e8-4a70-a279-f6601e5a2b2c%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/35007f20-15e8-4a70-a279-f6601e5a2b2c%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "Jenkins Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtG3mjrOBbnPy%2BEkyYPix3nNd03riFfQBqQCoGamxnpAZw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
