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

CLI: Providing a nonexistent root element causes an unhandled exception

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: s7
    • Fix Version/s: s10
    • Component/s: None
    • Labels:
      None

      Description

      command:

      echo "12" | ./daffodil-core/target/start parse -s daffodil-test/src/test/resources/daffodil/section06/entities/charClassEntities.dfdl.xsd -r unknown

      Here's my exception:

      daffodil.exceptions.Abort: Usage error.
      daffodil.exceptions.Assert$.abort(Assert.scala:52)
      daffodil.exceptions.Assert$.usageErrorUnless(Assert.scala:36)
      daffodil.exceptions.Assert$.usage(Assert.scala:27)
      daffodil.compiler.ProcessorFactory.onPath(Compiler.scala:53)
      at daffodil.exceptions.Assert$.abort(Assert.scala:52)
      at daffodil.exceptions.Assert$.usageErrorUnless(Assert.scala:36)
      at daffodil.exceptions.Assert$.usage(Assert.scala:27)
      at daffodil.compiler.ProcessorFactory.onPath(Compiler.scala:53)
      at daffodil.Main$.createProcessorFromSchemas(Main.scala:92)
      at daffodil.Main$.run(Main.scala:271)
      at daffodil.Main$.main(Main.scala:462)
      at daffodil.Main.main(Main.scala)

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:

                  Tasks