You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Marshall Schor <ms...@schor.com> on 2007/11/01 20:26:31 UTC

Re: Exception in a pipeline with more than one document to analize

Roberto Franchini wrote:
> On 10/30/07, Marshall Schor <ms...@schor.com> wrote:
>   
>> Thanks Roberto -
>>
>> Upon further investigation - it appears to be a synchronization
>> problem.  I was incorrect in saying that the implementation assumes
>> "that the JCas has been previously initialized for this type (which was
>> not "loadable" when the JCas was initialized earlier)."  There is in
>> fact code to handle this case.  But it appears it may not be threadsafe.
>>
>>     
>
> Oh, threads... World would be a better place without threads :)
> Tell me if I can help you in some way. I can switch to the snapshots
> or build uima's jars from scratch.
>   
Jira issue 607 fixes this problem, I think.  If you can, please build
from the latest SVN and see if this fixes things.

I created a test case before fixing things, and got it to fail, and now,
after the changes, it runs.

-Marshall


Re: Exception in a pipeline with more than one document to analize

Posted by Marshall Schor <ms...@schor.com>.
Yay !  :-) 

My laptop has been down most of yesterday, so I've fallen behind -- 
hope to get the test fixed (maybe this weekend, at this rate...)  -Marshall

Roberto Franchini wrote:
> On 11/6/07, Roberto Franchini <ro...@gmail.com> wrote:
>   
>> On 11/6/07, Thilo Goetz <tw...@gmx.de> wrote:
>>     
>>> Yes, the test is known not to run on Linux.
>>> Marshall is working on that.
>>>       
>> Ok, I'll comment it.
>>
>>     
>
> IT WORKS!
> Thank you all! Yesterday night I ran my pipeline on more than 500
> documents and all was fine.
> Roberto
>
>   


Re: Exception in a pipeline with more than one document to analize

Posted by Roberto Franchini <ro...@gmail.com>.
On 11/6/07, Roberto Franchini <ro...@gmail.com> wrote:
> On 11/6/07, Thilo Goetz <tw...@gmx.de> wrote:
> > Yes, the test is known not to run on Linux.
> > Marshall is working on that.
>
> Ok, I'll comment it.
>

IT WORKS!
Thank you all! Yesterday night I ran my pipeline on more than 500
documents and all was fine.
Roberto

