1 Reply Latest reply on Nov 3, 2003 8:15 AM by Juha Lindfors

    Urgent Help:Exception: java.rmi.ConnectException:Connection

    rashmi Newbie

      Hello everybody,
      i am using EJBs with JBoss on server side, & a swing application on client side. The JBoss is running on the m/c under firewall. this server m/c has two IPs. One is its external IP & other is the Internal IP. I am using all over the applicaiton, its external IP. when client m/c is in same internal n/w, it works fine. but if the client is not in the internal network I am getting the following exception on client side :

      java.rmi.ConnectException: Connection refused to host: 203.193.139.116; nested exception is:
      java.net.ConnectException: Connection timed out: connect
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)
      at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)
      at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101)
      at org.jboss.invocation.jrmp.server.JRMPInvoker_Stub.invoke(Unknown Source)
      at org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy.invoke(JRMPInvokerProxy.java:138)
      at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:108)
      at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:77)
      at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:80)
      at org.jboss.proxy.ejb.HomeInterceptor.invoke(HomeInterceptor.java:198)
      at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:76)
      at $Proxy1.create(Unknown Source)
      at com.dmms.application.Application.init(Application.java:81)
      at com.dmms.application.Application.(Application.java:276)
      at com.dmms.application.Application.main(Application.java:332)
      Caused by: java.net.ConnectException: Connection timed out: connect
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:295)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:161)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:148)
      at java.net.Socket.connect(Socket.java:425)
      at java.net.Socket.connect(Socket.java:375)
      at java.net.Socket.(Socket.java:290)
      at java.net.Socket.(Socket.java:118)
      at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
      at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:122)
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)

      I am using JBoss 3.0.6. Prviously when i was using JBoss 3.0.4, i was not able to lookup. hence shifted to JBoss 3.0.6. now i am getting all the lookup objects, but also the above exceptio.
      could anyone Please help me out? this is very urgent.
      Thanks & Regards-