1 Reply Latest reply on Nov 9, 2011 11:48 AM by User10185763-Oracle

    Exception when trying to dequeue text message.

    861960
      I have WebLogic Server 10.3.5 and i used this tutorial http://download.oracle.com/docs/cd/E12839_01/web.1111/e13738/aq_jms.htm to connect AQ on Oracle Database 11g with WebLogic Server as a Foreign Server.
      I can enqueue text message from application written in java using javax.jms library.
      But everytime i try to dequeue text message i get this exception on WebLogic Server:

      <Error> <EJB> <BEA-010079> <An error occurred while attempting to receive a message from JMS for processing by a message-driven bean: oracle.jms.AQjmsException: JMS-120: Dequeue failed
      Nested exception: oracle.jms.AQjmsException: JMS-122: Internal error Corrupted message
      The exception is : oracle.jms.AQjmsException: JMS-120: Dequeue failed
           at oracle.jms.AQjmsError.throwEx(AQjmsError.java:315)
           at oracle.jms.AQjmsConsumer.jdbcDequeue(AQjmsConsumer.java:1626)
           at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:1035)
           at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:960)
           at oracle.jms.AQjmsConsumer.receiveFromAQ(AQjmsConsumer.java:938)
           at oracle.jms.AQjmsConsumer.receive(AQjmsConsumer.java:790)
           at weblogic.deployment.jms.WrappedMessageConsumer.receive(WrappedMessageConsumer.java:201)
           at weblogic.ejb.container.internal.NewJMSMessagePoller$1.run(NewJMSMessagePoller.java:264)
           at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
           at weblogic.ejb.container.internal.JMSConnectionPoller.doPrivilegedJMSAction(JMSConnectionPoller.java:2702)
           at weblogic.ejb.container.internal.NewJMSMessagePoller.processOneMessage(NewJMSMessagePoller.java:260)
           at weblogic.ejb.container.internal.NewJMSMessagePoller.run(NewJMSMessagePoller.java:120)
           at weblogic.work.SelfTuningWorkManagerImpl$WorkAdapterImpl.run(SelfTuningWorkManagerImpl.java:528)
           at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
           at weblogic.work.ExecuteThread.run(ExecuteThread.java:178)
      Caused by: oracle.jms.AQjmsException: JMS-122: Internal error Corrupted message
           at oracle.jms.AQjmsError.throwEx(AQjmsError.java:334)
           at oracle.jms.AQjmsUtil.getTextData(AQjmsUtil.java:750)
           at oracle.jms.AQjmsTextMessage.readTextMessageContainer(AQjmsTextMessage.java:308)
           at oracle.jms.AQjmsTextMessage.<init>(AQjmsTextMessage.java:148)
           at oracle.jms.AQjmsConsumer.jdbcDequeue(AQjmsConsumer.java:1389)
           ... 13 more

      Anyone can help me?