You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Peter Klügl (JIRA)" <de...@uima.apache.org> on 2015/09/22 09:00:14 UTC
[jira] [Assigned] (UIMA-4605) Initialization of annotator class
"org.apache.uima.ruta.engine.RutaEngine" failed
[ https://issues.apache.org/jira/browse/UIMA-4605?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Peter Klügl reassigned UIMA-4605:
---------------------------------
Assignee: Peter Klügl
> Initialization of annotator class "org.apache.uima.ruta.engine.RutaEngine" failed
> ---------------------------------------------------------------------------------
>
> Key: UIMA-4605
> URL: https://issues.apache.org/jira/browse/UIMA-4605
> Project: UIMA
> Issue Type: Bug
> Components: ruta
> Affects Versions: 2.3.0ruta
> Reporter: Min Jiang
> Assignee: Peter Klügl
>
> 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)
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)