Bug #3547
closedCollectionReader actor throws exception when input file contains Metadata or Parameter elements
0%
Description
The CollectionReader actor reads in an XML representation of the input to a COMAD workflow and translates the Collection, Data, Metadata, Parameter elements etc into tokens that serve as input to the rest of a workflow.
A bug has emerged that prevents these input files from containing Metadata or Parameter elements. The exception thrown for a Parameter element is:
java.lang.NullPointerException
at org.kepler.util.AnnotationSet.addMetadata(AnnotationSet.java:195)
at org.kepler.util.CollectionXmlImporter._insertMetadataElement(CollectionXmlImporter.java:423)
at org.kepler.util.CollectionXmlImporter.insertChildElements(CollectionXmlImporter.java:192)
at org.kepler.coactors.CollectionReader._insertTopLevelElements(CollectionReader.java:156)
at org.kepler.coactors.CollectionSource.fire(CollectionSource.java:100)
at ptolemy.actor.process.ProcessThread.run(ProcessThread.java:199)