Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

intermittent "Unknown @PathParam&...

2011-10-25
2013-06-06
  • Terry Jennings
    Terry Jennings
    2011-10-25

    I have this method:
    @DELETE
    @Path("source/{sourceid}/queues")
    public Response deleteQueues(
    @PathParam("sourceid") String sourceId,
    @QueryParam("queueid") String queueId);

    Sometimes I get correct behavior and sometimes I get: Unknown @PathParam: queueid for path: /source/1/queues (RestEasy 2.2.3-GA)

    In the tomcat log (tomcat 7.0.4), I see the URI as:
    "DELETE /restapi/source/1/queues?queueid=1 HTTP/1.1"

    This looks like a ReSTEasy bug since queueid is a QueueParam not a PathParam. It looks like some sort of timing issue since it doesn't happen all the time.

    Any ideas what this might be and how to deal with it?

    thanks,
    Terry

     
  • Terry Jennings
    Terry Jennings
    2011-10-26

    Nevermind.  I see I accidentally had two DELETE functions with the same PATH.

    sheesh.
    Terry