You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Steve Lawrence (JIRA)" <ji...@apache.org> on 2018/02/20 16:05:00 UTC

[jira] [Commented] (DAFFODIL-1908) Three daffodil-test sbt tests intermittently fail

    [ https://issues.apache.org/jira/browse/DAFFODIL-1908?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16370188#comment-16370188 ] 

Steve Lawrence commented on DAFFODIL-1908:
------------------------------------------

Note that these tests end up including the "multi_base_09.dfdl.xsd" schema, which uses UTF-16BE encoding. Whatever is loading the schema (it's not immediately clear whether this is Scala or Xerces based on this error) appears to fail to detect the encoding of these schema in some edge cases and just attempts to read the schema as UTF-8. This fails and throws an error.

Due to the randomness of this error, I'd guess the error is in the TDML Runner  not properly syncrhonizing during non-thread-safe schema compilation. However, I cannot reproduce this issue on my machine, making it difficult to track down.

> Three daffodil-test sbt tests intermittently fail
> -------------------------------------------------
>
>                 Key: DAFFODIL-1908
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1908
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Front End, TDML Runner
>    Affects Versions: 2.1.0
>            Reporter: Dave Thompson
>            Priority: Major
>             Fix For: 2.2.0
>
>
> Pulled latest updates from incubator-daffodil repository, commit 62eea54b75392c3fffcb36060d5bb078dfed3910.
> Thee 3 test are intermittently failing on the test machine.
> The tests passed 7 times and failed 4 (2 fail, 2 pass, 2 fail then 5 pass).
> Did a git clean after 1^st^ 2 fails.
> These tests have not failed on my VM.
> Tests and failure are below.
> [debug] Test org.apache.daffodil.section06.namespaces.TestNamespaces.test_multi_encoding_01 started
> [error] Test org.apache.daffodil.section06.namespaces.TestNamespaces.test_multi_encoding_01 failed: org.apache.daffodil.tdml.TDMLException: Schema Definition Error: Error loading schema due to org.xml.sax.SAXParseException; systemId: file:/home/dfdl/incubator-daffodil/daffodil-test/target/scala-2.11/test-classes/org/apache/daffodil/section06/namespaces/multi_base_09.dfdl.xsd; lineNumber: 1; columnNumber: 1; < expected
> [error] Schema context: file:/home/dfdl/incubator-daffodil/daffodil-test/target/scala-2.11/test-classes/org/apache/daffodil/section06/namespaces/multi_base_09.dfdl.xsd Location in file:??
> [error] Schema Definition Error: No XML Node could be loaded from URISchemaSource(file:/home/dfdl/incubator-daffodil/daffodil-test/target/scala-2.11/test-classes/org/apache/daffodil/section06/namespaces/multi_base_09.dfdl.xsd).
> [error] Schema context: file:/home/dfdl/incubator-daffodil/daffodil-test/target/scala-2.11/test-classes/org/apache/daffodil/section06/namespaces/multi_base_09.dfdl.xsd Location in file:??, took 0.51 sec
> [error]     at org.apache.daffodil.tdml.ParserTestCase$$anonfun$runProcessor$2.apply(TDMLRunner.scala:663)
> [error]     at org.apache.daffodil.tdml.ParserTestCase$$anonfun$runProcessor$2.apply(TDMLRunner.scala:663)
> [error]     at scala.util.Either$LeftProjection.foreach(Either.scala:302)
> [error]     at org.apache.daffodil.tdml.ParserTestCase.runProcessor(TDMLRunner.scala:663)
> [error]     at org.apache.daffodil.tdml.TestCase.run(TDMLRunner.scala:612)
> [error]     at org.apache.daffodil.tdml.DFDLTestSuite.runOneTestWithDataVolumes(TDMLRunner.scala:325)
> [error]     at org.apache.daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:313)
> [error]     at org.apache.daffodil.tdml.Runner.runOneTest(RunnerFactory.scala:107)
> [error]     at org.apache.daffodil.section06.namespaces.TestNamespaces.test_multi_encoding_01(TestNamespaces.scala:150)
> [error]     ...
> [error] Caused by: Schema Definition Error: Error loading schema due to org.xml.sax.SAXParseException; systemId: file:/home/dfdl/incubator-daffodil/daffodil-test/target/scala-2.11/test-classes/org/apache/daffodil/section06/namespaces/multi_base_09.dfdl.xsd; lineNumber: 1; columnNumber: 1; < expected
> [error] Schema context: file:/home/dfdl/incubator-daffodil/daffodil-test/target/scala-2.11/test-classes/org/apache/daffodil/section06/namespaces/multi_base_09.dfdl.xsd Location in file:??
> [debug] Test org.apache.daffodil.section06.namespaces.TestNamespaces.test_multi_encoding_01 finished, took 0.512 sec
>  
> Also these tests:
> [debug] Test org.apache.daffodil.section06.namespaces.TestNamespaces.test_multi_encoding_02 started
> [error] Test org.apache.daffodil.section06.namespaces.TestNamespaces.test_multi_encoding_02 failed:
> [debug] Test org.apache.daffodil.section06.namespaces.TestNamespaces.test_multi_encoding_03 started
> [error] Test org.apache.daffodil.section06.namespaces.TestNamespaces.test_multi_encoding_03 failed:



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)