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

Marshall Schor resolved UIMA-5460.
----------------------------------
       Resolution: Fixed
         Assignee: Marshall Schor
    Fix Version/s: 3.0.0SDK-beta
                   2.10.1SDK

> NPE in PearAnalysisEngineWrapper.createRM
> -----------------------------------------
>
>                 Key: UIMA-5460
>                 URL: https://issues.apache.org/jira/browse/UIMA-5460
>             Project: UIMA
>          Issue Type: Bug
>          Components: Core Java Framework
>    Affects Versions: 2.10.0SDK
>            Reporter: Alessandro Di Bari
>            Assignee: Marshall Schor
>             Fix For: 2.10.1SDK, 3.0.0SDK-beta
>
>
> The method CreateRM in the class PearAnalysisEngineWrapper throws an NPE on 
> line 122:
> rsrcMgr.setCasManager(parentResourceManager.getCasManager());
> because parentResourceManager is NULL.
> In my case, I have seen this exception in 2 cases:
> 1) When datapath was not set in the PEAR (or in the context)
> 2) When my PEAR was referring another PEAR
> I guess this is also the case documented in the code itself where it says 
> that parentResourceManager CAN be NULL (indeed the NULL on that parameter is 
> also previously checked in the code...).
> // could be null for top level Pear not in an aggregate
>  



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to