The UIMA_CLASSPATH environment variable is just for user code. UIMA
command line scripts append all necessary UIMA code dependencies
automatically.

Eddie

On Tue, Aug 2, 2011 at 9:42 AM, Meghana <[email protected]> wrote:
> Hi Jaroslaw,
>
> It was because I had the UIMA_CLASSPATH environment variable set from my
> previous UIMA trials. On this note, is there a better way to pass UIMA the
> classpath (other than environment variables or <ev> tags, etc)?
>
> Thanks,
>
> ..m
>
>
> On 2 August 2011 18:58, Meghana <[email protected]> wrote:
>
>> Hey Jaroslaw,
>>
>> Thanks for your reply. You're right! How silly of me.... x-(
>>
>> Thanks,
>>
>> ..m
>>
>>
>> On 2 August 2011 18:51, Jaroslaw Cwiklik <[email protected]> wrote:
>>
>>> Meghana, check your classpath. Seems like you are running with old uima
>>> jars. When UIMA AS service starts it dumps the entire classpath.  I
>>> checked
>>> uima-as source and method calls shown in a stack trace you've provided
>>> dont
>>> line up with the 2.3.1 source.
>>>
>>> JC
>>>
>>> On Tue, Aug 2, 2011 at 7:09 AM, Meghana <[email protected]
>>> >wrote:
>>>
>>> > Hi all,
>>> >
>>> > I am trying to deploy my aggregate AE as a UIMA AS (version 2.3.1). I
>>> was
>>> > able to run the MeetingFinder example via RunRemoteAsyncAE &
>>> > FileSystemCollectionReader.
>>> >
>>> > I deployed my aggregate AE using deployAsyncService.sh. I pass in a
>>> custom
>>> > collection reader (which works in a non-AS environment). When I call
>>> > uimaEngine.process(), i get the following error after a little while:
>>> >
>>> > Aug 2, 2011 3:53:48 PM
>>> > org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl
>>> > handleException
>>> > INFO: Received Exception In Message From:UimaASClient Cas
>>> > Identifier:3593980e:1318a04b3f4:-7ffd
>>> > Exception:org.apache.uima.aae.error.UimaEEServiceException:
>>> > java.lang.NoSuchMethodError:
>>> > org.apache.uima.cas.CAS.createMarker()Lorg/apache/uima/cas/Marker;
>>> > org.apache.uima.aae.error.UimaEEServiceException:
>>> > java.lang.NoSuchMethodError:
>>> > org.apache.uima.cas.CAS.createMarker()Lorg/apache/uima/cas/Marker;
>>> >    at
>>> >
>>> >
>>> org.apache.uima.adapter.jms.activemq.JmsOutputChannel.sendReply(JmsOutputChannel.java:820)
>>> >    at
>>> >
>>> >
>>> org.apache.uima.aae.error.handler.ProcessCasErrorHandler.sendExceptionToClient(ProcessCasErrorHandler.java:150)
>>> >    at
>>> >
>>> >
>>> org.apache.uima.aae.error.handler.ProcessCasErrorHandler.handleError(ProcessCasErrorHandler.java:661)
>>> >    at
>>> >
>>> >
>>> org.apache.uima.aae.error.ErrorHandlerChain.handle(ErrorHandlerChain.java:57)
>>> >    at
>>> >
>>> >
>>> org.apache.uima.adapter.jms.activemq.JmsInputChannel.onMessage(JmsInputChannel.java:722)
>>> >    at
>>> >
>>> >
>>> org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:535)
>>> >    at
>>> >
>>> >
>>> org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:495)
>>> >    at
>>> >
>>> >
>>> org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:467)
>>> >    at
>>> >
>>> >
>>> org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:323)
>>> >    at
>>> >
>>> >
>>> org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:261)
>>> >    at
>>> >
>>> >
>>> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1056)
>>> >    at
>>> >
>>> >
>>> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1048)
>>> >    at
>>> >
>>> >
>>> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:947)
>>> >    at
>>> >
>>> >
>>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>>> >    at
>>> >
>>> >
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>>> >    at
>>> >
>>> org.apache.uima.aae.UimaAsThreadFactory$1.run(UimaAsThreadFactory.java:106)
>>> >    at java.lang.Thread.run(Thread.java:619)
>>> > Caused by: java.lang.NoSuchMethodError:
>>> > org.apache.uima.cas.CAS.createMarker()Lorg/apache/uima/cas/Marker;
>>> >    at
>>> >
>>> >
>>> org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.deserializeCASandRegisterWithCache(ProcessRequestHandler_impl.java:216)
>>> >    at
>>> >
>>> >
>>> org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.handleProcessRequestFromRemoteClient(ProcessRequestHandler_impl.java:461)
>>> >    at
>>> >
>>> >
>>> org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.handle(ProcessRequestHandler_impl.java:952)
>>> >    at
>>> >
>>> >
>>> org.apache.uima.aae.handler.input.MetadataRequestHandler_impl.handle(MetadataRequestHandler_impl.java:78)
>>> >    at
>>> >
>>> >
>>> org.apache.uima.adapter.jms.activemq.JmsInputChannel.onMessage(JmsInputChannel.java:702)
>>> >    ... 12 more
>>> >
>>> >
>>> > How do I resolve this? The CAS interface has the createMarker() method,
>>> so
>>> > ....? Please help!
>>> >
>>> > Thanks,
>>> >
>>> > ..meghana
>>> >
>>>
>>
>>
>

Reply via email to