uima-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jaroslaw Cwiklik <uim...@gmail.com>
Subject Re: TERMINATE Action with org.xml.sax.SAXParseException in deserializeCasFromXmi function
Date Fri, 18 Nov 2016 20:39:52 GMT
Hi, looks like a bug. Will take a look on Monday.
Thanks
Jerry

On Fri, Nov 18, 2016 at 11:12 AM, nelson rivera <nelsonrivera12@gmail.com>
wrote:

> I have a service aggregate deploys in uima-as. When i send a input cas
> with a text that contains apparently invalid character, occurs an
> error deserializing the cas and the framework stops the aggregate
> service
>
> this is the complete stacktrace:
>
> 09:54:38.24 - 1:
> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.
> doStartListeners:
> INFO: Controller: XTokenizerAggregate Trying to Start Listener on
> Endpoint: queue://XTokenizerAggregate Selector: Command=2000 OR
> Command=2002 Broker: tcp://localhost:61616
> 09:54:38.193 - 1:
> org.apache.uima.adapter.jms.activemq.SpringContainerDeployer.
> doStartListeners:
> INFO: Controller: XTokenizerAggregate Trying to Start Listener on
> Endpoint: queue://XTokenizerAggregate Selector: Command=2001 Broker:
> tcp://localhost:61616
> 09:55:11.411 - 16:
> org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.
> handleProcessRequestFromRemoteClient:
> WARNING: Service: XTokenizerAggregate Runtime Exception
> 09:55:11.411 - 16:
> org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.
> handleProcessRequestFromRemoteClient:
> WARNING:
> org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 585;
> Character reference "&#
>         at com.sun.org.apache.xerces.internal.parsers.
> AbstractSAXParser.parse(AbstractSAXParser.java:1239)
>         at org.apache.uima.aae.UimaSerializer.deserializeCasFromXmi(
> UimaSerializer.java:187)
>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.
> deserializeCASandRegisterWithCache(ProcessRequestHandler_impl.java:220)
>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.
> handleProcessRequestFromRemoteClient(ProcessRequestHandler_impl.java:531)
>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_
> impl.handle(ProcessRequestHandler_impl.java:1062)
>         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:731)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.doInvokeListener(AbstractMessageListenerContainer.java:689)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.invokeListener(AbstractMessageListenerContainer.java:649)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.doExecuteListener(AbstractMessageListenerContainer.java:619)
>         at org.springframework.jms.listener.AbstractPollingMessageListener
> Container.doReceiveAndExecute(AbstractPollingMessageListener
> Container.java:307)
>         at org.springframework.jms.listener.AbstractPollingMessageListener
> Container.receiveAndExecute(AbstractPollingMessageListener
> Container.java:245)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.invokeListener(
> DefaultMessageListenerContainer.java:1144)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.executeOngoingLoop(
> DefaultMessageListenerContainer.java:1136)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.run(DefaultMessageListenerContaine
> r.java:1033)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
>         at org.apache.uima.aae.UimaAsThreadFactory$1.run(
> UimaAsThreadFactory.java:132)
>         at java.lang.Thread.run(Thread.java:745)
>
> 09:55:11.412 - 16:
> org.apache.uima.aae.error.handler.ProcessCasErrorHandler.handleError:
> WARNING: Service: XTokenizerAggregate Runtime Exception
> 09:55:11.412 - 16:
> org.apache.uima.aae.error.handler.ProcessCasErrorHandler.handleError:
> WARNING:
> org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 585;
> Character reference "&#
>         at com.sun.org.apache.xerces.internal.parsers.
> AbstractSAXParser.parse(AbstractSAXParser.java:1239)
>         at org.apache.uima.aae.UimaSerializer.deserializeCasFromXmi(
> UimaSerializer.java:187)
>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.
> deserializeCASandRegisterWithCache(ProcessRequestHandler_impl.java:220)
>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.
> handleProcessRequestFromRemoteClient(ProcessRequestHandler_impl.java:531)
>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_
> impl.handle(ProcessRequestHandler_impl.java:1062)
>         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:731)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.doInvokeListener(AbstractMessageListenerContainer.java:689)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.invokeListener(AbstractMessageListenerContainer.java:649)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.doExecuteListener(AbstractMessageListenerContainer.java:619)
>         at org.springframework.jms.listener.AbstractPollingMessageListener
> Container.doReceiveAndExecute(AbstractPollingMessageListener
> Container.java:307)
>         at org.springframework.jms.listener.AbstractPollingMessageListener
> Container.receiveAndExecute(AbstractPollingMessageListener
> Container.java:245)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.invokeListener(
> DefaultMessageListenerContainer.java:1144)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.executeOngoingLoop(
> DefaultMessageListenerContainer.java:1136)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.run(DefaultMessageListenerContaine
> r.java:1033)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
>         at org.apache.uima.aae.UimaAsThreadFactory$1.run(
> UimaAsThreadFactory.java:132)
>         at java.lang.Thread.run(Thread.java:745)
>
> 09:55:11.413 - 16:
> org.apache.uima.aae.error.handler.ProcessCasErrorHandler.handleError:
> INFO: Controller: XTokenizerAggregate Handling Exception. Delegate:
> ID:deploy-trusty-2-51366-1479431901326-1:1:15 Cas Id:
> ff737f8:15875035005:-4fe2
> 09:55:11.413 - 16:
> org.apache.uima.aae.error.handler.ProcessCasErrorHandler.handleError:
> INFO: Controller: XTokenizerAggregate Parent CAS For CAS:
> ff737f8:15875035005:-4fe2 Not Found In Cache
> 09:55:11.413 - 16:
> org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.process:
> WARNING: Service: XTokenizerAggregate Runtime Exception
> 09:55:11.413 - 16:
> org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.process:
> WARNING:
> org.apache.uima.aae.error.AsynchAEException: Cas Not Found In
> CasManager Cache. CasReferenceId::ff737f8:15875035005:-4fe2 is Invalid
>         at org.apache.uima.aae.InProcessCache.getCacheEntryForCAS(
> InProcessCache.java:522)
>         at org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.process(AggregateAnalysisEngineController_impl.java:1117)
>         at org.apache.uima.aae.error.handler.ProcessCasErrorHandler.
> handleError(ProcessCasErrorHandler.java:573)
>         at org.apache.uima.aae.error.ErrorHandlerChain.handle(
> ErrorHandlerChain.java:57)
>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.
> handleProcessRequestFromRemoteClient(ProcessRequestHandler_impl.java:601)
>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_
> impl.handle(ProcessRequestHandler_impl.java:1062)
>         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:731)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.doInvokeListener(AbstractMessageListenerContainer.java:689)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.invokeListener(AbstractMessageListenerContainer.java:649)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.doExecuteListener(AbstractMessageListenerContainer.java:619)
>         at org.springframework.jms.listener.AbstractPollingMessageListener
> Container.doReceiveAndExecute(AbstractPollingMessageListener
> Container.java:307)
>         at org.springframework.jms.listener.AbstractPollingMessageListener
> Container.receiveAndExecute(AbstractPollingMessageListener
> Container.java:245)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.invokeListener(
> DefaultMessageListenerContainer.java:1144)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.executeOngoingLoop(
> DefaultMessageListenerContainer.java:1136)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.run(DefaultMessageListenerContaine
> r.java:1033)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
>         at org.apache.uima.aae.UimaAsThreadFactory$1.run(
> UimaAsThreadFactory.java:132)
>         at java.lang.Thread.run(Thread.java:745)
>
> 09:55:11.414 - 16:
> org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.process:
> WARNING: Service: XTokenizerAggregate Runtime Exception
> 09:55:11.414 - 16:
> org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.process:
> WARNING:
> java.lang.NullPointerException
>         at org.apache.uima.impl.Util.getStartingView(Util.java:45)
>         at org.apache.uima.analysis_engine.asb.impl.
> FlowControllerContainer.computeFlow(FlowControllerContainer.java:219)
>         at org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.process(AggregateAnalysisEngineController_impl.java:1224)
>         at org.apache.uima.aae.error.handler.ProcessCasErrorHandler.
> handleError(ProcessCasErrorHandler.java:573)
>         at org.apache.uima.aae.error.ErrorHandlerChain.handle(
> ErrorHandlerChain.java:57)
>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.
> handleProcessRequestFromRemoteClient(ProcessRequestHandler_impl.java:601)
>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_
> impl.handle(ProcessRequestHandler_impl.java:1062)
>         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:731)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.doInvokeListener(AbstractMessageListenerContainer.java:689)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.invokeListener(AbstractMessageListenerContainer.java:649)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.doExecuteListener(AbstractMessageListenerContainer.java:619)
>         at org.springframework.jms.listener.AbstractPollingMessageListener
> Container.doReceiveAndExecute(AbstractPollingMessageListener
> Container.java:307)
>         at org.springframework.jms.listener.AbstractPollingMessageListener
> Container.receiveAndExecute(AbstractPollingMessageListener
> Container.java:245)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.invokeListener(
> DefaultMessageListenerContainer.java:1144)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.executeOngoingLoop(
> DefaultMessageListenerContainer.java:1136)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.run(DefaultMessageListenerContaine
> r.java:1033)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
>         at org.apache.uima.aae.UimaAsThreadFactory$1.run(
> UimaAsThreadFactory.java:132)
>         at java.lang.Thread.run(Thread.java:745)
>
> 09:55:11.414 - 16:
> org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.sendReply:
> WARNING: Service: XTokenizerAggregate Runtime Exception
> 09:55:11.414 - 16:
> org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.sendReply:
> WARNING:
> org.apache.uima.aae.error.AsynchAEException: Cas Not Found In
> CasManager Cache. CasReferenceId::ff737f8:15875035005:-4fe2 is Invalid
>         at org.apache.uima.aae.InProcessCache.getCacheEntryForCAS(
> InProcessCache.java:522)
>         at org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.sendReplyWithShutdownException(AggregateAnalysisEngineControl
> ler_impl.java:996)
>         at org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.process(AggregateAnalysisEngineController_impl.java:1250)
>         at org.apache.uima.aae.error.handler.ProcessCasErrorHandler.
> handleError(ProcessCasErrorHandler.java:573)
>         at org.apache.uima.aae.error.ErrorHandlerChain.handle(
> ErrorHandlerChain.java:57)
>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.
> handleProcessRequestFromRemoteClient(ProcessRequestHandler_impl.java:601)
>         at org.apache.uima.aae.handler.input.ProcessRequestHandler_
> impl.handle(ProcessRequestHandler_impl.java:1062)
>         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:731)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.doInvokeListener(AbstractMessageListenerContainer.java:689)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.invokeListener(AbstractMessageListenerContainer.java:649)
>         at org.springframework.jms.listener.AbstractMessageListenerContain
> er.doExecuteListener(AbstractMessageListenerContainer.java:619)
>         at org.springframework.jms.listener.AbstractPollingMessageListener
> Container.doReceiveAndExecute(AbstractPollingMessageListener
> Container.java:307)
>         at org.springframework.jms.listener.AbstractPollingMessageListener
> Container.receiveAndExecute(AbstractPollingMessageListener
> Container.java:245)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.invokeListener(
> DefaultMessageListenerContainer.java:1144)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.executeOngoingLoop(
> DefaultMessageListenerContainer.java:1136)
>         at org.springframework.jms.listener.DefaultMessageListenerContaine
> r$AsyncMessageListenerInvoker.run(DefaultMessageListenerContaine
> r.java:1033)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:615)
>         at org.apache.uima.aae.UimaAsThreadFactory$1.run(
> UimaAsThreadFactory.java:132)
>         at java.lang.Thread.run(Thread.java:745)
>
> 09:55:11.415 - 16:
> org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.terminate:
> INFO: Controller: XTokenizerAggregate Received Terminate Event
> 09:55:11.416 - 16:
> org.apache.uima.adapter.jms.activemq.JmsInputChannel.stopChannel:
> INFO: Stopping Service JMS Transport. Service: XTokenizerAggregate
> ShutdownNow true
> 09:55:11.416 - 16:
> org.apache.uima.adapter.jms.activemq.JmsInputChannel.stopChannel:
> INFO: Controller: XTokenizerAggregate Stopped Listener on Endpoint:
> queue://XTokenizerAggregate Selector:  Selector:Command=2000 OR
> Command=2002.
> 09:55:11.416 - 16:
> org.apache.uima.adapter.jms.activemq.JmsInputChannel.stopChannel:
> INFO: Stopping Service JMS Transport. Service: XTokenizerAggregate
> ShutdownNow true
> 09:55:11.423 - 16:
> org.apache.uima.adapter.jms.activemq.JmsInputChannel.stopChannel:
> INFO: Controller: XTokenizerAggregate Stopped Listener on Endpoint:
> queue://XTokenizerAggregate Selector:  Selector:Command=2001.
> 09:55:11.423 - 20:
> org.apache.uima.aae.UimaAsThreadFactory$1.UimaAsThreadFactory.run():
> INFO: Controller: XTokenizer --------------- Process Thread ID:20
> EXITING
> 09:55:11.423 - 18:
> org.apache.uima.aae.UimaAsThreadFactory$1.UimaAsThreadFactory.run():
> INFO: Controller: XLanguageDetector --------------- Process Thread
> ID:18 EXITING
> 09:55:11.424 - 17:
> org.apache.uima.aae.UimaAsThreadFactory$1.UimaAsThreadFactory.run():
> INFO: Controller: XLanguageDetector --------------- Process Thread
> ID:17 EXITING
> 09:55:11.424 - 16:
> org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.stop:
> INFO: Stopping Controller: XTokenizerAggregate
> 09:55:11.423 - 21:
> org.apache.uima.aae.UimaAsThreadFactory$1.UimaAsThreadFactory.run():
> INFO: Controller: XTokenizer --------------- Process Thread ID:21
> EXITING
> 09:55:11.424 - 20:
> org.apache.uima.aae.UimaAsThreadFactory$1.UimaAsThreadFactory.run():
> INFO: Controller: XTokenizer --------------- AE destroy() Method Call
> Returned ID:20
> 09:55:11.424 - 17:
> org.apache.uima.aae.UimaAsThreadFactory$1.UimaAsThreadFactory.run():
> INFO: Controller: XLanguageDetector --------------- AE destroy()
> Method Call Returned ID:17
> 09:55:11.424 - 21:
> org.apache.uima.aae.UimaAsThreadFactory$1.UimaAsThreadFactory.run():
> INFO: Controller: XTokenizer --------------- AE destroy() Method Call
> Returned ID:21
> 09:55:11.424 - 18:
> org.apache.uima.aae.UimaAsThreadFactory$1.UimaAsThreadFactory.run():
> INFO: Controller: XLanguageDetector --------------- AE destroy()
> Method Call Returned ID:18
> 09:55:11.424 - 16:
> org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.stop:
> INFO: Controller: XTokenizerAggregate Sending STOP Request to
> XLanguageDetector
> 09:55:11.424 - 16:
> org.apache.uima.aae.controller.PrimitiveAnalysisEngineControl
> ler_impl.stop:
> INFO: Stopping Controller: XLanguageDetector
> 09:55:11.425 - 16:
> org.apache.uima.aae.controller.PrimitiveAnalysisEngineControl
> ler_impl.stop:
> INFO: Controller: XLanguageDetector has stopped
> 09:55:11.425 - 16:
> org.apache.uima.aae.controller.AggregateAnalysisEngineControl
> ler_impl.stop:
> INFO: Controller: XTokenizerAggregate Sending STOP Request to
> XTokenizer
> 09:55:11.425 - 16:
> org.apache.uima.aae.controller.PrimitiveAnalysisEngineControl
> ler_impl.stop:
> INFO: Stopping Controller: XTokenizer
> 09:55:11.425 - 16:
> org.apache.uima.aae.controller.PrimitiveAnalysisEngineControl
> ler_impl.stop:
> INFO: Controller: XTokenizer has stopped
> 09:55:11.427 - 16:
> org.apache.uima.adapter.jms.activemq.JmsOutputChannel.stop: INFO:
> Controller: XTokenizerAggregate Aborted Connection To Endpoint:
> ID:deploy-trusty-2-51366-1479431901326-1:1:15 and Broker Uri:
> tcp://localhost:61616
> 09:55:11.446 - 16:
> org.apache.uima.adapter.jms.activemq.JmsOutputChannel.stop: INFO:
> Controller: XTokenizerAggregate Output Channel Shutdown Completed
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message