Mike Beckerle created DAFFODIL-2650:
---------------------------------------

             Summary: using config file with cli save parser causes backtrace
                 Key: DAFFODIL-2650
                 URL: https://issues.apache.org/jira/browse/DAFFODIL-2650
             Project: Daffodil
          Issue Type: Bug
          Components: CLI
    Affects Versions: 3.2.1
            Reporter: Mike Beckerle


 In 3.3.0-SNAPSHOT

This config file:
{code:java}
<?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>
{code}
Used with:
{code:java}
daffodil save-parser -c p8config.cfg -s ..... output.bin{code}
Causes this backtrace.
{code:java}
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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)
{code}
 
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. 
{code:java}
defaultConfig="com/owlcyberdefense/p8/p8config.cfg"
{code}



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

Reply via email to