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.