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

CLI Unparse: Issue when reading Infoset from a tree

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Normal
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.0
    • Component/s: CLI, Unparsing
    • Labels:
      None

      Description

      When attempting to unparse an infoset via the CLI, a NullPointer exception occurs.

      Note from Steve: "This is caused when we read an infoset from a tree rather than XML (I believe the TDML tests use XML, CLI uses a tree). When we use a tree, there's a bug in the code where the XML stream isn't properly initialized. We just need to fix that bug."

      To reproduce:
      To save the parser/unparser:
      daffodil-cli/target/universal/stage/bin/daffodil save-parser -s daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section00/general/generalSchema.dfdl.xsd --root e1 > e1.parser.bin
      To test out unparser using file input:
      echo '<tns:e1 xmlns:tns="http://www.example.org/example1/">Hello</tns:e1>' > input
      daffodil-cli/target/universal/stage/bin/daffodil unparse --parser e1.parser.bin input

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              jchab Jessie Chab
              Reporter:
              jchab Jessie Chab
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Tasks