You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by LinTong <pc...@gmail.com> on 2010/07/08 13:29:59 UTC

Fail to deploy service in UIMA AS

Hello Everybody

I tried to deploy a UIMA aggregate AE which includes "Hidden Markov
Model Tagger Annotator" (UIMA sandbox) as a remote service in UIMA-AS.
The deployment always failed and no error message returned. Sometimes
it just said: Service: AE_Name stopped.

I debugged it and found that serviceInitializationSemaphore.acquire()
(SpringContainerDeployer.java) throws en exception
"ResourceInitializationException". And in UIMA.log it says:
08.07.10 13:04:15 - 11:
org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.initializeAnalysisEngine:
WARNUNG: org.apache.uima.resource.ResourceInitializationException:
Error initializing "org.apache.uima.resource.impl.DataResource_impl"
from descriptor
file:/C:/Users/workspace/uimf-0.3.2-SNAPSHOT/target/classes/desc/analysisEngine/primitive/nlp/POSTagger.xml.

What is strange is that I deploy this AAE SUCCESSFULLY in Eclipse on
my desktop, but it failed when using deployAsyncService.cmd. On my
laptop it always failed neither in eclipse and using
deployAsyncService.cmd.

For this reason I think the descriptor and java have no problem and
JVM has enough memory space.

Any idea about my problem? Thanks very much for your help !

-- 
Best Regards
LinTong(Pierre)

Re: Fail to deploy service in UIMA AS

Posted by LinTong <pc...@gmail.com>.
@Eddie

It works! You are right, I was not able to load that annotator in CVD
either. So I create a clean workspace and include only necessary JAR
and It works. Probably the compiler is confused by some packages which
are out of date. Thanks so much.

