HornetQ readJornalFiles fail with null-pointer due corrupted journal. How to recover / repair ?
neykov Dec 4, 2018 6:30 AMHi,
my jboss fail null-pointer during startup because of corrupted hornetq journal file>
If i remove file manually , server start up, but i could cause a data loss.
I try to avoid this manually clean up and search for some solution for repair / recovery with minimal risk of data loss.
Any ideas ? Thank you
JBossServer 11:04:36,730 WARNING [org.hornetq.core.journal.impl.JournalImpl] (MSC service thread 1-6) NULL: java.lang.NullPointerException
JBossServer at org.hornetq.core.journal.impl.JournalTransaction.rollback(JournalTransaction.java:363)
JBossServer at org.hornetq.core.journal.impl.JournalImpl$4.onReadRollbackRecord(JournalImpl.java:2135)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.readJournalFile(JournalImpl.java:734)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1898)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1496)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1480)
JBossServer at org.hornetq.core.persistence.impl.journal.JournalStorageManager.loadMessageJournal(JournalStorageManager.java:907)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.loadJournals(HornetQServerImpl.java:1603)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(HornetQServerImpl.java:1445)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.access$1200(HornetQServerImpl.java:138)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl$SharedStoreLiveActivation.run(HornetQServerImpl.java:1919)
JBossServer at org.hornetq.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:269)
JBossServer at org.jboss.as.messaging.jms.JMSService.start(JMSService.java:73)
JBossServer at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1836) [jboss-msc-1.0.2.jar:1.0.2]
JBossServer at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1771) [jboss-msc-1.0.2.jar:1.0.2]
JBossServer at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_192]
JBossServer at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_192]
JBossServer at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_192]
JBossServer 11:04:36,731 INFO [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-3) Bundle started: javassist:3.21.0.GA
JBossServer 11:04:36,739 SEVERE [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-6) Failure in initialisation: java.lang.Exception
JBossServer at org.hornetq.core.journal.impl.JournalImpl.readJournalFile(JournalImpl.java:766)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1898)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1496)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1480)
JBossServer at org.hornetq.core.persistence.impl.journal.JournalStorageManager.loadMessageJournal(JournalStorageManager.java:907)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.loadJournals(HornetQServerImpl.java:1603)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(HornetQServerImpl.java:1445)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.access$1200(HornetQServerImpl.java:138)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl$SharedStoreLiveActivation.run(HornetQServerImpl.java:1919)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.start(HornetQServerImpl.java:366)
JBossServer at org.hornetq.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:269)
JBossServer at org.jboss.as.messaging.jms.JMSService.start(JMSService.java:73)
JBossServer at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1836) [jboss-msc-1.0.2.jar:1.0.2]
JBossServer at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1771) [jboss-msc-1.0.2.jar:1.0.2]
JBossServer at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_192]
JBossServer at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_192]
JBossServer at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_192]
JBossServer Caused by: java.lang.NullPointerException
JBossServer at org.hornetq.core.journal.impl.JournalTransaction.rollback(JournalTransaction.java:363)
JBossServer at org.hornetq.core.journal.impl.JournalImpl$4.onReadRollbackRecord(JournalImpl.java:2135)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.readJournalFile(JournalImpl.java:734)
JBossServer ... 16 more
JBossServer 11:04:36,730 WARNING [org.hornetq.core.journal.impl.JournalImpl] (MSC service thread 1-6) NULL: java.lang.NullPointerException
JBossServer at org.hornetq.core.journal.impl.JournalTransaction.rollback(JournalTransaction.java:363)
JBossServer at org.hornetq.core.journal.impl.JournalImpl$4.onReadRollbackRecord(JournalImpl.java:2135)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.readJournalFile(JournalImpl.java:734)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1898)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1496)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1480)
JBossServer at org.hornetq.core.persistence.impl.journal.JournalStorageManager.loadMessageJournal(JournalStorageManager.java:907)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.loadJournals(HornetQServerImpl.java:1603)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(HornetQServerImpl.java:1445)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.access$1200(HornetQServerImpl.java:138)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl$SharedStoreLiveActivation.run(HornetQServerImpl.java:1919)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.start(HornetQServerImpl.java:366)
JBossServer at org.hornetq.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:269)
JBossServer at org.jboss.as.messaging.jms.JMSService.start(JMSService.java:73)
JBossServer at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1836) [jboss-msc-1.0.2.jar:1.0.2]
JBossServer at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1771) [jboss-msc-1.0.2.jar:1.0.2]
JBossServer at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_192]
JBossServer at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_192]
JBossServer at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_192]
JBossServer
JBossServer 11:04:36,731 INFO [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-3) Bundle started: javassist:3.21.0.GA
JBossServer 11:04:36,739 SEVERE [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-6) Failure in initialisation: java.lang.Exception
JBossServer at org.hornetq.core.journal.impl.JournalImpl.readJournalFile(JournalImpl.java:766)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1898)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1496)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1480)
JBossServer at org.hornetq.core.persistence.impl.journal.JournalStorageManager.loadMessageJournal(JournalStorageManager.java:907)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.loadJournals(HornetQServerImpl.java:1603)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(HornetQServerImpl.java:1445)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.access$1200(HornetQServerImpl.java:138)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl$SharedStoreLiveActivation.run(HornetQServerImpl.java:1919)
JBossServer at org.hornetq.core.server.impl.HornetQServerImpl.start(HornetQServerImpl.java:366)
JBossServer at org.hornetq.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:269)
JBossServer at org.jboss.as.messaging.jms.JMSService.start(JMSService.java:73)
JBossServer at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1836) [jboss-msc-1.0.2.jar:1.0.2]
JBossServer at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1771) [jboss-msc-1.0.2.jar:1.0.2]
JBossServer at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_192]
JBossServer at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_192]
JBossServer at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_192]
JBossServer Caused by: java.lang.NullPointerException
JBossServer at org.hornetq.core.journal.impl.JournalTransaction.rollback(JournalTransaction.java:363)
JBossServer at org.hornetq.core.journal.impl.JournalImpl$4.onReadRollbackRecord(JournalImpl.java:2135)
JBossServer at org.hornetq.core.journal.impl.JournalImpl.readJournalFile(JournalImpl.java:734)
JBossServer ... 16 more