Uploaded image for project: 'Codehaus Cargo'
  1. CARGO-1105

ConcurrentModificationException when trying to merge xml file

    Details

    • Type: Bug
    • Status: Closed (View workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects versions: 1.2.1
    • Fix versions: 1.2.2
    • Components: Maven2/Maven3
    • Labels:
      None
    • Environment:

      Apache Maven 3.0.2 (r1056850; 2011-01-08 16:58:10-0800)

      Description

      I am attempting to merge a non web.xml xml file while using the cargo plugin. I have entered the following in my merge.xml file...

      <merge>
      <document>resources/MasterPerspective.xml</document>
      <classname>org.codehaus.cargo.module.merge.DocumentMerger</classname>
      </merge>
      

      And the build is failing with the eventual stack trace...

      Caused by: java.util.ConcurrentModificationException
      at java.util.AbstractList$Itr.checkForComodification(AbstractList.java:372)
      at java.util.AbstractList$Itr.next(AbstractList.java:343)
      at org.codehaus.cargo.module.merge.DocumentMerger.merge(DocumentMerger.java:95)
      at org.codehaus.cargo.module.merge.DocumentMerger.performMerge(DocumentMerger.java:79)
      at org.codehaus.cargo.module.merge.DocumentStreamAdapter.performMerge(DocumentStreamAdapter.java:101)
      ... 25 more
      

      I am attaching an example of what two of the MasterPerspective.xml files looks like. I am also including everything printed out on my console (in Eclipse) if that helps show what my environment is using.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chris chris (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: