NOTE: reporting minor issue with ModelXmlParser

0 views
Skip to first unread message

Emily Greenfest-Allen

unread,
Sep 13, 2011, 10:36:46 AM9/13/11
to strategies...@googlegroups.com
Hi all-

As I migrate the BCBC project from WDK 1.28 to WKD 2.1, I'm going to
periodically send messages to this users group w/issues I run into while
doing the transition that it might be useful for you to be aware of. In
most cases (as with this one) these are problems I worked through on my
own, so I don't need any assistance. I will do my best to make a clear
distinction between these sorts of reports and pleas for help.

When running wdkXml, my model failed to parse due to an issue with a
misspelled parameter name referenced in an answer filter instance. The
full error is pasted below.

I resolved the issue by tracing through AnswerFilterInstance.java to
determine the problem, but it would be nice if you could catch this and
print out an error message that references the XML file and line being
parsed.

-Emily

--------------------------------------------------------

1 [DEBUG] org.gusdb.wdk.model.WdkModel:80 - Constructing wdk model
[GenomicsBC] (GUS_HOME=/www/allenem.bc.genomics.upenn.edu/gus_home);
called by org.gusdb.wdk.model.ModelXmlParser
578 [DEBUG] org.gusdb.wdk.model.ModelXmlParser:92 - Parsing model...
700 [DEBUG] org.gusdb.wdk.model.ModelXmlParser:104 - Validating model
files...
742 [DEBUG] org.gusdb.wdk.model.ModelXmlParser:108 - Combining &
preparing DOM...
1025 [DEBUG] org.gusdb.wdk.model.ModelXmlParser:137 - Parsing model DOM...
Exception in thread "Main Thread" java.lang.NullPointerException
at
org.gusdb.wdk.model.AnswerFilterInstance.resolveReferences(AnswerFilterInstance.java:251)
at
org.gusdb.wdk.model.AnswerFilter.resolveReferences(AnswerFilter.java:110)
at
org.gusdb.wdk.model.RecordClass.resolveFilterReferences(RecordClass.java:651)
at
org.gusdb.wdk.model.RecordClass.resolveReferences(RecordClass.java:501)
at
org.gusdb.wdk.model.RecordClassSet.resolveReferences(RecordClassSet.java:81)
at
org.gusdb.wdk.model.WdkModel.resolveReferences(WdkModel.java:597)
at org.gusdb.wdk.model.WdkModel.configure(WdkModel.java:495)
at
org.gusdb.wdk.model.ModelXmlParser.parseModel(ModelXmlParser.java:142)
at org.gusdb.wdk.model.WdkModel.construct(WdkModel.java:84)
at
org.gusdb.wdk.model.ModelXmlParser.main(ModelXmlParser.java:772)

Reply all
Reply to author
Forward
0 new messages