Marshall Schor | 3 Dec 00:12

Re: How to use a SOAP component in a CPE ?

This appears it might be a bug.  Can you work around by using an
Analysis Engine instead of a Cas Consumer?

-Marshall

Baptiste GAILLARD wrote:
> Ok, thanks,
>
> I've tried with a SOAP AE and a local integrated CAS Consumer, it works.
>
> But, If If use a SOAP AE an a SOAP Cas Consumer the following errors are
> displayed:
>
>
> org.apache.uima.resource.ResourceInitializationException: Initialization of
> CAS Processor with name "WordsFilePrinterSoapService.xml" failed.
>         at
> org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize
> (CollectionProcessingEngine_impl.java:83)
>         at
> org.apache.uima.impl.UIMAFramework_impl._produceCollectionProcessingEngine
> (UIMAFramework_impl.java:395)
>         at org.apache.uima.UIMAFramework.produceCollectionProcessingEngine(
> UIMAFramework.java:807)
>         at org.apache.uima.tools.cpm.CpmPanel.startProcessing(CpmPanel.java
> :538)
>         at org.apache.uima.tools.cpm.CpmPanel.access$000(CpmPanel.java:96)
>         at org.apache.uima.tools.cpm.CpmPanel$1.construct(CpmPanel.java:678)
>         at org.apache.uima.tools.util.gui.SwingWorker$2.run(SwingWorker.java
> :130)
(Continue reading)

Baptiste GAILLARD | 3 Dec 09:28
Picon

Re: How to use a SOAP component in a CPE ?

Yes, If I use one Analysis Engine and the same Analysis Engine instead of a
CC the process completed successfully.

2007/12/3, Marshall Schor <msa@...>:
>
> This appears it might be a bug.  Can you work around by using an
> Analysis Engine instead of a Cas Consumer?
>
> -Marshall
>
> Baptiste GAILLARD wrote:
> > Ok, thanks,
> >
> > I've tried with a SOAP AE and a local integrated CAS Consumer, it works.
> >
> > But, If If use a SOAP AE an a SOAP Cas Consumer the following errors are
> > displayed:
> >
> >
> > org.apache.uima.resource.ResourceInitializationException: Initialization
> of
> > CAS Processor with name "WordsFilePrinterSoapService.xml" failed.
> >         at
> >
> org.apache.uima.collection.impl.CollectionProcessingEngine_impl.initialize
> > (CollectionProcessingEngine_impl.java:83)
> >         at
> >
> org.apache.uima.impl.UIMAFramework_impl._produceCollectionProcessingEngine
> > (UIMAFramework_impl.java:395)
(Continue reading)

Marshall Schor | 3 Dec 19:02

Re: How to use a SOAP component in a CPE ?

Hi Baptiste -

Can you clarify how you are trying to use a SOAP AE as a CAS Consumer in
a CPE descriptor?

Do you have in the CPE descriptor a <casProcessor ... > element for mode
"integrated", which specifies a <descriptor> element which imports a
SOAP remote descriptor? 

If so, that is not supported by the current code - see section 3.6.1.1
where it says, for integrated CAS processors, the referenced descriptor
must be an Analysis Engine Descriptor.

http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/references/references.html#ugr.ref.xml.cpe_descriptor.descriptor.cas_processors.individual

If you're doing something else, please let us know.

Thanks. -Marshall

Baptiste GAILLARD wrote:
> Yes, If I use one Analysis Engine and the same Analysis Engine instead of a
> CC the process completed successfully.
>
>
> 2007/12/3, Marshall Schor <msa@...>:
>   
>> This appears it might be a bug.  Can you work around by using an
>> Analysis Engine instead of a Cas Consumer?
>>
>> -Marshall
(Continue reading)

Baptiste GAILLARD | 4 Dec 09:38
Picon

Re: How to use a SOAP component in a CPE ?

Hi Marshall, thanks for your help,

Can you clarify how you are trying to use a SOAP AE as a CAS Consumer in
> a CPE descriptor?
>

