This discussion is archived
0 Replies Latest reply: Mar 17, 2013 7:48 PM by 710289 RSS

The 'java.lang.InterruptedException' error when the batch  running

710289 Newbie
Currently Being Moderated
Hello everyone:


hope everyone go well in your CC&B project.

We have an obstacle we we run some bacth job(not all the time), the log is as following:

03:36:46,060 [DEFAULTWorker:7] ERROR (com.splwg.base.support.batch.GenericCobolBatchProgram) Unexpected interruption while waiting for a cobol batch thread to complete
java.lang.InterruptedException
     at java.lang.Object.wait(Native Method)
     at java.lang.Thread.join(Thread.java:1095)
     at java.lang.Thread.join(Thread.java:1148)
     at com.splwg.base.support.batch.GenericCobolBatchProgram.callCobolInCobolThread(GenericCobolBatchProgram.java:64)
     at com.splwg.base.support.batch.GenericCobolBatchProgram.execute(GenericCobolBatchProgram.java:38)
     at com.splwg.base.support.batch.CobolBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(CobolBatchWork.java:76)
     at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:60)
     at com.splwg.base.support.batch.CobolBatchWork.doExecuteWork(CobolBatchWork.java:53)
     at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:69)
     at com.splwg.base.support.cluster.ThreadWork.processBatchWork(ThreadWork.java:50)
     at com.splwg.base.support.cluster.BatchWorkManager.processWork(BatchWorkManager.java:63)
     at com.tangosol.coherence.commonj.WorkManager$ScheduleWork.run(WorkManager.java:2266)
     at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService.onInvocationRequest(InvocationService.CDB:12)
     at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService$InvocationRequest.run(InvocationService.CDB:1)
     at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
     at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
     at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
     at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
     at java.lang.Thread.run(Thread.java:595)
03:36:46,063 [DEFAULTWorker:7] ERROR (com.splwg.base.support.cluster.ClusteredExecutionContext) An error has occurred while processing distributed grid work. A rollback will be issued. Processing of other work will continue.
com.splwg.shared.common.LoggedException: Unexpected interruption while waiting for a cobol batch thread to complete
     at com.splwg.shared.common.LoggedException.wrap(LoggedException.java:198)
     at com.splwg.shared.common.LoggedException.wrap(LoggedException.java:85)
     at com.splwg.base.support.batch.GenericCobolBatchProgram.callCobolInCobolThread(GenericCobolBatchProgram.java:66)
     at com.splwg.base.support.batch.GenericCobolBatchProgram.execute(GenericCobolBatchProgram.java:38)
     at com.splwg.base.support.batch.CobolBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(CobolBatchWork.java:76)
     at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:60)
     at com.splwg.base.support.batch.CobolBatchWork.doExecuteWork(CobolBatchWork.java:53)
     at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:69)
     at com.splwg.base.support.cluster.ThreadWork.processBatchWork(ThreadWork.java:50)
     at com.splwg.base.support.cluster.BatchWorkManager.processWork(BatchWorkManager.java:63)
     at com.tangosol.coherence.commonj.WorkManager$ScheduleWork.run(WorkManager.java:2266)
     at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService.onInvocationRequest(InvocationService.CDB:12)
     at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService$InvocationRequest.run(InvocationService.CDB:1)
     at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
     at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
     at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
     at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
     at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.InterruptedException
     at java.lang.Object.wait(Native Method)
     at java.lang.Thread.join(Thread.java:1095)
     at java.lang.Thread.join(Thread.java:1148)
     at com.splwg.base.support.batch.GenericCobolBatchProgram.callCobolInCobolThread(GenericCobolBatchProgram.java:64)
     ... 15 more
