Uploaded image for project: 'UIMA'
  1. UIMA
  2. UIMA-5460

NPE in PearAnalysisEngineWrapper.createRM

    XMLWordPrintableJSON

Details

    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

      Attachments

        Activity

          People

            schor Marshall Schor
            aledb Alessandro Di Bari
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: