uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Katherine Enderling <katherine_enderl...@cognia.com>
Subject Re: MeetingFinderCPE_Managed_Unix.xml Example Exception
Date Mon, 15 Oct 2007 17:39:54 GMT
Thanks for your help! I am running the examples on Mac OSX.
I've added the extra path variables and it's now hanging for a while before
coming up with this error:

Parsing CPE Descriptor
Instantiating CPE
Running CPE
To abort processing, type "abort" and press enter.
javax.naming.TimeLimitExceededException: A valid port cannot be acquired in
the given time frame -150 millis.  (Thread Name: BaseCPMImpl-Thread)
        at 
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcess
orDeployer.getPort(VinciCasProcessorDeployer.java:1875)
        at 
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcess
orDeployer.connectToServices(VinciCasProcessorDeployer.java:1779)
        at 
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcess
orDeployer.launchLocalService(VinciCasProcessorDeployer.java:581)
        at 
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcess
orDeployer.deployLocal(VinciCasProcessorDeployer.java:400)
        at 
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcess
orDeployer.deployBasedOnModel(VinciCasProcessorDeployer.java:310)
        at 
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcess
orDeployer.deployCasProcessor(VinciCasProcessorDeployer.java:274)
        at 
org.apache.uima.collection.impl.cpm.engine.CPMEngine.deployAnalysisEngines(C
PMEngine.java:1431)
        at 
org.apache.uima.collection.impl.cpm.engine.CPMEngine.deployCasProcessors(CPM
Engine.java:1461)
        at 
org.apache.uima.collection.impl.cpm.BaseCPMImpl.run(BaseCPMImpl.java:458)
        at java.lang.Thread.run(Thread.java:613)
java.net.ConnectException: A valid service port cannot be acquired.  (Thread
Name: BaseCPMImpl-Thread)
        at 
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcess
orDeployer.connectToServices(VinciCasProcessorDeployer.java:1783)
        at 
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcess
orDeployer.launchLocalService(VinciCasProcessorDeployer.java:581)
        at 
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcess
orDeployer.deployLocal(VinciCasProcessorDeployer.java:400)
        at 
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcess
orDeployer.deployBasedOnModel(VinciCasProcessorDeployer.java:310)
        at 
org.apache.uima.collection.impl.cpm.container.deployer.vinci.VinciCasProcess
orDeployer.deployCasProcessor(VinciCasProcessorDeployer.java:274)
        at 
org.apache.uima.collection.impl.cpm.engine.CPMEngine.deployAnalysisEngines(C
PMEngine.java:1431)
        at 
org.apache.uima.collection.impl.cpm.engine.CPMEngine.deployCasProcessors(CPM
Engine.java:1461)
        at 
org.apache.uima.collection.impl.cpm.BaseCPMImpl.run(BaseCPMImpl.java:458)
        at java.lang.Thread.run(Thread.java:613)
Aborted

Sorry if this is a simple problem ....
Katherine

On 12/10/07 23:36, "Eddie Epstein" <eaepstein@gmail.com> wrote:

