service URL
cuthbe Apr 23, 2008 2:29 AMAll
When i use the following to connect to jboss via JMX
JMXServiceURL server =
new JMXServiceURL("service:jmx:rmi:///jndi/rmi://localhost:58098/jmxrmi");
I get a stack trace, is this the correct url ? are there are docs on this ?
Exception in thread "main" java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Software caused connection abort: recv failed] at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:317) at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248) at com.db.abfo.loadrunner.client.jmx.JbossService.main(JbossService.java:52) Caused by: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Software caused connection abort: recv failed] at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:97) at com.sun.jndi.toolkit.url.GenericURLContext.lookup(GenericURLContext.java:185) at javax.naming.InitialContext.lookup(InitialContext.java:351) at javax.management.remote.rmi.RMIConnector.findRMIServerJNDI(RMIConnector.java:1817) at javax.management.remote.rmi.RMIConnector.findRMIServer(RMIConnector.java:1787) at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:259) ... 2 more Caused by: java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: java.net.SocketException: Software caused connection abort: recv failed at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:273) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171) at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:306) at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source) at com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:93) ... 7 more Caused by: java.net.SocketException: Software caused connection abort: recv failed 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:235) at java.io.DataInputStream.readByte(DataInputStream.java:241) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:215) ... 11 more