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 2022/03/10 23:05:00 UTC

[jira] [Commented] (DAFFODIL-2650) using config file with cli parse or save parser causes backtrace

    [ https://issues.apache.org/jira/browse/DAFFODIL-2650?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17504645#comment-17504645 ] 

Mike Beckerle commented on DAFFODIL-2650:
-----------------------------------------

PR https://github.com/apache/daffodil/pull/771

> using config file with cli parse or 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
>            Assignee: Mike Beckerle
>            Priority: Blocker
>             Fix For: 3.3.0
>
>
>  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)