In fact I was just using the CPE gui tool, I specified in the "Analysis
Engines" part a SOAP AE descriptor and in the "CAS Consumers" part the same
SOAP AE descriptor, it works, no problem !

Do you have in the CPE descriptor a <casProcessor ... > element for mode
> "integrated", which specifies a <descriptor> element which imports a
> SOAP remote descriptor?
>
> If so, that is not supported by the current code - see section 3.6.1.1
> where it says, for integrated CAS processors, the referenced descriptor
> must be an Analysis Engine Descriptor.

Yes, I was trying to do that:

-- CpeDescriptor.xml --
...
...
<casProcessors casPoolSize="3" processingUnitThreadCount="1">
        ...
        <casProcessor deployment="integrated" name="WordsFilePrinterSOAP">
            <descriptor>
                <import location="WordsFilePrinterSoapService.xml"/>
            </descriptor>
            <deploymentParameters/>
(Continue reading)

Marshall Schor | 4 Dec 15:18

Re: How to use a SOAP component in a CPE ?

If you a remote SOAP service that is acting as a CAS Consumer, you have
to put it into your CPE pipeline wrapped inside an Aggregate Analysis
engine.   The aggregate can be a container of just one SOAP component
(or, if it makes logical sense in your flow - you can add it to the end
of perhaps some other aggregate you already have in your pipeline).

Does that answer your question, or did I miss something?

-Marshall

Baptiste GAILLARD wrote:
> Hi Marshall, thanks for your help,
>
> Can you clarify how you are trying to use a SOAP AE as a CAS Consumer in
>   
>> a CPE descriptor?
>>
>>     
>
> In fact I was just using the CPE gui tool, I specified in the "Analysis
> Engines" part a SOAP AE descriptor and in the "CAS Consumers" part the same
> SOAP AE descriptor, it works, no problem !
>
> Do you have in the CPE descriptor a <casProcessor ... > element for mode
>   
>> "integrated", which specifies a <descriptor> element which imports a
>> SOAP remote descriptor?
>>
>> If so, that is not supported by the current code - see section 3.6.1.1
>> where it says, for integrated CAS processors, the referenced descriptor
(Continue reading)

Baptiste GAILLARD | 4 Dec 15:52
Picon

Re: How to use a SOAP component in a CPE ?

Ok, so I will integrate that SOAP service descriptor inside an Aggregate AE.

I'll try that soon.

Does that answer your question, or did I miss something?

Yes, I think it will solve my problems, thank you Marshall !!!

Baptiste.

2007/12/4, Marshall Schor <msa@...>:
>
> If you a remote SOAP service that is acting as a CAS Consumer, you have
> to put it into your CPE pipeline wrapped inside an Aggregate Analysis
> engine.   The aggregate can be a container of just one SOAP component
> (or, if it makes logical sense in your flow - you can add it to the end
> of perhaps some other aggregate you already have in your pipeline).
>
> Does that answer your question, or did I miss something?
>
> -Marshall
>
> Baptiste GAILLARD wrote:
> > Hi Marshall, thanks for your help,
> >
> > Can you clarify how you are trying to use a SOAP AE as a CAS Consumer in
> >
> >> a CPE descriptor?
> >>
> >>
(Continue reading)

steven shingler | 5 Dec 18:34
Picon

Invalid descriptor error

Hi all,

I think I have some classpath issues!

My UIMA impl runs fine on its own, but when I assemble that jar into the
main project jar I get the following error:

org.apache.uima.util.InvalidXMLException: Invalid descriptor at
file:/home/steven/ContainsWordsAEDescriptor.xml.
        at org.apache.uima.util.impl.XMLParser_impl.parse
(XMLParser_impl.java:193)
        at org.apache.uima.util.impl.XMLParser_impl.parseResourceSpecifier
(XMLParser_impl.java:365)
        at org.apache.uima.util.impl.XMLParser_impl.parseResourceSpecifier
