After I imported a SSL certificate into the keystore.jks and cacerts.jks of GlassFish, I found that the log of GlassFish continuously recorded the following warning message:
[#|2021-04-15T08:26:26.396+0800|WARNING|Payara 4.1|javax.enterprise.web|_ThreadID=40;_ThreadName=http-thread-pool::https-int-list(5);_TimeMillis=1618446386396;_LevelValue=900;|StandardWrapperValve[microprofile-metrics-resource]: Servlet.service() for servlet microprofile-metrics-resource threw exception
java.lang.RuntimeException: javax.management.InstanceNotFoundException: amx:pp=/mon/server-mon[server],type=thread-pool-mon,name=network/http-listener-2/thread-pool
at fish.payara.microprofile.metrics.jmx.MBeanExpression.getNumberValue(MBeanExpression.java:127)
at fish.payara.microprofile.metrics.writer.PrometheusExporter.exportGauge(PrometheusExporter.java:154)
at fish.payara.microprofile.metrics.writer.PrometheusWriter.writeMetricMap(PrometheusWriter.java:176)
at fish.payara.microprofile.metrics.writer.PrometheusWriter.writeMetrics(PrometheusWriter.java:134)
at fish.payara.microprofile.metrics.writer.PrometheusWriter.write(PrometheusWriter.java:126)
at fish.payara.microprofile.metrics.rest.MetricsResource.processRequest(MetricsResource.java:107)
at fish.payara.microprofile.metrics.rest.MetricsResource.doGet(MetricsResource.java:177)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java:1692)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:258)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:160)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:654)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:593)
at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:99)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:159)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:654)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:593)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.java:368)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:238)
at com.sun.enterprise.v3.services.impl.ContainerMapper$HttpHandlerCallable.call(ContainerMapper.java:483)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(ContainerMapper.java:180)
at org.glassfish.grizzly.http.server.HttpHandler.runService(HttpHandler.java:206)
at org.glassfish.grizzly.http.server.HttpHandler.doHandle(HttpHandler.java:180)
at org.glassfish.grizzly.http.server.HttpServerFilter.handleRead(HttpServerFilter.java:235)
at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133)
at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112)
at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77)
at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:539)
at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.run0(WorkerThreadIOStrategy.java:117)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy.access$100(WorkerThreadIOStrategy.java:56)
at org.glassfish.grizzly.strategies.WorkerThreadIOStrategy$WorkerThreadRunnable.run(WorkerThreadIOStrategy.java:137)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.doWork(AbstractThreadPool.java:593)
at org.glassfish.grizzly.threadpool.AbstractThreadPool$Worker.run(AbstractThreadPool.java:573)
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.management.InstanceNotFoundException: amx:pp=/mon/server-mon[server],type=thread-pool-mon,name=network/http-listener-2/thread-pool
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:643)
at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678)
at fish.payara.microprofile.metrics.jmx.MBeanExpression.getAttribute(MBeanExpression.java:103)
at fish.payara.microprofile.metrics.jmx.MBeanExpression.getNumberValue(MBeanExpression.java:117)
… 38 more
|#]
Before I imported the SSL certificate, this warning message did not occur so frequently. The functions of Hopsworks seem to work well, so I’m not sure if this RuntimeException is related to my SSL certificate.
Has anyone ever encountered this issue? Any comments will be much appreciated.