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

Error message about malformed top level annotation gives misleading location.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: s7
    • Fix Version/s: s10
    • Component/s: Front End
    • Labels:
      None

      Description

      See test namespace_conflict_01.

      In this test, there is an erroneous top level format annotation. It has prefix:
      xs:format, not dfdl:format.

      That prevents the Daffodil compiler from even constructing the DFDLFormat object. As a consequence, when the error is reported, it is given the file and line number of the existing enclosing schema component, which is the top level xs:schema element.

      As a result, the file and line number are not pointing near the source of the error.

      In the below, line 3 column 64 is the closing ">" of the top xs:schema tag.

      (To fix: well one way is we need a schema component JunkComponent. It should retain file and line number like any schema component.)

      Schema Definition Error: Invalid dfdl annotation found: format Schema context: SchemaDocument. Location line 3 column 64 in file:/home/mbeckerle/Documents/dataiti/git/daffodil/daffodil-test/target/eclipse/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_04.dfdl.xsd
      2013-03-15 18:00:48:247 edu.illinois.ncsa.daffodil.compiler.Compiler Error [Compilation (ProcessorFactory) produced 1 errors/warnings.]
      2013-03-15 18:00:48:248 edu.illinois.ncsa.daffodil.compiler.Compiler Error [Schema Definition Error: Invalid dfdl annotation found: format Schema context: SchemaDocument. Location line 3 column 64 in file:/home/mbeckerle/Documents/dataiti/git/daffodil/daffodil-test/target/eclipse/test-classes/edu/illinois/ncsa/daffodil/section06/namespaces/multi_C_04.dfdl.xsd]

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              jchab Jessie Chab
              Reporter:
              mbeckerle.dfdl Mike Beckerle
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Tasks