On Fri, Jul 9, 2010 at 2:17 PM, Eddie Epstein <ea...@gmail.com> wrote:
> In order to run the Tagger annotator the Java classpath has to include
> the classes directory in the Tagger project. Without that cvd will
> not work, nor will anything else trying to run the annotator.
>
> For me, deployAsyncService works by previously doing:
> set UIMA_CLASSPATH=\workspace\Tagger\target\classes
>
> On Thu, Jul 8, 2010 at 5:43 PM, LinTong <pc...@gmail.com> wrote:
>> @ Eddie
>> The desriptors of the annotators I use are provided by UIMA sandbox so
>> that they run perfect in UIMA or cvd. But it failed when I tried to
>> deploy it as a UIMA AS service.
>>
>>
>> On Thu, Jul 8, 2010 at 9:38 PM, Eddie Epstein <ea...@gmail.com> wrote:
>>> Try running cvd from the command line and loading that annotator:
>>> Run->Load AE and select the simple UIMA descriptor, not the
>>> UIMA AS deployment descriptor. Presumably will get the same error.
>>>
>>> Need to figure out which environment parameters to set.
>>> Check out the run configuration that is working.
>>>
>>> Eddie
>>>
>>>
>>> On Thu, Jul 8, 2010 at 12:18 PM, LinTong <pc...@gmail.com> wrote:
>>>> @Jaroslaw
>>>>
>>>> Thanks for your help. I thought the configuration of classpath had
>>>> problems because it was the only difference I can imagine between my
>>>> two computers. But all the analyse engines I use, e.g. Hidden Markov
>>>> Model Tagger Annotator, are parts of UIMA sandbox, and I have put the
>>>> jar file "uima-sandbox-0.3.1-SNAPSHOT.jar" in the folder
>>>> "UIMA_HOME/lib". Is there any other hint? Thanks very much!
>>>>
>>>>
>>>> On Thu, Jul 8, 2010 at 5:20 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
>>>>> The stack trace does not reveal the real cause of the problem. Perhaps the
>>>>> problem is a classpath not being set properly. By default, the UIMA AS
>>>>> service loads jars from UIMA_HOME/lib, UIMA_HOMA/examples/resources, and
>>>>> ACTIVEMQ_HOME directories. If these dirs dont contain classes (or a jar)
>>>>> that contain the analytic you attempting to deploy please set the
>>>>> UIMA_CLASSPATH appropriately. Check UIMA_HOME/bin/runUimaClass.bat or (sh).
>>>>> This is the script that sets up a CLASSPATH and ultimately launches the UIMA
>>>>> AS process.
>>>>>
>>>>> JC
>>>>>
>>>>> On Thu, Jul 8, 2010 at 10:30 AM, LinTong <pc...@gmail.com> wrote:
>>>>>
>>>>>> Thanks to Jaroslaw Cwiklik
>>>>>>
>>>>>> If the following message is not what you mean, please tell me how to
>>>>>> output the full stack trace. Thanks.
>>>>>>
>>>>>>
>>>>>>
>>>>>> 08.07.10 16:22:51 - 10:
>>>>>> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.deploy:
>>>>>> WARNUNG: Thread: main
>>>>>> Exception:org.springframework.beans.factory.BeanCreationException:
>>>>>> Error creating bean with name 'primitive_ctlr_NLPQueue_1' defined in
>>>>>> URL [file:C:/Users/AppData/Local/Temp/UIMAdd2springOutput43031.xml]:
>>>>>> Instantiation of bean failed; nested exception is
>>>>>> org.springframework.beans.BeanInstantiationException: Could not
>>>>>> instantiate bean class
>>>>>> [org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl]:
>>>>>> Constructor threw exception; nested exception is
>>>>>> org.apache.uima.resource.ResourceInitializationException: Error
>>>>>> initializing "org.apache.uima.resource.impl.DataResource_impl" from
>>>>>> descriptor
>>>>>> file:/C:/Development/eclipse/apache-uima/examples/descriptors/tutorial/analysisEngine/primitive/nlp/POSTagger.xml.
>>>>>> 08.07.10 16:22:51 - 10: UIMA_Service.main: WARNUNG: Thread: main
>>>>>> Exception:org.apache.uima.resource.ResourceInitializationException
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>>
>>>>>> On Thu, Jul 8, 2010 at 3:54 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
>>>>>> > Please provide a full stack trace from the uima log if it is available.
>>>>>> When
>>>>>> > there is an initialization failure there should be a cause for it.
>>>>>> > Regards, JC
>>>>>> >
>>>>>> > On Thu, Jul 8, 2010 at 7:29 AM, LinTong <pc...@gmail.com> wrote:
>>>>>> >
>>>>>> >> Hello Everybody
>>>>>> >>
>>>>>> >> I tried to deploy a UIMA aggregate AE which includes "Hidden Markov
>>>>>> >> Model Tagger Annotator" (UIMA sandbox) as a remote service in UIMA-AS.
>>>>>> >> The deployment always failed and no error message returned. Sometimes
>>>>>> >> it just said: Service: AE_Name stopped.
>>>>>> >>
>>>>>> >> I debugged it and found that serviceInitializationSemaphore.acquire()
>>>>>> >> (SpringContainerDeployer.java) throws en exception
>>>>>> >> "ResourceInitializationException". And in UIMA.log it says:
>>>>>> >> 08.07.10 13:04:15 - 11:
>>>>>> >>
>>>>>> >>
>>>>>> org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.initializeAnalysisEngine:
>>>>>> >> WARNUNG: org.apache.uima.resource.ResourceInitializationException:
>>>>>> >> Error initializing "org.apache.uima.resource.impl.DataResource_impl"
>>>>>> >> from descriptor
>>>>>> >>
>>>>>> >>
>>>>>> file:/C:/Users/workspace/uimf-0.3.2-SNAPSHOT/target/classes/desc/analysisEngine/primitive/nlp/POSTagger.xml.
>>>>>> >>
>>>>>> >> What is strange is that I deploy this AAE SUCCESSFULLY in Eclipse on
>>>>>> >> my desktop, but it failed when using deployAsyncService.cmd. On my
>>>>>> >> laptop it always failed neither in eclipse and using
>>>>>> >> deployAsyncService.cmd.
>>>>>> >>
>>>>>> >> For this reason I think the descriptor and java have no problem and
>>>>>> >> JVM has enough memory space.
>>>>>> >>
>>>>>> >> Any idea about my problem? Thanks very much for your help !
>>>>>> >>
>>>>>> >> --
>>>>>> >> Best Regards
>>>>>> >> LinTong(Pierre)
>>>>>> >>
>>>>>> >
>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Best Regards
>>>>>> LinTong(Pierre)
>>>>>>
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards
>>>> LinTong(Pierre)
>>>>
>>>
>>
>>
>>
>> --
>> Best Regards
>> LinTong(Pierre)
>>
>



-- 
Best Regards
LinTong(Pierre)

Re: Fail to deploy service in UIMA AS

Posted by Eddie Epstein <ea...@gmail.com>.
In order to run the Tagger annotator the Java classpath has to include
the classes directory in the Tagger project. Without that cvd will
not work, nor will anything else trying to run the annotator.

For me, deployAsyncService works by previously doing:
set UIMA_CLASSPATH=\workspace\Tagger\target\classes

