3 Replies Latest reply on Apr 24, 2010 3:36 PM by Arbi Sookazian

    type=HotSpotDiagnostic throwing NPE in jmx-console

    Arbi Sookazian Master

      JBoss 6.0.0.M2

       

      http://localhost:8080/jmx-console/

       

      I get following stack trace when I click "type=HotSpotDiagnostic" link in jmx-console.  Is this a known issue/bug?

       

      14:44:24,944 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jmx-console].[jsp]] Servlet.service() for servlet jsp threw exception: java.lang.NullPointerException

          at sun.management.Flag.getVMOption(Flag.java:67)

          at sun.management.HotSpotDiagnostic.getDiagnosticOptions(HotSpotDiagnostic.java:48)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:616)

          at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:180)

          at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:114)

          at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:51)

          at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:226)

          at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83)

          at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:205)

          at javax.management.StandardMBean.getAttribute(StandardMBean.java:372)

          at org.jboss.mx.server.RawDynamicInvoker.getAttribute(RawDynamicInvoker.java:117)

          at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:567)

          at org.jboss.jmx.adaptor.control.Server.getMBeanAttributeObject(Server.java:108)

          at org.apache.jsp.inspectMBean_jsp._jspService(inspectMBean_jsp.java:364)

          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

          at org.apache.jasper.servlet.JspServlet._serviceJspFile(JspServlet.java:328)

          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java)

          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)

          at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541)

          at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479)

          at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407)

          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.inspectMBean(HtmlAdaptorServlet.java:227)

          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)

          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:81)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.service(HtmlAdaptorServlet.java:50001)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.service(HtmlAdaptorServlet.java:50001)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:872)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)

          at java.lang.Thread.run(Thread.java:636)

       

      14:44:24,945 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/jmx-console].[HtmlAdaptor]] Servlet.service() for servlet HtmlAdaptor threw exception: java.lang.NullPointerException

          at sun.management.Flag.getVMOption(Flag.java:67)

          at sun.management.HotSpotDiagnostic.getDiagnosticOptions(HotSpotDiagnostic.java:48)

          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

          at java.lang.reflect.Method.invoke(Method.java:616)

          at com.sun.jmx.mbeanserver.ConvertingMethod.invokeWithOpenReturn(ConvertingMethod.java:180)

          at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:114)

          at com.sun.jmx.mbeanserver.MXBeanIntrospector.invokeM2(MXBeanIntrospector.java:51)

          at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:226)

          at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83)

          at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:205)

          at javax.management.StandardMBean.getAttribute(StandardMBean.java:372)

          at org.jboss.mx.server.RawDynamicInvoker.getAttribute(RawDynamicInvoker.java:117)

          at org.jboss.mx.server.MBeanServerImpl.getAttribute(MBeanServerImpl.java:567)

          at org.jboss.jmx.adaptor.control.Server.getMBeanAttributeObject(Server.java:108)

          at org.apache.jsp.inspectMBean_jsp._jspService(inspectMBean_jsp.java:364)

          at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

          at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:369)

          at org.apache.jasper.servlet.JspServlet._serviceJspFile(JspServlet.java:328)

          at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java)

          at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:253)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

          at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:734)

          at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:541)

          at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:479)

          at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:407)

          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.inspectMBean(HtmlAdaptorServlet.java:227)

          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:100)

          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:81)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:734)

          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.service(HtmlAdaptorServlet.java:50001)

          at javax.servlet.http.HttpServlet.service(HttpServlet.java:847)

          at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.service(HtmlAdaptorServlet.java:50001)

          at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:336)

          at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:242)

          at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:276)

          at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)

          at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:183)

          at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:95)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.process(SecurityContextEstablishmentValve.java:126)

          at org.jboss.web.tomcat.security.SecurityContextEstablishmentValve.invoke(SecurityContextEstablishmentValve.java:70)

          at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

          at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

          at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:158)

          at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

          at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:368)

          at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:872)

          at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:653)

          at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:951)

          at java.lang.Thread.run(Thread.java:636)