1 Reply Latest reply on Jan 16, 2004 11:36 AM by Adrian Brock

    jboss throws java.net.ConnectException when I trying send me

    stan2003 Newbie

      Hi !
      I have 2 jms'ed programs - transmitter and reciever.
      When transmitter running on Linux and reciever run on Windows, everithing work good (transmitter send and reciever recieve a message).
      But, when I run reciever on Linux-box and try send message from transmitter machine ( jboss running on it ) ConnectException is thrown:
      18:56:31,330 ERROR [OILClientIL] Cannot connect to the ConnectionReceiver/Server
      java.net.ConnectException: Connection refused
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
      at java.net.Socket.(Socket.java:273)
      at java.net.Socket.(Socket.java:127)
      at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:175)
      at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156)
      at org.jboss.mq.il.oil.OILClientIL.receive(OILClientIL.java:130)
      at org.jboss.mq.server.ClientConsumer.doWork(ClientConsumer.java:277)
      at org.jboss.mq.threadpool.ThreadPool$WorkerThread.run(ThreadPool.java:230)
      18:56:31,330 WARN [ClientConsumer:ID:2] Could not send messages to a receiver.
      java.rmi.RemoteException: Cannot connect to the ConnectionReceiver/Server
      at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:183)
      at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156)
      at org.jboss.mq.il.oil.OILClientIL.receive(OILClientIL.java:130)
      at org.jboss.mq.server.ClientConsumer.doWork(ClientConsumer.java:277)
      at org.jboss.mq.threadpool.ThreadPool$WorkerThread.run(ThreadPool.java:230)
      18:56:31,331 ERROR [JMSDestinationManager] The connection to client ID:2 failed.
      18:56:31,332 ERROR [OILClientIL] Cannot connect to the ConnectionReceiver/Server
      java.net.ConnectException: Connection refused
      at java.net.PlainSocketImpl.socketConnect(Native Method)
      at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320)
      at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133)
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120)
      at java.net.Socket.(Socket.java:273)
      at java.net.Socket.(Socket.java:127)
      at org.jboss.mq.il.oil.OILClientIL.createConnection(OILClientIL.java:175)
      at org.jboss.mq.il.oil.OILClientIL.checkSocket(OILClientIL.java:156)
      at org.jboss.mq.il.oil.OILClientIL.close(OILClientIL.java:72)
      at org.jboss.mq.server.JMSDestinationManager.connectionClosing(JMSDestinationManager.java:571)
      at org.jboss.mq.server.JMSDestinationManager.connectionFailure(JMSDestinationManager.java:590)
      at org.jboss.mq.server.ClientConsumer.doWork(ClientConsumer.java:285)
      at org.jboss.mq.threadpool.ThreadPool$WorkerThread.run(ThreadPool.java:230)
      When transmitter and reciever run on localhost everething o'k.

      ======================================================

      JBoss ver. 3.0.3
      (linux machines not firewalled, RH 7.2)

      Where and what I missed ?


      Thanks !