You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by "Chavan, Girish" <ch...@upmc.edu> on 2007/12/11 17:01:52 UTC

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.







RE: problem running a CPE with FileSystemCollectionReader

Posted by Jaroslaw Cwiklik <cw...@us.ibm.com>.




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: cwiklik@us.ibm.com



                                                                           
             "Chavan, Girish"                                              
             <chavang@upmc.edu                                             
             >                                                          To 
                                       <ui...@incubator.apache.org>    
             12/11/2007 11:48                                           cc 
             AM                                                            
                                                                   Subject 
                                       RE: problem running a CPE with      
             Please respond to         FileSystemCollectionReader          
             uima-user@incubat                                             
               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:cwiklik@us.ibm.com]
Sent: Tuesday, December 11, 2007 11:40 AM
To: uima-user@incubator.apache.org
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: cwiklik@us.ibm.com

Inactive hide details for "Chavan, Girish" <ch...@upmc.edu>"Chavan,
Girish" <ch...@upmc.edu>



"Chavan, Girish" <ch...@upmc.edu>

12/11/2007 11:01 AM

Please respond to
uima-user@incubator.apache.org



To


<ui...@incubator.apache.org>



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.









RE: problem running a CPE with FileSystemCollectionReader

Posted by "Chavan, Girish" <ch...@upmc.edu>.
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:cwiklik@us.ibm.com] 
Sent: Tuesday, December 11, 2007 11:40 AM
To: uima-user@incubator.apache.org
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: cwiklik@us.ibm.com

Inactive hide details for "Chavan, Girish" <ch...@upmc.edu>"Chavan,
Girish" <ch...@upmc.edu>



"Chavan, Girish" <ch...@upmc.edu> 

12/11/2007 11:01 AM 

Please respond to
uima-user@incubator.apache.org



To


<ui...@incubator.apache.org>



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.









RE: problem running a CPE with FileSystemCollectionReader

Posted by "Chavan, Girish" <ch...@upmc.edu>.
Figured it out.  I didn't have this element in my CPE descriptor:

<deployAs>vinciService|interactive|immediate|single-threaded
  </deployAs>


Thanks,
-Girish

-----Original Message-----
From: Chavan, Girish 
Sent: Tuesday, December 11, 2007 11:02 AM
To: uima-user@incubator.apache.org
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.






Re: problem running a CPE with FileSystemCollectionReader

Posted by Jaroslaw Cwiklik <cw...@us.ibm.com>.




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: cwiklik@us.ibm.com



                                                                           
             "Chavan, Girish"                                              
             <chavang@upmc.edu                                             
             >                                                          To 
                                       <ui...@incubator.apache.org>    
             12/11/2007 11:01                                           cc 
             AM                                                            
                                                                   Subject 
                                       problem running a CPE with          
             Please respond to         FileSystemCollectionReader          
             uima-user@incubat                                             
               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.