0 Replies Latest reply on Oct 18, 2001 8:48 AM by radu_mr

    org.jboss.mq.SpyJMSException: Cannot acknowlege a message

    radu_mr

      Hi!
      I'm using JBoss2.4.3 and I have some troubles using JBossMQ. After configuring a queue using the web interface, I was testing the queue samples from the JMS tutorial from Sun (even with small modification at the lookup string: "ConnectionFactory" instead of "QueueConnectionFactory"). It works fine most of the time, but sometimes the receiver crashes.
      This happens when the receiver is up and running and there are no messages in the queue.


      org.jboss.mq.SpyJMSException: Cannot acknowlege a message
      at org.jboss.mq.Connection.asynchFailure(Connection.java:350)
      at org.jboss.mq.Connection.asynchDeliver(Connection.java:342)
      at org.jboss.mq.il.oil.OILClientILService.run(OILClientILService.java:158)
      at java.lang.Thread.run(Thread.java:484)
      linked exception is:
      java.net.SocketException: Connection shutdown: JVM_recv in socket input stream read
      at java.net.SocketInputStream.socketRead(Native Method)
      at java.net.SocketInputStream.read(SocketInputStream.java:86)
      at java.io.BufferedInputStream.fill(BufferedInputStream.java:186)
      at java.io.BufferedInputStream.read(BufferedInputStream.java:204)
      at java.io.ObjectInputStream.peekCode(ObjectInputStream.java:1549)
      at java.io.ObjectInputStream.refill(ObjectInputStream.java:1683)
      at java.io.ObjectInputStream.read(ObjectInputStream.java:1659)
      at java.io.ObjectInputStream.readByte(ObjectInputStream.java:1905)
      at org.jboss.mq.il.oil.OILServerIL.waitAnswer(OILServerIL.java:264)
      at org.jboss.mq.il.oil.OILServerIL.acknowledge(OILServerIL.java:178)
      at org.jboss.mq.Connection.send(Connection.java:396)
      at org.jboss.mq.Connection.asynchDeliver(Connection.java:333)
      at org.jboss.mq.il.oil.OILClientILService.run(OILClientILService.java:158)
      at java.lang.Thread.run(Thread.java:484)
      org.jboss.mq.SpyJMSException: Connection failure
      at org.jboss.mq.Connection.asynchFailure(Connection.java:350)
      at org.jboss.mq.il.oil.OILClientILService.run(OILClientILService.java:176)
      at java.lang.Thread.run(Thread.java:484)
      linked exception is:
      java.net.SocketException: Descriptor not a socket: socket write error
      at java.net.SocketOutputStream.socketWrite(Native Method)
      at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
      at java.io.BufferedOutputStream.flushBuffer(BufferedOutputStream.java:72)
      at java.io.BufferedOutputStream.flush(BufferedOutputStream.java:130)
      at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:1454)
      at org.jboss.mq.il.oil.OILClientILService.run(OILClientILService.java:174)
      at java.lang.Thread.run(Thread.java:484)