Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 230336

Custom Websphere JMX plugin

$
0
0

Hi,

 

I am able to monitor websphere cluster and servers through HQ. I am trying to write a custom websphere jmx plugin to monitor websphere listener ports. Websphere global security is enabled but I am able to retrieve the MBean details through JConsole with below URL but hyperic MBeanDumper fails with below error. Can anyone please help??

 

java -jar ..\lib\hq-pdk-4.6.6.jar jmx MBeanDumper service:jmx:rmi:///jndi/rmi://localhost:9264/jmxrmi

 

java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment

        java.net.SocketTimeoutException: Read timed out]

        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:338)

        at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)

        at org.hyperic.hq.product.jmx.MxUtil.getMBeanConnector(MxUtil.java:538)

        at org.hyperic.hq.product.jmx.MxUtil.connect(MxUtil.java:564)

        at org.hyperic.hq.product.jmx.MxUtil.getMBeanServer(MxUtil.java:621)

        at org.hyperic.hq.product.jmx.MBeanDumper.getMBeanServer(MBeanDumper.java:115)

        at org.hyperic.hq.product.jmx.MBeanDumper.dump(MBeanDumper.java:141)

        at org.hyperic.hq.product.jmx.MBeanDumper.dump(MBeanDumper.java:137)

        at org.hyperic.hq.product.jmx.MBeanDumper.main(MBeanDumper.java:217)

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

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

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

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

        at org.hyperic.hq.product.util.PluginMain.runMain(PluginMain.java:218)

        at org.hyperic.hq.product.util.PluginMain.main(PluginMain.java:317)

Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:

        java.net.SocketTimeoutException: Read timed out]

        at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:101)

        at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185)

        at javax.naming.InitialContext.lookup(InitialContext.java:392)

        at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1886)

        at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1856)

        at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:257)

        ... 14 more

Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is:

        java.net.SocketTimeoutException: Read timed out

        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:286)

        at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)

        at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)

        at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)

        at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97)

        ... 19 more

Caused by: java.net.SocketTimeoutException: Read timed out

        at java.net.SocketInputStream.socketRead0(Native Method)

        at java.net.SocketInputStream.read(SocketInputStream.java:129)

        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)

        at java.io.BufferedInputStream.read(BufferedInputStream.java:237)

        at java.io.DataInputStream.readByte(DataInputStream.java:248)

        at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:228)

        ... 23 more


Viewing all articles
Browse latest Browse all 230336

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>