[DiskJournal] active log file is unclean, previous server crash

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[DiskJournal] active log file is unclean, previous server crash

kjcsb
I get the following message when starting BTM. How can I fix the corrupted log file?

Jul 29, 2013 6:42:37 PM bitronix.tm.integration.tomcat55.BTMLifecycleListener lifecycleEvent
INFO: Starting Bitronix Transaction Manager
18:42:37,572 WARN  [DiskJournal] active log file is unclean, previous server crash ?
18:42:38,376 WARN  [Recoverer] recovery failed, registered resource(s): jdbc/BPMSDB
bitronix.tm.journal.CorruptedTransactionLogException: corrupted log found at position 546125 (no record terminator found)
        at bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:184)
        at bitronix.tm.recovery.Recoverer.run(Recoverer.java:110)
        at bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:48)
        at bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:42)
        at bitronix.tm.integration.tomcat55.BTMLifecycleListener.lifecycleEvent(BTMLifecycleListener.java:18)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:691)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
18:42:42,479 ERROR [[/ode]] StandardWrapper.Throwable
org.apache.ode.bpel.iapi.ContextException: DbError
        at org.apache.ode.store.ProcessStoreImpl.exec(ProcessStoreImpl.java:673)
        at org.apache.ode.store.ProcessStoreImpl.loadAll(ProcessStoreImpl.java:573)
        at org.apache.ode.axis2.ODEServer.init(ODEServer.java:190)
        at org.apache.ode.axis2.ODEServer.init(ODEServer.java:133)
        at org.apache.ode.axis2.hooks.ODEAxisServlet.init(ODEAxisServlet.java:53)
        at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
        at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
        at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
        at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.util.concurrent.ExecutionException: java.lang.RuntimeException: bitronix.tm.internal.BitronixSystemException: error logging status
        at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:205)
        at java.util.concurrent.FutureTask.get(FutureTask.java:80)
        at org.apache.ode.store.ProcessStoreImpl.exec(ProcessStoreImpl.java:671)
        ... 30 more
Caused by: java.lang.RuntimeException: bitronix.tm.internal.BitronixSystemException: error logging status
        at org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:192)
        at org.apache.ode.store.ProcessStoreImpl$Callable.call(ProcessStoreImpl.java:842)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: bitronix.tm.internal.BitronixSystemException: error logging status
        at bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:283)
        at bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:261)
        at bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:256)
        at bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:85)
        at org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:190)
        ... 6 more
Caused by: bitronix.tm.journal.CorruptedTransactionLogException: corrupted log found at position 546125 (no record terminator found)
        at bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at bitronix.tm.journal.DiskJournal.copyDanglingRecords(DiskJournal.java:308)
        at bitronix.tm.journal.DiskJournal.swapJournalFiles(DiskJournal.java:271)
        at bitronix.tm.journal.DiskJournal.log(DiskJournal.java:80)
        at bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:272)
        ... 10 more
18:42:42,481 ERROR [[/ode]] Servlet /ode threw load() exception
bitronix.tm.journal.CorruptedTransactionLogException: corrupted log found at position 546125 (no record terminator found)
        at bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at bitronix.tm.journal.DiskJournal.copyDanglingRecords(DiskJournal.java:308)
        at bitronix.tm.journal.DiskJournal.swapJournalFiles(DiskJournal.java:271)
        at bitronix.tm.journal.DiskJournal.log(DiskJournal.java:80)
        at bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:272)
        at bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:261)
        at bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:256)
        at bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:85)
        at org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:190)
        at org.apache.ode.store.ProcessStoreImpl$Callable.call(ProcessStoreImpl.java:842)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [DiskJournal] active log file is unclean, previous server crash

Brett Wooldridge-2
Did your server indeed crash?  If there was no actual transactions in-flight when BTM was shutdown, you can simply delete the two transaction logs and restart.  If there were transactions that in-flight, I'll wait for Ludovic to answer.

My feeling is that most databases will timeout the in-flight transactions anyway in this situation and automatically roll them back. Anything that was committed in BTM should already be committed by the database, I believe.  If JMS messages were being sent transactionally, I do not know what the JMS server will do with uncommitted and unrecoverable events.  It may depend on the JMS implementation.

Brett



On Mon, Jul 29, 2013 at 4:06 PM, kjcsb <[hidden email]> wrote:
I get the following message when starting BTM. How can I fix the corrupted
log file?

