Uploaded image for project: 'RESTEasy'
  1. RESTEasy
  2. RESTEASY-1621

Incorrect warning logs because of "multiple endpoints"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Minor
    • 3.0.24.Final, 3.1.4.Final
    • 3.0.19.Final
    • None
    • None

    Description

      We have a servlet that offers to separat endpoints.

      @Path("/")
      @SessionScoped
      public class Loader extends HttpServlet
      {
      	@GET
      	@Path("waitFor/{type}")
      	@Produces(MediaType.TEXT_PLAIN)
      	public Response waitFor(@PathParam("type") String type)
      	{
      		...
      	}
      
      	@GET
      	@Path("download/{filename}")
      	@Produces(MediaType.APPLICATION_OCTET_STREAM)
      	public Response get(@PathParam("filename") String filename) throws ParseException
      	{
      		...
      	}
      }
      

      After updating from Wildfly 10.0.0 to Wildfly 10.1.0 (and thus updating from resteasy 3.0.10 to 3.0.19) our server log fills with messages like this:

      2017-03-03 12:57:33,174 WARN  [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-3) [] RESTEASY002142: Multiple resource methods match request "GET /download/pdf". Selecting one. Matching methods: [public javax.ws.rs.core.Response Loader.waitForPdf(), public javax.ws.rs.core.Response Loader.get(java.lang.String) throws javax.mail.internet.ParseException]
      

      Luckily always the correct method is picked, so we do not have any problems and this seems to be just a invalid log message. Might be related to RESTEASY-1398

      Attachments

        Activity

          People

            rhn-support-asoldano Alessio Soldano
            christianh_jira Christian Hufgard (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: