You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Steve Lawrence (Jira)" <ji...@apache.org> on 2021/08/19 15:25:00 UTC

[jira] [Created] (DAFFODIL-2555) dfdl:occursCountKind aborts with expression results in ParseError

Steve Lawrence created DAFFODIL-2555:
----------------------------------------

             Summary: dfdl:occursCountKind aborts with expression results in ParseError
                 Key: DAFFODIL-2555
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2555
             Project: Daffodil
          Issue Type: Bug
          Components: Back End
    Affects Versions: 3.1.0
            Reporter: Steve Lawrence
            Assignee: Steve Lawrence
             Fix For: 3.2.0


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:
{code:java}
 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)]
{code}
 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)