什么原因导致恢复日志损坏,以及可以采取哪些措施?

时间:2016-06-19 09:02:35

标签: websphere

检查了ServerErr.log并找到了以下给定的异常:这主要是由于tranlog和partnerlog位置中的log1和log2损坏。该怎么知道log1和log2是如何被破坏的。想知道完成程序。

[3/22/16 8:07:44:489 EDT] 0000000a WsServerImpl E WSVR0009E: Error occurred during startup com.ibm.ws.exception.RuntimeError: com.ibm.ws.exception.RuntimeError: com.ibm.ws.recoverylog.spi.LogCorruptedException
    at com.ibm.ws.runtime.WsServerImpl.bootServerContainer(WsServerImpl.java:199)
    at com.ibm.ws.runtime.WsServerImpl.start(WsServerImpl.java:140)
    at com.ibm.ws.runtime.WsServerImpl.main(WsServerImpl.java:461)
    at com.ibm.ws.runtime.WsServer.main(WsServer.java:59)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:618)
    at com.ibm.wsspi.bootstrap.WSLauncher.launchMain(WSLauncher.java:183)
    at com.ibm.wsspi.bootstrap.WSLauncher.main(WSLauncher.java:90)
    at com.ibm.wsspi.bootstrap.WSLauncher.run(WSLauncher.java:72)
    at org.eclipse.core.internal.runtime.PlatformActivator$1.run(PlatformActivator.java:78)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:92)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:68)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:177)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:618)
    at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336)
    at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
    at org.eclipse.core.launcher.Main.run(Main.java:977)
    at com.ibm.wsspi.bootstrap.WSPreLauncher.launchEclipse(WSPreLauncher.java:336)
    at com.ibm.wsspi.bootstrap.WSPreLauncher.main(WSPreLauncher.java:91)
Caused by: com.ibm.ws.exception.RuntimeError: com.ibm.ws.recoverylog.spi.LogCorruptedException
    at com.ibm.ws.runtime.component.TxServiceImpl.asynchRecoveryProcessingComplete(TxServiceImpl.java:2180)
    at com.ibm.ws.Transaction.JTA.RecoveryManager.recoveryFailed(RecoveryManager.java:1740)
    at com.ibm.ws.Transaction.JTA.RecoveryManager.run(RecoveryManager.java:2333)
    at java.lang.Thread.run(Thread.java:810)
Caused by: com.ibm.ws.recoverylog.spi.LogCorruptedException
    at com.ibm.ws.recoverylog.spi.LogHandle.openLog(LogHandle.java:555)
    at com.ibm.ws.recoverylog.spi.MultiScopeRecoveryLog.openLog(MultiScopeRecoveryLog.java:573)
    at com.ibm.ws.recoverylog.spi.RecoveryLogImpl.openLog(RecoveryLogImpl.java:71)
    at com.ibm.ws.Transaction.JTA.RecoveryManager.run(RecoveryManager.java:2263)

1 个答案:

答案 0 :(得分:0)

<profile_root>/tranlog目录下的log1和log2文件记录了事务恢复所需的信息。 partnerlog文件包含有关事务中涉及的资源的信息。 IBM在此技术说明中记录了此处出现的问题:Application Server fails to start with CWRLS0009E error。根据同一文件,IBM建议使用&#39; Transaction = all&#39;跟踪规范以确定腐败的原因。

如果您没有运行WebSphere Process Server(WPS)或IBM Business Process Manager(BPM),则可以清空这些事务日志文件并启动服务器。您可以在所有的tranlog&amp;上使用cp /dev/null log1伙伴日志文件。对于WPS&amp; BPM,您无法删除这些文件,因为它们包含有关产品本身的操作信息。有关详细信息,请参阅this link