-
Bug
-
Resolution: Postponed
-
Major
-
None
-
Platform: Other, OS: All
I have encountered a problem when launching the same job multiple times
concurrently with different parameters on the same slave. Whilst some of the
jobs complete successfully, other fail with either one or other of two Java
exceptions. The problem does not depend on the command being run and I have
managed to reproduce the symptoms when running the following simple Windows
command:
@ping 127.0.0.1 -n %DELAY% -w 1000> nul
that waits for the number of seconds given by the DELAY parameter. I launched
the command 4 times with different DELAY parameter values of around 30 seconds:
two jobs worked and two failed.
The two Java exceptions are:
The directory name is invalid
FATAL: command execution failed
java.io.IOException: Cannot run program "cmd" (in
directory "w:\.hudson\jobs\Test_SWB_pause\workspace"): CreateProcess error=267,
The directory name is invalid
at java.lang.ProcessBuilder.start(Unknown Source)
at hudson.Proc$LocalProc.<init>(Proc.java:132)
at hudson.Proc$LocalProc.<init>(Proc.java:110)
at hudson.Launcher$LocalLauncher.createLocalProc(Launcher.java:421)
at hudson.Launcher$LocalLauncher.launch(Launcher.java:404)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:563)
at hudson.Launcher$RemoteLaunchCallable.call(Launcher.java:547)
at hudson.remoting.UserRequest.perform(UserRequest.java:103)
at hudson.remoting.UserRequest.perform(UserRequest.java:47)
at hudson.remoting.Request$2.run(Request.java:236)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: CreateProcess error=267, The directory name is
invalid
at java.lang.ProcessImpl.create(Native Method)
at java.lang.ProcessImpl.<init>(Unknown Source)
at java.lang.ProcessImpl.start(Unknown Source)
... 16 more
Notifying upstream projects of job completion
Finished: FAILURE
and:
FATAL: null
java.lang.NullPointerException
at hudson.model.AbstractBuild.getCulprits(AbstractBuild.java:192)
at hudson.model.AbstractBuild$AbstractRunner.post
(AbstractBuild.java:349)
at hudson.model.Run.run(Run.java:947)
at hudson.model.Build.run(Build.java:112)
at hudson.model.ResourceController.execute(ResourceController.java:93)
at hudson.model.Executor.run(Executor.java:119)
I currently have the Join plug-in installed but this error occurred before I
installed this plug-in.
Hudson is running on a Windows machine and the slave is also Windows.