Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DFDL-680

CLI Debugger: Reporting failures that are not detrimental to parse

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s10
    • s10
    • CLI
    • None

      I believe this is a result of the changes made for the suggestion in ticket DFDL-575 - debugger should report failures when they are encountered.

      ~/NGF/dfdl (master) ./daffodil-core/target/start -d parse -s daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/entities/charClassEntities.dfdl.xsd -r matrix input.txt
      (debug) break element.cell
      (debug) display info arrayIndex
      (debug) c
        arrayIndex: 1
        failure:
          Parse Error: Array position not greater than (1)
          Schema context: element.row Location in file:/home/jchab/NGF/dfdl/daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/entities/charClassEntities.dfdl.xsd
          Data location was preceding byte 0
          UTF-8 text starting at byte 0 is: (3,3,0,3,0,3,3,1,2,3,2,2,2,3,2,3,3)
          Data (hex) starting at byte 0 is: (0x332C332C302C332C302C332C332C312C322C332C322C322C322C332C322C332C33)
      (debug) 
        arrayIndex: 1
        failure:
          Parse Error: Group position not greater than (1)
          Schema context: element.row Location in file:/home/jchab/NGF/dfdl/daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/entities/charClassEntities.dfdl.xsd
          Data location was preceding byte 0
          UTF-8 text starting at byte 0 is: (3,3,0,3,0,3,3,1,2,3,2,2,2,3,2,3,3)
          Data (hex) starting at byte 0 is: (0x332C332C302C332C302C332C332C312C322C332C322C322C322C332C322C332C33)
      (debug) 
        arrayIndex: 1
        failure:
          Parse Error: Array position not greater than (1)
          Schema context: element.cell Location in file:/home/jchab/NGF/dfdl/daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/entities/charClassEntities.dfdl.xsd
          Data location was preceding byte 0
          UTF-8 text starting at byte 0 is: (3,3,0,3,0,3,3,1,2,3,2,2,2,3,2,3,3)
          Data (hex) starting at byte 0 is: (0x332C332C302C332C302C332C332C312C322C332C322C322C322C332C322C332C33)
      (debug) 
        arrayIndex: 1
        failure:
          Parse Error: Group position not greater than (1)
          Schema context: element.cell Location in file:/home/jchab/NGF/dfdl/daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section06/entities/charClassEntities.dfdl.xsd
          Data location was preceding byte 0
          UTF-8 text starting at byte 0 is: (3,3,0,3,0,3,3,1,2,3,2,2,2,3,2,3,3)
          Data (hex) starting at byte 0 is: (0x332C332C302C332C302C332C332C312C322C332C322C322C322C332C322C332C33)
      (debug) 
        breakpoint 1: element.cell   
        arrayIndex: 1
      (debug) 
        breakpoint 1: element.cell   
        arrayIndex: 2
      (debug) 
        breakpoint 1: element.cell   
        arrayIndex: 3
      (debug) info infoset
        infoset:
          <tns:matrix xmlns:tns="http://www.example.org/example1/">
            <tns:row>
              <tns:cell>3</tns:cell>
              <tns:cell>3</tns:cell>
              <tns:cell></tns:cell>
            </tns:row>
          </tns:matrix>
      (debug) 

      "Parse Error: Array position not greater than (1)" doesn't seem like a valid error to me in general. It's likely that I'm missing something behind the scenes, but in the end the data parses with no issues.

              jchab Jessie Chab
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: