users@jersey.java.net

Re: [Jersey] ExceptionMapper and constructor injection of _at_Context UriInfo ?

From: Morten <mortench2004_at_yahoo.dk>
Date: Thu, 23 Jul 2009 19:06:50 +0000 (GMT)

--- Den tors 23/7/09 skrev Paul Sandoz <Paul.Sandoz@Sun.COM>: > I think the issue is as Craig says your constructor code is > throwing an exception. For example, such an exception can > occur if you try to access the UriInfo in the constructor > (what is injected is a thread local proxy which is valid > when used in the scope of a request). Yes, you are right. The problem was that I tried to log the UriInfo parameter to diagnose what was wrong. It worked if I just saved the paramter for later use. Thanks, Morten ___________________________________________________________ Skal du købe ny bil? Sammenlign priser på brugte biler med Kelkoo og find et godt tilbud! - Se mere her http://dk.yahoo.com/r/pat/mmb