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

CLI calls onPath even after compilation errors

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s8
    • s7
    • Front End
    • None

      I got a SDE, then a bug backtrace.

      The relevant code is the Assert.usage which insists that the

      2013-03-15 10:19:39:163 edu.illinois.ncsa.daffodil.compiler.Compiler Error [Compilation (ProcessorFactory) produced 1 errors/warnings.]
      2013-03-15 10:19:39:167 edu.illinois.ncsa.daffodil.compiler.Compiler Error [Schema Definition Error: Error loading schema(org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 16; cvc-complex-type.3.2.2: Attribute 'ibmSchExtn:docRoot' is not allowed to appear in element 'xsd:element'.) Schema context: file:/home/mbeckerle/Documents/dataiti/git/daffodil/daffodil-test/target/eclipse/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/ABC_IBM.xsd. Location in file:/home/mbeckerle/Documents/dataiti/git/daffodil/daffodil-test/target/eclipse/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/ABC_IBM.xsd]

      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
      !! An unexpected exception occurred. This is a bug! !!
      !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

      Please help us fix this by opening a bug report at:

      https://opensource.ncsa.illinois.edu/jira/browse/DFDL

      Please include the following exception, the command you
      ran, and any input, schema, or tdml files used that led
      to this bug.

      edu.illinois.ncsa.daffodil.exceptions.Abort: Usage error.
      edu.illinois.ncsa.daffodil.exceptions.Assert$.abort(Assert.scala:85)
      edu.illinois.ncsa.daffodil.exceptions.Assert$.usageErrorUnless(Assert.scala:69)
      edu.illinois.ncsa.daffodil.exceptions.Assert$.usage(Assert.scala:60)
      edu.illinois.ncsa.daffodil.compiler.ProcessorFactory.onPath(Compiler.scala:103)
      at edu.illinois.ncsa.daffodil.exceptions.Assert$.abort(Assert.scala:85)
      at edu.illinois.ncsa.daffodil.exceptions.Assert$.usageErrorUnless(Assert.scala:69)
      at edu.illinois.ncsa.daffodil.exceptions.Assert$.usage(Assert.scala:60)
      at edu.illinois.ncsa.daffodil.compiler.ProcessorFactory.onPath(Compiler.scala:103)
      at edu.illinois.ncsa.daffodil.Main$.createProcessorFromSchemas(Main.scala:130)
      at edu.illinois.ncsa.daffodil.Main$.run(Main.scala:322)
      at edu.illinois.ncsa.daffodil.Main$.main(Main.scala:514)
      at edu.illinois.ncsa.daffodil.section06.namespaces.TestNamespaces.test_ibm_abc_cli(TestNamespaces.scala:164)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      at org.junit.contrib.java.lang.system.ExpectedSystemExit$1.evaluate(ExpectedSystemExit.java:81)
      at org.junit.rules.ExternalResource$1.evaluate(ExternalResource.java:48)
      at org.junit.rules.RunRules.evaluate(RunRules.java:20)
      at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:50)
      at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
      at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)

              jchab Jessie Chab
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: