[
https://issues.apache.org/jira/browse/UIMA-1224?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jerry Cwiklik closed UIMA-1224.
-------------------------------
Resolution: Fixed
Modified handling of a reply containing an exception. Before passing exception
received from a delegate to the ErrorHandler wrap the exception in
UimaAsServiceException and provide the id of the delegate where the exception
occured.
> Exceptions received from a delegate don't identify their origin
> ---------------------------------------------------------------
>
> Key: UIMA-1224
> URL: https://issues.apache.org/jira/browse/UIMA-1224
> Project: UIMA
> Issue Type: Bug
> Components: Async Scaleout
> Reporter: Burn Lewis
> Priority: Minor
> Fix For: 2.3AS
>
>
> Here's an exception in the client log that came from a remote delegate ...
> the only way I know that it is not a local exception is that I see a foreign
> class "org.gale.columbia.TopicSummarizer" deep in the stack trace. We should
> add a line indicating which delegate returned the exception. Perhaps we
> should also suppress the first trace as it doesn't carry any useful
> information about the error.
> 11/4/08 5:49:27 PM - 4:
> org.apache.uima.aae.error.handler.ProcessCasErrorHandler.handleError:
> WARNING: {0}
> org.apache.uima.aae.error.UimaEEServiceException:
> org.apache.uima.analysis_engine.AnalysisEngineProcessException
> at
> org.apache.uima.adapter.jms.activemq.JmsOutputChannel.sendReply(JmsOutputChannel.java:761)
> at
> org.apache.uima.aae.error.handler.ProcessCasErrorHandler.sendExceptionToClient(ProcessCasErrorHandler.java:105)
> at
> org.apache.uima.aae.error.handler.ProcessCasErrorHandler.handleError(ProcessCasErrorHandler.java:483)
> at
> org.apache.uima.aae.error.ErrorHandlerChain.handle(ErrorHandlerChain.java:64)
> at
> org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.process(PrimitiveAnalysisEngineController_impl.java:479)
> at
> org.apache.uima.aae.handler.HandlerBase.invokeProcess(HandlerBase.java:125)
> at
> org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.handleProcessRequestWithXMI(ProcessRequestHandler_impl.java:316)
> at
> org.apache.uima.aae.handler.input.ProcessRequestHandler_impl.handle(ProcessRequestHandler_impl.java:695)
> at
> org.apache.uima.aae.handler.input.MetadataRequestHandler_impl.handle(MetadataRequestHandler_impl.java:82)
> at
> org.apache.uima.adapter.jms.activemq.JmsInputChannel.onMessage(JmsInputChannel.java:549)
> at
> org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:485)
> at
> org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:442)
> at
> org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:414)
> at
> org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:309)
> at
> org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:254)
> at
> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:871)
> at
> org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:818)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
> at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.uima.analysis_engine.AnalysisEngineProcessException
> at org.gale.columbia.TopicSummarizer.process(TopicSummarizer.java:352)
> at
> org.apache.uima.analysis_component.CasAnnotator_ImplBase.process(CasAnnotator_ImplBase.java:56)
> at
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.callAnalysisComponentProcess(PrimitiveAnalysisEngine_impl.java:375)
> at
> org.apache.uima.analysis_engine.impl.PrimitiveAnalysisEngine_impl.processAndOutputNewCASes(PrimitiveAnalysisEngine_impl.java:297)
> at
> org.apache.uima.aae.controller.PrimitiveAnalysisEngineController_impl.process(PrimitiveAnalysisEngineController_impl.java:338)
> ... 15 more
> Caused by: java.io.FileNotFoundException:
> work/9.2.176.254_pvirga_20081104/BlankStory/webar20081104aljazeerareposrev_122www.aljazeera.netnewsTemplatesPostingsHumanRightsDetailedPage.aspx?FRAMELESS=false&NRNODEGUID={30F2C898-3504-4FBC-A7BC-4A66B26538BB}&NRORIGINALURL=%2FNR%2Fexeres%2F30F2C898-3504-4FBC-A7BC-4A66B26538BB.htm&NRCACHEHINT=Guest.txt
> (File name too long)
> at java.io.FileOutputStream.open(Native Method)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
> at java.io.FileOutputStream.<init>(FileOutputStream.java:70)
> at java.io.FileWriter.<init>(FileWriter.java:46)
> at org.gale.columbia.TopicSummarizer.process(TopicSummarizer.java:255)
> ... 19 more
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.