03:36:50,315 [CobolThread 489] ERROR (com.splwg.base.support.context.FrameworkSession) Operation not allowed. The session has been closed. This indicates a session management issue commonly where an old reference continues to be held to a closed session
com.splwg.shared.common.LoggedException: Operation not allowed. The session has been closed. This indicates a session management issue commonly where an old reference continues to be held to a closed session
     at com.splwg.shared.common.LoggedException.raised(LoggedException.java:65)
     at com.splwg.base.support.context.FrameworkSession.verifySessionIsOpen(FrameworkSession.java:1669)
     at com.splwg.base.support.context.FrameworkSession.createQuery(FrameworkSession.java:930)
     at com.splwg.base.api.GenericBusinessObject.createQuery(GenericBusinessObject.java:114)
     at com.splwg.cm.domain.admin.trendArea.CmlTrendAreaMeterReadEstimationAlgComp_Impl.getBillSegmentReads(CmlTrendAreaMeterReadEstimationAlgComp_Impl.java:324)
     at com.splwg.cm.domain.admin.trendArea.CmlTrendAreaMeterReadEstimationAlgComp_Impl.invoke(CmlTrendAreaMeterReadEstimationAlgComp_Impl.java:150)
     at com.splwg.cm.domain.admin.trendArea.CmlTrendAreaMeterReadEstimationAlgComp_Impl__.CGLIB$invoke$0(<generated>)
     at com.splwg.cm.domain.admin.trendArea.CmlTrendAreaMeterReadEstimationAlgComp_Impl__$$FastClassByCGLIB$$c326a1b1.invoke(<generated>)
     at net.sf.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:167)
     at com.splwg.base.support.interception.BusinessMethodInterceptor.intercept(BusinessMethodInterceptor.java:84)
     at com.splwg.cm.domain.admin.trendArea.CmlTrendAreaMeterReadEstimationAlgComp_Impl__.invoke(<generated>)
     at com.splwg.base.support.algorithm.AbstractFromCobolAlgorithmWrapper.invoke(AbstractFromCobolAlgorithmWrapper.java:43)
     at com.splwg.ccb.domain.admin.trendArea.TrendAreaMeterReadEstimationAlgorithmFromCobolWrapper_Gen.invoke(TrendAreaMeterReadEstimationAlgorithmFromCobolWrapper_Gen.java:55)
     at sun.reflect.GeneratedMethodAccessor4943.invoke(Unknown Source)
     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
     at java.lang.reflect.Method.invoke(Method.java:592)
     at com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache$MethodDispatcher.dispatchToRequestedMethod(CobolToJavaGateway.java:337)
     at com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache$MethodDispatcher.access$300(CobolToJavaGateway.java:255)
     at com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache.dispatchToRequestedMethod(CobolToJavaGateway.java:250)
     at com.splwg.base.support.cobol.CobolToJavaGateway$MethodDispatcherCache.access$000(CobolToJavaGateway.java:232)
     at com.splwg.base.support.cobol.CobolToJavaGateway.callJava(CobolToJavaGateway.java:65)
     at com.splwg.base.support.cobol.host.command.CobolToJavaGatewayCommand.invoke(CobolToJavaGatewayCommand.java:33)
     at com.splwg.base.support.cobol.host.SingleJvmRunner.invoke(SingleJvmRunner.java:22)
     at com.splwg.base.support.cobol.host.CommandRunnerHolder.invoke(CommandRunnerHolder.java:31)
     at com.splwg.base.support.cobol.host.CobolToJavaClient.privateCallJava(CobolToJavaClient.java:169)
     at com.splwg.base.support.cobol.host.CobolToJavaClient.callJava(CobolToJavaClient.java:137)
     at com.microfocus.cobol.RuntimeSystem.cobcall(Native Method)
     at com.splwg.base.support.cobol.host.command.CallCobolCommand.invoke(CallCobolCommand.java:73)
     at com.splwg.base.support.cobol.host.SingleJvmRunner.invoke(SingleJvmRunner.java:22)
     at com.splwg.base.support.cobol.host.CommandRunnerHolder.invoke(CommandRunnerHolder.java:31)
     at com.splwg.base.support.cobol.AbstractCobolProgram$CallCobolClosure.run(AbstractCobolProgram.java:195)
     at com.splwg.base.support.interception.SessionInterceptionManager.notifyGenericCallStackJump(SessionInterceptionManager.java:268)
     at com.splwg.base.support.context.FrameworkSession.notifyGenericCallStackJump(FrameworkSession.java:1683)
     at com.splwg.base.support.cobol.AbstractCobolProgram$1.run(AbstractCobolProgram.java:115)
     at com.splwg.base.support.batch.NewCobolThreadExecuter.run(NewCobolThreadExecuter.java:104)
     at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
     at java.lang.Thread.run(Thread.java:595)
     at com.splwg.base.support.cobol.host.CobolThread.run(CobolThread.java:36)


This is really a big problem for our stability, is anyone has the same problem and has solved it?

thank you in advance for any help and information.

Regards

Eric ZHOU

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points