On Thu, Jul 8, 2010 at 5:43 PM, LinTong <pc...@gmail.com> wrote:
> @ Eddie
> The desriptors of the annotators I use are provided by UIMA sandbox so
> that they run perfect in UIMA or cvd. But it failed when I tried to
> deploy it as a UIMA AS service.
>
>
> On Thu, Jul 8, 2010 at 9:38 PM, Eddie Epstein <ea...@gmail.com> wrote:
>> Try running cvd from the command line and loading that annotator:
>> Run->Load AE and select the simple UIMA descriptor, not the
>> UIMA AS deployment descriptor. Presumably will get the same error.
>>
>> Need to figure out which environment parameters to set.
>> Check out the run configuration that is working.
>>
>> Eddie
>>
>>
>> On Thu, Jul 8, 2010 at 12:18 PM, LinTong <pc...@gmail.com> wrote:
>>> @Jaroslaw
>>>
>>> Thanks for your help. I thought the configuration of classpath had
>>> problems because it was the only difference I can imagine between my
>>> two computers. But all the analyse engines I use, e.g. Hidden Markov
>>> Model Tagger Annotator, are parts of UIMA sandbox, and I have put the
>>> jar file "uima-sandbox-0.3.1-SNAPSHOT.jar" in the folder
>>> "UIMA_HOME/lib". Is there any other hint? Thanks very much!
>>>
>>>
>>> On Thu, Jul 8, 2010 at 5:20 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
>>>> The stack trace does not reveal the real cause of the problem. Perhaps the
>>>> problem is a classpath not being set properly. By default, the UIMA AS
>>>> service loads jars from UIMA_HOME/lib, UIMA_HOMA/examples/resources, and
>>>> ACTIVEMQ_HOME directories. If these dirs dont contain classes (or a jar)
>>>> that contain the analytic you attempting to deploy please set the
>>>> UIMA_CLASSPATH appropriately. Check UIMA_HOME/bin/runUimaClass.bat or (sh).
>>>> This is the script that sets up a CLASSPATH and ultimately launches the UIMA
>>>> AS process.
>>>>
>>>> JC
>>>>
>>>> On Thu, Jul 8, 2010 at 10:30 AM, LinTong <pc...@gmail.com> wrote:
>>>>
>>>>> Thanks to Jaroslaw Cwiklik
>>>>>
>>>>> If the following message is not what you mean, please tell me how to
>>>>> output the full stack trace. Thanks.
>>>>>
>>>>>
>>>>>
>>>>> 08.07.10 16:22:51 - 10:
>>>>> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.deploy:
>>>>> WARNUNG: Thread: main
>>>>> Exception:org.springframework.beans.factory.BeanCreationException:
>>>>> Error creating bean with name 'primitive_ctlr_NLPQueue_1' defined in
>>>>> URL [file:C:/Users/AppData/Local/Temp/UIMAdd2springOutput43031.xml]:
>>>>> Instantiation of bean failed; nested exception is
>>>>> org.springframework.beans.BeanInstantiationException: Could not
>>>>> instantiate bean class
>>>>> [org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl]:
>>>>> Constructor threw exception; nested exception is
>>>>> org.apache.uima.resource.ResourceInitializationException: Error
>>>>> initializing "org.apache.uima.resource.impl.DataResource_impl" from
>>>>> descriptor
>>>>> file:/C:/Development/eclipse/apache-uima/examples/descriptors/tutorial/analysisEngine/primitive/nlp/POSTagger.xml.
>>>>> 08.07.10 16:22:51 - 10: UIMA_Service.main: WARNUNG: Thread: main
>>>>> Exception:org.apache.uima.resource.ResourceInitializationException
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> On Thu, Jul 8, 2010 at 3:54 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
>>>>> > Please provide a full stack trace from the uima log if it is available.
>>>>> When
>>>>> > there is an initialization failure there should be a cause for it.
>>>>> > Regards, JC
>>>>> >
>>>>> > On Thu, Jul 8, 2010 at 7:29 AM, LinTong <pc...@gmail.com> wrote:
>>>>> >
>>>>> >> Hello Everybody
>>>>> >>
>>>>> >> I tried to deploy a UIMA aggregate AE which includes "Hidden Markov
>>>>> >> Model Tagger Annotator" (UIMA sandbox) as a remote service in UIMA-AS.
>>>>> >> The deployment always failed and no error message returned. Sometimes
>>>>> >> it just said: Service: AE_Name stopped.
>>>>> >>
>>>>> >> I debugged it and found that serviceInitializationSemaphore.acquire()
>>>>> >> (SpringContainerDeployer.java) throws en exception
>>>>> >> "ResourceInitializationException". And in UIMA.log it says:
>>>>> >> 08.07.10 13:04:15 - 11:
>>>>> >>
>>>>> >>
>>>>> org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.initializeAnalysisEngine:
>>>>> >> WARNUNG: org.apache.uima.resource.ResourceInitializationException:
>>>>> >> Error initializing "org.apache.uima.resource.impl.DataResource_impl"
>>>>> >> from descriptor
>>>>> >>
>>>>> >>
>>>>> file:/C:/Users/workspace/uimf-0.3.2-SNAPSHOT/target/classes/desc/analysisEngine/primitive/nlp/POSTagger.xml.
>>>>> >>
>>>>> >> What is strange is that I deploy this AAE SUCCESSFULLY in Eclipse on
>>>>> >> my desktop, but it failed when using deployAsyncService.cmd. On my
>>>>> >> laptop it always failed neither in eclipse and using
>>>>> >> deployAsyncService.cmd.
>>>>> >>
>>>>> >> For this reason I think the descriptor and java have no problem and
>>>>> >> JVM has enough memory space.
>>>>> >>
>>>>> >> Any idea about my problem? Thanks very much for your help !
>>>>> >>
>>>>> >> --
>>>>> >> Best Regards
>>>>> >> LinTong(Pierre)
>>>>> >>
>>>>> >
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Best Regards
>>>>> LinTong(Pierre)
>>>>>
>>>>
>>>
>>>
>>>
>>> --
>>> Best Regards
>>> LinTong(Pierre)
>>>
>>
>
>
>
> --
> Best Regards
> LinTong(Pierre)
>

