Uploaded image for project: 'TomEE'
  1. TomEE
  2. TOMEE-4292

Tomee Plus missing metrics endpoint

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 9.1.2
    • None
    • TomEE Core Server
    • None

    Description

      My applications have been running in Tomee microprofile for several months.
      I decided to try out Tomee Plus and I realised that I cannot get metrics into prometheus.
      The server fails and responds with an HTTP500 error.
      The strangest thing is that this happens on the first request.

      All subsequent requests get HTTP404.

      Please see the attached files for console outputs.

      File Contents
      tomee-912-plus-startup.txt Stdout for Tomee 9.1.2 Plus
      tomee-912-plus-exception.txt The error response from posted requests
      tomee-912-microprofile-startup.txt Stdout for Tomee 9.1.2 Microprofile

      One thing I noticed in the standard output is that:

      The list of "exception mappers" also differs between these 2 server versions.

      The error can be reproduced by deploying a simple war containing only 1 class as provided here:

      @ApplicationScoped
      @Path("index")
      public class Index {
      
          @GET
          @Produces(\{MediaType.TEXT_HTML})
          @Counted(name = Counters.HTTP_REQUESTS,
                  tags = \{Labels.RESOURCE_USERINPUT, Labels.ACTION_SELECT},
                  absolute = true,
                  description = Counters.HTTP_REQUESTS_DESCRIPTION)
          public Response requestForSMSNumber(
                  @QueryParam("tid") String tid) {
      
              return responder.contentResponse("<html>HELLO</html>");
          }
      }
      

       

      Attachments

        1. tomee-912-microprofile-startup.txt
          32 kB
          Aziz Mwondha
        2. tomee-912-plus-exception.txt
          7 kB
          Aziz Mwondha
        3. tomee-912-plus-startup.txt
          27 kB
          Aziz Mwondha

        Activity

          People

            Unassigned Unassigned
            amwon Aziz Mwondha
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: