I already setup JMX agent I got this error java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectI when I try to connect with jconsole I can't login to the server and error is connection failed: non-JRMP server at remote endpoint. What am I still missing in JavaGateway setup.