users@jersey.java.net

Re: [Jersey] Jersey thinks _at_MatrixParam is an entity

From: Paul Sandoz <Paul.Sandoz_at_Sun.COM>
Date: Mon, 05 Jan 2009 12:50:54 +0100

On Dec 31, 2008, at 9:07 PM, Gili wrote:

>
> It turns out that if you replace @MatrixParam with @QueryParam the
> problem
> magically goes away. I filed a new bug report:
> https://jersey.dev.java.net/issues/show_bug.cgi?id=176
>

I cannot reproduce this in the latest build. There are a whole bunch
of tests that utilize @MatrixParam with GET and none of them fail.

What is the complete resource class you are using?

Paul.

> Gili
>
>
> Gili wrote:
>>
>> I defined the following method:
>>
>> @GET
>> @Produces(MediaType.APPLICATION_XML)
>> public Response getRandomImages(@MatrixParam("tag")
>> List<List<String>>
>> oneOfTags)
>>
>> Jersey complains: A HTTP GET method, public javax.ws.rs.core.Response
>> somePackage.RandomImageResource.getRandomImages(java.util.List),
>> should
>> not consume any entity.
>>
>> Am I doing anything wrong or does this seem like a bug to anyone
>> else?
>>
>> Thank you,
>> Gili
>>
>
> --
> View this message in context: http://n2.nabble.com/Jersey-thinks-%40MatrixParam-is-an-entity-tp2097066p2097102.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>