> The problem here is that the CPE GUI tool does not support the more exotic
> features of the CPM, including the ability to deploy a managed service. To
> run this test case, use the runCPE command with the example CPE descriptor
> as argument.
> 
>     
> runCPE.sh$UIMA_HOME/examples/descriptors/collection_processing_engine/MeetingF
> inderCPE_Managed_Unix.xml
> 
> When I did this on Windows it worked fine, but on Linux it hung because the
> deployed service didn't have a proper environment. In order to get it
> working on Linux, I added a PATH environment for the new process in the
> descriptor, e.g.
> 
>             <runInSeparateProcess>
>                 <exec dir="." executable="java">
>                                         <env key="PATH"
> 
> value="/myPathTo/jdk1.5.0/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/
> usr/X11R6/bin:/home/eddie/apache-uima/bin"/>
>                     <env key="CLASSPATH"
>                         value="src:/home/eddie/apache-uima/lib/uima-
> core.jar:/home/eddie/apache-uima/lib/uima-cpe.jar:/home/eddie/apache-uima/lib/
> uima-examples.jar:/home/eddie/apache-uima/lib/uima-adapter-vinci.jar:/home/edd
> ie/apache-uima/lib/jVinci.jar
> "/>
>                     <arg>-DLOG=service.log</arg>
>                     <arg>
> org.apache.uima.adapter.vinci.VinciAnalysisEngineService_impl</arg>
>                     <arg>${descriptor}</arg>
>                 </exec>
>             </runInSeparateProcess>
> 
> Regards,
> Eddie
> 
> 
> 
> On 10/12/07, Katherine Enderling <katherine_enderling@cognia.com> wrote:
>> 
>> When I try to run the MeetingFinderCPE_Managed_Unix.xml example using the
>> UIMA CPE GUI tool in eclipse I get the error below. I get the same error
>> trying to run my own managed Vinci service.
>> Can anyone help?
>> Thanks very much!
>> Katherine
>> 
>> Error loading CPE Descriptor
>> 
>> /Volumes/DATA/Programming/apache-uima/examples/descriptors/collection_proces
>> sing_engine/MeetingFinderCPE_Managed_Unix.xml
>> org.apache.uima.util.InvalidXM
>> LException: Invalid descriptor at
>> 
>> file:/Volumes/DATA/Programming/apache-uima/examples/deploy/vinci/Deploy_Meet
>> ingDetectorTAE.xml.
>>     at
>> org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:193)
>> 
>> at
>> org.apache.uima.util.impl.XMLParser_impl.parseResourceSpecifier
>> (XMLParser_im
>> pl.java:365)
>>     at
>> org.apache.uima.util.impl.XMLParser_impl.parseResourceSpecifier
>> (XMLParser_im
>> pl.java:346)
>>     at
>> org.apache.uima.tools.cpm.CpmPanel.openCpeDescriptor(CpmPanel.java:1781)
>> 
>> at org.apache.uima.tools.cpm.CpmPanel.actionPerformed(CpmPanel.java:845)
>> 
>> at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java
>> :1882)
>> 
>> at
>> javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java
>> :2202)
>>     at
>> javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java
>> :4
>> 20)
>>     at
>> javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
>> 
>> at javax.swing.AbstractButton.doClick(AbstractButton.java:334)
>>     at
>> javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1000)
>> 
>> at
>> javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased
>> (BasicMenuItemUI
>> .java:1041)
>>     at
>> java.awt.Component.processMouseEvent(Component.java:5554)
>>     at
>> javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
>>     at
>> java.awt.Component.processEvent(Component.java:5319)
>>     at
>> java.awt.Container.processEvent(Container.java:2010)
>>     at
>> java.awt.Component.dispatchEventImpl(Component.java:4021)
>>     at
>> java.awt.Container.dispatchEventImpl(Container.java:2068)
>>     at
>> java.awt.Component.dispatchEvent(Component.java:3869)
>>     at
>> java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4256)
>> 
>> at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3936)
>> 
>> at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3866)
>>     at
>> java.awt.Container.dispatchEventImpl(Container.java:2054)
>>     at
>> java.awt.Window.dispatchEventImpl(Window.java:1774)
>>     at
>> java.awt.Component.dispatchEvent(Component.java:3869)
>>     at
>> java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
>>     at
>> java.awt.EventDispatchThread.pumpOneEventForHierarchy(
>> EventDispatchThread.ja
>> va:269)
>>     at
>> java.awt.EventDispatchThread.pumpEventsForHierarchy(
>> EventDispatchThread.java
>> :190)
>>     at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:184)
>>     at
>> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:176)
>>     at
>> java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
>> Caused by:
>> org.apache.uima.util.InvalidXMLException: The XML parser encountered an
>> unknown element type: deployment.
>>     at
>> org.apache.uima.util.impl.XMLParser_impl.buildObject
>> (XMLParser_impl.java:276
>> )
>>     at
>> org.apache.uima.util.impl.SaxDeserializer_impl.getObject
>> (SaxDeserializer_imp
>> l.java:114)
>>     at
>> org.apache.uima.util.impl.XMLParser_impl.parse(XMLParser_impl.java:184)
>> 
>> ... 30 more
>> 
>> 
>> 
>> 

 --
Katherine Enderling
http://www.cognia.com

This e-mail is confidential and intended solely for the addressee(s).
If you are not the intended recipient, you must not disclose, copy,
distribute or take any action in reliance upon it.  If you have received
the e-mail in error, please notify the sender or Cognia EU Ltd and
delete the transmission immediately.


------ End of Forwarded Message



Mime
View raw message