-
Bug
-
Resolution: Unresolved
-
Minor
-
None
-
Jenkins ver. 1.652
-
Powered by SuggestiMate
FATAL: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:215) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37) at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026) at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015) at com.thoughtworks.xstream.XStream.toXML(XStream.java:988) at hudson.XmlFile.write(XmlFile.java:178) at hudson.model.Run.save(Run.java:1896) at hudson.model.Run.setDisplayName(Run.java:784) at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setDisplayName(BuildNameSetter.java:50) at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setUp(BuildNameSetter.java:37) at hudson.model.Build$BuildExecution.doRun(Build.java:156) at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534) at hudson.model.Run.execute(Run.java:1738) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:98) at hudson.model.Executor.run(Executor.java:410) Caused by: java.lang.RuntimeException: Failed to serialize com.tikal.jenkins.plugins.multijob.MultiJobBuilder$MultiJobAction#build for class com.tikal.jenkins.plugins.multijob.MultiJobBuilder$MultiJobAction at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:215) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224) at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211) ... 23 more Caused by: java.lang.RuntimeException: Failed to serialize com.tikal.jenkins.plugins.multijob.MultiJobBuild#subBuildsMap for class com.tikal.jenkins.plugins.multijob.MultiJobBuild at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:215) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224) at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211) ... 38 more Caused by: java.util.ConcurrentModificationException {{monospaced text}}at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429) at java.util.HashMap$EntryIterator.next(HashMap.java:1463) at java.util.HashMap$EntryIterator.next(HashMap.java:1461) at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:75) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224) at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211) ... 47 more
- duplicates
-
JENKINS-6644 hudson.util.RobustReflectionConverter.marshallField throws ConcurrentModificationException
-
- Resolved
-
- links to
[JENKINS-33527] Intermittent exception thrown when using plugin
The above problem occurs once in a while in our build (Jenkins 2.11 with most recent plugins).
It is not clear what causes the problem.
The jobs have been generated using the job-dsl-plugin.
See logging below.
09:47:29 Started by upstream project "PTI-3.x/3.x-BuildPipeline" build number 703
09:47:29 originally caused by:
09:47:29 Started by an SCM change
09:47:29 Setting version to: Bld-703, clean-build=false coverage=false from upstream version
09:47:29 [EnvInject] - Loading node environment variables.
09:47:29 Building on master in workspace D:\Jenkins\workspace\PTI-3.x\3.x-BuildPipeline
09:47:29 Set build name.
09:47:29 New build name is 'Bld-703'
09:47:29 FATAL: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
09:47:29 java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild
09:47:29 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
09:47:29 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
09:47:29 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
09:47:29 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
09:47:29 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
09:47:29 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
09:47:29 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
09:47:29 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
09:47:29 at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
09:47:29 at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
09:47:29 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
09:47:29 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
09:47:29 at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
09:47:29 at hudson.XmlFile.write(XmlFile.java:178)
09:47:29 at hudson.model.Run.save(Run.java:1903)
09:47:29 at hudson.model.Run.setDisplayName(Run.java:787)
09:47:29 at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setDisplayName(BuildNameSetter.java:76)
09:47:29 at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setUp(BuildNameSetter.java:57)
09:47:29 at hudson.model.Build$BuildExecution.doRun(Build.java:156)
09:47:29 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
09:47:29 at hudson.model.Run.execute(Run.java:1720)
09:47:29 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
09:47:29 at hudson.model.ResourceController.execute(ResourceController.java:98)
09:47:29 at hudson.model.Executor.run(Executor.java:410)
09:47:29 Caused by: java.lang.RuntimeException: Failed to serialize com.tikal.jenkins.plugins.multijob.MultiJobBuilder$MultiJobAction#build for class com.tikal.jenkins.plugins.multijob.MultiJobBuilder$MultiJobAction
09:47:29 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
09:47:29 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
09:47:29 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
09:47:29 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
09:47:29 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
09:47:29 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
09:47:29 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
09:47:29 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
09:47:29 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
09:47:29 at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
09:47:29 at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74)
09:47:29 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
09:47:29 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
09:47:29 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
09:47:29 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
09:47:29 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
09:47:29 ... 23 more
09:47:29 Caused by: java.lang.RuntimeException: Failed to serialize com.tikal.jenkins.plugins.multijob.MultiJobBuild#subBuildsMap for class com.tikal.jenkins.plugins.multijob.MultiJobBuild
09:47:29 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256)
09:47:29 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224)
09:47:29 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
09:47:29 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209)
09:47:29 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150)
09:47:29 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
09:47:29 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
09:47:29 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
09:47:29 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
09:47:29 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
09:47:29 ... 38 more
09:47:29 Caused by: java.util.ConcurrentModificationException
09:47:29 at java.util.HashMap$HashIterator.nextEntry(HashMap.java:922)
09:47:29 at java.util.HashMap$EntryIterator.next(HashMap.java:962)
09:47:29 at java.util.HashMap$EntryIterator.next(HashMap.java:960)
09:47:29 at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:75)
09:47:29 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
09:47:29 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
09:47:29 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
09:47:29 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:265)
09:47:29 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252)
09:47:29 ... 47 more
Also seeing similar assert (Jenkins 1.635):
15:40:43 No JDK named ‘null’ found 15:40:43 No JDK named ‘null’ found 15:40:43 FATAL: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild 15:40:44 java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild 15:40:44 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:215) 15:40:44 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183) 15:40:44 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) 15:40:44 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168) 15:40:44 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82) 15:40:44 at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37) 15:40:44 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026) 15:40:44 at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015) 15:40:44 at com.thoughtworks.xstream.XStream.toXML(XStream.java:988) 15:40:44 at hudson.XmlFile.write(XmlFile.java:178) 15:40:44 at hudson.model.Run.save(Run.java:1899) 15:40:44 at hudson.model.Run.setDisplayName(Run.java:787) 15:40:44 at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setDisplayName(BuildNameSetter.java:50) 15:40:44 at org.jenkinsci.plugins.buildnamesetter.BuildNameSetter.setUp(BuildNameSetter.java:37) 15:40:44 at hudson.model.Build$BuildExecution.doRun(Build.java:156) 15:40:44 at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) 15:40:44 at hudson.model.Run.execute(Run.java:1741) 15:40:44 at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) 15:40:44 at hudson.model.ResourceController.execute(ResourceController.java:98) 15:40:44 at hudson.model.Executor.run(Executor.java:410) 15:40:44 Caused by: java.lang.RuntimeException: Failed to serialize com.tikal.jenkins.plugins.multijob.MultiJobBuilder$MultiJobAction#build for class com.tikal.jenkins.plugins.multijob.MultiJobBuilder$MultiJobAction 15:40:44 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:215) 15:40:44 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183) 15:40:44 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) 15:40:44 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168) 15:40:44 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) 15:40:44 at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) 15:40:44 at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) 15:40:44 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224) 15:40:44 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211) 15:40:44 ... 23 more 15:40:44 Caused by: java.lang.RuntimeException: Failed to serialize com.tikal.jenkins.plugins.multijob.MultiJobBuild#subBuilds for class com.tikal.jenkins.plugins.multijob.MultiJobBuild 15:40:44 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:215) 15:40:44 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183) 15:40:44 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) 15:40:44 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168) 15:40:44 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) 15:40:44 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224) 15:40:44 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211) 15:40:44 ... 38 more 15:40:44 Caused by: java.lang.RuntimeException: Failed to serialize com.tikal.jenkins.plugins.multijob.MultiJobBuild$SubBuild#build for class com.tikal.jenkins.plugins.multijob.MultiJobBuild$SubBuild 15:40:44 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:215) 15:40:44 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183) 15:40:44 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) 15:40:44 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168) 15:40:44 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) 15:40:44 at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) 15:40:44 at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) 15:40:44 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224) 15:40:44 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211) 15:40:44 ... 47 more 15:40:44 Caused by: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class hudson.model.FreeStyleBuild 15:40:44 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:215) 15:40:44 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183) 15:40:44 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) 15:40:44 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168) 15:40:44 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) 15:40:44 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224) 15:40:44 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211) 15:40:44 ... 62 more 15:40:44 Caused by: java.lang.RuntimeException: Failed to serialize hudson.plugins.git.util.BuildData#buildsByBranchName for class hudson.plugins.git.util.BuildData 15:40:44 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:215) 15:40:44 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183) 15:40:44 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) 15:40:44 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168) 15:40:44 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) 15:40:44 at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) 15:40:44 at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) 15:40:44 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224) 15:40:44 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211) 15:40:44 ... 71 more 15:40:44 Caused by: java.util.ConcurrentModificationException 15:40:44 at java.util.HashMap$HashIterator.nextNode(Unknown Source) 15:40:44 at java.util.HashMap$EntryIterator.next(Unknown Source) 15:40:44 at java.util.HashMap$EntryIterator.next(Unknown Source) 15:40:44 at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:75) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 15:40:44 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 15:40:44 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) 15:40:44 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224) 15:40:44 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211) 15:40:44 ... 86 more 15:40:44 Archiving artifacts
We also have a problem with this - Xvnc plugin!
The latest version of the plugin 1.23
version jenkins - 1.635
ERROR: Processing failed due to a bug in the code. Please report this to jenkinsci-users@googlegroups.com
java.lang.RuntimeException: Failed to serialize hudson.plugins.xvnc.Xvnc$DescriptorImpl#allocators for class hudson.plugins.xvnc.Xvnc$DescriptorImpl
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:215)
at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183)
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168)
at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
at hudson.XmlFile.write(XmlFile.java:178)
at hudson.model.Descriptor.save(Descriptor.java:855)
at hudson.plugins.xvnc.DisplayAllocator.save(DisplayAllocator.java:32)
at hudson.plugins.xvnc.DisplayAllocator.allocate(DisplayAllocator.java:51)
at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:104)
at hudson.plugins.xvnc.Xvnc.setUp(Xvnc.java:94)
at jenkins.tasks.SimpleBuildWrapper.setUp(SimpleBuildWrapper.java:145)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:655)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1738)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: java.lang.RuntimeException: Failed to serialize hudson.plugins.xvnc.DisplayAllocator#allocatedNumbers for class hudson.plugins.xvnc.DisplayAllocator
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:215)
at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183)
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168)
at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:79)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224)
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211)
... 25 more
Caused by: java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429)
at java.util.HashMap$KeyIterator.next(HashMap.java:1453)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:73)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224)
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211)
... 40 more
project=hudson.maven.MavenModuleSet@74638430[test02-test-web]
project.getModules()=[hudson.maven.MavenModule@60f6140b[test02-test-web/dp.st.selenium:selenium_java_tests][test02-test-web/dp.st.selenium:selenium_java_tests][relativePath:tests/selenium]]
project.getRootModule()=hudson.maven.MavenModule@60f6140b[test02-test-web/dp.st.selenium:selenium_java_tests][test02-test-web/dp.st.selenium:selenium_java_tests][relativePath:tests/selenium]
FATAL: Failed to serialize hudson.plugins.xvnc.Xvnc$DescriptorImpl#allocators for class hudson.plugins.xvnc.Xvnc$DescriptorImpl
java.lang.RuntimeException: Failed to serialize hudson.plugins.xvnc.Xvnc$DescriptorImpl#allocators for class hudson.plugins.xvnc.Xvnc$DescriptorImpl
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:215)
at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183)
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168)
at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:82)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:37)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:1026)
at com.thoughtworks.xstream.XStream.marshal(XStream.java:1015)
at com.thoughtworks.xstream.XStream.toXML(XStream.java:988)
at hudson.XmlFile.write(XmlFile.java:178)
at hudson.model.Descriptor.save(Descriptor.java:855)
at hudson.plugins.xvnc.DisplayAllocator.save(DisplayAllocator.java:32)
at hudson.plugins.xvnc.DisplayAllocator.allocate(DisplayAllocator.java:51)
at hudson.plugins.xvnc.Xvnc.doSetUp(Xvnc.java:104)
at hudson.plugins.xvnc.Xvnc.setUp(Xvnc.java:94)
at jenkins.tasks.SimpleBuildWrapper.setUp(SimpleBuildWrapper.java:145)
at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:655)
at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)
at hudson.model.Run.execute(Run.java:1738)
at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531)
at hudson.model.ResourceController.execute(ResourceController.java:98)
at hudson.model.Executor.run(Executor.java:410)
Caused by: java.lang.RuntimeException: Failed to serialize hudson.plugins.xvnc.DisplayAllocator#allocatedNumbers for class hudson.plugins.xvnc.DisplayAllocator
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:215)
at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:183)
at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:168)
at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:109)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88)
at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
at com.thoughtworks.xstream.converters.collections.MapConverter.marshal(MapConverter.java:79)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224)
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211)
... 25 more
Caused by: java.util.ConcurrentModificationException
at java.util.HashMap$HashIterator.nextNode(HashMap.java:1429)
at java.util.HashMap$KeyIterator.next(HashMap.java:1453)
at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:73)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58)
at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84)
at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:224)
at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:211)
... 40 more
So this defect was closed because it was thought to be caused by https://issues.jenkins-ci.org/browse/JENKINS-6644 but I am seeing that downgrading the build name setter plugin from 1.6.5 to 1.3 which means that it is probably caused by an issue specifically in this plugin.
I think that JENKINS-6644 did lead in a good direction though. KK suggested "I recommend the use of ConcurrentHashMap instead of a plain HashMap to avoid concurrent update problems like this" in the old defect which I think is exactly the issue. Since the 1.3 version of build name setter EnvironmentVarSetter.java was added which calls `private final Map<String, String> envVars = new HashMap<String, String>();`. I think that just needs to be changed to ConcurrentHashMap and then this issue will be fixed.
Thoughts?
Hey guys could I get you to try out this PR https://github.com/jenkinsci/build-name-setter-plugin/pull/14 to see if that fixes the serializable exception?
ataylor Does it fix the issue on your environment?
PR looks good for me, think can merge it.
le0 So I was unable to reproduce locally but I may not have the scale to reproduce consistently. I wanted to see if other people could test it out.
Otherwise it is a pretty simple change so I very much doubt it will cause issues.
ataylor agree, but it would be nice also if this improvement fixed the issue
Code changed in jenkins
User: Oliver Gondža
Path:
src/main/java/org/jenkinsci/plugins/EnvironmentVarSetter.java
http://jenkins-ci.org/commit/build-name-setter-plugin/d9931d203aab3da4dd4aba684dee27bfea47efbc
Log:
Merge pull request #14 from alexanderrtaylor/master
JENKINS-33527Changed HashMap to ConcurrentHashMap
Compare: https://github.com/jenkinsci/build-name-setter-plugin/compare/ea649b1d0466...d9931d203aab
please provide more detailed description of the bug and check if it still persists with the most recent version