1 Reply Latest reply on Mar 22, 2002 8:33 PM by Hiram Chirino

    Applet not recieving messages

    Chris Mactaggart Newbie

      My Applet is not recieving messages but it can publish them.

      I get the following error when the applet tries to recieve a message

      [WARN,ClientConsumer:ID1] Could not send messages to a receiver.
      java.rmi.ConnectIOException: Exception creating connection to: 10.99.1.151; nested exception is:
      java.net.NoRouteToHostException: No route to host
      java.net.NoRouteToHostException: No route to host
      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: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.jboss.mq.il.rmi.RMIClientIL_Stub.receive(Unknown Source)
      at org.jboss.mq.server.ClientConsumer.run(ClientConsumer.java:251)
      at java.lang.Thread.run(Thread.java:484)
      [ERROR,JMSServer] The connection to client ID1 failed.

      The subscribers connection appears to be OK until it tries to recieve a message from the server. Then I get the error (shown above).


      I had everything working properly on one server but when I switch to my current server the problems started to arise.

      It appears to be an issue with the server.

      Has anybody had this problem?


      connection factory RMIConnectionFactory
      JBoss 2.4.4
      java 1.3.1
      server linux

      Thanks

        • 1. Re: Applet not recieving messages
          Hiram Chirino Expert

          Jbossmq connections normaly setup two connections, one from the client to the server, and one from the server to the client. Since the client is an applet, the server cannot establish his connection to the applet (security contraints)

          Try using the UIL version of the ConnectionFactory. UIL connections multiplex the socket established from the client to the sever.

          Regards,
          Hiram