Ok, thank you for this quick response,

Yes, the following trace appear:

org.apache.uima.collection.metadata.CpeDescriptorException: The object
reference casProcessor name=NULL is invalid.  (Thread Name:
AWT-EventQueue-0)
        at
org.apache.uima.collection.impl.metadata.cpe.CasProcessorCpeObject.setName(
CasProcessorCpeObject.java:346)
        at org.apache.uima.tools.cpm.CpmPanel.addAE(CpmPanel.java:1268)
        at org.apache.uima.tools.cpm.CpmPanel.openCpeDescriptor(
CpmPanel.java:1626)
        at org.apache.uima.tools.cpm.CpmPanel.actionPerformed(CpmPanel.java
:812)
        at javax.swing.AbstractButton.fireActionPerformed(
AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(
AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(
DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java
:242)
        at javax.swing.AbstractButton.doClick(AbstractButton.java:357)
        at javax.swing.plaf.basic.BasicMenuItemUI.doClick(
BasicMenuItemUI.java:1216)
        at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(
BasicMenuItemUI.java:1257)
        at java.awt.Component.processMouseEvent(Component.java:6038)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
        at java.awt.Component.processEvent(Component.java:5803)
        at java.awt.Container.processEvent(Container.java:2058)
        at java.awt.Component.dispatchEventImpl(Component.java:4410)
        at java.awt.Container.dispatchEventImpl(Container.java:2116)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java
:4322)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java
:3986)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3916)
        at java.awt.Container.dispatchEventImpl(Container.java:2102)
        at java.awt.Window.dispatchEventImpl(Window.java:2429)
        at java.awt.Component.dispatchEvent(Component.java:4240)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(
EventDispatchThread.java:273)
        at java.awt.EventDispatchThread.pumpEventsForFilter(
EventDispatchThread.java:183)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(
EventDispatchThread.java:173)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java
:168)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java
:160)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

If I try to use a CPE descriptor which just use SOAP Service descriptors :

-- CPE descriptor --

<?xml version="1.0" encoding="UTF-8"?>
<cpeDescription xmlns="http://uima.apache.org/resourceSpecifier";>
    <collectionReader>
        <collectionIterator>
            <descriptor>
                <include
href="D:\workspace\imp-helper-uima\src\main\resources\descriptors\collection_reader\TextsListCollectionReader.xml"/>
            </descriptor>
        </collectionIterator>
    </collectionReader>
    <casProcessors casPoolSize="3" processingUnitThreadCount="1">
        <casProcessor deployment="remote"
name="WordsListAnnotatorSoapService">
            <descriptor>
                <include
href="D:\workspace\imp-helper-uima\src\main\resources\descriptors\soap\WordsListAnnotatorSoapService.xml"/>
            </descriptor>
            <deploymentParameters/>
            <errorHandling>
                <errorRateThreshold action="terminate" value="0/1000"/>
                <maxConsecutiveRestarts action="terminate" value="30"/>
                <timeout max="100000" default="-1"/>
            </errorHandling>
            <checkpoint batch="10000" time="1000ms"/>
        </casProcessor>
        <casProcessor deployment="remote"
name="WordsFilePrinterSoapService">
            <descriptor>
                <include
href="D:\workspace\imp-helper-uima\src\main\resources\descriptors\soap\WordsFilePrinterSoapService.xml"/>
            </descriptor>
            <deploymentParameters/>
            <errorHandling>
                <errorRateThreshold action="terminate" value="0/1000"/>
                <maxConsecutiveRestarts action="terminate" value="30"/>
                <timeout max="100000" default="-1"/>
            </errorHandling>
            <checkpoint batch="10000" time="1000ms"/>
        </casProcessor>
    </casProcessors>
    <cpeConfig>
        <numToProcess>-1</numToProcess>
        <deployAs>immediate</deployAs>
        <checkpoint batch="0" time="300000ms"/>
        <timerImpl/>
    </cpeConfig>
</cpeDescription>