Re: Fail to deploy service in UIMA AS

Posted by LinTong <pc...@gmail.com>.
@ Eddie
The desriptors of the annotators I use are provided by UIMA sandbox so
that they run perfect in UIMA or cvd. But it failed when I tried to
deploy it as a UIMA AS service.


On Thu, Jul 8, 2010 at 9:38 PM, Eddie Epstein <ea...@gmail.com> wrote:
> Try running cvd from the command line and loading that annotator:
> Run->Load AE and select the simple UIMA descriptor, not the
> UIMA AS deployment descriptor. Presumably will get the same error.
>
> Need to figure out which environment parameters to set.
> Check out the run configuration that is working.
>
> Eddie
>
>
> On Thu, Jul 8, 2010 at 12:18 PM, LinTong <pc...@gmail.com> wrote:
>> @Jaroslaw
>>
>> Thanks for your help. I thought the configuration of classpath had
>> problems because it was the only difference I can imagine between my
>> two computers. But all the analyse engines I use, e.g. Hidden Markov
>> Model Tagger Annotator, are parts of UIMA sandbox, and I have put the
>> jar file "uima-sandbox-0.3.1-SNAPSHOT.jar" in the folder
>> "UIMA_HOME/lib". Is there any other hint? Thanks very much!
>>
>>
>> On Thu, Jul 8, 2010 at 5:20 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
>>> The stack trace does not reveal the real cause of the problem. Perhaps the
>>> problem is a classpath not being set properly. By default, the UIMA AS
>>> service loads jars from UIMA_HOME/lib, UIMA_HOMA/examples/resources, and
>>> ACTIVEMQ_HOME directories. If these dirs dont contain classes (or a jar)
>>> that contain the analytic you attempting to deploy please set the
>>> UIMA_CLASSPATH appropriately. Check UIMA_HOME/bin/runUimaClass.bat or (sh).
>>> This is the script that sets up a CLASSPATH and ultimately launches the UIMA
>>> AS process.
>>>
>>> JC
>>>
>>> On Thu, Jul 8, 2010 at 10:30 AM, LinTong <pc...@gmail.com> wrote:
>>>
>>>> Thanks to Jaroslaw Cwiklik
>>>>
>>>> If the following message is not what you mean, please tell me how to
>>>> output the full stack trace. Thanks.
>>>>
>>>>
>>>>
>>>> 08.07.10 16:22:51 - 10:
>>>> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.deploy:
>>>> WARNUNG: Thread: main
>>>> Exception:org.springframework.beans.factory.BeanCreationException:
>>>> Error creating bean with name 'primitive_ctlr_NLPQueue_1' defined in
>>>> URL [file:C:/Users/AppData/Local/Temp/UIMAdd2springOutput43031.xml]:
>>>> Instantiation of bean failed; nested exception is
>>>> org.springframework.beans.BeanInstantiationException: Could not
>>>> instantiate bean class
>>>> [org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl]:
>>>> Constructor threw exception; nested exception is
>>>> org.apache.uima.resource.ResourceInitializationException: Error
>>>> initializing "org.apache.uima.resource.impl.DataResource_impl" from
>>>> descriptor
>>>> file:/C:/Development/eclipse/apache-uima/examples/descriptors/tutorial/analysisEngine/primitive/nlp/POSTagger.xml.
>>>> 08.07.10 16:22:51 - 10: UIMA_Service.main: WARNUNG: Thread: main
>>>> Exception:org.apache.uima.resource.ResourceInitializationException
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, Jul 8, 2010 at 3:54 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
>>>> > Please provide a full stack trace from the uima log if it is available.
>>>> When
>>>> > there is an initialization failure there should be a cause for it.
>>>> > Regards, JC
>>>> >
>>>> > On Thu, Jul 8, 2010 at 7:29 AM, LinTong <pc...@gmail.com> wrote:
>>>> >
>>>> >> Hello Everybody
>>>> >>
>>>> >> I tried to deploy a UIMA aggregate AE which includes "Hidden Markov
>>>> >> Model Tagger Annotator" (UIMA sandbox) as a remote service in UIMA-AS.
>>>> >> The deployment always failed and no error message returned. Sometimes
>>>> >> it just said: Service: AE_Name stopped.
>>>> >>
>>>> >> I debugged it and found that serviceInitializationSemaphore.acquire()
>>>> >> (SpringContainerDeployer.java) throws en exception
>>>> >> "ResourceInitializationException". And in UIMA.log it says:
>>>> >> 08.07.10 13:04:15 - 11:
>>>> >>
>>>> >>
>>>> org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.initializeAnalysisEngine:
>>>> >> WARNUNG: org.apache.uima.resource.ResourceInitializationException:
>>>> >> Error initializing "org.apache.uima.resource.impl.DataResource_impl"
>>>> >> from descriptor
>>>> >>
>>>> >>
>>>> file:/C:/Users/workspace/uimf-0.3.2-SNAPSHOT/target/classes/desc/analysisEngine/primitive/nlp/POSTagger.xml.
>>>> >>
>>>> >> What is strange is that I deploy this AAE SUCCESSFULLY in Eclipse on
>>>> >> my desktop, but it failed when using deployAsyncService.cmd. On my
>>>> >> laptop it always failed neither in eclipse and using
>>>> >> deployAsyncService.cmd.
>>>> >>
>>>> >> For this reason I think the descriptor and java have no problem and
>>>> >> JVM has enough memory space.
>>>> >>
>>>> >> Any idea about my problem? Thanks very much for your help !
>>>> >>
>>>> >> --
>>>> >> Best Regards
>>>> >> LinTong(Pierre)
>>>> >>
>>>> >
>>>>
>>>>
>>>>
>>>> --
>>>> Best Regards
>>>> LinTong(Pierre)
>>>>
>>>
>>
>>
>>
>> --
>> Best Regards
>> LinTong(Pierre)
>>
>