Jul 29, 2013 6:42:37 PM
bitronix.tm.integration.tomcat55.BTMLifecycleListener lifecycleEvent
INFO: Starting Bitronix Transaction Manager
18:42:37,572 WARN  [DiskJournal] active log file is unclean, previous server
crash ?
18:42:38,376 WARN  [Recoverer] recovery failed, registered resource(s):
jdbc/BPMSDB
bitronix.tm.journal.CorruptedTransactionLogException: corrupted log found at
position 546125 (no record terminator found)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:184)
        at bitronix.tm.recovery.Recoverer.run(Recoverer.java:110)
        at
bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:48)
        at
bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:42)
        at
bitronix.tm.integration.tomcat55.BTMLifecycleListener.lifecycleEvent(BTMLifecycleListener.java:18)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:691)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
18:42:42,479 ERROR [[/ode]] StandardWrapper.Throwable
org.apache.ode.bpel.iapi.ContextException: DbError
        at
org.apache.ode.store.ProcessStoreImpl.exec(ProcessStoreImpl.java:673)
        at
org.apache.ode.store.ProcessStoreImpl.loadAll(ProcessStoreImpl.java:573)
        at org.apache.ode.axis2.ODEServer.init(ODEServer.java:190)
        at org.apache.ode.axis2.ODEServer.init(ODEServer.java:133)
        at
org.apache.ode.axis2.hooks.ODEAxisServlet.init(ODEAxisServlet.java:53)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
        at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.util.concurrent.ExecutionException:
java.lang.RuntimeException: bitronix.tm.internal.BitronixSystemException:
error logging status
        at
java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:205)
        at java.util.concurrent.FutureTask.get(FutureTask.java:80)
        at
org.apache.ode.store.ProcessStoreImpl.exec(ProcessStoreImpl.java:671)
        ... 30 more
Caused by: java.lang.RuntimeException:
bitronix.tm.internal.BitronixSystemException: error logging status
        at
org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:192)
        at
org.apache.ode.store.ProcessStoreImpl$Callable.call(ProcessStoreImpl.java:842)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: bitronix.tm.internal.BitronixSystemException: error logging
status
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:283)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:261)
        at
bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:256)
        at
bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:85)
        at
org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:190)
        ... 6 more
Caused by: bitronix.tm.journal.CorruptedTransactionLogException: corrupted
log found at position 546125 (no record terminator found)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at
bitronix.tm.journal.DiskJournal.copyDanglingRecords(DiskJournal.java:308)
        at
bitronix.tm.journal.DiskJournal.swapJournalFiles(DiskJournal.java:271)
        at bitronix.tm.journal.DiskJournal.log(DiskJournal.java:80)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:272)
        ... 10 more
18:42:42,481 ERROR [[/ode]] Servlet /ode threw load() exception
bitronix.tm.journal.CorruptedTransactionLogException: corrupted log found at
position 546125 (no record terminator found)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at
bitronix.tm.journal.DiskJournal.copyDanglingRecords(DiskJournal.java:308)
        at
bitronix.tm.journal.DiskJournal.swapJournalFiles(DiskJournal.java:271)
        at bitronix.tm.journal.DiskJournal.log(DiskJournal.java:80)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:272)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:261)
        at
bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:256)
        at
bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:85)
        at
org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:190)
        at
org.apache.ode.store.ProcessStoreImpl$Callable.call(ProcessStoreImpl.java:842)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)




--
View this message in context: http://bitronix-transaction-manager.10986.n7.nabble.com/DiskJournal-active-log-file-is-unclean-previous-server-crash-tp1493.html
Sent from the Bitronix Transaction Manager mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [DiskJournal] active log file is unclean, previous server crash

Ludovic Orban-2
The disk journal has been designed in such a way that it is in theory not possible to run into such problem. Of course, software is not immune to bugs but in my experience corrupted journals are more the feat of hardware about to fail than software bugs. As Brett advised, if there were no in-flight transactions the easiest thing to do is to delete the two journal files and restart, but I'd definitely check the health of the hardware.

An easy way to check the contents of the journal, for instance to make sure there were no in-flight transactions, is to use the console. It's rather primitive but very useful to get a quick overview of the contents of the disk journal. Just run the main method in the bitronix.tm.gui.Console class and make sure you use the same config as you use for Tomcat. You can specify the location of the config file with the bitronix.tm.configuration system property if needed.

If there is a pending in-flight transaction, you're at risk of a byzantine outcome, ie: that this particular transaction was committed on some resource(s) and rolled back on some other(s). In that case I'd do my best to make BTM report what the resources have to say about that: which one(s) committed, which one(s) rolled back and eventually some more info depending on the implementation. You best chance is to tell the journal to try to make sense of the corrupted logs by activating the skipCorruptedLogs config option (see http://docs.codehaus.org/display/BTM/Configuration2x#Configuration2x-Journalsettings). Please note that it is NOT safe to run with that setting enabled on a normally running server, it should only be activated to temporarily force BTM to read a corrupted journal.

As Brett pointed out, some databases will unilaterally decide the outcome of an XA transaction after a certain timeout, but only sometimes. That depends on the implementation, the config and sometimes the weather forecast and the outcome is as good as flipping a coin: you only have a 50% chance that the DB took the right decision. The same is true for JMS servers: they may or may not decide to commit or rollback the messages you send/received.

--
Ludovic

On Mon, Jul 29, 2013 at 12:19 PM, Brett Wooldridge <[hidden email]> wrote:
Did your server indeed crash?  If there was no actual transactions in-flight when BTM was shutdown, you can simply delete the two transaction logs and restart.  If there were transactions that in-flight, I'll wait for Ludovic to answer.

My feeling is that most databases will timeout the in-flight transactions anyway in this situation and automatically roll them back. Anything that was committed in BTM should already be committed by the database, I believe.  If JMS messages were being sent transactionally, I do not know what the JMS server will do with uncommitted and unrecoverable events.  It may depend on the JMS implementation.

Brett



On Mon, Jul 29, 2013 at 4:06 PM, kjcsb <[hidden email]> wrote:
I get the following message when starting BTM. How can I fix the corrupted
log file?

Jul 29, 2013 6:42:37 PM
bitronix.tm.integration.tomcat55.BTMLifecycleListener lifecycleEvent
INFO: Starting Bitronix Transaction Manager
18:42:37,572 WARN  [DiskJournal] active log file is unclean, previous server
crash ?
18:42:38,376 WARN  [Recoverer] recovery failed, registered resource(s):
jdbc/BPMSDB
bitronix.tm.journal.CorruptedTransactionLogException: corrupted log found at
position 546125 (no record terminator found)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:184)
        at bitronix.tm.recovery.Recoverer.run(Recoverer.java:110)
        at
bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:48)
        at
bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:42)
        at
bitronix.tm.integration.tomcat55.BTMLifecycleListener.lifecycleEvent(BTMLifecycleListener.java:18)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:691)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
18:42:42,479 ERROR [[/ode]] StandardWrapper.Throwable
org.apache.ode.bpel.iapi.ContextException: DbError
        at
org.apache.ode.store.ProcessStoreImpl.exec(ProcessStoreImpl.java:673)
        at
org.apache.ode.store.ProcessStoreImpl.loadAll(ProcessStoreImpl.java:573)
        at org.apache.ode.axis2.ODEServer.init(ODEServer.java:190)
        at org.apache.ode.axis2.ODEServer.init(ODEServer.java:133)
        at
org.apache.ode.axis2.hooks.ODEAxisServlet.init(ODEAxisServlet.java:53)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
        at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.util.concurrent.ExecutionException:
java.lang.RuntimeException: bitronix.tm.internal.BitronixSystemException:
error logging status
        at
java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:205)
        at java.util.concurrent.FutureTask.get(FutureTask.java:80)
        at
org.apache.ode.store.ProcessStoreImpl.exec(ProcessStoreImpl.java:671)
        ... 30 more
Caused by: java.lang.RuntimeException:
bitronix.tm.internal.BitronixSystemException: error logging status
        at
org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:192)
        at
org.apache.ode.store.ProcessStoreImpl$Callable.call(ProcessStoreImpl.java:842)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: bitronix.tm.internal.BitronixSystemException: error logging
status
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:283)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:261)
        at
bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:256)
        at
bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:85)
        at
org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:190)
        ... 6 more
Caused by: bitronix.tm.journal.CorruptedTransactionLogException: corrupted
log found at position 546125 (no record terminator found)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at
bitronix.tm.journal.DiskJournal.copyDanglingRecords(DiskJournal.java:308)
        at
bitronix.tm.journal.DiskJournal.swapJournalFiles(DiskJournal.java:271)
        at bitronix.tm.journal.DiskJournal.log(DiskJournal.java:80)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:272)
        ... 10 more
18:42:42,481 ERROR [[/ode]] Servlet /ode threw load() exception
bitronix.tm.journal.CorruptedTransactionLogException: corrupted log found at
position 546125 (no record terminator found)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at
bitronix.tm.journal.DiskJournal.copyDanglingRecords(DiskJournal.java:308)
        at
bitronix.tm.journal.DiskJournal.swapJournalFiles(DiskJournal.java:271)
        at bitronix.tm.journal.DiskJournal.log(DiskJournal.java:80)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:272)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:261)
        at
bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:256)
        at
bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:85)
        at
org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:190)
        at
org.apache.ode.store.ProcessStoreImpl$Callable.call(ProcessStoreImpl.java:842)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)




--
View this message in context: http://bitronix-transaction-manager.10986.n7.nabble.com/DiskJournal-active-log-file-is-unclean-previous-server-crash-tp1493.html
Sent from the Bitronix Transaction Manager mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email




Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [DiskJournal] active log file is unclean, previous server crash

Dennis Brakhane-2
In reply to this post by Brett Wooldridge-2
Am 29.07.2013 12:19, schrieb Brett Wooldridge:
>
> My feeling is that most databases will timeout the in-flight
> transactions anyway in this situation and automatically roll them back.
Just so that people are aware of it: this is not true for Postgres. If
the in-flight transaction was a 2PC one, all prepared transactions so
far will stay prepared for ever (and potentially block other
inserts/updates if they happen to influence constrains)

So in case of a corrupted BTM log and using Postgres, it's a good idea
to do a "SELECT * FROM pg_prepared_xacts" on all affected databases and
manually "ROLLBACK PREPARED" suspicious transactions (that were prepared
6 hours ago, for example)



signature.asc (917 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [DiskJournal] active log file is unclean, previous server crash

kjcsb
In reply to this post by Brett Wooldridge-2
Thanks for the reply. Sorry but I have no idea how to delete the transaction logs. Are you able to advise on how to do that please?



From: Brett Wooldridge-2 [via Bitronix Transaction Manager] <[hidden email]>
To: kjcsb <[hidden email]>
Sent: Monday, 29 July 2013, 22:21
Subject: Re: [DiskJournal] active log file is unclean, previous server crash

Did your server indeed crash?  If there was no actual transactions in-flight when BTM was shutdown, you can simply delete the two transaction logs and restart.  If there were transactions that in-flight, I'll wait for Ludovic to answer.

My feeling is that most databases will timeout the in-flight transactions anyway in this situation and automatically roll them back. Anything that was committed in BTM should already be committed by the database, I believe.  If JMS messages were being sent transactionally, I do not know what the JMS server will do with uncommitted and unrecoverable events.  It may depend on the JMS implementation.

Brett



On Mon, Jul 29, 2013 at 4:06 PM, kjcsb <[hidden email]> wrote:
I get the following message when starting BTM. How can I fix the corrupted
log file?

Jul 29, 2013 6:42:37 PM
bitronix.tm.integration.tomcat55.BTMLifecycleListener lifecycleEvent
INFO: Starting Bitronix Transaction Manager
18:42:37,572 WARN  [DiskJournal] active log file is unclean, previous server
crash ?
18:42:38,376 WARN  [Recoverer] recovery failed, registered resource(s):
jdbc/BPMSDB
bitronix.tm.journal.CorruptedTransactionLogException: corrupted log found at
position 546125 (no record terminator found)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:184)
        at bitronix.tm.recovery.Recoverer.run(Recoverer.java:110)
        at
bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:48)
        at
bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:42)
        at
bitronix.tm.integration.tomcat55.BTMLifecycleListener.lifecycleEvent(BTMLifecycleListener.java:18)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:691)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
18:42:42,479 ERROR [[/ode]] StandardWrapper.Throwable
org.apache.ode.bpel.iapi.ContextException: DbError
        at
org.apache.ode.store.ProcessStoreImpl.exec(ProcessStoreImpl.java:673)
        at
org.apache.ode.store.ProcessStoreImpl.loadAll(ProcessStoreImpl.java:573)
        at org.apache.ode.axis2.ODEServer.init(ODEServer.java:190)
        at org.apache.ode.axis2.ODEServer.init(ODEServer.java:133)
        at
org.apache.ode.axis2.hooks.ODEAxisServlet.init(ODEAxisServlet.java:53)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
        at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.util.concurrent.ExecutionException:
java.lang.RuntimeException: bitronix.tm.internal.BitronixSystemException:
error logging status
        at
java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:205)
        at java.util.concurrent.FutureTask.get(FutureTask.java:80)
        at
org.apache.ode.store.ProcessStoreImpl.exec(ProcessStoreImpl.java:671)
        ... 30 more
Caused by: java.lang.RuntimeException:
bitronix.tm.internal.BitronixSystemException: error logging status
        at
org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:192)
        at
org.apache.ode.store.ProcessStoreImpl$Callable.call(ProcessStoreImpl.java:842)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: bitronix.tm.internal.BitronixSystemException: error logging
status
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:283)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:261)
        at
bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:256)
        at
bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:85)
        at
org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:190)
        ... 6 more
Caused by: bitronix.tm.journal.CorruptedTransactionLogException: corrupted
log found at position 546125 (no record terminator found)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at
bitronix.tm.journal.DiskJournal.copyDanglingRecords(DiskJournal.java:308)
        at
bitronix.tm.journal.DiskJournal.swapJournalFiles(DiskJournal.java:271)
        at bitronix.tm.journal.DiskJournal.log(DiskJournal.java:80)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:272)
        ... 10 more
18:42:42,481 ERROR [[/ode]] Servlet /ode threw load() exception
bitronix.tm.journal.CorruptedTransactionLogException: corrupted log found at
position 546125 (no record terminator found)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at
bitronix.tm.journal.DiskJournal.copyDanglingRecords(DiskJournal.java:308)
        at
bitronix.tm.journal.DiskJournal.swapJournalFiles(DiskJournal.java:271)
        at bitronix.tm.journal.DiskJournal.log(DiskJournal.java:80)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:272)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:261)
        at
bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:256)
        at
bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:85)
        at
org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:190)
        at
org.apache.ode.store.ProcessStoreImpl$Callable.call(ProcessStoreImpl.java:842)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)




--
View this message in context: http://bitronix-transaction-manager.10986.n7.nabble.com/DiskJournal-active-log-file-is-unclean-previous-server-crash-tp1493.html
Sent from the Bitronix Transaction Manager mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email






To unsubscribe from [DiskJournal] active log file is unclean, previous server crash, click here.
NAML


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: [DiskJournal] active log file is unclean, previous server crash

kjcsb
In reply to this post by Brett Wooldridge-2
cd /intalio-bpms-6.0.3.022/work
mv btm1.tlog btm1.tlog.corrupt
mv btm2.tlog btm2.tlog.corrupt
Restart Intalio
Fixed


From: Brett Wooldridge-2 [via Bitronix Transaction Manager] <[hidden email]>
To: kjcsb <[hidden email]>
Sent: Monday, 29 July 2013, 22:21
Subject: Re: [DiskJournal] active log file is unclean, previous server crash

Did your server indeed crash?  If there was no actual transactions in-flight when BTM was shutdown, you can simply delete the two transaction logs and restart.  If there were transactions that in-flight, I'll wait for Ludovic to answer.

My feeling is that most databases will timeout the in-flight transactions anyway in this situation and automatically roll them back. Anything that was committed in BTM should already be committed by the database, I believe.  If JMS messages were being sent transactionally, I do not know what the JMS server will do with uncommitted and unrecoverable events.  It may depend on the JMS implementation.

Brett



On Mon, Jul 29, 2013 at 4:06 PM, kjcsb <[hidden email]> wrote:
I get the following message when starting BTM. How can I fix the corrupted
log file?

Jul 29, 2013 6:42:37 PM
bitronix.tm.integration.tomcat55.BTMLifecycleListener lifecycleEvent
INFO: Starting Bitronix Transaction Manager
18:42:37,572 WARN  [DiskJournal] active log file is unclean, previous server
crash ?
18:42:38,376 WARN  [Recoverer] recovery failed, registered resource(s):
jdbc/BPMSDB
bitronix.tm.journal.CorruptedTransactionLogException: corrupted log found at
position 546125 (no record terminator found)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:184)
        at bitronix.tm.recovery.Recoverer.run(Recoverer.java:110)
        at
