JBoss ON Server fails to start with a "Failure in initialisation: java.nio.BufferUnderflowException" error in the server.log

Solution Verified - Updated -

Issue

  • Had a full filesystem and after cleaning up files, the JBoss ON server will not start, see the below HornetQ error in the log:
02:33:45,515 ERROR [org.hornetq.core.server] (MSC service thread 1-7) HQ224000: Failure in initialisation: java.nio.BufferUnderflowException
    at java.nio.Buffer.nextGetIndex(Buffer.java:498) [rt.jar:1.7.0_45]
    at java.nio.HeapByteBuffer.getInt(HeapByteBuffer.java:355) [rt.jar:1.7.0_45]
    at org.hornetq.core.journal.impl.JournalImpl.readFileHeader(JournalImpl.java:2666) [hornetq-journal-2.3.5.Final-redhat-2.jar:2.3.5.Final-redhat-2]
    at org.hornetq.core.journal.impl.JournalImpl.orderFiles(JournalImpl.java:384) [hornetq-journal-2.3.5.Final-redhat-2.jar:2.3.5.Final-redhat-2]
    at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1728) [hornetq-journal-2.3.5.Final-redhat-2.jar:2.3.5.Final-redhat-2]
    at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1322) [hornetq-journal-2.3.5.Final-redhat-2.jar:2.3.5.Final-redhat-2]
    at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1306) [hornetq-journal-2.3.5.Final-redhat-2.jar:2.3.5.Final-redhat-2]
    at org.hornetq.core.persistence.impl.journal.JournalStorageManager.loadMessageJournal(JournalStorageManager.java:1530) [hornetq-server-2.3.5.Final-redhat-2.jar:2.3.5.Final-redhat-2]
    at org.hornetq.core.server.impl.HornetQServerImpl.loadJournals(HornetQServerImpl.java:1732) [hornetq-server-2.3.5.Final-redhat-2.jar:2.3.5.Final-redhat-2]
    at org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(HornetQServerImpl.java:1556) [hornetq-server-2.3.5.Final-redhat-2.jar:2.3.5.Final-redhat-2]
    at org.hornetq.core.server.impl.HornetQServerImpl.access$1400(HornetQServerImpl.java:169) [hornetq-server-2.3.5.Final-redhat-2.jar:2.3.5.Final-redhat-2]
    at org.hornetq.core.server.impl.HornetQServerImpl$SharedStoreLiveActivation.run(HornetQServerImpl.java:2071) [hornetq-server-2.3.5.Final-redhat-2.jar:2.3.5.Final-redhat-2]
    at org.hornetq.core.server.impl.HornetQServerImpl.start(HornetQServerImpl.java:425) [hornetq-server-2.3.5.Final-redhat-2.jar:2.3.5.Final-redhat-2]
    at org.hornetq.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:483) [hornetq-jms-server-2.3.5.Final-redhat-2.jar:2.3.5.Final-redhat-2]
    at org.jboss.as.messaging.jms.JMSService.start(JMSService.java:112) [jboss-as-messaging-7.2.1.Final-redhat-10.jar:7.2.1.Final-redhat-10]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
    at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA-redhat-1.jar:1.0.4.GA-redhat-1]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) [rt.jar:1.7.0_45]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [rt.jar:1.7.0_45]
    at java.lang.Thread.run(Thread.java:744) [rt.jar:1.7.0_45]

Environment

  • Red Hat JBoss Operations Network (ON) 3.2

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.