Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
9.1.2
-
None
-
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:
- Service URI: http://localhost:7731/ess-provider/health is missing in the Plus output, while it is present in Microprofile output. Can this mean that the handlers for /metrics are missing?
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>"); } }