Commons Digester
  1. Commons Digester
  2. DIGESTER-163

ConcurrentModificationException creating a new Digester via loaderInstance.newDigester()

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.2
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Linux, JDK 6

      Description

      I am gettig a ConcurrentModificationException when trying to create new Digester instance from a configured loader:
      Trace is:

      java.util.ConcurrentModificationException: null
      	at java.util.LinkedList$ListItr.checkForComodification(LinkedList.java:761) ~[na:1.6.0_27]
      	at java.util.LinkedList$ListItr.next(LinkedList.java:696) ~[na:1.6.0_27]
      	at org.apache.commons.digester3.binder.FromBinderRuleSet.addRuleInstances(FromBinderRuleSet.java:130) ~[commons-digester3-3.2.jar:3.2]
      	at org.apache.commons.digester3.binder.DigesterLoader.addRules(DigesterLoader.java:581) ~[commons-digester3-3.2.jar:3.2]
      	at org.apache.commons.digester3.binder.DigesterLoader.newDigester(DigesterLoader.java:568) ~[commons-digester3-3.2.jar:3.2]
      	at org.apache.commons.digester3.binder.DigesterLoader.newDigester(DigesterLoader.java:516) ~[commons-digester3-3.2.jar:3.2]
      	at org.apache.commons.digester3.binder.DigesterLoader.newDigester(DigesterLoader.java:475) ~[commons-digester3-3.2.jar:3.2]
      	at org.apache.commons.digester3.binder.DigesterLoader.newDigester(DigesterLoader.java:462) ~[commons-digester3-3.2.jar:3.2]
      

      The binder documentation (employee servlet) and the mailing list did confirm to me, that the loader should be safe to be shared, so this should not happen.

      1. stack-next2.txt
        14 kB
        Torsten Krah
      2. stack-next.txt
        14 kB
        Torsten Krah
      3. stack-mvn.txt
        13 kB
        Torsten Krah
      4. stack-afterfix.txt
        23 kB
        Torsten Krah
      5. Digester163TestCase.java
        3 kB
        Torsten Krah
      6. cli-mvn-test-withfix.txt
        6 kB
        Torsten Krah
      7. 163-2.patch
        7 kB
        Torsten Krah
      8. 163.patch
        7 kB
        Torsten Krah

        Activity

          People

          • Assignee:
            Simone Tripodi
            Reporter:
            Torsten Krah
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development