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

Initialization of annotator class "org.apache.uima.ruta.engine.RutaEngine" failed

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.0ruta
    • Fix Version/s: 2.5.0ruta
    • Component/s: Ruta
    • Labels:
      None

      Description

      I got the error when I use the absolute path to create resource specifier,
      I declared a new type in the script and created a custimzed engine file, when I
      use it to create AE, I got the error:

      code is like:
      ResourceManager resMgr = UIMAFramework.newDefaultResourceManager();
      URL aedesc = new File( customEngineFile ).toURI().toURL();

      XMLInputSource inae = new XMLInputSource( aedesc );
      ResourceSpecifier specifier = UIMAFramework.getXMLParser().parseResourceSpecifier(inae);
      AnalysisEngineDescription aed = (AnalysisEngineDescription) specifier;
      aed.resolveImports(resMgr);
      ae = UIMAFramework.produceAnalysisEngine(aed, resMgr, null);

      org.apache.uima.resource.ResourceInitializationException: Initialization of annotator class "org.apache.uima.ruta.engine.RutaEngine" failed. (Descriptor: file:/Users/xxx/Documents/runtime-xxx/nnn/descriptor/defaultEngine.xml)

        Attachments

          Activity

            People

            • Assignee:
              pkluegl Peter Klügl
              Reporter:
              jmlongriver Min Jiang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: