Мой JBoss AS7 завершается с ошибкой NullPointerException
во время запуска из-за поврежденного файла журнала HornetQ.Если я удаляю файл вручную, сервер запускается, но это может привести к потере данных.
Я хочу избежать потери данных при этой ручной очистке и найти решение для ремонта / восстановления с минимальным риском потери данных.
11:04:36,730 WARNING [org.hornetq.core.journal.impl.JournalImpl] (MSC service thread 1-6) NULL: java.lang.NullPointerException
at org.hornetq.core.journal.impl.JournalTransaction.rollback(JournalTransaction.java:363)
at org.hornetq.core.journal.impl.JournalImpl$4.onReadRollbackRecord(JournalImpl.java:2135)
at org.hornetq.core.journal.impl.JournalImpl.readJournalFile(JournalImpl.java:734)
at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1898)
at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1496)
at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1480)
at org.hornetq.core.persistence.impl.journal.JournalStorageManager.loadMessageJournal(JournalStorageManager.java:907)
at org.hornetq.core.server.impl.HornetQServerImpl.loadJournals(HornetQServerImpl.java:1603)
at org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(HornetQServerImpl.java:1445)
at org.hornetq.core.server.impl.HornetQServerImpl.access$1200(HornetQServerImpl.java:138)
at org.hornetq.core.server.impl.HornetQServerImpl$SharedStoreLiveActivation.run(HornetQServerImpl.java:1919)
at org.hornetq.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:269)
at org.jboss.as.messaging.jms.JMSService.start(JMSService.java:73)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1836) [jboss-msc-1.0.2.jar:1.0.2]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1771) [jboss-msc-1.0.2.jar:1.0.2]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_192]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_192]
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_192]
11:04:36,731 INFO [org.jboss.osgi.framework.internal.HostBundleState] (MSC service thread 1-3) Bundle started: javassist:3.21.0.GA
11:04:36,739 SEVERE [org.hornetq.core.server.impl.HornetQServerImpl] (MSC service thread 1-6) Failure in initialisation: java.lang.Exception
at org.hornetq.core.journal.impl.JournalImpl.readJournalFile(JournalImpl.java:766)
at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1898)
at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1496)
at org.hornetq.core.journal.impl.JournalImpl.load(JournalImpl.java:1480)
at org.hornetq.core.persistence.impl.journal.JournalStorageManager.loadMessageJournal(JournalStorageManager.java:907)
at org.hornetq.core.server.impl.HornetQServerImpl.loadJournals(HornetQServerImpl.java:1603)
at org.hornetq.core.server.impl.HornetQServerImpl.initialisePart2(HornetQServerImpl.java:1445)
at org.hornetq.core.server.impl.HornetQServerImpl.access$1200(HornetQServerImpl.java:138)
at org.hornetq.core.server.impl.HornetQServerImpl$SharedStoreLiveActivation.run(HornetQServerImpl.java:1919)
at org.hornetq.core.server.impl.HornetQServerImpl.start(HornetQServerImpl.java:366)
at org.hornetq.jms.server.impl.JMSServerManagerImpl.start(JMSServerManagerImpl.java:269)
at org.jboss.as.messaging.jms.JMSService.start(JMSService.java:73)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1836) [jboss-msc-1.0.2.jar:1.0.2]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1771) [jboss-msc-1.0.2.jar:1.0.2]
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_192]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_192]
at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_192]
Caused by: java.lang.NullPointerException
at org.hornetq.core.journal.impl.JournalTransaction.rollback(JournalTransaction.java:363)
at org.hornetq.core.journal.impl.JournalImpl$4.onReadRollbackRecord(JournalImpl.java:2135)
at org.hornetq.core.journal.impl.JournalImpl.readJournalFile(JournalImpl.java:734)
... 16 more