-
Bug
-
Resolution: Done
-
Major
-
AMQ 7.6.0.GA, AMQ 7.9.0.dev
-
User Experience
-
-
If the `/metrics` web context on a broker is invoked, but the metrics plugin has not yet been configured, the broker displays a null pointer exception.
-
Documented as Known Issue
-
Verified in a release
If the Prometheus metric plugin is not enabled and the /metrics web context is invoked the following NPE is thrown:
2020-06-11 12:50:54,866 WARNÂ [org.eclipse.jetty.server.HttpChannel] /metrics/: java.lang.NullPointerException at org.apache.activemq.artemis.core.server.metrics.plugins.ArtemisPrometheusMetricsPluginServlet.doGet(ArtemisPrometheusMetricsPluginServlet.java:49) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.servlet.ServletHolder$NotAsyncServlet.service(ServletHolder.java:1386) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:547) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1607) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1297) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1577) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1212) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.handler.HandlerList.handle(HandlerList.java:59) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.Server.handle(Server.java:500) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938) [jetty-all-9.4.26.v20200117-redhat-00001-uber.jar:9.4.26.v20200117-redhat-00001] at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_201]
- is cloned by
-
ENTMQBR-5251 [LTS 7.8] NPE thrown if metrics plugin is not configured and the metrics web context is invoked
- Closed
- relates to
-
ENTMQBR-3720 On openshift metrics plugin isn't exposed unless web console is exposed in broker
- Closed