[
https://issues.apache.org/jira/browse/UIMA-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753061#action_12753061
]
Jörn Kottmann commented on UIMA-1558:
-------------------------------------
Type system is now referenced correctly and lucas.xml is updated, but now this
exception is thrown:
org.apache.uima.analysis_engine.AnalysisEngineProcessException
at
org.apache.uima.lucas.consumer.LuceneCASIndexer.process(LuceneCASIndexer.java:241)
at
org.apache.uima.analysis_component.CasAnnotator_ImplBase.process(CasAnnotator_ImplBase.java:56)
at
org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:375)
at
org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:297)
at
org.apache.uima.analysis_engine.impl.AnalysisEngineImplBase.process(AnalysisEngineImplBase.java:267)
at
org.apache.uima.lucas.consumer.LuceneCASIndexerTest.testIndexOneDocument(LuceneCASIndexerTest.java:144)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
at
org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
at
org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
at
org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
at
org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
at
org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
at
org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
at
org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
at
org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
at
org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:46)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:467)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:683)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:390)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:197)
Caused by: org.apache.uima.lucas.indexer.FilterBuildingException: No factory
registered for testFilterAnnotation. Please provide a factory at line 33
at
org.apache.uima.lucas.indexer.FilterBuilder.createException(FilterBuilder.java:153)
at
org.apache.uima.lucas.indexer.FilterBuilder.filter(FilterBuilder.java:60)
at
org.apache.uima.lucas.consumer.LuceneCASIndexer.process(LuceneCASIndexer.java:217)
... 27 more
Can you please have a look ?
> LuceneCASIndexerTest fails if the created LuceneCASIndexer procsess a CAS
> -------------------------------------------------------------------------
>
> Key: UIMA-1558
> URL: https://issues.apache.org/jira/browse/UIMA-1558
> Project: UIMA
> Issue Type: Bug
> Components: Sandbox-Lucas
> Reporter: Jörn Kottmann
> Assignee: Rico Landefeld
> Priority: Minor
> Fix For: 2.3S
>
>
> The instance of LuceneCASIndexer created in the setUp method throws an
> exception if it processes a CAS, because
> the lucas.xml file defines mappings for non-existing types.
> To fix the issue, a type system should be defined and the type names in
> lucas.xml should be renamed
> to apache name space (instead of julie lab).
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.