Description
If a dfdl:occursCount expression results in a parse error, for example referencing a string that cannot be converted to a number, then it results in the following abort:
org.apache.daffodil.exceptions.Abort at org.apache.daffodil.processors.parsers.PState.verifyFinalState(PState.scala:520) at org.apache.daffodil.processors.DataProcessor.doParse(DataProcessor.scala:516) at org.apache.daffodil.processors.DataProcessor.parse(DataProcessor.scala:439) ... Suppressed: org.apache.daffodil.exceptions.Abort: Invariant broken: MPState.this.groupIndexStack.length.==(1) org.apache.daffodil.exceptions.Assert$.abort(Assert.scala:137) org.apache.daffodil.processors.parsers.MPState.verifyFinalState(PState.scala:144) org.apache.daffodil.processors.parsers.PState.verifyFinalState(PState.scala:511) org.apache.daffodil.processors.DataProcessor.doParse(DataProcessor.scala:516) at org.apache.daffodil.exceptions.Assert$.abort(Assert.scala:137) at org.apache.daffodil.processors.parsers.MPState.verifyFinalState(PState.scala:144) at org.apache.daffodil.processors.parsers.PState.verifyFinalState(PState.scala:511) ... 8 more Caused by: [CIRCULAR REFERENCE: org.apache.daffodil.exceptions.Abort: Invariant broken: MPState.this.groupIndexStack.length.==(1) org.apache.daffodil.exceptions.Assert$.abort(Assert.scala:137) org.apache.daffodil.processors.parsers.MPState.verifyFinalState(PState.scala:144) org.apache.daffodil.processors.parsers.PState.verifyFinalState(PState.scala:511) org.apache.daffodil.processors.DataProcessor.doParse(DataProcessor.scala:516)]