I think grouping of params are not supported in the CPE.

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:48                                           cc
             AM                                                        
                                                                   Subject
                                       RE: problem running a CPE with  
             Please respond to         FileSystemCollectionReader      
             [EMAIL PROTECTED]                                         
               or.apache.org                                           
                                                                       
                                                                       
                                                                       
                                                                       




Thanks Jerry,



Yeah I noticed that. Didn't realize it was a mandatory element.



However I am facing another problem.



I cant seem to get my grouped parameters for my cas consumer to be
initialized using the CPE descriptor. I have ungrouped as well as
grouped parameters ( Group name=Database) for the
DatabaseWriterCasConsumer. While the ungrouped params seem to get
initialized correctly, the grouped parameters

don't seem to be passed through to the DatabaseWriterCasConsumer.



Here is the link to the CPE descriptor file again:

http://caties.cabig.upmc.edu/docs/IOTest.xml



And the DatabaseWriterCasConsumer descriptor:

http://caties.cabig.upmc.edu/docs/DatabaseWriterCasConsumer.xml





Thanks in advance,



Kind Regards,

Girish









________________________________

From: Jaroslaw Cwiklik [mailto:[EMAIL PROTECTED]
Sent: Tuesday, December 11, 2007 11:40 AM
To: [email protected]
Subject: Re: problem running a CPE with FileSystemCollectionReader



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]

Inactive hide details for "Chavan, Girish" <[EMAIL PROTECTED]>"Chavan,
Girish" <[EMAIL PROTECTED]>



"Chavan, Girish" <[EMAIL PROTECTED]>

12/11/2007 11:01 AM

Please respond to
[email protected]



To


<[email protected]>



cc





Subject


problem running a CPE with FileSystemCollectionReader








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.








Reply via email to