You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2021/06/02 17:29:00 UTC
[jira] [Assigned] (DAFFODIL-2529) XML Catalog no longer working
since latest XML Catalog changes
[ https://issues.apache.org/jira/browse/DAFFODIL-2529?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Beckerle reassigned DAFFODIL-2529:
---------------------------------------
Assignee: Mike Beckerle
> XML Catalog no longer working since latest XML Catalog changes
> --------------------------------------------------------------
>
> Key: DAFFODIL-2529
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2529
> Project: Daffodil
> Issue Type: Bug
> Components: TDML Runner
> Affects Versions: 3.2.0
> Reporter: Mike Beckerle
> Assignee: Mike Beckerle
> Priority: Major
>
> 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(n) '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.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)