Can't get slaves running

243 views
Skip to first unread message

Niksan

unread,
Oct 13, 2014, 9:19:13 AM10/13/14
to jenkins...@googlegroups.com
I'm currently on v1.583 and the same happened on v1.571 while using the launch agent from browser on slave option I cannot get it to work, all the slaves I'd like to run are on external machines to the server and I get the following Java error when running.

java.lang.NullPointerException
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.prepareToLaunch(Unknown Source)
    at com.sun.javaws.Launcher.launch(Unknown Source)
    at com.sun.javaws.Main.launchApp(Unknown Source)
    at com.sun.javaws.Main.continueInSecureThread(Unknown Source)
    at com.sun.javaws.Main.access$000(Unknown Source)
    at com.sun.javaws.Main$1.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)


However, running it on the machine the server is running I get the following

Launch File:

<jnlp spec="1.0+" codebase="">
  <information>
    <title>Slave Agent for Compile Check</title>
    <vendor>Jenkins project</vendor>
    <homepage href="https://jenkins-ci.org/"/>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se version="1.5+"/>
    <jar href="http://12slave01:8080/jnlpJars/remoting.jar"/>
    <property name="hudson.showWindowsServiceInstallLink" value="true"/>
  </resources>
  <application-desc main-class="hudson.remoting.jnlp.Main">
    <argument>f0e7da5624c3a71e03dcd1f0c6de4a5a8d32f3e635927faa735166d9c48cfa1b</argument>
    <argument>Compile Check</argument>
    <argument>-url</argument>
    <argument>http://12slave01:8080/</argument>
  </application-desc>
</jnlp>

Exception:

java.lang.NullPointerException
    at com.sun.jnlp.JNLPClassLoader.getPermissions(Unknown Source)
    at java.security.SecureClassLoader.getProtectionDomain(Unknown Source)
    at java.security.SecureClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.defineClass(Unknown Source)
    at java.net.URLClassLoader.access$100(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at com.sun.jnlp.JNLPClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at com.sun.javaws.Launcher.doLaunchApp(Unknown Source)
    at com.sun.javaws.Launcher.run(Unknown Source)
    at java.lang.Thread.run(Unknown Source)

Any areas I should be looking at to get this working?

Niksan

unread,
Oct 13, 2014, 12:05:06 PM10/13/14
to jenkins...@googlegroups.com
Ok, so installing Java8 JRE on the client machines made this work, who knew. :)
Reply all
Reply to author
Forward
0 new messages