JBoss HornetQ server fails to start due to Invalid messageNumber passed
Issue
- 'HQ224000: Failure in initialisation: java.lang.RuntimeException: Invalid messageNumber'
-
Server fails to start and logs the following error:
ERROR [org.hornetq.core.server] (ServerService Thread Pool -- 64) HQ224000: Failure in initialisation: java.lang.RuntimeException: Invalid messageNumber passed = PagePositionImpl [pageNr=10834, messageNr=4034, recordID=26721363297] on PageCacheImpl::page=10834 numberOfMessages = 3412 at org.hornetq.core.paging.cursor.impl.PageSubscriptionImpl.queryMessage(PageSubscriptionImpl.java:588) [hornetq-server-2.3.12.Final-redhat-1.jar:2.3.12.Final-redhat-1] at org.hornetq.core.paging.cursor.PagedReferenceImpl.getPagedMessage(PagedReferenceImpl.java:68) [hornetq-server-2.3.12.Final-redhat-1.jar:2.3.12.Final-redhat-1] ... Caused by: java.lang.IllegalStateException: Invalid messageNumber passed = PagePositionImpl [pageNr=10834, messageNr=4034, recordID=26721363297] on PageCacheImpl::page=10834 numberOfMessages = 3412 at org.hornetq.core.paging.cursor.impl.PageCursorProviderImpl.getMessage(PageCursorProviderImpl.java:123) [hornetq-server-2.3.12.Final-redhat-1.jar:2.3.12.Final-redhat-1] at org.hornetq.core.paging.cursor.impl.PageSubscriptionImpl.queryMessage(PageSubscriptionImpl.java:584) [hornetq-server-2.3.12.Final-redhat-1.jar:2.3.12.Final-redhat-1] ... 21 more
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6.2
- JBoss HornetQ using paging
- Server had previously crashed due to memory or disk space issues
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.