You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Marshall Schor (JIRA)" <de...@uima.apache.org> on 2017/08/18 18:51:00 UTC

[jira] [Closed] (UIMA-5460) NPE in PearAnalysisEngineWrapper.createRM

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

Marshall Schor closed UIMA-5460.
--------------------------------

> 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)