Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-33527

Intermittent exception thrown when using plugin

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      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
      

        Attachments

          Issue Links

            Activity

            Hide
            ataylor Alex Taylor added a comment -

            Try out this PR to see if it solves the serializable issue

            Show
            ataylor Alex Taylor added a comment - Try out this PR to see if it solves the serializable issue
            Hide
            le0 Lev Mishin added a comment -

            Alex Taylor Does it fix the issue on your environment? 

            PR looks good for me, think can merge it.

            Show
            le0 Lev Mishin added a comment - Alex Taylor Does it fix the issue on your environment?  PR looks good for me, think can merge it.
            Hide
            ataylor Alex Taylor added a comment -

            Lev Mishin 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.

            Show
            ataylor Alex Taylor added a comment - Lev Mishin 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.
            Hide
            le0 Lev Mishin added a comment -

            Alex Taylor agree, but it would be nice also if this improvement fixed the issue

             

            Show
            le0 Lev Mishin added a comment - Alex Taylor agree, but it would be nice also if this improvement fixed the issue  
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            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

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - 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-33527 Changed HashMap to ConcurrentHashMap Compare: https://github.com/jenkinsci/build-name-setter-plugin/compare/ea649b1d0466...d9931d203aab

              People

              Assignee:
              le0 Lev Mishin
              Reporter:
              ddumont Dan Dumont
              Votes:
              3 Vote for this issue
              Watchers:
              13 Start watching this issue

                Dates

                Created:
                Updated: