Description
During the nightly performance run, when running daffodil save-parser to compile and save the ATO schema to .bin parser file the following StackOverflowError exception occurs.
Partial trace is below and the full trace is attached.
Exception in thread "main" java.lang.StackOverflowError
at java.lang.Exception.<init>(Exception.java:102)
at java.lang.ReflectiveOperationException.<init>(ReflectiveOperationException.java:89)
at java.lang.reflect.InvocationTargetException.<init>(InvocationTargetException.java:72)
at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
:
:
When the .xsd file is used to execute the nightly ATO tests the following Errors occurred:
********************************************
Error Running test with ato.dfdl.xsd
********************************************
(1) Error running test ato_1t_8k_1000 (1 of 1)
Error running ato_1t_8k_1000 on "Host (RHEL6 x64 12 cpu 96GB)":
[error] Schema Definition Error: Error loading schema due to org.xml.sax.SAXParseException; lineNumber: 82; columnNumber: 80; cvc-pattern-valid: Value ' ' is not facet-valid with respect to pattern '\S+' for type 'NonEmptyStringLiteral'.
[error] Schema Definition Error: Error loading schema due to org.xml.sax.SAXParseException; lineNumber: 82; columnNumber: 80; cvc-attribute.3: The value ' ' of attribute 'textStringPadCharacter' on element 'dfdl:format' is not valid with respect to its type, 'NonEmptyStringLiteral'.
[error] Schema Definition Error: Error loading schema due to org.xml.sax.SAXParseException; systemId: file:/home/dfdl/dfdl-dataformats/data-formats/usmtf/src/main/resources/ato/DefaultProperties.xsd; lineNumber: 82; columnNumber: 80; cvc-pattern-valid: Value ' ' is not facet-valid with respect to pattern '\S+' for type 'NonEmptyStringLiteral'.
[error] Schema Definition Error: Error loading schema due to org.xml.sax.SAXParseException; systemId: file:/home/dfdl/dfdl-dataformats/data-formats/usmtf/src/main/resources/ato/DefaultProperties.xsd; lineNumber: 82; columnNumber: 80; cvc-attribute.3: The value ' ' of attribute 'textStringPadCharacter' on element 'dfdl:format' is not valid with respect to its type, 'NonEmptyStringLiteral'.
[error] Schema Definition Error: Error loading schema due to org.xml.sax.SAXParseException; systemId: file:/home/dfdl/dfdl-dataformats/data-formats/usmtf/src/main/resources/ato/DefaultProperties.xsd; lineNumber: 82; columnNumber: 80; cvc-pattern-valid: Value ' ' is not facet-valid with respect to pattern '\S+' for type 'NonEmptyStringLiteral'.
[error] Schema Definition Error: Error loading schema due to org.xml.sax.SAXParseException; systemId: file:/home/dfdl/dfdl-dataformats/data-formats/usmtf/src/main/resources/ato/DefaultProperties.xsd; lineNumber: 82; columnNumber: 80; cvc-attribute.3: The value ' ' of attribute 'textStringPadCharacter' on element 'dfdl:format' is not valid with respect to its type, 'NonEmptyStringLiteral'.
Rolled commit back to the previous commit and the exception does not occur.
Got the same exception using schema from nighty performance test data and from dfdl-schema usmtf - ato repo.