After upgrading the master to Jenkins v2.50, the Windows slave (working before) does not start any more, but only reports the following error:
[2017-03-13 17:57:58] [windows-slaves] Connecting to dewxxxdev-bn02
Checking if Java exists
java -version returned 1.8.0.
[2017-03-13 17:58:00] [windows-slaves] Installing the Jenkins slave service
[2017-03-13 17:58:00] [windows-slaves] Copying jenkins-slave.exe
[2017-03-13 17:58:00] [windows-slaves] Copying slave.jar
[2017-03-13 17:58:00] [windows-slaves] Copying jenkins-slave.xml
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:78)
at java.io.InputStreamReader.<init>(InputStreamReader.java:113)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:1906)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:778)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:803)
at hudson.os.windows.ManagedWindowsServiceLauncher.generateSlaveXml(ManagedWindowsServiceLauncher.java:520)
at hudson.os.windows.ManagedWindowsServiceLauncher.createAndCopyJenkinsSlaveXml(ManagedWindowsServiceLauncher.java:456)
at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:301)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:262)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
the config.xml for that slave is (with sensitive info X'ed out)
<?xml version='1.0' encoding='UTF-8'?>
<slave>
<name>dewxxxdev-bn02</name>
<description>Windows 64-bit (x86_64) release build machine</description>
<remoteFS>D:\Jenkins</remoteFS>
<numExecutors>12</numExecutors>
<mode>EXCLUSIVE</mode>
<retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
<launcher class="hudson.os.windows.ManagedWindowsServiceLauncher" plugin="windows-slaves@1.2">
<userName>DOMAIN\username</userName>
<password>{xxx}</password>
<account class="hudson.os.windows.ManagedWindowsServiceAccount$Administrator"/>
</launcher>
<label>kernel windows x86_64 release</label>
<nodeProperties/>
</slave>
Any advice is greatly appreciated. - Thanks.
Originally reported by fillenseer, imported from: Windows Slaves Plugin: agent is not starting after upgrade to Jenkins 2.50
- assignee:
oleg_nenashev
- status: Closed
- priority: Blocker
- component(s): core, windows-slaves-plugin
- label(s): regression
- resolution: Fixed
- resolved: 2017-03-27T09:57:17+00:00
- votes: 1
- watchers: 6
- imported: 2025-11-24
Raw content of original issue
After upgrading the master to Jenkins v2.50, the Windows slave (working before) does not start any more, but only reports the following error:
[2017-03-13 17:57:58] [windows-slaves] Connecting to dewxxxdev-bn02
Checking if Java exists
java -version returned 1.8.0.
[2017-03-13 17:58:00] [windows-slaves] Installing the Jenkins slave service
[2017-03-13 17:58:00] [windows-slaves] Copying jenkins-slave.exe
[2017-03-13 17:58:00] [windows-slaves] Copying slave.jar
[2017-03-13 17:58:00] [windows-slaves] Copying jenkins-slave.xml
ERROR: Unexpected error in launching an agent. This is probably a bug in Jenkins
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:78)
at java.io.InputStreamReader.<init>(InputStreamReader.java:113)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:1906)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:778)
at org.apache.commons.io.IOUtils.toString(IOUtils.java:803)
at hudson.os.windows.ManagedWindowsServiceLauncher.generateSlaveXml(ManagedWindowsServiceLauncher.java:520)
at hudson.os.windows.ManagedWindowsServiceLauncher.createAndCopyJenkinsSlaveXml(ManagedWindowsServiceLauncher.java:456)
at hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:301)
at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:262)
at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
the config.xml for that slave is (with sensitive info X'ed out)
<?xml version='1.0' encoding='UTF-8'?>
<slave>
<name>dewxxxdev-bn02</name>
<description>Windows 64-bit (x86_64) release build machine</description>
<remoteFS>D:\Jenkins</remoteFS>
<numExecutors>12</numExecutors>
<mode>EXCLUSIVE</mode>
<retentionStrategy class="hudson.slaves.RetentionStrategy$Always"/>
<launcher class="hudson.os.windows.ManagedWindowsServiceLauncher" plugin="windows-slaves@1.2">
<userName>DOMAIN\username</userName>
<password>{xxx}</password>
<account class="hudson.os.windows.ManagedWindowsServiceAccount$Administrator"/>
</launcher>
<label>kernel windows x86_64 release</label>
<nodeProperties/>
</slave>
Any advice is greatly appreciated. - Thanks.
environment
master: Jenkins v2.50 on openSUSE 42.2<br/>
slave: Windows 8.1 x64
After upgrading the master to Jenkins v2.50, the Windows slave (working before) does not start any more, but only reports the following error:
the config.xml for that slave is (with sensitive info X'ed out)
Any advice is greatly appreciated. - Thanks.
Originally reported by fillenseer, imported from: Windows Slaves Plugin: agent is not starting after upgrade to Jenkins 2.50
Raw content of original issue
environment