5 Replies Latest reply on Sep 23, 2001 3:04 PM by Peter Antman

    javax.naming.CommunicationException.  Root exception is java

    Paul Rowe Newbie

      Howdy all;

      I realize this has been asked somewhere before. I setup a topic, and a publisher/subscriber app. The remote subscriber cannot attach to jboss because of the below error. I tried every trick in the book: name, raw IP, etc, but I still am getting the following error. I tried jndi.props and the command line props, but no luck. When I run the code on the same machine, it fails.. the client hangs with an EOFException, and JBoss hangs trying to send the message to the client. I burned 24 hours on this problem, and I am no closer to a solution. Any tips?

      javax.naming.CommunicationException. Root exception is java.rmi.ConnectException: Connection refused to host: ; nested exception is:
      java.net.ConnectException: Connection refused: no further information
      java.net.ConnectException: Connection refused: no further information
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:312)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:125)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:112)
      at java.net.Socket.(Socket.java:273)
      at java.net.Socket.(Socket.java:100)
      at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:25)
      at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:120)
      at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:499)
      at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:190)
      at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:174)
      at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:83)
      at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:349)
      at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:333)
      at javax.naming.InitialContext.lookup(InitialContext.java:350)
      at com.boxhead.framework.controller.log.jms.ControllerLogSubscriber.(ControllerLogSubscriber.java:31)
      at com.boxhead.framework.controller.log.jms.ControllerLogSubscriber.main(ControllerLogSubscriber.java:65)