geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dain Sundstrom <>
Subject Re: Silent Connector Work Failure
Date Sun, 03 Oct 2004 16:30:04 GMT
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 
     public void workRejected(WorkEvent event) {
         log.error(event.getWork().toString(), event.getException());


View raw message