-- 
Best Regards
LinTong(Pierre)

Re: Fail to deploy service in UIMA AS

Posted by Eddie Epstein <ea...@gmail.com>.
Try running cvd from the command line and loading that annotator:
Run->Load AE and select the simple UIMA descriptor, not the
UIMA AS deployment descriptor. Presumably will get the same error.

Need to figure out which environment parameters to set.
Check out the run configuration that is working.

Eddie


On Thu, Jul 8, 2010 at 12:18 PM, LinTong <pc...@gmail.com> wrote:
> @Jaroslaw
>
> Thanks for your help. I thought the configuration of classpath had
> problems because it was the only difference I can imagine between my
> two computers. But all the analyse engines I use, e.g. Hidden Markov
> Model Tagger Annotator, are parts of UIMA sandbox, and I have put the
> jar file "uima-sandbox-0.3.1-SNAPSHOT.jar" in the folder
> "UIMA_HOME/lib". Is there any other hint? Thanks very much!
>
>
> On Thu, Jul 8, 2010 at 5:20 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
>> The stack trace does not reveal the real cause of the problem. Perhaps the
>> problem is a classpath not being set properly. By default, the UIMA AS
>> service loads jars from UIMA_HOME/lib, UIMA_HOMA/examples/resources, and
>> ACTIVEMQ_HOME directories. If these dirs dont contain classes (or a jar)
>> that contain the analytic you attempting to deploy please set the
>> UIMA_CLASSPATH appropriately. Check UIMA_HOME/bin/runUimaClass.bat or (sh).
>> This is the script that sets up a CLASSPATH and ultimately launches the UIMA
>> AS process.
>>
>> JC
>>
>> On Thu, Jul 8, 2010 at 10:30 AM, LinTong <pc...@gmail.com> wrote:
>>
>>> Thanks to Jaroslaw Cwiklik
>>>
>>> If the following message is not what you mean, please tell me how to
>>> output the full stack trace. Thanks.
>>>
>>>
>>>
>>> 08.07.10 16:22:51 - 10:
>>> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.deploy:
>>> WARNUNG: Thread: main
>>> Exception:org.springframework.beans.factory.BeanCreationException:
>>> Error creating bean with name 'primitive_ctlr_NLPQueue_1' defined in
>>> URL [file:C:/Users/AppData/Local/Temp/UIMAdd2springOutput43031.xml]:
>>> Instantiation of bean failed; nested exception is
>>> org.springframework.beans.BeanInstantiationException: Could not
>>> instantiate bean class
>>> [org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl]:
>>> Constructor threw exception; nested exception is
>>> org.apache.uima.resource.ResourceInitializationException: Error
>>> initializing "org.apache.uima.resource.impl.DataResource_impl" from
>>> descriptor
>>> file:/C:/Development/eclipse/apache-uima/examples/descriptors/tutorial/analysisEngine/primitive/nlp/POSTagger.xml.
>>> 08.07.10 16:22:51 - 10: UIMA_Service.main: WARNUNG: Thread: main
>>> Exception:org.apache.uima.resource.ResourceInitializationException
>>>
>>>
>>>
>>>
>>>
>>> On Thu, Jul 8, 2010 at 3:54 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
>>> > Please provide a full stack trace from the uima log if it is available.
>>> When
>>> > there is an initialization failure there should be a cause for it.
>>> > Regards, JC
>>> >
>>> > On Thu, Jul 8, 2010 at 7:29 AM, LinTong <pc...@gmail.com> wrote:
>>> >
>>> >> Hello Everybody
>>> >>
>>> >> I tried to deploy a UIMA aggregate AE which includes "Hidden Markov
>>> >> Model Tagger Annotator" (UIMA sandbox) as a remote service in UIMA-AS.
>>> >> The deployment always failed and no error message returned. Sometimes
>>> >> it just said: Service: AE_Name stopped.
>>> >>
>>> >> I debugged it and found that serviceInitializationSemaphore.acquire()
>>> >> (SpringContainerDeployer.java) throws en exception
>>> >> "ResourceInitializationException". And in UIMA.log it says:
>>> >> 08.07.10 13:04:15 - 11:
>>> >>
>>> >>
>>> org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.initializeAnalysisEngine:
>>> >> WARNUNG: org.apache.uima.resource.ResourceInitializationException:
>>> >> Error initializing "org.apache.uima.resource.impl.DataResource_impl"
>>> >> from descriptor
>>> >>
>>> >>
>>> file:/C:/Users/workspace/uimf-0.3.2-SNAPSHOT/target/classes/desc/analysisEngine/primitive/nlp/POSTagger.xml.
>>> >>
>>> >> What is strange is that I deploy this AAE SUCCESSFULLY in Eclipse on
>>> >> my desktop, but it failed when using deployAsyncService.cmd. On my
>>> >> laptop it always failed neither in eclipse and using
>>> >> deployAsyncService.cmd.
>>> >>
>>> >> For this reason I think the descriptor and java have no problem and
>>> >> JVM has enough memory space.
>>> >>
>>> >> Any idea about my problem? Thanks very much for your help !
>>> >>
>>> >> --
>>> >> Best Regards
>>> >> LinTong(Pierre)
>>> >>
>>> >
>>>
>>>
>>>
>>> --
>>> Best Regards
>>> LinTong(Pierre)
>>>
>>
>
>
>
> --
> Best Regards
> LinTong(Pierre)
>

