Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2555

dfdl:occursCountKind aborts with expression results in ParseError

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.1.0
    • 3.2.0
    • Back End
    • None

    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)]
      

       

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment