users@jersey.java.net

Re: [Jersey] com.sun.jersey.impl.uri.UriBuilderImpl.path() throws an unexpected exception

From: Gili <cowwoc_at_bbs.darktech.org>
Date: Fri, 24 Oct 2008 13:33:24 -0700 (PDT)

uri is a class-field UriInfo.

uri.getBaseUriBuilder().path(getClass()) throws the same exception.
uri.getPath() returns "administrators"

Gili


Gili wrote:
>
> Hi,
>
> My code invokes:
>
> uri.getBaseUriBuilder().path(getClass(), "getAdministrator").build(name)
>
> and I get the following exception:
>
> java.lang.IllegalArgumentException: Path is null
> at
> com.sun.jersey.impl.uri.UriBuilderImpl.appendPath(UriBuilderImpl.java:391)
> at com.sun.jersey.impl.uri.UriBuilderImpl.path(UriBuilderImpl.java:237)
> at
> method.adcaster.network.resources.Administrators.getRelativeURI(Administrators.java:165)
> [snip]
>
> I don't understand why the exception is being thrown. The resource and
> method are not null, the method exists and it has a @Path annotation.
>
> Gili
>

-- 
View this message in context: http://n2.nabble.com/com.sun.jersey.impl.uri.UriBuilderImpl.path%28%29-throws-an-unexpected-exception-tp1373393p1373408.html
Sent from the Jersey mailing list archive at Nabble.com.