7 Replies Latest reply on Apr 9, 2014 12:14 AM by veenaonnet

    With HornetQ 2.4 seen error - HQ224000: Failure in initialisation: java.nio.BufferUnderflowException and HornetQ server not started

    veenaonnet Newbie

      Hi,

       

      I have multiple journal directories created along with paging and binding directories.

      On starting my JBoss server, I check max_replicated_journal_size and accordingly delete some old journal directories(based on the modification time). This is done for multiple failover/failback to go through. Not deleting old binding/paging directories though.

       

      This time, I saw some journal directories with only server.lock files inside them. While starting HornetQ server, have seen the below exception and HornetQ server never came up.

      From the logs, it seems that the error came while loading binding journals.

      What could be the reason for these errors?

       

      2014-04-06 21:36:43,483 ERROR [org.hornetq.core.server] (MSC service thread 1-13) 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.4.0-SNAPSHOT.jar:]

      at org.hornetq.core.journal.impl.JournalImpl.orderFiles(JournalImpl.java:384) [hornetq-journal-2.4.0-SNAPSHOT.jar:]

      at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1728) [hornetq-journal-2.4.0-SNAPSHOT.jar:]

      at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1322) [hornetq-journal-2.4.0-SNAPSHOT.jar:]

      at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1306) [hornetq-journal-2.4.0-SNAPSHOT.jar:]

      at org.hornetq.core.persistence.impl.journal.JournalStorageManager.loadBindingJournal(JournalStorageManager.java:2173) [hornetq-server-2.4.0-SNAPSHOT.jar:]

      at org.hornetq.core.server.impl.HornetQServerImpl.loadJournals(HornetQServerImpl.java:1735) [hornetq-server-2.4.0-SNAPSHOT.jar:]

      at org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(HornetQServerImpl.java:1624) [hornetq-server-2.4.0-SNAPSHOT.jar:]

      at org.hornetq.core.server.impl.HornetQServerImpl.access$1400(HornetQServerImpl.java:172) [hornetq-server-2.4.0-SNAPSHOT.jar:]

      at org.hornetq.core.server.impl.HornetQServerImpl$SharedNothingLiveActivation.run(HornetQServerImpl.java:2680) [hornetq-server-2.4.0-SNAPSHOT.jar:]

      at org.hornetq.core.server.impl.HornetQServerImpl.start(HornetQServerImpl.java:432) [hornetq-server-2.4.0-SNAPSHOT.jar:]

      at org.hornetq.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:483) [hornetq-jms-server-2.4.0-SNAPSHOT.jar:]

      at org.jboss.as.messaging.jms.JMSService.start(JMSService.java:74) [jboss-as-messaging-7.2.0.Final.jar:7.2.0.Final]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

      at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.4.GA.jar:1.0.4.GA]

      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]

       

      Regards,

      Veena