-- WordsListAnnotatorSoapService.xml --
<?xml version="1.0" encoding="UTF-8" ?>

<uriSpecifier xmlns="http://uima.apache.org/resourceSpecifier";>
    <resourceType>AnalysisEngine</resourceType>
    <uri>http://localhost:8070/axis/services/urn:WordsListAnnotator</uri>
    <protocol>SOAP</protocol>
</uriSpecifier>

-- WordsListAnnotatorSoapService.xml --
<?xml version="1.0" encoding="UTF-8" ?>
<uriSpecifier xmlns="http://uima.apache.org/resourceSpecifier";>
    <resourceType>CasConsumer</resourceType>
    <uri>http://localhost:8070/axis/services/urn:WordsFilePrinter</uri>
    <protocol>SOAP</protocol>
</uriSpecifier>



... The following errors appear :


org.apache.uima.collection.impl.base_cpm.container.ServiceConnectionException:The
system is unable to connect to the Vinci Service
http://localhost:8070/axis/s
ervices/urn:WordsListAnnotator. (Thread Name: BaseCPMImpl-Thread)
        at
org.apache.uima.collection.impl.cpm.container.deployer.VinciTAP.connect(
VinciTAP.java:368)
        at
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcessorDeployer.activateProcessor
(VinciCasProcessorDeployer.java:1307)
        at
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcessorDeployer.attachToServices
(VinciCasProcessorDeployer.java:882)
        at
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcessorDeployer.deployRemote
(VinciCasProcessorDeployer.java:665)
        at
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcessorDeployer.deployBasedOnModel
(VinciCasProcessorDeployer.java:315)
        at
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcessorDeployer.deployCasProcessor
(VinciCasProcessorDeployer.java:275)
        at
org.apache.uima.collection.impl.cpm.engine.CPMEngine.deployAnalysisEngines(
CPMEngine.java:1443)
        at
org.apache.uima.collection.impl.cpm.engine.CPMEngine.deployCasProcessors(
CPMEngine.java:1473)
        at org.apache.uima.collection.impl.cpm.BaseCPMImpl.run(
BaseCPMImpl.java:458)
        at java.lang.Thread.run(Thread.java:619)

Very strange, the VinciTAP (used to communicate with Vinci services) is
called, is it normal ?

My SOAP components are deployed via Jetty and AXIS, I can access the
services via my web browser so they must work.

Thanks,

Baptiste.



2007/11/29, Adam Lally <[EMAIL PROTECTED]>:
>
> On Nov 29, 2007 8:31 AM, Baptiste GAILLARD <[EMAIL PROTECTED]>
> wrote:
> > I've read the following in the UIMA documentation:
> > Note
> >
> > The UIMA SDK also supports using unmanaged remote services via the
> > web-standard SOAP communications protocol (see Section 3.6.1, "Deploying
> as
> > SOAP Service"<
> http://incubator.apache.org/uima/downloads/releaseDocs/2.2.0-incubating/docs/html/tutorials_and_users_guides/tutorials_and_users_guides.html#ugr.tug.application.how_to_deploy_as_soap
> >.
> > This approach is based on a proxy implementation, where the proxy is
> > essentially running in an integrated mode. To use this approach with the
> > CPM, use the Integrated mode, with the component being an Aggregate
> which,
> > in turn, connects to a remote service.
> >
>
> I think this Note is actually incorrect (sorry).  I'm pretty sure that
> you can just add your SOAP Service Descriptor directly to your CPE.
> So you might want to give that a try. However, wrapping it an
> aggregate like you did should also work, of course.
>
> > But, when I try to add the Aggregate AE "
> > AggregateWordsListAnnotatorSoapService.xml" with the "cpeGui.bat" tool
> the
> > following error is displayed :
> >
> > org.apache.uima.collection.metadata.CpeDescriptionException: The object
> > reference casProcessor=NULL is invalid. (Thread Name: AWT-EventQueue-0).
> >
>
> Is there any more information, such as a stack trace, printed to the
> console?
>
> -Adam
>

Reply via email to