Project

General

Profile

Bug #3547

CollectionReader actor throws exception when input file contains Metadata or Parameter elements

Added by Timothy McPhillips over 10 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Category:
general
Target version:
Start date:
10/22/2008
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
3547

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)

History

#1 Updated by Timothy McPhillips over 10 years ago

The problem was that AnnotationSet was trying to record invocation dependencies implied by the addition of annotations or metadata to the set and store this information in the collection containing the annotated item. But this collection is not defined when CollectionReader is importing metadata elements from an input XML file because the class builds up a list of annotations to apply to the next collection or data element and before actually encountering that element in the input file. Simply avoiding the recording of these invocation dependencies when the collection is undefined fixes the problem; because no invocation dependencies are implied by importing elements from an input xml file anyway, this fix should not cause other problems.

#2 Updated by Redmine Admin about 6 years ago

Original Bugzilla ID was 3547

Also available in: Atom PDF