Richard Eckart de Castilho created UIMA-2798:
------------------------------------------------

             Summary: NPE when primitive AE is added to CpeBuilder
                 Key: UIMA-2798
                 URL: https://issues.apache.org/jira/browse/UIMA-2798
             Project: UIMA
          Issue Type: Bug
          Components: uimaFIT
            Reporter: Richard Eckart de Castilho
            Assignee: Richard Eckart de Castilho
             Fix For: 2.0.0uimaFIT


If the a single primitive AE is added to the CpeBuilder, a NPE is triggered:

{noformat}
org.apache.uima.resource.ResourceInitializationException
        at 
org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:83)
        at 
org.apache.uima.impl.UIMAFramework_impl._produceCollectionProcessingEngine(UIMAFramework_impl.java:420)
        at 
org.apache.uima.UIMAFramework.produceCollectionProcessingEngine(UIMAFramework.java:922)
        at org.apache.uima.fit.factory.CpeBuilder.createCpe(CpeBuilder.java:127)
        at 
org.apache.uima.fit.factory.CpeBuilderTest.testSinglePrimitiveAE(CpeBuilderTest.java:45)
        ...
Caused by: org.apache.uima.resource.ResourceConfigurationException
        at 
org.apache.uima.collection.impl.cpm.container.CPEFactory.getCasProcessors(CPEFactory.java:601)
        at 
org.apache.uima.collection.impl.cpm.BaseCPMImpl.init(BaseCPMImpl.java:253)
        at 
org.apache.uima.collection.impl.cpm.BaseCPMImpl.<init>(BaseCPMImpl.java:127)
        at 
org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:75)
        ... 27 more
Caused by: java.lang.NullPointerException
        at java.util.Hashtable.hash(Hashtable.java:262)
        at java.util.Hashtable.containsKey(Hashtable.java:432)
        at 
org.apache.uima.collection.impl.cpm.container.CPEFactory.getCasProcessors(CPEFactory.java:507)
        ... 30 more
{noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to