Return-Path: X-Original-To: apmail-uima-user-archive@www.apache.org Delivered-To: apmail-uima-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0887A9517 for ; Thu, 8 Dec 2011 13:23:02 +0000 (UTC) Received: (qmail 76166 invoked by uid 500); 8 Dec 2011 13:23:01 -0000 Delivered-To: apmail-uima-user-archive@uima.apache.org Received: (qmail 76082 invoked by uid 500); 8 Dec 2011 13:23:01 -0000 Mailing-List: contact user-help@uima.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@uima.apache.org Delivered-To: mailing list user@uima.apache.org Received: (qmail 76074 invoked by uid 99); 8 Dec 2011 13:23:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 13:23:01 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kottmann@gmail.com designates 209.85.214.47 as permitted sender) Received: from [209.85.214.47] (HELO mail-bw0-f47.google.com) (209.85.214.47) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 08 Dec 2011 13:22:53 +0000 Received: by bkbzt4 with SMTP id zt4so1679173bkb.6 for ; Thu, 08 Dec 2011 05:22:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; bh=EjBdi8WqaE2sFJ5zdi3TipgLqnalFMfXeTbbjtFiIFo=; b=DFZU+2wf4erbZ8WFBnPvHEw7HMqB8MAl2wmmX1B03Qfr3/k6ce7s6iLnMWGdPUcG4c fGqzo+XCYGyafH3JHw3o1jEAGxV1sc+ehbobUYC0KrLvwh0cg5Fbtxlng0YwRmvKcfwa hGJD2ieasYXiBrtt9d0dibpztxcqdPNla/EqM= Received: by 10.180.4.102 with SMTP id j6mr5372823wij.38.1323350552353; Thu, 08 Dec 2011 05:22:32 -0800 (PST) Received: from karkand.infopaq.net (dkcphfw01.infopaq.dk. [213.150.59.2]) by mx.google.com with ESMTPS id ep13sm8606906wbb.8.2011.12.08.05.22.30 (version=SSLv3 cipher=OTHER); Thu, 08 Dec 2011 05:22:31 -0800 (PST) Message-ID: <4EE0BA14.50200@gmail.com> Date: Thu, 08 Dec 2011 14:22:28 +0100 From: =?ISO-8859-1?Q?J=F6rn_Kottmann?= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: user@uima.apache.org Subject: UIMA AS client and unkown exception classes Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Hi all, I have a pretty generic UIMA AS client I reuse for various analysis pipelines. The client gets its input from an ActiveMQ queue and then sends it on to my UIMA AS services via the UIMA AS Client API. The loop which is sending requests to the UIMA AS service is using the sendCAS method. Once in a while something goes wrong in one of the AEs process methods and it throws an exception. For example our Solrcas AE from the addons package might catch an exception and then re-throws it like this: throw new AnalysisEngineProcessException(e); e is in this case some kind of exception which was thrown by the Solr client API. On my UIMA AS client I now get an exception like this: Dec 8, 2011 1:55:55 PM org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl$2 onMessage WARNING: javax.jms.JMSException: Failed to build body from content. Serializable class not available to broker. Reason: java.lang.ClassNotFoundException: org.apache.solr.comm on.SolrException at org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:35) at org.apache.activemq.command.ActiveMQObjectMessage.getObject(ActiveMQObjectMessage.java:186) at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl.retrieveExceptionFromMessage(BaseUIMAAsynchronousEngineCommon_impl.java:1075) at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl.handleException(BaseUIMAAsynchronousEngineCommon_impl.java:1397) at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl.handleProcessReply(BaseUIMAAsynchronousEngineCommon_impl.java:1176) at org.apache.uima.adapter.jms.client.BaseUIMAAsynchronousEngineCommon_impl$2.run(BaseUIMAAsynchronousEngineCommon_impl.java:1714) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.lang.ClassNotFoundException: org.apache.solr.common.SolrException at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) Is there a way to improve this? Or do I always need to deploy all jars my UIMA AS service depends on to my client as well? Thanks, J�rn