Uploaded image for project: 'Daffodil'
  1. Daffodil
  2. DAFFODIL-2551

Get a StackOverflowError when using daffodil save-parser to compile/save ATO schema to parser.bin file

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 3.2.0
    • 3.2.0
    • General
    • None

    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.

       

      Attachments

        1. SaveATOParserExceptionTrace.txt
          78 kB
          Dave Thompson

        Activity

          People

            slawrence Steve Lawrence
            dfthompson Dave Thompson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: