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

Blank SpecifiedLengthExplicitBytesFixedParser Exception

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • s14
    • None
    • None
    • None

      While trying to troubleshoot the test discussed in DFDL-744, I changed the parent's length from a pattern to an explicit value.

      I get the following error:

       
      [error] Test edu.illinois.ncsa.daffodil.section12.lengthKind.TestLengthKindPattern.testLengthKindPatternCompound2 failed: java.lang.Exception: Parse Error: SpecifiedLengthExplicitBytesFixedParser - Exception: 
      [error] edu.illinois.ncsa.daffodil.processors.WithParseErrorThrowing$class.PECheck(Parser.scala:187)
      [error] edu.illinois.ncsa.daffodil.processors.SpecifiedLengthParserBase.PECheck(SpecifiedLength.scala:149)
      [error] edu.illinois.ncsa.daffodil.processors.SpecifiedLengthParserBase.parse(SpecifiedLength.scala:168)
      [error] edu.illinois.ncsa.daffodil.processors.SpecifiedLengthExplicitBytesFixedParser.edu$illinois$ncsa$daffodil$processors$SpecifiedLengthExplicitBytesFixedParser$$super$parse(SpecifiedLength.scala:304)
      [error] edu.illinois.ncsa.daffodil.processors.SpecifiedLengthExplicitBytesFixedParser$$anonfun$parse$5.apply(SpecifiedLength.scala:304)
      [error] edu.illinois.ncsa.daffodil.processors.SpecifiedLengthExplicitBytesFixedParser$$anonfun$parse$5.apply(SpecifiedLength.scala:297)
      [error] edu.illinois.ncsa.daffodil.processors.WithParseErrorThrowing$class.withParseErrorThrowing(Parser.scala:223)
      [error] edu.illinois.ncsa.daffodil.processors.SpecifiedLengthParserBase.withParseErrorThrowing(SpecifiedLength.scala:149)
      [error] edu.illinois.ncsa.daffodil.processors.SpecifiedLengthExplicitBytesFixedParser.parse(SpecifiedLength.scala:297)
      [error] edu.illinois.ncsa.daffodil.processors.Parser.parse1(Parser.scala:135)
      [error] edu.illinois.ncsa.daffodil.processors.SeqCompParser$$anonfun$parse$3.apply(Parser.scala:336)
      [error] edu.illinois.ncsa.daffodil.processors.SeqCompParser$$anonfun$parse$3.apply(Parser.scala:334)
      [error] scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
      [error] scala.collection.immutable.List.foreach(List.scala:76)
      [error] edu.illinois.ncsa.daffodil.processors.SeqCompParser.parse(Parser.scala:334)
      [error] edu.illinois.ncsa.daffodil.processors.Parser.parse1(Parser.scala:135)
      [error] edu.illinois.ncsa.daffodil.processors.DataProcessor$$anonfun$parse$3$$anon$1.liftedTree1$1(Runtime.scala:163)
      [error] edu.illinois.ncsa.daffodil.processors.DataProcessor$$anonfun$parse$3$$anon$1.<init>(Runtime.scala:162)
      [error] edu.illinois.ncsa.daffodil.processors.DataProcessor$$anonfun$parse$3.apply(Runtime.scala:159)
      [error] edu.illinois.ncsa.daffodil.processors.DataProcessor$$anonfun$parse$3.apply(Runtime.scala:158)
      [error] scala.util.DynamicVariable.withValue(DynamicVariable.scala:57)
      [error] edu.illinois.ncsa.daffodil.ExecutionMode$$anonfun$usingRuntimeMode$1.apply(ExecutionMode.scala:80)
      [error] edu.illinois.ncsa.daffodil.ExecutionMode$$anonfun$usingRuntimeMode$1.apply(ExecutionMode.scala:80)
      [error] edu.illinois.ncsa.daffodil.processors.DataProcessor.parse(Runtime.scala:158)
      [error] edu.illinois.ncsa.daffodil.processors.DataProcessor.parse(Runtime.scala:150)
      [error] edu.illinois.ncsa.daffodil.tdml.ParserTestCase.runParseExpectSuccess(TDMLRunner.scala:554)
      [error] edu.illinois.ncsa.daffodil.tdml.ParserTestCase.runProcessor(TDMLRunner.scala:445)
      [error] edu.illinois.ncsa.daffodil.tdml.TestCase.run(TDMLRunner.scala:394)
      [error] edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTestWithDataVolumes(TDMLRunner.scala:257)
      [error] edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:248)
      [error] edu.illinois.ncsa.daffodil.section12.lengthKind.TestLengthKindPattern.testLengthKindPatternCompound2(TestLengthKindPattern.scala:55)
      [error] sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      [error] sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      [error] sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      [error] java.lang.reflect.Method.invoke(Method.java:601)
      [error] org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
      [error] org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      [error] org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
      [error] org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      [error] org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
      [error] org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
      [error] org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
      [error] org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      [error] org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      [error] org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      [error] org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      [error] org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      [error] org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      [error] org.junit.runners.Suite.runChild(Suite.java:127)
      [error] org.junit.runners.Suite.runChild(Suite.java:26)
      [error] org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
      [error] org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
      [error] org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
      [error] org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
      [error] org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
      [error] org.junit.runners.ParentRunner.run(ParentRunner.java:309)
      [error] org.junit.runner.JUnitCore.run(JUnitCore.java:160)
      [error] org.junit.runner.JUnitCore.run(JUnitCore.java:138)
      [error] com.novocode.junit.JUnitRunner.run(JUnitRunner.java:90)
      [error] sbt.TestRunner.delegateRun(TestFramework.scala:58)
      [error] sbt.TestRunner.run(TestFramework.scala:51)
      [error] sbt.TestRunner.runTest$1(TestFramework.scala:71)
      [error] sbt.TestRunner.run(TestFramework.scala:80)
      [error] sbt.TestFramework$$anonfun$6$$anonfun$apply$8$$anonfun$7$$anonfun$apply$9.apply(TestFramework.scala:178)
      [error] sbt.TestFramework$$anonfun$6$$anonfun$apply$8$$anonfun$7$$anonfun$apply$9.apply(TestFramework.scala:178)
      [error] sbt.TestFramework$.sbt$TestFramework$$withContextLoader(TestFramework.scala:190)
      [error] sbt.TestFramework$$anonfun$6$$anonfun$apply$8$$anonfun$7.apply(TestFramework.scala:178)
      [error] sbt.TestFramework$$anonfun$6$$anonfun$apply$8$$anonfun$7.apply(TestFramework.scala:178)
      [error] sbt.Tests$$anonfun$makeSerial$1$$anonfun$apply$8.apply(Tests.scala:121)
      [error] sbt.Tests$$anonfun$makeSerial$1$$anonfun$apply$8.apply(Tests.scala:121)
      [error] scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
      [error] scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:233)
      [error] scala.collection.LinearSeqOptimized$class.foreach(LinearSeqOptimized.scala:59)
      [error] scala.collection.immutable.List.foreach(List.scala:76)
      [error] scala.collection.TraversableLike$class.map(TraversableLike.scala:233)
      [error] scala.collection.immutable.List.map(List.scala:76)
      [error] sbt.Tests$$anonfun$makeSerial$1.apply(Tests.scala:121)
      [error] sbt.Tests$$anonfun$makeSerial$1.apply(Tests.scala:121)
      [error] sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:47)
      [error] sbt.std.Transform$$anon$3$$anonfun$apply$2.apply(System.scala:47)
      [error] sbt.std.Transform$$anon$5.work(System.scala:71)
      [error] sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
      [error] sbt.Execute$$anonfun$submit$1$$anonfun$apply$1.apply(Execute.scala:232)
      [error] sbt.ErrorHandling$.wideConvert(ErrorHandling.scala:18)
      [error] sbt.Execute.work(Execute.scala:238)
      [error] sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
      [error] sbt.Execute$$anonfun$submit$1.apply(Execute.scala:232)
      [error] sbt.ConcurrentRestrictions$$anon$4$$anonfun$1.apply(ConcurrentRestrictions.scala:159)
      [error] sbt.CompletionService$$anon$2.call(CompletionService.scala:30)
      [error] java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      [error] java.util.concurrent.FutureTask.run(FutureTask.java:166)
      [error] java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
      [error] java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      [error] java.util.concurrent.FutureTask.run(FutureTask.java:166)
      [error] java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      [error] java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      [error] java.lang.Thread.run(Thread.java:722)
      [error] 
      [error] Schema context: element.ab Location line 36 column 76 in file:/tmp/daffodil_tmp_1956417834728294207.dfdl.xsd
      [error] Data location was preceding byte 1
      [error] UTF-8 text starting at byte 0 is: (0aaa,bb//5)
      [error] Data (hex) starting at byte 0 is: (0x306161612C62622F2F35)
      [error]     at edu.illinois.ncsa.daffodil.tdml.ParserTestCase.runParseExpectSuccess(TDMLRunner.scala:559)
      [error]     at edu.illinois.ncsa.daffodil.tdml.ParserTestCase.runProcessor(TDMLRunner.scala:445)
      [error]     at edu.illinois.ncsa.daffodil.tdml.TestCase.run(TDMLRunner.scala:394)
      [error]     at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTestWithDataVolumes(TDMLRunner.scala:257)
      [error]     at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:248)
      [error]     at edu.illinois.ncsa.daffodil.section12.lengthKind.TestLengthKindPattern.testLengthKindPatternCompound2(TestLengthKindPattern.scala:55)
      [error]     ...

      The test is LengthKindPatternCompound2 in the following files:
      daffodil-test/src/test/resources/edu/illinois/ncsa/daffodil/section12/lengthKind/PatternTests.tdml
      daffodil-test/src/test/scala-debug/edu/illinois/ncsa/daffodil/section12/lengthKind/TestLengthKindPatternDebug.scala

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

                Created:
                Updated:
                Resolved: