You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2021/08/27 15:11:00 UTC
[jira] [Closed] (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 ]
Dave Thompson closed DAFFODIL-2555.
-----------------------------------
Verified the specified commit (commit 80d4c58b9bb70ea4896a956c1cb3a83a77d83a76) is included in the latest pull from the daffodil repository.
Verified changes identified in commit comment were implemented.
Verified the affected daffodil subproject sbt test suites execute successfully including the added tests.
Verified the nightly test schemas compile and save successfully.
Verified the nightly test suite executes successfully.
> 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)