Twiddle connection refuse in JBoss Enterprise Application Platform

Solution Verified - Updated -

Issue

  • We are using twiddle.sh script to connect to running server instance, but twiddle command fails with below exception
    Twiddle command:
twiddle.bat -u admin -p admin -s 10.10.10.10:1099 get jboss.system:type=ServerInfo

Exception:

ERROR [Twiddle] Exec failed
org.jboss.util.NestedRuntimeException: Could not obtain connection to any of these urls: 10.10.10.10:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]; - nested throwable: (javax.naming.CommunicationException: Could not obtain connection to any of these urls: 196.13.141.207:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server /196.13.141.207:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server /10.10.10.10:1099 [Root exception is java.net.ConnectException: Connection refused]]])
        at org.jboss.console.twiddle.Twiddle$1.getServer(Twiddle.java:144)
          . . . . .
Caused by: javax.naming.CommunicationException: Could not obtain connection to any of these urls: 10.10.10.10:1099 and discovery failed with error: javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out] [Root exception is javax.naming.CommunicationException: Failed to connect to server /10.10.10.10:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server /10.10.10.10:1099 [Root exception is java.net.ConnectException: Connection refused]]]
           . . . . .
Caused by: javax.naming.CommunicationException: Failed to connect to server /10.10.10.10:1099 [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server /10.10.10.10:1099 [Root exception is java.net.ConnectException: Connection refused]]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:335)
        at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1734)
        ... 11 more
Caused by: javax.naming.ServiceUnavailableException: Failed to connect to server /10.10.10.10:1099 [Root exception is java.net.ConnectException: Connection refused]
        at org.jnp.interfaces.NamingContext.getServer(NamingContext.java:305)
        ... 12 more
Caused by: java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
         . . . . 

Environment

  • JBoss Enterprise Application Platform (EAP)

    • 5.x
  • JBoss Enterprise Application Platform (EAP)

    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content