3 Replies Latest reply on May 7, 2005 3:46 AM by deng guangyuan

    java.rmi.connectException

    pavana sree Newbie

      hi,

      I am trying to connect to a remote system on which Jboss server is running. when i run the client program to connect to remote server i am gettting the following error

      Exception in thread "main" javax.naming.CommunicationException [Root
      exception is java.rmi.ConnectException: Connection refused to host:
      127.0.0.1; nested exception is:
      java.net.ConnectException: Connection refused]
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:649)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:509)
      at javax.naming.InitialContext.lookup(InitialContext.java:347)
      at SendRecvClient.setupPTP(SendRecvClient.java:77)
      at SendRecvClient.main(SendRecvClient.java:113)
      Caused by: java.rmi.ConnectException: Connection refused to host:
      127.0.0.1; nested exception is:
      java.net.ConnectException: Connection refused
      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.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:530)
      ... 4 more
      Caused by: java.net.ConnectException: Connection refused
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
      at
      java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
      at java.net.Socket.connect(Socket.java:452)
      at java.net.Socket.connect(Socket.java:402)
      at java.net.Socket.(Socket.java:309)
      at java.net.Socket.(Socket.java:124)
      at
      sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)
      at
      sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)

      I have given jboss server IP wherever required.......
      but still getting the error...


      some one please help me out...


      any kind of help is appreciated......


      Thank in advance