Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-946

IllegalAddException in threaded runner using occursCountKind="expression"

XMLWordPrintableJSON

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Normal Normal
    • s13
    • None
    • None
    • None

      Non thread-safe code is causing the following exception when running the csv examples with the multi threaded runner:

      org.jdom2.IllegalAddException: The Content already has an existing parent "ex:record"
      at org.jdom2.ContentList.checkPreConditions(ContentList.java:211)
      at org.jdom2.ContentList.add(ContentList.java:244)
      at org.jdom2.ContentList.add(ContentList.java:79)
      at java.util.AbstractList.add(AbstractList.java:108)
      at org.jdom2.Element.addContent(Element.java:917)
      at edu.illinois.ncsa.daffodil.processors.InfosetElement.addElement(Infoset.scala:104)
      at edu.illinois.ncsa.daffodil.processors.OccursCountExpression$$anon$5$$anonfun$parse$2.apply(RepParsers.scala:284)
      at edu.illinois.ncsa.daffodil.processors.OccursCountExpression$$anon$5$$anonfun$parse$2.apply(RepParsers.scala:277)

              efinnegan Elizabeth Finnegan
              slawrence Steve Lawrence
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - Not Specified
                  Not Specified
                  Logged:
                  Time Spent - 7 minutes
                  7m