[JIRA] (JENKINS-41037) Unabel to serialize mock because of ConcurrentModificationException
Title: Message Title Steve Clarke commented on JENKINS-41037 Re: Unabel to serialize mock because of ConcurrentModificationException I see exactly the same issue; [2020-02-23T12:22:16.287Z] java.util.ConcurrentModificationException [2020-02-23T12:22:16.287Z] at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909) [2020-02-23T12:22:16.287Z] at java.util.ArrayList$Itr.next(ArrayList.java:859) [2020-02-23T12:22:16.287Z] at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:73) [2020-02-23T12:22:16.287Z] at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) [2020-02-23T12:22:16.287Z] at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) [2020-02-23T12:22:16.287Z] at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) [2020-02-23T12:22:16.287Z] at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:263) [2020-02-23T12:22:16.287Z] at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250) [2020-02-23T12:22:16.287Z] Caused: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.workflow.libs.LibrariesAction#libraries for class org.jenkinsci.plugins.workflow.libs.LibrariesAction [2020-02-23T12:22:16.288Z] at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254) [2020-02-23T12:22:16.288Z] at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222) [2020-02-23T12:22:16.288Z] at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) [2020-02-23T12:22:16.288Z] at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208) [2020-02-23T12:22:16.288Z] at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149) [2020-02-23T12:22:16.288Z] at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) [2020-02-23T12:22:16.288Z] at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) [2020-02-23T12:22:16.288Z] at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) [2020-02-23T12:22:16.288Z] at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) [2020-02-23T12:22:16.288Z] at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) [2020-02-23T12:22:16.288Z] at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74) [2020-02-23T12:22:16.288Z] at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) [2020-02-23T12:22:16.288Z] at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) [2020-02-23T12:22:16.288Z] at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) [2020-02-23T12:22:16.288Z] at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:263) [2020-02-23T12:22:16.288Z] at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250) [2020-02-23T12:22:16.288Z] Caused: java.lang.RuntimeException: Failed to serialize
[JIRA] (JENKINS-41037) Unabel to serialize mock because of ConcurrentModificationException
Title: Message Title Scott Hebert commented on JENKINS-41037 Re: Unabel to serialize mock because of ConcurrentModificationException Issue seen: java.util.ConcurrentModificationException 15:00:02 at java.base/java.util.ArrayList$Itr.checkForComodification(ArrayList.java:1042) 15:00:02 at java.base/java.util.ArrayList$Itr.next(ArrayList.java:996) 15:00:02 at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:73) 15:00:02 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 15:00:02 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 15:00:02 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) 15:00:02 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:263) 15:00:02 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250) 15:00:02 Caused: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.workflow.libs.LibrariesAction#libraries for class org.jenkinsci.plugins.workflow.libs.LibrariesAction 15:00:02 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254) 15:00:02 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222) 15:00:02 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) 15:00:02 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208) 15:00:02 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149) 15:00:02 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 15:00:02 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 15:00:02 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:43) 15:00:02 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:88) 15:00:02 at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) 15:00:02 at com.thoughtworks.xstream.converters.collections.CollectionConverter.marshal(CollectionConverter.java:74) 15:00:02 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller.convert(AbstractReferenceMarshaller.java:69) 15:00:02 at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:58) 15:00:02 at com.thoughtworks.xstream.core.AbstractReferenceMarshaller$1.convertAnother(AbstractReferenceMarshaller.java:84) 15:00:02 at hudson.util.RobustReflectionConverter.marshallField(RobustReflectionConverter.java:263) 15:00:02 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:250) 15:00:02 Caused: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class org.jenkinsci.plugins.workflow.job.WorkflowRun 15:00:02 at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:254) 15:00:02 at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:222) 15:00:02 at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) 15:00:02 at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:208) 15:00:02 at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:149) 15:00:02 at
[JIRA] (JENKINS-41037) Unabel to serialize mock because of ConcurrentModificationException
Title: Message Title Logan Highland commented on JENKINS-41037 Re: Unabel to serialize mock because of ConcurrentModificationException We ran into this issue on the first build of a branch pipeline job. Same exact stack trace as Bahram Parsapour ran into. Add Comment This message was sent by Atlassian Jira (v7.11.2#711002-sha1:fdc329d) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-41037) Unabel to serialize mock because of ConcurrentModificationException
Title: Message Title Bahram Parsapour commented on JENKINS-41037 Re: Unabel to serialize mock because of ConcurrentModificationException Oliver Gondža any progress on that PR, had almost the same problem several times in the past. Extracted from a Multibranch Pipeline of mine java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909) at java.util.ArrayList$Itr.next(ArrayList.java:859) 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:265) at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252) Caused: java.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.workflow.libs.LibrariesAction#libraries for class org.jenkinsci.plugins.workflow.libs.LibrariesAction at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) at hudson.util.RobustReflectionConverter.doMarshal(RobustReflectionConverter.java:209) at hudson.util.RobustReflectionConverter.marshal(RobustReflectionConverter.java:150) 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:265) at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:252) Caused: java.lang.RuntimeException: Failed to serialize hudson.model.Actionable#actions for class org.jenkinsci.plugins.workflow.job.WorkflowRun at hudson.util.RobustReflectionConverter$2.writeField(RobustReflectionConverter.java:256) at hudson.util.RobustReflectionConverter$2.visit(RobustReflectionConverter.java:224) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:138) at
[JIRA] (JENKINS-41037) Unabel to serialize mock because of ConcurrentModificationException
Title: Message Title Oliver Gondža started work on JENKINS-41037 Change By: Oliver Gondža Status: Open In Progress Add Comment This message was sent by Atlassian JIRA (v7.3.0#73011-sha1:3c73d0e) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-41037) Unabel to serialize mock because of ConcurrentModificationException
Title: Message Title Oliver Gondža commented on JENKINS-41037 Re: Unabel to serialize mock because of ConcurrentModificationException Yet another instance of the same: ERROR: Unexpected error in launching a slave. This is probably a bug in Jenkins ESC[8mha:WB+LCP9b85aBtbiIQSmjNKU4P08vOT+vOD8nVc8DzHWtSE4tKMnMz/PLL0ldFVf2c+b/lb5MDAwVRQxSaBqcITRIIQMEMIIUFgAAckCEiWA=ESC[0mjava.lang.RuntimeException: Failed to serialize org.jenkinsci.plugins.cloudstats.CloudStatistics#active for class org.jenkinsci.plugins.cloudstats.CloudStatistics 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 org.jenkinsci.plugins.cloudstats.CloudStatistics.save(CloudStatistics.java:219) at org.jenkinsci.plugins.cloudstats.CloudStatistics$OperationListener.preLaunch(CloudStatistics.java:395) at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:241) at jenkins.util.ContextResettingExecutorService$2.call(ContextResettingExecutorService.java:46) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: java.util.ConcurrentModificationException at java.util.LinkedHashMap$LinkedHashIterator.nextNode(LinkedHashMap.java:719) at java.util.LinkedHashMap$LinkedKeyIterator.next(LinkedHashMap.java:742) 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)
[JIRA] (JENKINS-41037) Unabel to serialize mock because of ConcurrentModificationException
Title: Message Title Oliver Gondža commented on JENKINS-41037 Re: Unabel to serialize mock because of ConcurrentModificationException Proposing fix. Tested on resource-disposer-plugin. Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-41037) Unabel to serialize mock because of ConcurrentModificationException
Title: Message Title Oliver Gondža updated an issue Jenkins / JENKINS-41037 Unabel to serialize mock because of ConcurrentModificationException Change By: Oliver Gondža Labels: xstream Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c) -- You received this message because you are subscribed to the Google Groups "Jenkins Issues" group. To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.
[JIRA] (JENKINS-41037) Unabel to serialize mock because of ConcurrentModificationException
Title: Message Title Oliver Gondža updated an issue Jenkins / JENKINS-41037 Unabel to serialize mock because of ConcurrentModificationException Change By: Oliver Gondža This keeps up reported as Flaked tests as it seems to clash with some other test (related activity) and gets retried correctly. (Using synchronized mocks makes no difference). Reproducabel Reproducible by https://github.com/jenkinsci/resource-disposer-plugin/commit/bc5f8cc31a680e103dd7bd804bd64b0a4668 and {{mvn clean package}}. Not by {{mvn clean package -Dtest=AsyncResourceDisposerTest#combined}} of course.{noformat}Caused by: java.util.ConcurrentModificationException at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:953) at java.util.LinkedList$ListItr.next(LinkedList.java:886) 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) ... 128 more{noformat} Add Comment This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
[JIRA] (JENKINS-41037) Unabel to serialize mock because of ConcurrentModificationException
Title: Message Title Oliver Gondža created an issue Jenkins / JENKINS-41037 Unabel to serialize mock because of ConcurrentModificationException Issue Type: Bug Assignee: Oliver Gondža Components: core Created: 2017/Jan/12 2:48 PM Priority: Minor Reporter: Oliver Gondža This keeps up reported as Flaked tests as it seems to clash with some other test (related activity) and gets retried correctly. (Using synchronized mocks makes no difference). Reproducabel by https://github.com/jenkinsci/resource-disposer-plugin/commit/bc5f8cc31a680e103dd7bd804bd64b0a4668 and mvn clean package. Not by mvn clean package -Dtest=AsyncResourceDisposerTest#combined of course. Caused by: java.util.ConcurrentModificationException at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:953) at java.util.LinkedList$ListItr.next(LinkedList.java:886) 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) ... 128 more