Alessandro Di Bari created UIMA-5460:
----------------------------------------

             Summary: 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


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