(XMLParser_impl.java:346)
        at uk.ac.ST.process(ST.java:284)
        at uk.ac.SApp.processDoc(SemanticApp.java:94)
        at com.uk.TEServiceImpl.tagCorpus(TEServiceImpl.java:21)
        at com.uk.Client.main(Client.java:34)
        at com.uk.ClientTest.main(ClientTest.java:46)
        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:585)
        at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
        at org.junit.internal.runners.MethodRoadie.runTestMethod(
MethodRoadie.java:98)
        at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java
(Continue reading)

Marshall Schor | 5 Dec 19:59

Re: Invalid descriptor error

Hi Steven -

This looks like a Java misconfiguration.  Please have a look at the thread:

http://www.mail-archive.com/uima-user-d1GL8uUpDdXTxqt0kkDzDmD2FQJk+8+b <at> public.gmane.org/msg00803.html

(Sorry, you have to read all the replies to get the whole story :-) )

Please post back if that solves your problem (or, especially, if it
doesn't).

-Marshall

steven shingler wrote:
> Hi all,
>
> I think I have some classpath issues!
>
> My UIMA impl runs fine on its own, but when I assemble that jar into the
> main project jar I get the following error:
>
> org.apache.uima.util.InvalidXMLException: Invalid descriptor at
> file:/home/steven/ContainsWordsAEDescriptor.xml.
>         at org.apache.uima.util.impl.XMLParser_impl.parse
> (XMLParser_impl.java:193)
>         at org.apache.uima.util.impl.XMLParser_impl.parseResourceSpecifier
> (XMLParser_impl.java:365)
>         at org.apache.uima.util.impl.XMLParser_impl.parseResourceSpecifier
> (XMLParser_impl.java:346)
>         at uk.ac.ST.process(ST.java:284)
(Continue reading)

Baptiste GAILLARD | 6 Dec 15:44
Picon

Re: How to use a SOAP component in a CPE ?

Hi again,

sorry but I still have problems even with the Cas Consumer inside an
aggregate Analysis Engine.

The CPE descriptor I've saved with the cpeGui.bat tool is the following.

-- cpeDescriptor.xml --

<?xml version="1.0" encoding="UTF-8"?>
<cpeDescription xmlns="http://uima.apache.org/resourceSpecifier">
    <collectionReader>
        <collectionIterator>
            <descriptor>
                <import
location="../../../workspace/imp-helper-uima/src/main/resources/descriptors/collection_reader/TextsListCollectionReader.xml"/>
            </descriptor>
        </collectionIterator>
    </collectionReader>
    <casProcessors casPoolSize="5" processingUnitThreadCount="1">
        <casProcessor deployment="integrated" name="
WordsListAnnotatorSoapService.xml">
            <descriptor>
                <import location="WordsListAnnotatorSoapService.xml"/>
            </descriptor>
            <deploymentParameters/>
            <errorHandling>
                <errorRateThreshold action="terminate" value="0/1000"/>
                <maxConsecutiveRestarts action="terminate" value="30"/>
                <timeout max="100000" default="-1"/>
(Continue reading)

steven shingler | 6 Dec 18:38
Picon

Re: Invalid descriptor error

Hi Marshall,

Thanks for getting back to me. Yes, that thread was helpful.

I have forcibly removed the xalan jar from my maven build, and that has
removed the error.

However there is always the worry that whatever_it_was that asked for that
jar in the first place may miss it at some point in the future!

I know that's not a UIMA issue at all, but if anyone has any advice on how
to deal with those kind of things in a maven build environment, I'd love to
hear it! :)

Thanks again,
Steven

On Dec 5, 2007 6:59 PM, Marshall Schor <msa@...> wrote:

> Hi Steven -
>
> This looks like a Java misconfiguration.  Please have a look at the
> thread:
>
> http://www.mail-archive.com/uima-user-d1GL8uUpDdXTxqt0kkDzDmD2FQJk+8+b <at> public.gmane.org/msg00803.html
>
> (Sorry, you have to read all the replies to get the whole story :-) )
>
> Please post back if that solves your problem (or, especially, if it
> doesn't).
(Continue reading)


Gmane