-- 
Roberto Franchini
CELI s.r.l.  (http://www.celi.it) - C.so Moncalieri 21 - 10131 Torino - ITALY
Tel +39-011-6600814 - Fax +39-011-6600687
jabber:ro.franchini@gmail.com skype:ro.franchini

Re: Exception in a pipeline with more than one document to analize

Posted by Roberto Franchini <ro...@gmail.com>.
On 11/6/07, Thilo Goetz <tw...@gmx.de> wrote:
> Yes, the test is known not to run on Linux.
> Marshall is working on that.

Ok, I'll comment it.

-- 
Roberto Franchini
CELI s.r.l.  (http://www.celi.it) - C.so Moncalieri 21 - 10131 Torino - ITALY
Tel +39-011-6600814 - Fax +39-011-6600687
jabber:ro.franchini@gmail.com skype:ro.franchini

Re: Exception in a pipeline with more than one document to analize

Posted by Thilo Goetz <tw...@gmx.de>.
Yes, the test is known not to run on Linux.
Marshall is working on that.

--Thilo

Roberto Franchini wrote:
> On 11/5/07, Roberto Franchini <ro...@gmail.com> wrote:
>> On 11/1/07, Marshall Schor <ms...@schor.com> wrote:
>>> Roberto Franchini wrote:
>>>> On 10/30/07, Marshall Schor <ms...@schor.com> wrote:
>>>>
>> [cut]
>>> Jira issue 607 fixes this problem, I think.  If you can, please build
>>> from the latest SVN and see if this fixes things.
>>>
>>> I created a test case before fixing things, and got it to fail, and now,
>>> after the changes, it runs.
>>>
>> Ok, I'll update and rebuild today or at least tomorrow. Thank you very
>> much for your effort!
>> Roberto
>>
> 
> The test doesn't run on my linux machine (elcipse 3.3.1, SUN java 6):
> I think ther's only a miswrited path, but I didn't find it :(
> 
> 
> org.apache.uima.resource.ResourceInitializationException:
> Initialization of CAS Processor with name "ErrorTestAnnotator" failed.
> 	at org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:83)
> 	at org.apache.uima.impl.UIMAFramework_impl._produceCollectionProcessingEngine(UIMAFramework_impl.java:395)
> 	at org.apache.uima.UIMAFramework.produceCollectionProcessingEngine(UIMAFramework.java:865)
> 	at org.apache.uima.collection.impl.cpm.PearCasPoolTest.setupCpm(PearCasPoolTest.java:166)
> 	at org.apache.uima.collection.impl.cpm.PearCasPoolTest.core(PearCasPoolTest.java:91)
> 	at org.apache.uima.collection.impl.cpm.PearCasPoolTest.testCasPool(PearCasPoolTest.java:72)
> 	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 junit.framework.TestCase.runTest(TestCase.java:154)
> 	at junit.framework.TestCase.runBare(TestCase.java:127)
> 	at junit.framework.TestResult$1.protect(TestResult.java:106)
> 	at junit.framework.TestResult.runProtected(TestResult.java:124)
> 	at junit.framework.TestResult.run(TestResult.java:109)
> 	at junit.framework.TestCase.run(TestCase.java:118)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:208)
> 	at junit.framework.TestSuite.run(TestSuite.java:203)
> 	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
> 	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
> 	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
> Caused by: org.apache.uima.resource.ResourceConfigurationException:
> Initialization of CAS Processor with name "ErrorTestAnnotator" failed.
> 	at org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCasProcessor(CPEFactory.java:1104)
> 	at org.apache.uima.collection.impl.cpm.container.CPEFactory.getCasProcessors(CPEFactory.java:550)
> 	at org.apache.uima.collection.impl.cpm.BaseCPMImpl.init(BaseCPMImpl.java:253)
> 	at org.apache.uima.collection.impl.cpm.BaseCPMImpl.<init>(BaseCPMImpl.java:127)
> 	at org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:75)
> 	... 23 more
> Caused by: org.apache.uima.resource.ResourceInitializationException:
> Error initializing
> "org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper" from
> descriptor file:/home/frank/projects/celi/uima/uimaj-cpe/target/test-classes/pearTests/installedSimpleTokenPear/uimaj-pear-forTesting/uimaj-pear-forTesting_pear.xml.
> 	at org.apache.uima.util.SimpleResourceFactory.produceResource(SimpleResourceFactory.java:143)
> 	at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
> 	at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258)
> 	at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:352)
> 	at org.apache.uima.analysis_engine.asb.impl.ASB_impl.setup(ASB_impl.java:243)
> 	at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initASB(AggregateAnalysisEngine_impl.java:413)
> 	at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initializeAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:361)
> 	at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:183)
> 	at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
> 	at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
> 	at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258)
> 	at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:303)
> 	at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:383)
> 	at org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCasProcessor(CPEFactory.java:1088)
> 	... 27 more
> Caused by: org.apache.uima.resource.ResourceInitializationException
> 	at org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper.initialize(PearAnalysisEngineWrapper.java:217)
> 	at org.apache.uima.util.SimpleResourceFactory.produceResource(SimpleResourceFactory.java:122)
> 	... 40 more
> Caused by: java.io.FileNotFoundException: invalid directory specified
> 	at org.apache.uima.pear.util.FileUtil.createFileList(FileUtil.java:583)
> 	at org.apache.uima.pear.tools.PackageBrowser.<init>(PackageBrowser.java:124)
> 	at org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper.initialize(PearAnalysisEngineWrapper.java:154)
> 	... 41 more
> 

Re: Exception in a pipeline with more than one document to analize

Posted by Roberto Franchini <ro...@gmail.com>.
On 11/5/07, Roberto Franchini <ro...@gmail.com> wrote:
> On 11/1/07, Marshall Schor <ms...@schor.com> wrote:
> > Roberto Franchini wrote:
> > > On 10/30/07, Marshall Schor <ms...@schor.com> wrote:
> > >
> [cut]
> > >
> > Jira issue 607 fixes this problem, I think.  If you can, please build
> > from the latest SVN and see if this fixes things.
> >
> > I created a test case before fixing things, and got it to fail, and now,
> > after the changes, it runs.
> >
>
> Ok, I'll update and rebuild today or at least tomorrow. Thank you very
> much for your effort!
> Roberto
>

