An exception was found when accidentally using the -c option for the input data. For example:
daffodil parse -s ../examples/pcap/pcap.dfdl.xsd -c ../examples/pcap/dns.cap
|
Results in the following exception:
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
!! An unexpected exception occurred. This is a bug! !!
|
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
|
Please report this bug and help us fix it:
|
|
https://opensource.ncsa.illinois.edu/confluence/display/DFDL/How+to+Report+a+B
|
ug
|
|
Please include the following exception, the command you
|
ran, and any input, schema, or tdml files used that led
|
to this bug.
|
|
|
java.nio.charset.MalformedInputException: Input length = 1
|
at java.nio.charset.CoderResult.throwException(CoderResult.java:288)
|
at sun.nio.cs.StreamDecoder.implRead(StreamDecoder.java:377)
|
at sun.nio.cs.StreamDecoder.read(StreamDecoder.java:210)
|
at java.io.InputStreamReader.read(InputStreamReader.java:205)
|
at java.io.BufferedReader.fill(BufferedReader.java:165)
|
at java.io.BufferedReader.read(BufferedReader.java:186)
|
at scala.io.BufferedSource$$anonfun$iter$1$$anonfun$apply$mcI$sp$1.apply
|
$mcI$sp(BufferedSource.scala:38)
|
at scala.io.Codec.wrap(Codec.scala:68)
|
at scala.io.BufferedSource$$anonfun$iter$1.apply(BufferedSource.scala:38
|
)
|
at scala.io.BufferedSource$$anonfun$iter$1.apply(BufferedSource.scala:38
|
)
|
at scala.collection.Iterator$$anon$9.next(Iterator.scala:162)
|
at scala.collection.Iterator$$anon$17.hasNext(Iterator.scala:511)
|
at scala.collection.Iterator$$anon$11.hasNext(Iterator.scala:327)
|
at scala.io.Source.hasNext(Source.scala:226)
|
at scala.xml.parsing.MarkupParser$class.ch(MarkupParser.scala:104)
|
at scala.xml.parsing.ConstructingParser.ch(ConstructingParser.scala:47)
|
at scala.xml.parsing.MarkupParser$class.document(MarkupParser.scala:221)
|
|
at scala.xml.parsing.ConstructingParser.document(ConstructingParser.scal
|
a:47)
|
at edu.illinois.ncsa.daffodil.configuration.ConfigurationLoader$.getConf
|
iguration(ConfigurationLoader.scala:61)
|
at edu.illinois.ncsa.daffodil.configuration.ConfigurationLoader$.getConf
|
iguration(ConfigurationLoader.scala:68)
|
at edu.illinois.ncsa.daffodil.Main$.loadConfigurationFile(Main.scala:498
|
)
|
at edu.illinois.ncsa.daffodil.Main$.run(Main.scala:642)
|
at edu.illinois.ncsa.daffodil.Main$.main(Main.scala:1075)
|
at edu.illinois.ncsa.daffodil.Main.main(Main.scala)
|