You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Dave Thompson (Jira)" <ji...@apache.org> on 2022/03/17 11:13:00 UTC

[jira] [Closed] (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:all-tabpanel ]

Dave Thompson closed DAFFODIL-2650.
-----------------------------------

Verified the specified commit (commit 13342156e6272e7af54304413df96716abfb2392) is included in the latest pull from the daffodil repository.

Verified changes identified in commit comments were implemented.

Verified affected daffodil subproject sbt test suites executes successfully, including the added test.

Verified that the error occurs on a pre-fix commit.

Verified that the error no longer occurs on the fix commit.

Verified the nightly test schemas compile and save successfully.

Verified the nightly test suite executes successfully.

> 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)