bitronix.tm.BitronixTransactionManager.<init>(BitronixTransactionManager.java:48)
        at
bitronix.tm.TransactionManagerServices.getTransactionManager(TransactionManagerServices.java:42)
        at
bitronix.tm.integration.tomcat55.BTMLifecycleListener.lifecycleEvent(BTMLifecycleListener.java:18)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:691)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
18:42:42,479 ERROR [[/ode]] StandardWrapper.Throwable
org.apache.ode.bpel.iapi.ContextException: DbError
        at
org.apache.ode.store.ProcessStoreImpl.exec(ProcessStoreImpl.java:673)
        at
org.apache.ode.store.ProcessStoreImpl.loadAll(ProcessStoreImpl.java:573)
        at org.apache.ode.axis2.ODEServer.init(ODEServer.java:190)
        at org.apache.ode.axis2.ODEServer.init(ODEServer.java:133)
        at
org.apache.ode.axis2.hooks.ODEAxisServlet.init(ODEAxisServlet.java:53)
        at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
        at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
        at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3996)
        at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4266)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
        at
org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
        at
org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
        at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
        at
org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
        at
org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
        at
org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
        at
org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
        at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
        at
org.apache.catalina.core.StandardService.start(StandardService.java:448)
        at
org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
Caused by: java.util.concurrent.ExecutionException:
java.lang.RuntimeException: bitronix.tm.internal.BitronixSystemException:
error logging status
        at
java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:205)
        at java.util.concurrent.FutureTask.get(FutureTask.java:80)
        at
org.apache.ode.store.ProcessStoreImpl.exec(ProcessStoreImpl.java:671)
        ... 30 more
Caused by: java.lang.RuntimeException:
bitronix.tm.internal.BitronixSystemException: error logging status
        at
org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:192)
        at
org.apache.ode.store.ProcessStoreImpl$Callable.call(ProcessStoreImpl.java:842)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)
Caused by: bitronix.tm.internal.BitronixSystemException: error logging
status
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:283)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:261)
        at
bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:256)
        at
bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:85)
        at
org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:190)
        ... 6 more
Caused by: bitronix.tm.journal.CorruptedTransactionLogException: corrupted
log found at position 546125 (no record terminator found)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at
bitronix.tm.journal.DiskJournal.copyDanglingRecords(DiskJournal.java:308)
        at
bitronix.tm.journal.DiskJournal.swapJournalFiles(DiskJournal.java:271)
        at bitronix.tm.journal.DiskJournal.log(DiskJournal.java:80)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:272)
        ... 10 more
18:42:42,481 ERROR [[/ode]] Servlet /ode threw load() exception
bitronix.tm.journal.CorruptedTransactionLogException: corrupted log found at
position 546125 (no record terminator found)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:81)
        at
bitronix.tm.journal.TransactionLogCursor.readLog(TransactionLogCursor.java:46)
        at
bitronix.tm.journal.DiskJournal.collectDanglingRecords(DiskJournal.java:336)
        at
bitronix.tm.journal.DiskJournal.copyDanglingRecords(DiskJournal.java:308)
        at
bitronix.tm.journal.DiskJournal.swapJournalFiles(DiskJournal.java:271)
        at bitronix.tm.journal.DiskJournal.log(DiskJournal.java:80)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:272)
        at
bitronix.tm.BitronixTransaction.setStatus(BitronixTransaction.java:261)
        at
bitronix.tm.BitronixTransaction.setActive(BitronixTransaction.java:256)
        at
bitronix.tm.BitronixTransactionManager.begin(BitronixTransactionManager.java:85)
        at
org.apache.ode.store.hib.DbConfStoreConnectionFactory.beginTransaction(DbConfStoreConnectionFactory.java:190)
        at
org.apache.ode.store.ProcessStoreImpl$Callable.call(ProcessStoreImpl.java:842)
        at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
        at java.util.concurrent.FutureTask.run(FutureTask.java:123)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
        at java.lang.Thread.run(Thread.java:595)




--
View this message in context: http://bitronix-transaction-manager.10986.n7.nabble.com/DiskJournal-active-log-file-is-unclean-previous-server-crash-tp1493.html
Sent from the Bitronix Transaction Manager mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email






To unsubscribe from [DiskJournal] active log file is unclean, previous server crash, click here.
NAML


Loading...