users@jersey.java.net

[Jersey] Re: Logging unhandled exceptions?

From: Jeremy Johnson <jeremy.johnson_at_imtc.gatech.edu>
Date: Tue, 5 Jun 2012 10:20:09 -0400

Hi Pavel,

Thanks for the insight! You were right about the glitch preventing the container from logging the exceptions. In my case, I had an ExceptionMapper mapping Throwable. Once removed, unhandled exceptions are logged as expected.

Thanks,
Jeremy

From: Pavel Bucek [mailto:pavel.bucek_at_oracle.com]
Sent: Tuesday, June 05, 2012 1:58 AM
To: users_at_jersey.java.net
Subject: [Jersey] Re: Logging unhandled exceptions?

Hello Jeremy,

unhandled exceptions should be present in server/container log, but there might be some glitch where the issue is swallowed without proper notice. Have you encountered such situation? Or do you want something different (maybe more suitable for your needs?)

Regards,
Pavel

On 6/4/12 11:05 PM, Jeremy Johnson wrote:
Sorry, I realize I could have been a little more specific. I'd like log the traces of any unhandled exceptions raised by my Jersey resource classes. What's the recommended approach to implement this?

Thanks!
Jeremy

From: Jeremy Johnson
Sent: Monday, June 04, 2012 4:43 PM
To: users_at_jersey.java.net<mailto:users_at_jersey.java.net>
Subject: Logging unhandled exceptions?

I notice that Jersey doesn't seem to log internal errors generated from unhandled exceptions raised in the resource classes. What's the recommended approach to introduce such logging?

Thanks!
Jeremy