users@jersey.java.net

Producing media type conflict

From: Cameron Heavon-Jones <cmhjones_at_gmail.com>
Date: Wed, 20 Oct 2010 21:15:47 +0100

Hi,

I've just upgraded to jersey 1.4 and i have some code which used to work now failing with the message that there is a conflict in the produced media type. The two methods differ in that one has a query term and the other doesn't, eg:


    @GET
    @Override
    public Response get() {
        return get("");
    }

    @GET
    @QueryParam("term")
    public Response get(@QueryParam("term") String term) {
        return Response.ok().build();
    }


I saw on a previous post[1] that this was related to subclassing but in my case both methods are in the same class and with a differentiator.

Thanks,
Cam

[1]http://markmail.org/search/?q=list%3Anet.java.dev.jersey.users#query:list%3Anet.java.dev.jersey.users+page:1+mid:7tmzxnm6dsqh6iov+state:results