Occasionally I am getting a NullPointerException in DependencyUtility.java.  
Seems to stem from this line where the possibility of a null Head value looks 
to the be cause - "if (id1==id2 || 
anodes.get(id1).getId()!=anodes.get(id2).getHead().getId()) {"


Here's the full error message -


org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl 
processAndOutputNewCASes(275)
SEVERE: Exception occurred
org.apache.uima.analysis_engine.AnalysisEngineProcessException: Annotator 
processing failed.
                at 
org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:391)
                at 
org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:296)
                at 
org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:567)
                at 
org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:409)
                at 
org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:342)
                at 
org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:267)
                at 
org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.processUntilNextOutputCas(ASB_impl.java:567)
                at 
org.apache.uima.analysis_engine.asb.impl.ASB_impl$AggregateCasIterator.<init>(ASB_impl.java:409)
                at 
org.apache.uima.analysis_engine.asb.impl.ASB_impl.process(ASB_impl.java:342)
                at 
org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.processAndOutputNewCASes(AggregateAnalysisEngine_impl.java:267)
                at 
org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:267)
                at 
org.apache.uima.fit.pipeline.SimplePipeline.runPipeline(SimplePipeline.java:95)
                at 
org.apache.ctakes.core.pipeline.PipelineBuilder.run(PipelineBuilder.java:231)
                at 
org.ccf.hpcrunner.ProcessDirBuilderRunner.main(ProcessDirBuilderRunner.java:311)
Caused by: java.lang.NullPointerException
                at 
org.apache.ctakes.dependency.parser.util.DependencyUtility.getNominalHeadNode(DependencyUtility.java:137)
                at 
org.apache.ctakes.dependency.parser.util.DependencyUtility.getNominalHeadNode(DependencyUtility.java:116)
                at 
org.apache.ctakes.assertion.medfacts.cleartk.extractors.NegationDependencyFeatureExtractor.extract(NegationDependencyFeatureExtractor.java:58)
                at 
org.apache.ctakes.assertion.medfacts.cleartk.extractors.NegationDependencyFeatureExtractor.extract(NegationDependencyFeatureExtractor.java:35)
                at 
org.apache.ctakes.assertion.medfacts.cleartk.AssertionCleartkAnalysisEngine.process(AssertionCleartkAnalysisEngine.java:475)
                at 
org.apache.uima.analysis_component.JCasAnnotator_ImplBase.process(JCasAnnotator_ImplBase.java:48)
                at 
org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:375)
                ... 13 more


[cid:image001.jpg@01D2AFAE.E17B2500]

Alex Milinovich  |  System Analyst III  |  Quantitative Health Sciences
9500 Euclid Ave. - JJN3 | Cleveland, OH 44195 | p: (216) 444-9931 | m: (216) 
245-7655




===================================


 Please consider the environment before printing this e-mail

Cleveland Clinic is ranked as one of the top hospitals in America by U.S.News & 
World Report (2015).  
Visit us online at http://www.clevelandclinic.org for a complete listing of our 
services, staff and locations.


Confidentiality Note:  This message is intended for use only by the individual 
or entity to which it is addressed and may contain information that is 
privileged, confidential, and exempt from disclosure under applicable law.  If 
the reader of this message is not the intended recipient or the employee or 
agent responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited.  If you have received this communication 
in error,  please contact the sender immediately and destroy the material in 
its entirety, whether electronic or hard copy.  

Thank you.

Reply via email to