Claude Mamo created DAFFODIL-2950:
-------------------------------------
Summary: Regression in v3.9 when validation mode is Full:
"java.lang.IllegalArgumentException: URI is not absolute"
Key: DAFFODIL-2950
URL: https://issues.apache.org/jira/browse/DAFFODIL-2950
Project: Daffodil
Issue Type: Bug
Affects Versions: 3.9.0
Reporter: Claude Mamo
I've updated to Daffodil 3.9 from v3.8 and got the following error when
validation mode is Full:
{code:java}
java.lang.IllegalArgumentException: URI is not absolute
at java.base/java.net.URL.fromURI(URL.java:692)
at java.base/java.net.URI.toURL(URI.java:1116)
at
org.apache.daffodil.lib.validation.XercesValidator$.$anonfun$fromURIs$1(XercesValidator.scala:141)
at
scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:286)
at
scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
at
scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
at scala.collection.TraversableLike.map(TraversableLike.scala:286)
at scala.collection.TraversableLike.map$(TraversableLike.scala:279)
at scala.collection.AbstractTraversable.map(Traversable.scala:108)
at
org.apache.daffodil.lib.validation.XercesValidator$.fromURIs(XercesValidator.scala:140)
at
org.apache.daffodil.lib.validation.XercesValidator$.fromFiles(XercesValidator.scala:150)
at
org.apache.daffodil.lib.validation.XercesValidatorFactory$.makeValidator(XercesValidator.scala:60)
at
org.apache.daffodil.runtime1.processors.DataProcessor.withValidationMode(DataProcessor.scala:232)
at
org.apache.daffodil.japi.DataProcessor.withValidationMode(Daffodil.scala:494)
{code}
I've stepped through the v3.9 code and the URI in question is "/csv.dfdl.xsd".
Daffodil complains that there's no scheme present. When I stepped through the
v3.8 code, the URI was
"file:/home/scm/smooks-dfdl-cartridge/target/test-classes/csv.dfdl.xsd" and not
just "/csv.dfdl.xsd".
--
This message was sent by Atlassian Jira
(v8.20.10#820010)