The test doesn't run on my linux machine (elcipse 3.3.1, SUN java 6):
I think ther's only a miswrited path, but I didn't find it :(


org.apache.uima.resource.ResourceInitializationException:
Initialization of CAS Processor with name "ErrorTestAnnotator" failed.
	at org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:83)
	at org.apache.uima.impl.UIMAFramework_impl._produceCollectionProcessingEngine(UIMAFramework_impl.java:395)
	at org.apache.uima.UIMAFramework.produceCollectionProcessingEngine(UIMAFramework.java:865)
	at org.apache.uima.collection.impl.cpm.PearCasPoolTest.setupCpm(PearCasPoolTest.java:166)
	at org.apache.uima.collection.impl.cpm.PearCasPoolTest.core(PearCasPoolTest.java:91)
	at org.apache.uima.collection.impl.cpm.PearCasPoolTest.testCasPool(PearCasPoolTest.java:72)
	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 junit.framework.TestCase.runTest(TestCase.java:154)
	at junit.framework.TestCase.runBare(TestCase.java:127)
	at junit.framework.TestResult$1.protect(TestResult.java:106)
	at junit.framework.TestResult.runProtected(TestResult.java:124)
	at junit.framework.TestResult.run(TestResult.java:109)
	at junit.framework.TestCase.run(TestCase.java:118)
	at junit.framework.TestSuite.runTest(TestSuite.java:208)
	at junit.framework.TestSuite.run(TestSuite.java:203)
	at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:130)
	at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
	at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Caused by: org.apache.uima.resource.ResourceConfigurationException:
Initialization of CAS Processor with name "ErrorTestAnnotator" failed.
	at org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCasProcessor(CPEFactory.java:1104)
	at org.apache.uima.collection.impl.cpm.container.CPEFactory.getCasProcessors(CPEFactory.java:550)
	at org.apache.uima.collection.impl.cpm.BaseCPMImpl.init(BaseCPMImpl.java:253)
	at org.apache.uima.collection.impl.cpm.BaseCPMImpl.<init>(BaseCPMImpl.java:127)
	at org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize(CollectionProcessingEngine_impl.java:75)
	... 23 more
Caused by: org.apache.uima.resource.ResourceInitializationException:
Error initializing
"org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper" from
descriptor file:/home/frank/projects/celi/uima/uimaj-cpe/target/test-classes/pearTests/installedSimpleTokenPear/uimaj-pear-forTesting/uimaj-pear-forTesting_pear.xml.
	at org.apache.uima.util.SimpleResourceFactory.produceResource(SimpleResourceFactory.java:143)
	at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
	at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258)
	at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:352)
	at org.apache.uima.analysis_engine.asb.impl.ASB_impl.setup(ASB_impl.java:243)
	at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initASB(AggregateAnalysisEngine_impl.java:413)
	at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initializeAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:361)
	at org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initialize(AggregateAnalysisEngine_impl.java:183)
	at org.apache.uima.impl.AnalysisEngineFactory_impl.produceResource(AnalysisEngineFactory_impl.java:94)
	at org.apache.uima.impl.CompositeResourceFactory_impl.produceResource(CompositeResourceFactory_impl.java:62)
	at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:258)
	at org.apache.uima.UIMAFramework.produceResource(UIMAFramework.java:303)
	at org.apache.uima.UIMAFramework.produceAnalysisEngine(UIMAFramework.java:383)
	at org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegratedCasProcessor(CPEFactory.java:1088)
	... 27 more
Caused by: org.apache.uima.resource.ResourceInitializationException
	at org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper.initialize(PearAnalysisEngineWrapper.java:217)
	at org.apache.uima.util.SimpleResourceFactory.produceResource(SimpleResourceFactory.java:122)
	... 40 more
Caused by: java.io.FileNotFoundException: invalid directory specified
	at org.apache.uima.pear.util.FileUtil.createFileList(FileUtil.java:583)
	at org.apache.uima.pear.tools.PackageBrowser.<init>(PackageBrowser.java:124)
	at org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper.initialize(PearAnalysisEngineWrapper.java:154)
	... 41 more

-- 
Roberto Franchini
CELI s.r.l.  (http://www.celi.it) - C.so Moncalieri 21 - 10131 Torino - ITALY
Tel +39-011-6600814 - Fax +39-011-6600687
jabber:ro.franchini@gmail.com skype:ro.franchini

Re: Exception in a pipeline with more than one document to analize

Posted by Roberto Franchini <ro...@gmail.com>.
On 11/1/07, Marshall Schor <ms...@schor.com> wrote:
> Roberto Franchini wrote:
> > On 10/30/07, Marshall Schor <ms...@schor.com> wrote:
> >
[cut]
> >
> Jira issue 607 fixes this problem, I think.  If you can, please build
> from the latest SVN and see if this fixes things.
>
> I created a test case before fixing things, and got it to fail, and now,
> after the changes, it runs.
>

Ok, I'll update and rebuild today or at least tomorrow. Thank you very
much for your effort!
Roberto

-- 
Roberto Franchini
CELI s.r.l.  (http://www.celi.it) - C.so Moncalieri 21 - 10131 Torino - ITALY
Tel +39-011-6600814 - Fax +39-011-6600687
jabber:ro.franchini@gmail.com skype:ro.franchini