Re: Fail to deploy service in UIMA AS

Posted by LinTong <pc...@gmail.com>.
@Jaroslaw

Thanks for your help. I thought the configuration of classpath had
problems because it was the only difference I can imagine between my
two computers. But all the analyse engines I use, e.g. Hidden Markov
Model Tagger Annotator, are parts of UIMA sandbox, and I have put the
jar file "uima-sandbox-0.3.1-SNAPSHOT.jar" in the folder
"UIMA_HOME/lib". Is there any other hint? Thanks very much!


On Thu, Jul 8, 2010 at 5:20 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
> The stack trace does not reveal the real cause of the problem. Perhaps the
> problem is a classpath not being set properly. By default, the UIMA AS
> service loads jars from UIMA_HOME/lib, UIMA_HOMA/examples/resources, and
> ACTIVEMQ_HOME directories. If these dirs dont contain classes (or a jar)
> that contain the analytic you attempting to deploy please set the
> UIMA_CLASSPATH appropriately. Check UIMA_HOME/bin/runUimaClass.bat or (sh).
> This is the script that sets up a CLASSPATH and ultimately launches the UIMA
> AS process.
>
> JC
>
> On Thu, Jul 8, 2010 at 10:30 AM, LinTong <pc...@gmail.com> wrote:
>
>> Thanks to Jaroslaw Cwiklik
>>
>> If the following message is not what you mean, please tell me how to
>> output the full stack trace. Thanks.
>>
>>
>>
>> 08.07.10 16:22:51 - 10:
>> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.deploy:
>> WARNUNG: Thread: main
>> Exception:org.springframework.beans.factory.BeanCreationException:
>> Error creating bean with name 'primitive_ctlr_NLPQueue_1' defined in
>> URL [file:C:/Users/AppData/Local/Temp/UIMAdd2springOutput43031.xml]:
>> Instantiation of bean failed; nested exception is
>> org.springframework.beans.BeanInstantiationException: Could not
>> instantiate bean class
>> [org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl]:
>> Constructor threw exception; nested exception is
>> org.apache.uima.resource.ResourceInitializationException: Error
>> initializing "org.apache.uima.resource.impl.DataResource_impl" from
>> descriptor
>> file:/C:/Development/eclipse/apache-uima/examples/descriptors/tutorial/analysisEngine/primitive/nlp/POSTagger.xml.
>> 08.07.10 16:22:51 - 10: UIMA_Service.main: WARNUNG: Thread: main
>> Exception:org.apache.uima.resource.ResourceInitializationException
>>
>>
>>
>>
>>
>> On Thu, Jul 8, 2010 at 3:54 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
>> > Please provide a full stack trace from the uima log if it is available.
>> When
>> > there is an initialization failure there should be a cause for it.
>> > Regards, JC
>> >
>> > On Thu, Jul 8, 2010 at 7:29 AM, LinTong <pc...@gmail.com> wrote:
>> >
>> >> Hello Everybody
>> >>
>> >> I tried to deploy a UIMA aggregate AE which includes "Hidden Markov
>> >> Model Tagger Annotator" (UIMA sandbox) as a remote service in UIMA-AS.
>> >> The deployment always failed and no error message returned. Sometimes
>> >> it just said: Service: AE_Name stopped.
>> >>
>> >> I debugged it and found that serviceInitializationSemaphore.acquire()
>> >> (SpringContainerDeployer.java) throws en exception
>> >> "ResourceInitializationException". And in UIMA.log it says:
>> >> 08.07.10 13:04:15 - 11:
>> >>
>> >>
>> org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.initializeAnalysisEngine:
>> >> WARNUNG: org.apache.uima.resource.ResourceInitializationException:
>> >> Error initializing "org.apache.uima.resource.impl.DataResource_impl"
>> >> from descriptor
>> >>
>> >>
>> file:/C:/Users/workspace/uimf-0.3.2-SNAPSHOT/target/classes/desc/analysisEngine/primitive/nlp/POSTagger.xml.
>> >>
>> >> What is strange is that I deploy this AAE SUCCESSFULLY in Eclipse on
>> >> my desktop, but it failed when using deployAsyncService.cmd. On my
>> >> laptop it always failed neither in eclipse and using
>> >> deployAsyncService.cmd.
>> >>
>> >> For this reason I think the descriptor and java have no problem and
>> >> JVM has enough memory space.
>> >>
>> >> Any idea about my problem? Thanks very much for your help !
>> >>
>> >> --
>> >> Best Regards
>> >> LinTong(Pierre)
>> >>
>> >
>>
>>
>>
>> --
>> Best Regards
>> LinTong(Pierre)
>>
>



