[jboss-user] [Management, JMX/JBoss] - service URL
minixman
do-not-reply at jboss.com
Wed Apr 23 02:29:25 EDT 2008
All
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
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4146040#4146040
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4146040
More information about the jboss-user
mailing list