You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@daffodil.apache.org by "Steve Lawrence (JIRA)" <ji...@apache.org> on 2019/01/14 18:27:00 UTC
[jira] [Updated] (DAFFODIL-2044) Unexpected error on malformed
config file
[ https://issues.apache.org/jira/browse/DAFFODIL-2044?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Lawrence updated DAFFODIL-2044:
-------------------------------------
Fix Version/s: 2.3.0
> Unexpected error on malformed config file
> -----------------------------------------
>
> Key: DAFFODIL-2044
> URL: https://issues.apache.org/jira/browse/DAFFODIL-2044
> Project: Daffodil
> Issue Type: Bug
> Components: CLI
> Affects Versions: 2.1.0
> Reporter: Brandon Sloane
> Assignee: Dave Thompson
> Priority: Major
> Fix For: 2.3.0
>
>
> When daffodil is run with a malformed config file, it reports an unexpected excpetion.
> For instance, on the config:
> {quote}<?xml version="1.0" encoding="UTF-8"?>
> <dfdlConfig xmlns="http://www.w3.org/2001/XMLSchema">
> <externalVariableBindings>
> <bind name="a:b">x</bind>
> </externalVariableBindings>
> </dfdlConfig>
> {quote}
> It outputs:
> {quote}!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> !! 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.
> org.apache.daffodil.xml.QNameUndefinedPrefixException: Undefined QName prefix 'a'
> at org.apache.daffodil.xml.RefQNameFactoryBase$$anonfun$resolveRef$1.apply(QNameBase.scala:481)
> at scala.util.Try$.apply(Try.scala:192)
> at org.apache.daffodil.xml.RefQNameFactoryBase$class.resolveRef(QNameBase.scala:471)
> at org.apache.daffodil.xml.RefQNameFactory$.resolveRef(QNameBase.scala:492)
> at org.apache.daffodil.xml.QName$.resolveRef(QNameBase.scala:111)
> at org.apache.daffodil.externalvars.Binding$.apply(Binding.scala:64)
> at org.apache.daffodil.externalvars.ExternalVariablesLoader$$anonfun$getBindings$1.apply(ExternalVariablesLoader.scala:130)
> at org.apache.daffodil.externalvars.ExternalVariablesLoader$$anonfun$getBindings$1.apply(ExternalVariablesLoader.scala:130)
> at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
> at scala.collection.TraversableLike$$anonfun$map$1.apply(TraversableLike.scala:234)
> at scala.collection.Iterator$class.foreach(Iterator.scala:893)
> at scala.collection.AbstractIterator.foreach(Iterator.scala:1336)
> at scala.collection.IterableLike$class.foreach(IterableLike.scala:72)
> at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
> at scala.collection.TraversableLike$class.map(TraversableLike.scala:234)
> at scala.collection.AbstractTraversable.map(Traversable.scala:104)
> at org.apache.daffodil.externalvars.ExternalVariablesLoader$.getBindings(ExternalVariablesLoader.scala:130)
> at org.apache.daffodil.externalvars.ExternalVariablesLoader$.getVariables(ExternalVariablesLoader.scala:60)
> at org.apache.daffodil.Main$.retrieveExternalVariables(Main.scala:627)
> at org.apache.daffodil.Main$.run(Main.scala:821)
> at org.apache.daffodil.Main$.main(Main.scala:1297)
> at org.apache.daffodil.Main.main(Main.scala)
> {quote}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)