-- 
Best Regards
LinTong(Pierre)

Re: Fail to deploy service in UIMA AS

Posted by Jaroslaw Cwiklik <ui...@gmail.com>.
The stack trace does not reveal the real cause of the problem. Perhaps the
problem is a classpath not being set properly. By default, the UIMA AS
service loads jars from UIMA_HOME/lib, UIMA_HOMA/examples/resources, and
ACTIVEMQ_HOME directories. If these dirs dont contain classes (or a jar)
that contain the analytic you attempting to deploy please set the
UIMA_CLASSPATH appropriately. Check UIMA_HOME/bin/runUimaClass.bat or (sh).
This is the script that sets up a CLASSPATH and ultimately launches the UIMA
AS process.

JC

On Thu, Jul 8, 2010 at 10:30 AM, LinTong <pc...@gmail.com> wrote:

> Thanks to Jaroslaw Cwiklik
>
> If the following message is not what you mean, please tell me how to
> output the full stack trace. Thanks.
>
>
>
> 08.07.10 16:22:51 - 10:
> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.deploy:
> WARNUNG: Thread: main
> Exception:org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'primitive_ctlr_NLPQueue_1' defined in
> URL [file:C:/Users/AppData/Local/Temp/UIMAdd2springOutput43031.xml]:
> Instantiation of bean failed; nested exception is
> org.springframework.beans.BeanInstantiationException: Could not
> instantiate bean class
> [org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl]:
> Constructor threw exception; nested exception is
> org.apache.uima.resource.ResourceInitializationException: Error
> initializing "org.apache.uima.resource.impl.DataResource_impl" from
> descriptor
> file:/C:/Development/eclipse/apache-uima/examples/descriptors/tutorial/analysisEngine/primitive/nlp/POSTagger.xml.
> 08.07.10 16:22:51 - 10: UIMA_Service.main: WARNUNG: Thread: main
> Exception:org.apache.uima.resource.ResourceInitializationException
>
>
>
>
>
> On Thu, Jul 8, 2010 at 3:54 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
> > Please provide a full stack trace from the uima log if it is available.
> When
> > there is an initialization failure there should be a cause for it.
> > Regards, JC
> >
> > On Thu, Jul 8, 2010 at 7:29 AM, LinTong <pc...@gmail.com> wrote:
> >
> >> Hello Everybody
> >>
> >> I tried to deploy a UIMA aggregate AE which includes "Hidden Markov
> >> Model Tagger Annotator" (UIMA sandbox) as a remote service in UIMA-AS.
> >> The deployment always failed and no error message returned. Sometimes
> >> it just said: Service: AE_Name stopped.
> >>
> >> I debugged it and found that serviceInitializationSemaphore.acquire()
> >> (SpringContainerDeployer.java) throws en exception
> >> "ResourceInitializationException". And in UIMA.log it says:
> >> 08.07.10 13:04:15 - 11:
> >>
> >>
> org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.initializeAnalysisEngine:
> >> WARNUNG: org.apache.uima.resource.ResourceInitializationException:
> >> Error initializing "org.apache.uima.resource.impl.DataResource_impl"
> >> from descriptor
> >>
> >>
> file:/C:/Users/workspace/uimf-0.3.2-SNAPSHOT/target/classes/desc/analysisEngine/primitive/nlp/POSTagger.xml.
> >>
> >> What is strange is that I deploy this AAE SUCCESSFULLY in Eclipse on
> >> my desktop, but it failed when using deployAsyncService.cmd. On my
> >> laptop it always failed neither in eclipse and using
> >> deployAsyncService.cmd.
> >>
> >> For this reason I think the descriptor and java have no problem and
> >> JVM has enough memory space.
> >>
> >> Any idea about my problem? Thanks very much for your help !
> >>
> >> --
> >> Best Regards
> >> LinTong(Pierre)
> >>
> >
>
>
>
> --
> Best Regards
> LinTong(Pierre)
>

