Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
2.10.0SDK
-
None
Description
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