You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2021/01/15 23:23:00 UTC

[jira] [Updated] (DAFFODIL-718) Multifile Schemas: Repetitive errors when SDE somewhere in the schema chain

     [ https://issues.apache.org/jira/browse/DAFFODIL-718?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dave Thompson updated DAFFODIL-718:
-----------------------------------
    Labels:   (was: reverify)

> Multifile Schemas: Repetitive errors when SDE somewhere in the schema chain
> ---------------------------------------------------------------------------
>
>                 Key: DAFFODIL-718
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-718
>             Project: Daffodil
>          Issue Type: Bug
>          Components: Diagnostics, Usability
>            Reporter: Jessie Chab
>            Priority: Minor
>          Time Spent: 8m
>
> I created a schema chain:
> base schema: 
>  rabbitHole - sequence of elements - ref is a13:nestSequence
> Schema A:
>  nestSequence - sequence of elements - ref is b13:nest
> Schema B:
>  nest - element - type is c13:nestType
> Schema C:
>  nestType - simpleType - restriction base is xs:nonExistent
> I get a lot of identical errors. I thought maybe there's a message for each stage of the chain, but there appear to be more. In this case would we want an error message for each object in the chain? For example, in the output for test_combinations_02, there are two errors: one for the element that references the invalid format, and one for the format:
> 2013-05-17 07:48:30:666  edu.illinois.ncsa.daffodil.compiler.ProcessorFactory Error:{color:red}[Schema Definition Error: Unknown time zone '5 o'clock somewhere'
> Schema context: element.date2. Location line 16 column 140 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_B_06.dfdl.xsd.{color}]
> 2013-05-17 07:48:30:667  edu.illinois.ncsa.daffodil.compiler.ProcessorFactory Error[{color:red}Schema Definition Error: Property calendarTimeZone defined as '5 o'clock somewhere'.
> Schema context: SchemaDocument::DFDLFormat. Location line 16 column 77 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/subfolder/multi_C_06_nons.dfdl.xsd.{color}]
> 2013-05-17 07:48:30:667  edu.illinois.ncsa.daffodil.tdml.ParserTestCase Error[Schema Definition Error: Unknown time zone '5 o'clock somewhere'
> Schema context: element.date2. Location line 16 column 140 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_B_06.dfdl.xsd.]
> 2013-05-17 07:48:30:667  edu.illinois.ncsa.daffodil.tdml.ParserTestCase Error[Schema Definition Error: Property calendarTimeZone defined as '5 o'clock somewhere'.
> Schema context: SchemaDocument::DFDLFormat. Location line 16 column 77 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/subfolder/multi_C_06_nons.dfdl.xsd.]
> ----
> Output for errorLocations_01:
> [error] Test edu.illinois.ncsa.daffodil.section06.namespaces.TestNamespaces.test_errorLocations_01 failed: java.lang.Exception: Schema Definition Error: Type {http://www.w3.org/2001/XMLSchema}nonExistent is not an XSD primitive type.
> [error] Schema context: simpleType.nestType. Location line 12 column 34 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_13.dfdl.xsd.
> [error] Schema Definition Error: Type {http://www.w3.org/2001/XMLSchema}nonExistent is not an XSD primitive type.
> [error] Schema context: simpleType.nestType. Location line 12 column 34 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_13.dfdl.xsd.
> [error] Schema Definition Error: Type {http://www.w3.org/2001/XMLSchema}nonExistent is not an XSD primitive type.
> [error] Schema context: simpleType.nestType. Location line 12 column 34 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_13.dfdl.xsd.
> [error] Schema Definition Error: Type {http://www.w3.org/2001/XMLSchema}nonExistent is not an XSD primitive type.
> [error] Schema context: simpleType.nestType. Location line 12 column 34 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_13.dfdl.xsd.
> [error] Schema Definition Error: Type {http://www.w3.org/2001/XMLSchema}nonExistent is not an XSD primitive type.
> [error] Schema context: simpleType.nestType. Location line 12 column 34 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_13.dfdl.xsd.
> [error] Schema Definition Error: Type {http://www.w3.org/2001/XMLSchema}nonExistent is not an XSD primitive type.
> [error] Schema context: simpleType.nestType. Location line 12 column 34 in file:/home/jchab/NGF/dfdl/daffodil-test/target/scala-2.10/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_13.dfdl.xsd.
> [error]     at edu.illinois.ncsa.daffodil.tdml.ParserTestCase.runParseExpectSuccess(TDMLRunner.scala:546)
> [error]     at edu.illinois.ncsa.daffodil.tdml.ParserTestCase.runProcessor(TDMLRunner.scala:444)
> [error]     at edu.illinois.ncsa.daffodil.tdml.TestCase.run(TDMLRunner.scala:393)
> [error]     at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTestWithDataVolumes(TDMLRunner.scala:256)
> [error]     at edu.illinois.ncsa.daffodil.tdml.DFDLTestSuite.runOneTest(TDMLRunner.scala:247)
> [error]     at edu.illinois.ncsa.daffodil.section06.namespaces.TestNamespaces.test_errorLocations_01(TestNamespaces.scala:87)
> [error]     ...



--
This message was sent by Atlassian Jira
(v8.3.4#803005)