Failed to retrieve RMIServer stub ... non-JRMP server at remote endpoint when trying to connect to JBoss EAP 6 JMX
Issue
- We are getting the error on remote monitoring access to JBoss EAP 6 via JMX :
Failed to retrieve RMIServer stub: javax.naming.CommunicationException [Root exception is java.rmi.ConnectIOException: non-JRMP server at remote endpoint]
or:
| ERROR| App | Cannot connect to instance localhost:7199 java.io.IOException: Failed to retrieve RMIServer stub: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: localhost; nested exception is:
java.net.ConnectException: Connection refused]
Environment
Red Hat JBoss Enterprise Application Platform (EAP) 6.x
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.