Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 93229 invoked from network); 4 Oct 2004 18:12:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 4 Oct 2004 18:12:13 -0000 Received: (qmail 90259 invoked by uid 500); 4 Oct 2004 17:59:59 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 89422 invoked by uid 500); 4 Oct 2004 17:59:48 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: dev@geronimo.apache.org Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 89278 invoked by uid 99); 4 Oct 2004 17:59:43 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (hermes.apache.org: local policy) Received: from [128.241.244.71] (HELO chi.mobile-health-diary.com) (128.241.244.71) by apache.org (qpsmtpd/0.28) with SMTP; Mon, 04 Oct 2004 10:59:43 -0700 Received: (qmail 31257 invoked from network); 4 Oct 2004 17:59:34 -0000 Received: from unknown (HELO ?192.168.17.110?) (geir@69.111.157.225) by b014.internal.mobile-health-diary.com with SMTP; 4 Oct 2004 17:59:34 -0000 Mime-Version: 1.0 (Apple Message framework v619) In-Reply-To: <7AC82B4E-1559-11D9-B927-000D93C5B79C@gluecode.com> References: <7AC82B4E-1559-11D9-B927-000D93C5B79C@gluecode.com> Content-Type: text/plain; charset=US-ASCII; format=flowed Message-Id: Content-Transfer-Encoding: 7bit From: Geir Magnusson Jr. Subject: Re: Silent Connector Work Failure Date: Mon, 4 Oct 2004 10:36:18 -0400 To: dev@geronimo.apache.org X-Mailer: Apple Mail (2.619) X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N On Oct 3, 2004, at 12:30 PM, Dain Sundstrom wrote: > On Oct 2, 2004, at 7:49 PM, Aaron Mulder wrote: > >> I hesitate to admit how much time I just spent debugging a failure >> with my connector. The problem was that I was creating a Work that >> was >> getting a NoClassDefFoundError while it ran, and I hadn't set a >> WorkListener on it, so the exception was never reported. (See >> WorkerContext:290 where the only thing done with the exception is to >> pass >> it to a listener). >> >> Does anyone mind if I put a message in there so if an exception >> arises, the console prints "Exception while running Work: >> "+e.getMessage() >> or something along those lines? If we want to minimize output, I can >> do >> that if and only if workListener == NULL_WORK_ADAPTER, but however >> it's >> done, it would really help to get some indication from the server that >> something went wrong with the application. > > I propose we simple change the declaration of NULL_WORK_ADAPTER to > something like this: > > private static final WorkListener NULL_WORK_LISTENER = new > WorkAdapter(){ > public void workRejected(WorkEvent event) { > log.error(event.getWork().toString(), event.getException()); > } > }; > I was going to suggest something along those lines... +1 geir > -dain > > -- Geir Magnusson Jr +1-203-665-6437 geirm@apache.org