3 Replies Latest reply on Jul 27, 2006 5:15 AM by jaikiran pai

    Problem with JMSQueue and JMSReceiver

    Namita Kapoor Newbie

      Hello,

      I am finding this problem while sending and receiving a large object in JMSQueue and JMSReceiver respectively. Given below is the error:


      20:10:28,457 WARN [SpyMessageConsumer] Message consumer closing due to error in listening thread.
      org.jboss.mq.SpyJMSException: Could not load message : 4 msg=3 soft STORED PERSISTENT queue=QUEUE.A priority=4 lateClone=false hashCode=12445108; - nested throwable: (java.io.IOException: Could not load the message: java.io.StreamCorruptedException: unexpected EOF in middle of data block)
      at org.jboss.mq.pm.jdbc2.PersistenceManager.loadFromStorage(PersistenceManager.java:1150)
      at org.jboss.mq.server.MessageCache.loadFromStorage(MessageCache.java:411)
      at org.jboss.mq.server.MessageReference.makeHard(MessageReference.java:351)
      at org.jboss.mq.server.MessageReference.getMessage(MessageReference.java:156)
      at org.jboss.mq.server.BasicQueue.setupMessageAcknowledgement(BasicQueue.java:879)
      at org.jboss.mq.server.BasicQueue.receive(BasicQueue.java:488)
      at org.jboss.mq.server.JMSQueue.receive(JMSQueue.java:136)
      at org.jboss.mq.server.ClientConsumer.receive(ClientConsumer.java:222)
      at org.jboss.mq.server.JMSDestinationManager.receive(JMSDestinationManager.java:661)
      at org.jboss.mq.server.JMSServerInterceptorSupport.receive(JMSServerInterceptorSupport.java:226)
      at org.jboss.mq.security.ServerSecurityInterceptor.receive(ServerSecurityInterceptor.java:100)
      at org.jboss.mq.server.TracingInterceptor.receive(TracingInterceptor.java:570)
      at org.jboss.mq.server.JMSServerInvoker.receive(JMSServerInvoker.java:226)
      at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:149)
      at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:356)
      at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:377)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:748)
      at java.lang.Thread.run(Thread.java:536)
      Caused by: java.io.IOException: Could not load the message: java.io.StreamCorruptedException: unexpected EOF in middle of data block
      at org.jboss.mq.pm.jdbc2.PersistenceManager.extractMessage(PersistenceManager.java:552)
      at org.jboss.mq.pm.jdbc2.PersistenceManager.loadFromStorage(PersistenceManager.java:1142)

      Thanks in advance.

      Regards,
      Namita