Girish, you seem to be missing a deployment element in your cpe descriptor.
I am not sure how you want to run your cpe, single threaded or
multi-threaded.
For multithreaded deployment add
<cpeConfig>
<deployAs>immediate</deployAs>
</cpeConfig>
For singlethreaded deployment add
<cpeConfig>
<deployAs>single-threaded</deployAs>
</cpeConfig>
Jerry C
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Jerry Cwiklik
UIMA Extensions
IBM T.J. Watson Research Center
Hawtorne, NY, 10532
Tel: 914-784-7665, T/L: 863-7665
Email: [EMAIL PROTECTED]
"Chavan, Girish"
<[EMAIL PROTECTED]
> To
<[email protected]>
12/11/2007 11:01 cc
AM
Subject
problem running a CPE with
Please respond to FileSystemCollectionReader
[EMAIL PROTECTED]
or.apache.org
Hi All,
I am trying to build my own CPE. I created a cpe descriptor with the
FileSystemCollectionReader as the collection reader and a DatabaseWriter
Cas consumer(which I wrote) as a cas processor.
I get a ResourceInitializationExecption when I try to run the CPE. Here
is the caused by section of that stacktrace:
-----
Caused by: java.lang.NullPointerException
at
org.apache.uima.collection.impl.cpm.engine.CPMEngine.<init>(CPMEngine.ja
va:273)
at
org.apache.uima.collection.impl.cpm.BaseCPMImpl.init(BaseCPMImpl.java:24
8)
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)
-------
Here is line 273 from CPMEngine.java:
-------
if (cpeFactory.getCPEConfig() != null &&
cpeFactory.getCPEConfig().getDeployment().equalsIgnoreCase(SINGLE_THREAD
ED_MODE)) {
...
-------
Here is the CPE Descriptor file I am using:
http://caties.cabig.upmc.edu/docs/IOTest.xml
The CPE configurator loads this file fine. The error is thrown when I
try to run it. I have also tried running it using the SimpleRunCPE
program with the same results.
Any help is much appreciated.
Thanks,
Girish
P.S: I would like to thank Marshall and Adam for answering my previous
queries on the mailing list. I didn't reply to those answers as I didn't
want to clutter the mailing list with thank you messages.