Additional url with info about JRockitConsole MBean :
http://blogs.oracle.com/hirt/2008/08/jrcmd_goes_remote_r271_edition.html
Giuseppe
Il Gio 30 Set 2010 05:42:53, furlang75 ha scritto:
Show quoted text> Roland,
>
> I have found another thing could be interesting to investigate
> further.
>
> basically I'm using jmx4perl with weblogic 10.0.1 and jrockit.
>
> Apparently some application-server specific MBeans can be read only
> when
> predetermined MBeans are instantiated (eg bea.jrockit.management
> attributes can only be read after the JRockitConsole MBean has been
> instantiated).
>
> This is my output with jmx4perl :
>
> check_jmx4perl --config /usr/local/groundwork/nagios/etc/jmx4perl.cfg
> --server PreProd-SALESesesalesiptvweb01 --check overview
> UNKNOWN - Error: 404 javax.management.InstanceNotFoundException:
>
bea.jrockit.management:type=Runtimejavax.management.InstanceNotFoundException:
Show quoted text> bea.jrockit.management:type=Runtime
> at
>
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1010)
Show quoted text> at
>
com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:627)
Show quoted text> at
>
com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:659)
Show quoted text> at
>
com.sun.jmx.remote.security.MBeanServerAccessController.getAttribute(MBeanServerAccessController.java:299)
Show quoted text> at
>
javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1387)
Show quoted text> at
>
javax.management.remote.rmi.RMIConnectionImpl.access$100(RMIConnectionImpl.java:81)
Show quoted text> at
>
javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1247)
Show quoted text> at
>
javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1350)
Show quoted text> at
>
javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:599)
Show quoted text> at sun.reflect.GeneratedMethodAccessor408.invoke(Unknown
> Source)
> at
>
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
Show quoted text> at java.lang.reflect.Method.invoke(Method.java:592)
> at
> sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
> at sun.rmi.transport.Transport$1.run(Transport.java:153)
> at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
> at
> sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
> at
>
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
Show quoted text> at java.lang.Thread.run(Thread.java:595)
> at
>
sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:247)
Show quoted text> at
> sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:223)
> at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:126)
> at com.sun.jmx.remote.internal.PRef.invoke(Unknown Source)
> at
> javax.management.remote.rmi.RMIConnectionImpl_Stub.getAttribute(Unknown
> Source)
> at
>
javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.getAttribute(RMIConnector.java:857)
Show quoted text> at
> org.jmx4perl.handler.ReadHandler.fetchAttributes(ReadHandler.java:122)
> at
> org.jmx4perl.handler.ReadHandler.doHandleRequest(ReadHandler.java:58)
> at
>
org.jmx4perl.handler.JsonRequestHandler.handleRequest(JsonRequestHandler.java:86)
Show quoted text> at
>
org.jmx4perl.jsr160.Jsr160RequestDispatcher.dispatchRequest(Jsr160RequestDispatcher.java:59)
Show quoted text> at
>
org.jmx4perl.backend.BackendManager.callRequestDispatcher(BackendManager.java:181)
Show quoted text> at
> org.jmx4perl.backend.BackendManager.handleRequest(BackendManager.java:160)
> at
>
org.jmx4perl.http.HttpRequestHandler.executeRequest(HttpRequestHandler.java:127)
Show quoted text> at
>
org.jmx4perl.http.HttpRequestHandler.handleRequestInputStream(HttpRequestHandler.java:97)
Show quoted text> at
> org.jmx4perl.http.AgentServlet$1.handleRequest(AgentServlet.java:165)
> at
> org.jmx4perl.http.AgentServlet.handle(AgentServlet.java:131)
> at
> org.jmx4perl.http.AgentServlet.doPost(AgentServlet.java:119)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
> at
>
weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:226)
Show quoted text> at
>
weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:124)
Show quoted text> at
>
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
Show quoted text> at
>
weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
Show quoted text> at
>
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3395)
Show quoted text> at
>
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
Show quoted text> at weblogic.security.service.SecurityManager.runAs(Unknown
> Source)
> at
>
weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2140)
Show quoted text> at
>
weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2046)
Show quoted text> at
>
weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1366)
Show quoted text> at weblogic.work.ExecuteThread.execute(ExecuteThread.java:200)
> at weblogic.work.ExecuteThread.run(ExecuteThread.java:172)
>
>
> If I start jrockit misson control (it's a tool which include a MBean
> browser and jrockit runtime debug interface) then magically the
> previous
> jmx4perl command will work ok.
>
> Additionally I have found this url which this guy claims the same :
>
http://www.torsten-horn.de/techdocs/jmx.htm
> Basically he created a JMX client and is claiming that you cannot read
> some MBeans if you don't instantiate JRockitConsole MBean before.