I am having problems with a JBoss 6 remote JMX call on a Centos 5.6 server. Previously, I could do this when running the same application on a Debian server.
./twiddle.sh --server=service:jmx:rmi:
The same call succeeds if I run it locally on the SERVER server. I opened port 1090 with iptables, and I can connect via telnet to SERVER: 1090. hostname -i
returns the correct IP address.
I also tried to launch JBoss using -Djava.rmi.server.hostname=localhost
. If I do this, I get another exception:
Caused by: java.rmi.NoSuchObjectException: no such object in table at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255) at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:142) at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source) at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2327) at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:279) at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248) at org.jboss.console.twiddle.Twiddle.createMBeanServerConnection(Twiddle.java:322) at org.jboss.console.twiddle.Twiddle.connect(Twiddle.java:331) at org.jboss.console.twiddle.Twiddle.access$400(Twiddle.java:60) at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:217)
source share