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

Exceptions in multi-conf jobs and concurrents executions

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • cluster-stats-plugin
    • None
    • Jenkins LT 1.544.3, ClusterStats 0.4.4

      I get more and more exception like this in Jenkins log :

      WARNING: RunListener failed
      java.lang.RuntimeException: Failed to serialize org.zeroturnaround.stats.ClusterStatisticsPlugin#statsData for class org.zeroturnaround.stats.ClusterStatisticsPlugin
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:214)
      	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:182)
      	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:167)
      	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:108)
      	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.Plugin.save(Plugin.java:250)
      	at org.zeroturnaround.stats.ClusterStatisticsPlugin.maybeSave(ClusterStatisticsPlugin.java:57)
      	at org.zeroturnaround.stats.StartCompleteListener.onCompleted(StartCompleteListener.java:50)
      	at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199)
      	at hudson.model.Run.execute(Run.java:1735)
      	at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      Caused by: java.lang.RuntimeException: Failed to serialize org.zeroturnaround.stats.model.StatsData#runStats for class org.zeroturnaround.stats.model.StatsData
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:214)
      	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:182)
      	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:167)
      	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:108)
      	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:223)
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:210)
      	... 21 more
      Caused by: java.util.ConcurrentModificationException
      	at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
      	at java.util.AbstractList$Itr.next(AbstractList.java:343)
      	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:223)
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:210)
      	... 30 more
      Jul 8, 2014 3:39:27 PM hudson.model.listeners.RunListener report
      WARNING: RunListener failed
      java.lang.RuntimeException: Failed to serialize org.zeroturnaround.stats.ClusterStatisticsPlugin#statsData for class org.zeroturnaround.stats.ClusterStatisticsPlugin
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:214)
      	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:182)
      	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:167)
      	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:108)
      	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.Plugin.save(Plugin.java:250)
      	at org.zeroturnaround.stats.ClusterStatisticsPlugin.maybeSave(ClusterStatisticsPlugin.java:57)
      	at org.zeroturnaround.stats.StartCompleteListener.onCompleted(StartCompleteListener.java:50)
      	at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199)
      	at hudson.model.Run.execute(Run.java:1735)
      	at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      Caused by: java.lang.RuntimeException: Failed to serialize org.zeroturnaround.stats.model.StatsData#runStats for class org.zeroturnaround.stats.model.StatsData
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:214)
      	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:182)
      	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:167)
      	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:108)
      	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:223)
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:210)
      	... 21 more
      Caused by: java.util.ConcurrentModificationException
      	at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
      	at java.util.AbstractList$Itr.next(AbstractList.java:343)
      	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:223)
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:210)
      	... 30 more
      Jul 8, 2014 3:39:27 PM hudson.model.listeners.RunListener report
      WARNING: RunListener failed
      java.lang.RuntimeException: Failed to serialize org.zeroturnaround.stats.ClusterStatisticsPlugin#statsData for class org.zeroturnaround.stats.ClusterStatisticsPlugin
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:214)
      	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:182)
      	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:167)
      	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:108)
      	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.Plugin.save(Plugin.java:250)
      	at org.zeroturnaround.stats.ClusterStatisticsPlugin.maybeSave(ClusterStatisticsPlugin.java:57)
      	at org.zeroturnaround.stats.StartCompleteListener.onCompleted(StartCompleteListener.java:50)
      	at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:199)
      	at hudson.model.Run.execute(Run.java:1735)
      	at hudson.matrix.MatrixRun.run(MatrixRun.java:146)
      	at hudson.model.ResourceController.execute(ResourceController.java:88)
      	at hudson.model.Executor.run(Executor.java:231)
      Caused by: java.lang.RuntimeException: Failed to serialize org.zeroturnaround.stats.model.StatsData#runStats for class org.zeroturnaround.stats.model.StatsData
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:214)
      	at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:182)
      	at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138)
      	at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:167)
      	at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:108)
      	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:223)
      	at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:210)
      	... 21 more
      Caused by: java.util.ConcurrentModificationException
      	at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
      	at java.util.AbstractList$Itr.next(AbstractList.java:343)
      	at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:73)
      	at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69)
      

      These exceptions appears when multi-conf jobs with build stuff sent to 10 slaves at the same time.

      Side effect, some builds failed on some slaves (never the same) and randomly ie :

      ;; connection timed out; trying next origin
      ;; connection timed out; no servers could be reached
      Build step 'Execute shell' marked build as failure
      

      This plugin is still maintained ?
      Anyone with similar issues ?

            toomasr toomasr
            hgomez Henri Gomez
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: