uima-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jörn Kottmann <kottm...@gmail.com>
Subject PearCasPoolTest.testCasPool fails
Date Sun, 04 Nov 2007 21:56:31 GMT
Hello,

on my machine this tests fails while building with maven. I guess
the "src\test\resources\pearTests\installedSimpleTokenPear\uimaj-pear- 
forTesting"
cannot be found in an unix environment.

Here is the console output:

Running org.apache.uima.collection.impl.cpm.PearCasPoolTest
org.apache.uima.resource.ResourceInitializationException:  
Initialization of CAS Processor with name "ErrorTestAnnotator"  
failed.        at  
org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initiali 
ze(CollectionProcessingEngine_impl.java:83)
        at  
org.apache.uima.impl.UIMAFramework_impl._produceCollectionProcessingEngi 
ne(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 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.apache.maven.surefire.junit.JUnitTestSet.execute 
(JUnitTestSet.java:213)
        at  
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSe 
t(AbstractDirectoryTestSuite.java:138)
        at  
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute 
(AbstractDirectoryTestSuite.java:125)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:132)
        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.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess 
(SurefireBooter.java:290)
        at org.apache.maven.surefire.booter.SurefireBooter.main 
(SurefireBooter.java:818)
Caused by: org.apache.uima.resource.ResourceConfigurationException:  
Initialization of CAS Processor with name "ErrorTestAnnotator"  
failed.        at  
org.apache.uima.collection.impl.cpm.container.CPEFactory.produceIntegrat 
edCasProcessor(CPEFactory.java:1104)
        at  
org.apache.uima.collection.impl.cpm.container.CPEFactory.getCasProcessor 
s(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.initiali 
ze(CollectionProcessingEngine_impl.java:75)
        ... 31 more
Caused by: org.apache.uima.resource.ResourceInitializationException:  
Error initializing  
"org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper" from  
descriptor file:/home/joern/Documents/uima-dev/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.initAS 
B(AggregateAnalysisEngine_impl.java:413)
        at  
org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initia 
lizeAggregateAnalysisEngine(AggregateAnalysisEngine_impl.java:361)
        at  
org.apache.uima.analysis_engine.impl.AggregateAnalysisEngine_impl.initia 
lize(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.produceIntegrat 
edCasProcessor(CPEFactory.java:1088)
        ... 35 more
Caused by: org.apache.uima.resource.ResourceInitializationException
        at  
org.apache.uima.analysis_engine.impl.PearAnalysisEngineWrapper.initializ 
e(PearAnalysisEngineWrapper.java:217)
        at org.apache.uima.util.SimpleResourceFactory.produceResource 
(SimpleResourceFactory.java:122)
        ... 48 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.initializ 
e(PearAnalysisEngineWrapper.java:154)
        ... 49 more
Nov 4, 2007 9:47:57 PM org.apache.uima.collection.impl.cpm.Checkpoint  
process
INFO: The CPM checkpoint thread stopped. (Thread Name: BaseCPMImpl- 
Thread)
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.031  
sec <<< FAILURE!

Jörn
Mime
View raw message