You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org> on 2009/09/08 15:40:57 UTC
[jira] Created: (UIMA-1558) LuceneCASIndexerTest fails if the
created LuceneCASIndexer procsess a CAS
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.
[jira] Closed: (UIMA-1558) LuceneCASIndexerTest fails if the
created LuceneCASIndexer procsess a CAS
Posted by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jörn Kottmann closed UIMA-1558.
-------------------------------
Resolution: Fixed
Thanks for the patch Rico.
> 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
>
> Attachments: UIMA-1558-1.patch, UIMA-1558.patch
>
>
> 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.
[jira] Commented: (UIMA-1558) LuceneCASIndexerTest fails if the
created LuceneCASIndexer procsess a CAS
Posted by "Rico Landefeld (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753075#action_12753075 ]
Rico Landefeld commented on UIMA-1558:
--------------------------------------
Sorry, there is already a MappingFileReaderTest.xml which is used for the MappingFileReaderTest test. So we have to use correct filters for the LucasCASIndexerTest.
> 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.
[jira] Commented: (UIMA-1558) LuceneCASIndexerTest fails if the
created LuceneCASIndexer procsess a CAS
Posted by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753129#action_12753129 ]
Jörn Kottmann commented on UIMA-1558:
-------------------------------------
I disabled the testProloadResources test, should be repaired before this issue can be closed.
> 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
>
> Attachments: UIMA-1558.patch
>
>
> 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.
[jira] Commented: (UIMA-1558) LuceneCASIndexerTest fails if the
created LuceneCASIndexer procsess a CAS
Posted by "Rico Landefeld (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752538#action_12752538 ]
Rico Landefeld commented on UIMA-1558:
--------------------------------------
The type system is already defined in src/test/resources/AnnotationTokenStreamTestTypeSystem.xml. Only the reference in lucas.xml is obsolete.
> 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.
[jira] Updated: (UIMA-1558) LuceneCASIndexerTest fails if the
created LuceneCASIndexer procsess a CAS
Posted by "Rico Landefeld (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rico Landefeld updated UIMA-1558:
---------------------------------
Attachment: UIMA-1558.patch
This patch replaces the the mock filters in lucas.xml with existing filters.
> 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
>
> Attachments: UIMA-1558.patch
>
>
> 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.
[jira] Commented: (UIMA-1558) LuceneCASIndexerTest fails if the
created LuceneCASIndexer procsess a CAS
Posted by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752540#action_12752540 ]
Jörn Kottmann commented on UIMA-1558:
-------------------------------------
ok, but then the type system must be referenced from the LuceneCASIndexer.xml file.
> 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.
[jira] Commented: (UIMA-1558) LuceneCASIndexerTest fails if the
created LuceneCASIndexer procsess a CAS
Posted by "Rico Landefeld (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753066#action_12753066 ]
Rico Landefeld commented on UIMA-1558:
--------------------------------------
The problem is that the referenced lucas.xml file was written to test the MappingFileReader and not to provide a working real-life example. We can either change the MappingFileReader unit test to use existing filters or we create a working example-lucas.xml file.
> 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.
[jira] Updated: (UIMA-1558) LuceneCASIndexerTest fails if the
created LuceneCASIndexer procsess a CAS
Posted by "Rico Landefeld (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Rico Landefeld updated UIMA-1558:
---------------------------------
Attachment: UIMA-1558-1.patch
Enables the testPreloadResources test.
> 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
>
> Attachments: UIMA-1558-1.patch, UIMA-1558.patch
>
>
> 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.
[jira] Commented: (UIMA-1558) LuceneCASIndexerTest fails if the
created LuceneCASIndexer procsess a CAS
Posted by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753070#action_12753070 ]
Jörn Kottmann commented on UIMA-1558:
-------------------------------------
Then lets rename the current lucas.xml to mappingFileReaderTest.xml and create a new example-lucas.xml file, which can be used by the LucasCASIndexerTest.
> 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.
[jira] Commented: (UIMA-1558) LuceneCASIndexerTest fails if the
created LuceneCASIndexer procsess a CAS
Posted by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org>.
[ https://issues.apache.org/jira/browse/UIMA-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753083#action_12753083 ]
Jörn Kottmann commented on UIMA-1558:
-------------------------------------
The testPreloadResources test fails now, not sure how it should be fixed. Can you please provide a patch for it ?
> 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
>
> Attachments: UIMA-1558.patch
>
>
> 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.
[jira] Commented: (UIMA-1558) LuceneCASIndexerTest fails if the
created LuceneCASIndexer procsess a CAS
Posted by "Jörn Kottmann (JIRA)" <ui...@incubator.apache.org>.
[ 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.