Description
In 3.3.0-SNAPSHOT
This config file:
<?xml version="1.0"?> <daf:dfdlConfig xmlns:daf="urn:ogf:dfdl:2013:imp:daffodil.apache.org:2018:ext"> <daf:tunables> <daf:suppressSchemaDefinitionWarnings> facetExplicitLengthOutOfRange encodingErrorPolicyError </daf:suppressSchemaDefinitionWarnings> </daf:tunables> </daf:dfdlConfig>
Used with:
daffodil save-parser -c p8config.cfg -s ..... output.bin
Causes this backtrace.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! An unexpected exception occurred. This is a bug! !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Please report this bug and help us fix it: https://daffodil.apache.org/community/#issue-tracker Please include the following exception, the command you ran, and any input, schema, or tdml files used that led to this bug. java.lang.IllegalArgumentException: Unknown tunable: #PCDATA at org.apache.daffodil.api.DaffodilTunables.setTunable(DaffodilTunablesGen.scala:313) at org.apache.daffodil.api.DaffodilTunables.$anonfun$setTunables$1(DaffodilTunablesGen.scala:118) at scala.collection.TraversableOnce$folder$1.apply(TraversableOnce.scala:196) at scala.collection.TraversableOnce$folder$1.apply(TraversableOnce.scala:194) at scala.collection.immutable.Map$Map2.foreach(Map.scala:273) at scala.collection.TraversableOnce.foldLeft(TraversableOnce.scala:199) at scala.collection.TraversableOnce.foldLeft$(TraversableOnce.scala:192) at scala.collection.AbstractTraversable.foldLeft(Traversable.scala:108) at org.apache.daffodil.api.DaffodilTunables.setTunables(DaffodilTunablesGen.scala:118) at org.apache.daffodil.api.DaffodilTunables$.apply(DaffodilTunablesGen.scala:42)
Note that from a TDML file, specifying this same config file as the defaultConfig for a tdml:testSuite works fine. So the config-file itself seems fine. The CLI reader of configs seems to be causing the problem.
defaultConfig="com/owlcyberdefense/p8/p8config.cfg"