4 Replies Latest reply on May 5, 2003 7:32 AM by Henk Laracker

    OILServerILService Connection failure

    ckh92079 Newbie

      Hi all,

      I've encountered a problem when attempted to create a queue/topic connection from ConnectionFactory.

      Your help is highly appreciated.

      The following are my code and the exception thrown by the server,
      I'm using Jboss-3.0.6 and J2sdk1.4.1_01 that running on a Windows XP machine.

      Hashtable properties = new Hashtable();
      properties.put(Context.PROVIDER_URL,"jnp://localhost:1099");
      properties.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
      properties.put(Context.URL_PKG_PREFIXES,"org.jnp.interfaces:org.jboss.naming");

      Context cxt = new InitialContext(properties);
      Queue inQueue = (Queue)cxt.lookup("queue/testQueue");
      QueueConnectionFactory connFact = (QueueConnectionFactory)cxt.lookup("ConnectionFactory");
      //Create queue connection
      QueueConnection queueConn=null;
      queueConn = connFact.createQueueConnection("guest","guest");


      15:32:01,501 WARN [OILServerILService] Connection failure (1).
      java.net.SocketException: Connection reset
      at java.net.SocketInputStream.read(SocketInputStream.java:168)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
      at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
      at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2316)
      at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2383)
      at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2455)
      at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2604)
      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
      at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:205)
      at java.lang.Thread.run(Thread.java:536)

        • 1. Re: OILServerILService Connection failure
          Harald M. Müller Newbie

          I have the same problem. Additional info:

          * I use jboss 3.0.4 with tomcat 4.1.12.

          * When lookup("ConnectionFactory") is changed to lookup("RMIConnectionFactory") or lookup("UILConnectionFactory"), then not even the exception is thrown - however, as far as I can judge it, nothing happens!

          Regards

          Harald M. Mueller
          Germany

          • 2. Re: OILServerILService Connection failure
            Harald M. Müller Newbie

            Still no solution found! - anybody has the same probelm???

            A few things I tried (in vain):

            * sending the message from a SLSB: Then you NEVER get an exception; but still nothing happens

            * sending the message to other queues - same result;

            * trying to find a way in the MBeans to find out the status of the queue - no idea what to do there;

            * writing a separate method that scans the queue for messages (with a QueueBrowser) - nothing is in the queue even when the transaction of the sending method commits;

            * looking through the FAQ messages - nothing there even near our problem!

            Any ideas/help?

            Thanks!

            Harald M. Mueller

            • 3. Re: OILServerILService Connection failure
              Adrian Brock Master

              This is a network issue.

              Set TRACE logging for
              org.jboss.mq

              This should give you more information.

              Regards,
              Adrian

              • 4. Re: OILServerILService Connection failure
                Henk Laracker Newbie

                I have the same problem, i put the log level on trace. The message i get is :

                2003-05-05 15:29:26,501 DEBUG [org.jboss.mq.il.oil.OILClientIL] ConnectionReceiverOILClient is connecting to: 192.168.3.77:3960
                2003-05-05 15:29:26,891 WARN [org.jboss.mq.il.oil.OILServerILService] Connection failure (1).
                java.net.SocketException: Connection reset
                at java.net.SocketInputStream.read(SocketInputStream.java:168)
                at java.io.BufferedInputStream.fill(BufferedInputStream.java:183)
                at java.io.BufferedInputStream.read(BufferedInputStream.java:201)
                at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2133)
                at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2316)
                at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2383)
                at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2455)
                at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2604)
                at java.io.ObjectInputStream.readByte(ObjectInputStream.java:845)
                at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:205)
                at java.lang.Thread.run(Thread.java:536)

                Does anyone know what this means.