1 Reply Latest reply on Aug 11, 2007 2:14 AM by kkuma

    Unable to connect to a remote server

    kkuma

      Hi,

      I am running JBoss-4.2.1GA(jdk 1.5.0_11) on CentOS 5 and have a trouble that a client cannot connect to JBoss server:

      javax.naming.CommunicationException: Could not obtain connection to any of these urls: noaworksj.sys-lab.com
      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 noaworksj.sys-lab.com:1099
      [Root exception is javax.naming.ServiceUnavailableException: Failed to connect to server noaworksj.sys-lab.com:1099
      [Root exception is java.net.ConnectException: Connection timed out: connect]]]
      at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1416)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:596)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
      ...

      The following is the output of netstat just after JBoss initialization
      (JBoss started with -b 0.0.0.0):

      Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
      tcp 0 0 127.0.0.1:3873 0.0.0.0:* LISTEN 3110/java
      tcp 0 0 0.0.0.0:645 0.0.0.0:* LISTEN 2159/rpc.statd
      tcp 0 0 0.0.0.0:47367 0.0.0.0:* LISTEN 3110/java
      tcp 0 0 0.0.0.0:50856 0.0.0.0:* LISTEN 3110/java
      tcp 0 0 0.0.0.0:8009 0.0.0.0:* LISTEN 3110/java
      tcp 0 0 0.0.0.0:1098 0.0.0.0:* LISTEN 3110/java
      tcp 0 0 0.0.0.0:3050 0.0.0.0:* LISTEN 2237/fbserver
      tcp 0 0 0.0.0.0:46827 0.0.0.0:* LISTEN 3110/java
      tcp 0 0 0.0.0.0:1099 0.0.0.0:* LISTEN 3110/java
      tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 2130/portmap
      tcp 0 0 0.0.0.0:8080 0.0.0.0:* LISTEN 3110/java
      ...

      This shows JBoss(Java) is listening port 1099 and nothing wrong is there.
      However, I get the above connection failure when I start a client program
      connecting to JBoss.

      The output of tcpdump monitoring port 1099 follow:

      15:17:07.092561 IP 192.168.0.6.4083 > noaworksj.sys-lab.com.rmiregistry: S 4238956608:4238956608(0) win 16384 <mss 1460,nop,nop,sackOK>
      15:17:10.285820 IP 192.168.0.6.4083 > noaworksj.sys-lab.com.rmiregistry: S 4238956608:4238956608(0) win 16384 <mss 1460,nop,nop,sackOK>
      15:17:16.848198 IP 192.168.0.6.4083 > noaworksj.sys-lab.com.rmiregistry: S 4238956608:4238956608(0) win 16384 <mss 1460,nop,nop,sackOK>

      Could anyone please tell me what is wrong?

      Regards,

      K. Kumakura