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

XML Catalog no longer working since latest XML Catalog changes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.2.0
    • 3.2.0
    • TDML Runner
    • None

    Description

      There are 2 schemas that we got from the plc4x project when they were experimenting with DFDL.

      These schemas make use of XML Catalogs.

      If you update their build.sbt to reference 3.2.0-SNAPSHOT, they fail with

      ```

      [info] Test org.apache.plc4x.protocols.knxnetip.ProtocolTest.test_KNXNetIP_Disconnect_Response started
      [error] Test org.apache.plc4x.protocols.knxnetip.ProtocolTest.test_KNXNetIP_Disconnect_Response failed: org.xml.sax.SAXParseException: src-resolve: Cannot resolve the name 'dfdl:format' to a 'element declaration' component., took 0.007 sec
      [error] at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
      [error] at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
      [error] at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
      [error] at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown Source)
      [error] at org.apache.xerces.impl.xs.traversers.XSDHandler.reportSchemaError(Unknown Source)
      [error] at org.apache.xerces.impl.xs.traversers.XSDHandler.getGlobalDecl(Unknown Source)
      [error] at org.apache.xerces.impl.xs.traversers.XSDElementTraverser.traverseLocal(Unknown Source)
      [error] at org.apache.xerces.impl.xs.traversers.XSDHandler.traverseLocalElements(Unknown Source)
      [error] at org.apache.xerces.impl.xs.traversers.XSDHandler.parseSchema(Unknown Source)
      [error] at org.apache.xerces.impl.xs.XMLSchemaLoader.loadSchema(Unknown Source)
      [error] at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
      [error] at org.apache.xerces.impl.xs.XMLSchemaLoader.loadGrammar(Unknown Source)
      [error] at org.apache.xerces.jaxp.validation.XMLSchemaFactory.newSchema(Unknown Source)
      [error] at org.apache.daffodil.validation.XercesValidator.<init>(XercesValidator.scala:81)
      [error] at org.apache.daffodil.validation.XercesValidator$.fromURIs(XercesValidator.scala:134)
      [error] at org.apache.daffodil.xml.DaffodilXMLLoader.$anonfun$load$1(DaffodilXMLLoader.scala:586)
      [error] at org.apache.daffodil.xml.DaffodilXMLLoader.$anonfun$load$1$adapted(DaffodilXMLLoader.scala:584)
      [error] at scala.Option.foreach(Option.scala:407)
      [error] at org.apache.daffodil.xml.DaffodilXMLLoader.load(DaffodilXMLLoader.scala:584)
      [error] at org.apache.daffodil.xml.DaffodilXMLLoader.load(DaffodilXMLLoader.scala:562)

      ```

      If you remove the XML Catalog usage, and replace it with class-path relative names, then the schemas still work. But that shouldn't be necessary of course.

      Attachments

        Activity

          People

            mbeckerle Mike Beckerle
            mbeckerle Mike Beckerle
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: