You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2013/04/03 23:01:15 UTC

[jira] [Resolved] (UIMA-2798) NPE when primitive AE is added to CpeBuilder

     [ https://issues.apache.org/jira/browse/UIMA-2798?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Eckart de Castilho resolved UIMA-2798.
----------------------------------------------

    Resolution: Fixed

Fixed by using a non-empty delegate key. Added test case.
                
> 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