Re: Fail to deploy service in UIMA AS

Posted by LinTong <pc...@gmail.com>.
Thanks to Jaroslaw Cwiklik

If the following message is not what you mean, please tell me how to
output the full stack trace. Thanks.



08.07.10 16:22:51 - 10:
org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.deploy:
WARNUNG: Thread: main
Exception:org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'primitive_ctlr_NLPQueue_1' defined in
URL [file:C:/Users/AppData/Local/Temp/UIMAdd2springOutput43031.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not
instantiate bean class
[org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl]:
Constructor threw exception; nested exception is
org.apache.uima.resource.ResourceInitializationException: Error
initializing "org.apache.uima.resource.impl.DataResource_impl" from
descriptor file:/C:/Development/eclipse/apache-uima/examples/descriptors/tutorial/analysisEngine/primitive/nlp/POSTagger.xml.
08.07.10 16:22:51 - 10: UIMA_Service.main: WARNUNG: Thread: main
Exception:org.apache.uima.resource.ResourceInitializationException





On Thu, Jul 8, 2010 at 3:54 PM, Jaroslaw Cwiklik <ui...@gmail.com> wrote:
> Please provide a full stack trace from the uima log if it is available. When
> there is an initialization failure there should be a cause for it.
> Regards, JC
>
> On Thu, Jul 8, 2010 at 7:29 AM, LinTong <pc...@gmail.com> wrote:
>
>> Hello Everybody
>>
>> I tried to deploy a UIMA aggregate AE which includes "Hidden Markov
>> Model Tagger Annotator" (UIMA sandbox) as a remote service in UIMA-AS.
>> The deployment always failed and no error message returned. Sometimes
>> it just said: Service: AE_Name stopped.
>>
>> I debugged it and found that serviceInitializationSemaphore.acquire()
>> (SpringContainerDeployer.java) throws en exception
>> "ResourceInitializationException". And in UIMA.log it says:
>> 08.07.10 13:04:15 - 11:
>>
>> org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.initializeAnalysisEngine:
>> WARNUNG: org.apache.uima.resource.ResourceInitializationException:
>> Error initializing "org.apache.uima.resource.impl.DataResource_impl"
>> from descriptor
>>
>> file:/C:/Users/workspace/uimf-0.3.2-SNAPSHOT/target/classes/desc/analysisEngine/primitive/nlp/POSTagger.xml.
>>
>> What is strange is that I deploy this AAE SUCCESSFULLY in Eclipse on
>> my desktop, but it failed when using deployAsyncService.cmd. On my
>> laptop it always failed neither in eclipse and using
>> deployAsyncService.cmd.
>>
>> For this reason I think the descriptor and java have no problem and
>> JVM has enough memory space.
>>
>> Any idea about my problem? Thanks very much for your help !
>>
>> --
>> Best Regards
>> LinTong(Pierre)
>>
>



-- 
Best Regards
LinTong(Pierre)

Re: Fail to deploy service in UIMA AS

Posted by Jaroslaw Cwiklik <ui...@gmail.com>.
Please provide a full stack trace from the uima log if it is available. When
there is an initialization failure there should be a cause for it.
Regards, JC

On Thu, Jul 8, 2010 at 7:29 AM, LinTong <pc...@gmail.com> wrote:

> Hello Everybody
>
> I tried to deploy a UIMA aggregate AE which includes "Hidden Markov
> Model Tagger Annotator" (UIMA sandbox) as a remote service in UIMA-AS.
> The deployment always failed and no error message returned. Sometimes
> it just said: Service: AE_Name stopped.
>
> I debugged it and found that serviceInitializationSemaphore.acquire()
> (SpringContainerDeployer.java) throws en exception
> "ResourceInitializationException". And in UIMA.log it says:
> 08.07.10 13:04:15 - 11:
>
> org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.initializeAnalysisEngine:
> WARNUNG: org.apache.uima.resource.ResourceInitializationException:
> Error initializing "org.apache.uima.resource.impl.DataResource_impl"
> from descriptor
>
> file:/C:/Users/workspace/uimf-0.3.2-SNAPSHOT/target/classes/desc/analysisEngine/primitive/nlp/POSTagger.xml.
>
> What is strange is that I deploy this AAE SUCCESSFULLY in Eclipse on
> my desktop, but it failed when using deployAsyncService.cmd. On my
> laptop it always failed neither in eclipse and using
> deployAsyncService.cmd.
>
> For this reason I think the descriptor and java have no problem and
> JVM has enough memory space.
>
> Any idea about my problem? Thanks very much for your help !
>
> --
> Best Regards
> LinTong(Pierre)
>