8 Replies Latest reply on Apr 7, 2017 4:46 PM by Martin Rauscher

    cannot be cast to org.hornetq.core.server.impl.LastValueQueue$HolderReference

    Carlos Fau Newbie

      Hi,

       

      We are using HornetQ-Server 2.4.0.FINAL, and after a restart of the application the log shows a lot of errors like the one below.

       

      The server is ran embedded in a Web App.

       

      Any help to understand the situation will be appreciated.

       

      Carlos

       

      2016-06-23 06:21:21.261 PDT [Thread-21 (HornetQ-server-HornetQServerImpl::serverUUID=9fe24002-18b9-11e6-91ce-9bd17e13b396-673384643)] ERROR core.client                     - HQ214017: Caught unexpected Throwablejava.lang.ClassCastException: org.hornetq.core.server.impl.MessageReferenceImpl cannot be cast to org.hornetq.core.server.impl.LastValueQueue$HolderReference

              at org.hornetq.core.server.impl.LastValueQueue.addHead(LastValueQueue.java:147)

              at org.hornetq.core.server.impl.QueueImpl.addHead(QueueImpl.java:432)

              at org.hornetq.core.server.impl.QueueImpl.postRollback(QueueImpl.java:2607)

              at org.hornetq.core.server.impl.QueueImpl$RefsOperation.afterRollback(QueueImpl.java:2726)

              at org.hornetq.core.transaction.impl.TransactionImpl.afterRollback(TransactionImpl.java:456)

              at org.hornetq.core.transaction.impl.TransactionImpl.access$200(TransactionImpl.java:38)

              at org.hornetq.core.transaction.impl.TransactionImpl$3.done(TransactionImpl.java:331)

              at org.hornetq.core.persistence.impl.journal.OperationContextImpl$1.run(OperationContextImpl.java:234)

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

              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)

              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)

              at java.lang.Thread.run(Thread.java:745)