We're experiencing failures in all our builds with the below error in
console output.
I've been looking at the source code of both Jenkins and Treemap itself
and I can't explain how Treemap.putAll would ever generate a
NoSuchElementException.
For some reason this problem is 100% reproducible and dependent on (at
least) the content of our junitResult.xml files in the build directories of
our jobs.
At the end of my debugging session I could modify the <className>
element of one test case of one build of one job and make the problem
either occur or go away.
However I doubt that it has anything to do with the className element
per se.I think that in this case it just happened to be the classname
element of this particular build and job.
I'm more inclined to believe it has to do with unsynchronized access
from multiple threads. Otherwise I can't explain the exception that is
thrown.
We're running Jenkins 1.517 (IIRC) on Solaris.
Does this look familiar to anyone? Can anyone explain what you can do
wrong in a call to Treemap.putAll to get this exception? Is this a bug?
Maurice.
FATAL: null
java.util.NoSuchElementException
at
java.util.TreeMap$PrivateEntryIterator.nextEntry(TreeMap.java:1098)
at
java.util.TreeMap$EntryIterator.next(TreeMap.java:1136)
at
java.util.TreeMap$EntryIterator.next(TreeMap.java:1131)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2372)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2396)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2396)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2396)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2396)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2396)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2396)
at java.util.TreeMap.buildFromSorted(TreeMap.java:2322)
at java.util.TreeMap.putAll(TreeMap.java:296)
at hudson.EnvVars.<init>(EnvVars.java:82)
at hudson.EnvVars$GetEnvVars.call(EnvVars.java:217)
at hudson.EnvVars$GetEnvVars.call(EnvVars.java:215)
at
hudson.remoting.LocalChannel.call(LocalChannel.java:45)
at hudson.EnvVars.getRemote(EnvVars.java:212)
at
hudson.model.Computer.getEnvironment(Computer.java:907)
at
jenkins.model.CoreEnvironmentContributor.buildEnvironmentFor(CoreEnvironmentContributor.java:28)
at hudson.model.Run.getEnvironment(Run.java:2046)
at
hudson.model.AbstractBuild.getEnvironment(AbstractBuild.java:933)
at
hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:84)
at
hudson.tasks.CommandInterpreter.perform(CommandInterpreter.java:60)
at
hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at
hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:804)
at
hudson.model.Build$BuildExecution.build(Build.java:199)
at
hudson.model.Build$BuildExecution.doRun(Build.java:160)
at
hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:586)
at hudson.model.Run.execute(Run.java:1576)
at
hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at
hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:241)
--
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].
For more options, visit https://groups.google.com/groups/opt_out.