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

Unable to serialize lists because of ConcurrentModificationException

    XMLWordPrintable

Details

    • workflow-cps-global-lib 2.18

    Description

      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).

      Reproducible by https://github.com/jenkinsci/resource-disposer-plugin/commit/bc5f00008cc31a680e103dd7bd804bd64b0a4668 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
      

      Attachments

        Issue Links

          Activity

            olivergondza Oliver Gondža created issue -
            olivergondza Oliver Gondža made changes -
            Field Original Value New Value
            Description 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/bc5f00008cc31a680e103dd7bd804bd64b0a4668 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}
            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).

            Reproducible by https://github.com/jenkinsci/resource-disposer-plugin/commit/bc5f00008cc31a680e103dd7bd804bd64b0a4668 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}
            olivergondza Oliver Gondža made changes -
            Labels xstream
            olivergondza Oliver Gondža made changes -
            Remote Link This issue links to "xstream-fork #1 (Web Link)" [ 15256 ]
            olivergondza Oliver Gondža made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            bparsapo Bahram Parsapour made changes -
            Link This issue is related to JENKINS-42720 [ JENKINS-42720 ]
            bparsapo Bahram Parsapour made changes -
            Link This issue is related to JENKINS-42720 [ JENKINS-42720 ]
            bparsapo Bahram Parsapour made changes -
            Link This issue relates to JENKINS-42720 [ JENKINS-42720 ]
            jglick Jesse Glick made changes -
            Link This issue relates to JENKINS-19561 [ JENKINS-19561 ]
            jglick Jesse Glick made changes -
            Labels xstream stalled-pr xstream
            jglick Jesse Glick made changes -
            Remote Link This issue links to "workflow-cps-global-lib-plugin #100 (Web Link)" [ 25922 ]
            jglick Jesse Glick made changes -
            Labels stalled-pr xstream xstream
            jglick Jesse Glick made changes -
            Component/s cloud-stats-plugin [ 21441 ]
            Component/s resource-disposer-plugin [ 22820 ]
            Component/s workflow-cps-global-lib-plugin [ 21714 ]
            Component/s core [ 15593 ]
            jglick Jesse Glick made changes -
            Summary Unabel to serialize mock because of ConcurrentModificationException Unable to serialize lists because of ConcurrentModificationException
            jglick Jesse Glick made changes -
            Assignee Oliver Gondža [ olivergondza ]
            basil Basil Crow made changes -
            Remote Link This issue links to "resource-disposer-plugin #8 (Web Link)" [ 26359 ]
            jglick Jesse Glick made changes -
            Released As workflow-cps-global-lib 2.18
            basil Basil Crow made changes -
            Component/s resource-disposer-plugin [ 22820 ]
            basil Basil Crow made changes -
            Component/s workflow-cps-global-lib-plugin [ 21714 ]

            People

              Unassigned Unassigned
              olivergondza Oliver Gondža
              Votes:
              4 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated: