1 Reply Latest reply on Aug 30, 2010 12:43 PM by 843798

    JMX cannot get connected, Maybe due wrong stub???

      Hi all,

      I know that JMX connections issues are kind of common, however my problem is a bit more complex.

      My JMX client gets binded to the remote JMX server, I can see this trace taken with tcpdump:     RMI     JRMI, Version: 2, StreamProtocol

      When the client invokes a object, it looks like this:     RMI     JRMI, Call

      The remote server responses:     RMI     JRMI, ReturnData
      Java Serialization
      UnicastRef127.0.0.1nW _SI*'x

      So, we can see that the communication is established, but the JMX client throws this exception:
      java.net.ConnectException: Connection refused
      java.rmi.ConnectException: Connection refused to host:; nested exception is:
      java.net.ConnectException: Connection refused
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(Unknown Source)

      So, it seems the server answers, but IMO seems like the stub it returns is wrong, it has, Why is not responding the remote server address?
      Maybe the server responses with the right stub, an stub that the client should allocate locally, but then the client cannot invoke the local stub in

      The client runs with this vm options (a Tomcat hosted webapp):

      These are the server's vmoptions (another Tomcat hosted webapp):

      Any ideas?
      Thanks in advanced.