8 Replies Latest reply on Jun 7, 2012 9:27 AM by sd_rc

    JMS Queue

    sd_rc Newbie

      Hi

       

      I am using JBoss AS 7.1.1 and I have an application that reads from a JMS queue. Thing is, when I start

      my server and the applications are deployed, it seems my queue listener is picking up an object message

      from the queue although the message producer has not yet written to it. I get the following error:

                         

      16:29:55,161 ERROR [org.hornetq.ra.inflow.HornetQMessageHandler] (Thread-1 (HornetQ-client-global-threads-7988015)) Failed to deliver message:javax.ejb.EJBTransactionRolledbackException

                                                                    

       

      Can anyone please help me with this?

       

      Thanks

        • 1. Re: JMS Queue
          sd_rc Newbie

          ok found the issue.....

           

          in the standalone.xml file, set persistence enable to false.

          • 2. Re: JMS Queue
            jaikiran pai Master

            sd_rc wrote:

             

             

             

            in the standalone.xml file, set persistence enable to false.

            Are you sure you really want to do that? Setting it to false would mean your messages won't be persisted and won't be available after a server restart.

            • 3. Re: JMS Queue
              sd_rc Newbie

              Hi Jaiikiran

               

              I would prefer not to, but that is the only way this issue is resolved.

              If you have some work around please let me know!

              • 4. Re: JMS Queue
                jaikiran pai Master

                Please post the entire exception stacktrace that you are seeing and also a bit more details about the application components.

                • 5. Re: JMS Queue
                  sd_rc Newbie

                  Im using JBoss As 7.1.1 and running it from eclipse 3.7.2.

                  I have a message listener and a message producer using a JMS queue.

                  Here is the stack trace:

                   

                   

                   

                  09:04:44,452 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794496]:RELIABLE:ServerMessage[messageID=30064794496,priority=4, bodySize=400,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@1235415 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,452 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794611]:RELIABLE:ServerMessage[messageID=30064794611,priority=4, bodySize=400,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@26981989 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,452 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794614]:RELIABLE:ServerMessage[messageID=30064794614,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@31696861 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,452 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794618]:RELIABLE:ServerMessage[messageID=30064794618,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@18994298 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,467 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794726]:RELIABLE:ServerMessage[messageID=30064794726,priority=4, bodySize=400,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@313191 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,467 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794727]:RELIABLE:ServerMessage[messageID=30064794727,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@29324978 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,467 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794729]:RELIABLE:ServerMessage[messageID=30064794729,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@17421389 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,467 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794731]:RELIABLE:ServerMessage[messageID=30064794731,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@5327709 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,467 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794734]:RELIABLE:ServerMessage[messageID=30064794734,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@19582729 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,483 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794841]:RELIABLE:ServerMessage[messageID=30064794841,priority=4, bodySize=400,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@25066854 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,483 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794842]:RELIABLE:ServerMessage[messageID=30064794842,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@22724765 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,483 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794844]:RELIABLE:ServerMessage[messageID=30064794844,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@18588649 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,483 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794846]:RELIABLE:ServerMessage[messageID=30064794846,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@27674311 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,498 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794848]:RELIABLE:ServerMessage[messageID=30064794848,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@24165079 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,498 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794956]:RELIABLE:ServerMessage[messageID=30064794956,priority=4, bodySize=400,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@33206627 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,498 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794957]:RELIABLE:ServerMessage[messageID=30064794957,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@26467487 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,498 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794959]:RELIABLE:ServerMessage[messageID=30064794959,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@7957333 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,498 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794961]:RELIABLE:ServerMessage[messageID=30064794961,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@24484798 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,514 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064794963]:RELIABLE:ServerMessage[messageID=30064794963,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@4454270 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,514 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064795073]:RELIABLE:ServerMessage[messageID=30064795073,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@1700019 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,514 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064795075]:RELIABLE:ServerMessage[messageID=30064795075,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@20646201 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,514 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064795077]:RELIABLE:ServerMessage[messageID=30064795077,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@22089990 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,514 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064795079]:RELIABLE:ServerMessage[messageID=30064795079,priority=4, bodySize=1600,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@30751250 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,530 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[30064795360]:RELIABLE:ServerMessage[messageID=30064795360,priority=4, bodySize=3200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@16220748 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,530 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[45097182800]:RELIABLE:ServerMessage[messageID=45097182800,priority=4, bodySize=3200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@397702 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,530 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[45097182871]:RELIABLE:ServerMessage[messageID=45097182871,priority=4, bodySize=3200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@2867750 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,530 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[49392150402]:RELIABLE:ServerMessage[messageID=49392150402,priority=4, bodySize=200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@362230 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,545 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[49392150403]:RELIABLE:ServerMessage[messageID=49392150403,priority=4, bodySize=3200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@15008988 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,545 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[49392150408]:RELIABLE:ServerMessage[messageID=49392150408,priority=4, bodySize=200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@3279916 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,545 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[49392150409]:RELIABLE:ServerMessage[messageID=49392150409,priority=4, bodySize=3200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@13106450 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,545 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[79456922678]:RELIABLE:ServerMessage[messageID=79456922678,priority=4, bodySize=3200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@2958404 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,561 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[79456922749]:RELIABLE:ServerMessage[messageID=79456922749,priority=4, bodySize=3200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@11459831 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,561 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[79456922820]:RELIABLE:ServerMessage[messageID=79456922820,priority=4, bodySize=3200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@538770 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,561 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[79456922891]:RELIABLE:ServerMessage[messageID=79456922891,priority=4, bodySize=3200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@26936262 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,561 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[79456922908]:RELIABLE:ServerMessage[messageID=79456922908,priority=4, bodySize=3200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@11248851 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,592 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[79456922977]:RELIABLE:ServerMessage[messageID=79456922977,priority=4, bodySize=200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@5790676 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,592 WARN [org.hornetq.core.server.impl.QueueImpl] (Thread-8 (HornetQ-server-HornetQServerImpl::serverUUID=c08e9b08-9ddd-11e1-b927-004d20524153-26329699)) Message Reference[79456922982]:RELIABLE:ServerMessage[messageID=79456922982,priority=4, bodySize=3200,expiration=0, durable=true, address=jms.queue.testQueue,properties=TypedProperties[null]]@9492107 has exceeded max delivery attempts. No bindings for Dead Letter Address jms.queue.DLQ so dropping it

                  09:04:44,311 ERROR [org.jboss.as.ejb3.tx.CMTTxInterceptor] (Thread-2 (HornetQ-client-global-threads-30199200)javax.ejb.EJBTransactionRolledbackException: java.lang.Integer cannot be cast to com.ra.rms.po.PrcOpt

                  09:04:44,311 ERROR [org.jboss.ejb3.invocation] (Thread-2 (HornetQ-client-global-threads-30199200)) JBAS014134: EJB Invocation failed on component Queue_Listen for method public abstract void javax.jms.MessageListener.onMessage(javax.jms.Message): javax.ejb.EJBTransactionRolledbackException

                  : java.lang.Integer cannot be cast to com.ra.rms.po.PrcOpt

                  at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:139) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:204) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:43) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocati(MessageDrivenComponentDescription.java:184)[jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at javax.jms.MessageListener$$$view1.onMessage(Unknown Source) [jboss-jms-api_1.1_spec-1.0.0.Final.jar:1.0.0.Final]

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_10]

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_10]

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_10]

                  at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_10]

                  at org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:140) [jboss-as-ejb37.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at $Proxy13.onMessage(Unknown Source) at org.hornetq.ra.inflow.HornetQMessageHandler.onMessage(HornetQMessageHandler.java:278)

                  at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:983)

                  at org.hornetq.core.client.impl.ClientConsumerImpl.access$400(ClientConsumerImpl.java:48)

                  at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1113)

                  at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)

                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_10]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_10]

                  at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_10]

                  Caused by:java.lang.ClassCastException: java.lang.Integer cannot be cast to com.ra.rms.po.PrcOpt

                  at com.message_consumer.Queue_Listen.onMessage(Queue_Listen.java:79) [Queue_List.jar:]

                  at sun.reflect.NativeMethodAccessorImpl.invoke0Native Method) [rt.jar:1.6.0_10]

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_10]

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_10]

                  at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_10]

                  at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocatio(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  ... 37 more     

                     

                     

                  09:04:44,374 ERROR [org.hornetq.ra.inflow.HornetQMessageHandler] (Thread-2 (HornetQ-client-global-threads-30199200)) Failed to deliver message:

                  javax.ejb.EJBTransactionRolledbackException: java.lang.Integer cannot be cast to com.ra.rms.po.PrcOpt

                  at org.jboss.as.ejb3.tx.CMTTxInterceptor.handleInCallerTx(CMTTxInterceptor.java:139) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:204) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:306) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:190) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:59) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:43) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponentDescription$5$1.processInvocatio(MessageDrivenComponentDescription.java:184) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]at org.jboss.invocation.InterceptorContext.procee(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ee.component.TCCLInterceptor.processInvocation(TCCLInterceptor.java:45) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:165) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:173) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:72) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at javax.jms.MessageListener$$$view1.onMessage(Unknown Source) [jboss-jms-api_1.1_spec-1.0.0.Final.jar:1.0.0.Final]

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_10]

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_10]

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_10]

                  at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_10]

                  at org.jboss.as.ejb3.inflow.MessageEndpointInvocationHandler.doInvoke(MessageEndpointInvocationHandler.java:140) [jboss-as-ejb37.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.as.ejb3.inflow.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:73) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at $Proxy13.onMessage(Unknown Source) at org.hornetq.ra.inflow.HornetQMessageHandler.onMessage(HornetQMessageHandler.java:278)

                  at org.hornetq.core.client.impl.ClientConsumerImpl.callOnMessage(ClientConsumerImpl.java:983)

                  at org.hornetq.core.client.impl.ClientConsumerImpl.access$400(ClientConsumerImpl.java:48)

                  at org.hornetq.core.client.impl.ClientConsumerImpl$Runner.run(ClientConsumerImpl.java:1113)

                  at org.hornetq.utils.OrderedExecutorFactory$OrderedExecutor$1.run(OrderedExecutorFactory.java:100)

                  at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_10]

                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_10]

                  at java.lang.Thread.run(Thread.java:619) [rt.jar:1.6.0_10]Caused by: java.lang.ClassCastException: java.lang.Integer cannot be cast to com.ra.rms.po.PrcOpt

                  at com.message_consumer.Queue_Listen.onMessage(Queue_Listen.java:79) [Queue_List.jar:]

                  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [rt.jar:1.6.0_10]

                  at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [rt.jar:1.6.0_10]

                  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [rt.jar:1.6.0_10]

                  at java.lang.reflect.Method.invoke(Method.java:597) [rt.jar:1.6.0_10]

                  at org.jboss.as.ee.component.ManagedReferenceMethodInterceptorFactory$ManagedReferenceMethodInterceptor.processInvocatio(ManagedReferenceMethodInterceptorFactory.java:72) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.invocation.WeavedInterceptor.processInvocation(WeavedInterceptor.java:53) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:36) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:53) [jboss-as-ee-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ejb3.component.pool.PooledInstanceInterceptor.processInvocation(PooledInstanceInterceptor.java:51) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:288) [jboss-invocation-1.1.1.Final.jar:1.1.1.Final]

                  at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInCallerTx(CMTTxInterceptor.java:202) [jboss-as-ejb3-7.1.1.Final.jar:7.1.1.Final]

                  ... 37 more

                   

                      

                  • 6. Re: JMS Queue
                    jaikiran pai Master

                    java.lang.ClassCastException

                     

                    : java.lang.Integer cannot be cast to com.ra.rms.po.PrcOpt

                     

                    at com.message_consumer.Queue_Listen.onMessage(

                    It's a bug in the application's code. It's trying to cast whatever object it has access to, to a wrong type.

                    • 7. Re: JMS Queue
                      sd_rc Newbie

                      But it does not cause any problems otherwise. The program runs fine.

                      This only happens when I restart or start the server.

                      The message listener picks up an object message from the queue although the producer has not

                      written anything and all the previous messages have been consumed. The cast error os because the

                      listener has picked up some object from the queue which has not been sent by the producer.

                      • 8. Re: JMS Queue
                        sd_rc Newbie

                        And this error does not appear when I run my application. Only when I start/restart the server and

                        the jar files are deployed on it.