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/23 15:25:00 UTC
[jira] [Resolved] (DAFFODIL-2555) dfdl:occursCountKind aborts with
expression results in ParseError
[ https://issues.apache.org/jira/browse/DAFFODIL-2555?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Lawrence resolved DAFFODIL-2555.
--------------------------------------
Resolution: Fixed
Fixed in commit 80d4c58b9bb70ea4896a956c1cb3a83a77d83a76
> 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
> Priority: Major
> 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)