0 Replies Latest reply: Aug 15, 2012 6:48 AM by 682459 RSS

    GridWorkAbortedException

    682459
      I am getting the below Batch error while running the custom letter extract batch in multi threaded mode.

      Could anyone let me know, how to resolve this exception.

      com.splwg.base.support.grid.GridWorkAbortedException: com.splwg.base.support.grid.GridWorkAbortedException: com.splwg.base.support.grid.space.LeaseUnavailableException: Unable to lease entry: EntryId:cc87451b-cfbf-4606-ab83-64dea9beb850
           at com.splwg.base.api.batch.AbstractExecutionStrategy.updateRestartDataAndCommit(AbstractExecutionStrategy.java:112)
           at com.splwg.base.api.batch.CommitEveryUnitStrategy.processWorkUnits(CommitEveryUnitStrategy.java:99)
           at com.splwg.base.api.batch.CommitEveryUnitStrategy.concreteExecuteWork(CommitEveryUnitStrategy.java:57)
           at com.splwg.base.api.batch.AbstractExecutionStrategy.executeWork(AbstractExecutionStrategy.java:246)
           at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:109)
           at com.splwg.base.support.batch.JavaBatchWork.access$300(JavaBatchWork.java:29)
           at com.splwg.base.support.batch.JavaBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(JavaBatchWork.java:91)
           at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:60)
           at com.splwg.base.support.batch.JavaBatchWork.doExecuteWork(JavaBatchWork.java:50)
           at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:69)
           at com.splwg.base.support.grid.node.WorkProcessor$WorkRunner.runOutsideTransaction(WorkProcessor.java:257)
           at com.splwg.base.support.grid.space.AbstractTask.run(AbstractTask.java:57)
           at com.splwg.base.support.grid.space.ThreadPool$TaskRunner.run(ThreadPool.java:166)
           at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
           at java.lang.Thread.run(Thread.java:811)
      Caused by: com.splwg.base.support.grid.GridWorkAbortedException: com.splwg.base.support.grid.space.LeaseUnavailableException: Unable to lease entry: EntryId:cc87451b-cfbf-4606-ab83-64dea9beb850
           at com.splwg.base.support.grid.node.DistributedExecutionContext.renewLeaseInTransaction(DistributedExecutionContext.java:131)
           at com.splwg.base.api.batch.AbstractExecutionStrategy.updateRestartDataAndCommit(AbstractExecutionStrategy.java:109)
           ... 14 more
      Caused by: com.splwg.base.support.grid.space.LeaseUnavailableException: Unable to lease entry: EntryId:cc87451b-cfbf-4606-ab83-64dea9beb850
           at com.splwg.base.support.grid.space.SpaceManager.renewLeaseInTransaction(SpaceManager.java:282)
           at com.splwg.base.support.grid.node.DistributedExecutionContext.renewLeaseInTransaction(DistributedExecutionContext.java:129)
           ... 15 more
      01:52:36,952 [Thread-137:WorkProcessor$WorkRunner(WorkProcessor$WorkRunner:cc87451b-cfbf-4606-ab83-64dea9beb850)] ERROR (com.splwg.base.api.batch.AbstractExecutionStrategy) An exception was caught executing work for batch instance BatchThreadInstance_Id(batchThreadId: [batchRunId: [batchControlId: [CMLETTER], batchNumber: 69, batchRerunNumber: 0], batchThreadNumber: 1], batchInstance: 4077518). The following key (2787705110510967963) matches the value provided on the message log table.
      com.splwg.base.support.grid.GridWorkAbortedException: com.splwg.base.support.grid.space.LeaseUnavailableException: Unable to lease entry: EntryId:cc87451b-cfbf-4606-ab83-64dea9beb850
           at com.splwg.base.support.grid.node.DistributedExecutionContext.renewLeaseInTransaction(DistributedExecutionContext.java:131)
           at com.splwg.base.api.batch.AbstractExecutionStrategy.updateRestartDataAndCommit(AbstractExecutionStrategy.java:109)
           at com.splwg.base.api.batch.CommitEveryUnitStrategy.processWorkUnits(CommitEveryUnitStrategy.java:99)
           at com.splwg.base.api.batch.CommitEveryUnitStrategy.concreteExecuteWork(CommitEveryUnitStrategy.java:57)
           at com.splwg.base.api.batch.AbstractExecutionStrategy.executeWork(AbstractExecutionStrategy.java:246)
           at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:109)
           at com.splwg.base.support.batch.JavaBatchWork.access$300(JavaBatchWork.java:29)
           at com.splwg.base.support.batch.JavaBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(JavaBatchWork.java:91)
           at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:60)
           at com.splwg.base.support.batch.JavaBatchWork.doExecuteWork(JavaBatchWork.java:50)
           at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:69)
           at com.splwg.base.support.grid.node.WorkProcessor$WorkRunner.runOutsideTransaction(WorkProcessor.java:257)
           at com.splwg.base.support.grid.space.AbstractTask.run(AbstractTask.java:57)
           at com.splwg.base.support.grid.space.ThreadPool$TaskRunner.run(ThreadPool.java:166)
           at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
           at java.lang.Thread.run(Thread.java:811)
      Caused by: com.splwg.base.support.grid.space.LeaseUnavailableException: Unable to lease entry: EntryId:cc87451b-cfbf-4606-ab83-64dea9beb850
           at com.splwg.base.support.grid.space.SpaceManager.renewLeaseInTransaction(SpaceManager.java:282)
           at com.splwg.base.support.grid.node.DistributedExecutionContext.renewLeaseInTransaction(DistributedExecutionContext.java:129)
           ... 15 more
      01:52:36,976 [Thread-137:WorkProcessor$WorkRunner(WorkProcessor$WorkRunner:cc87451b-cfbf-4606-ab83-64dea9beb850)] ERROR (com.splwg.base.api.batch.AbstractExecutionStrategy) An exception was caught executing work for batch instance BatchThreadInstance_Id(batchThreadId: [batchRunId: [batchControlId: [CMLETTER], batchNumber: 69, batchRerunNumber: 0], batchThreadNumber: 1], batchInstance: 4077518). The following key (201134135860215240) matches the value provided on the message log table.
      com.splwg.base.support.grid.GridWorkAbortedException: com.splwg.base.support.grid.space.LeaseUnavailableException: Unable to lease entry: EntryId:cc87451b-cfbf-4606-ab83-64dea9beb850
           at com.splwg.base.support.grid.node.DistributedExecutionContext.renewLeaseInTransaction(DistributedExecutionContext.java:131)
           at com.splwg.base.api.batch.AbstractExecutionStrategy.abortThread(AbstractExecutionStrategy.java:280)
           at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:124)
           at com.splwg.base.support.batch.JavaBatchWork.access$300(JavaBatchWork.java:29)
           at com.splwg.base.support.batch.JavaBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(JavaBatchWork.java:91)
           at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:60)
           at com.splwg.base.support.batch.JavaBatchWork.doExecuteWork(JavaBatchWork.java:50)
           at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:69)
           at com.splwg.base.support.grid.node.WorkProcessor$WorkRunner.runOutsideTransaction(WorkProcessor.java:257)
           at com.splwg.base.support.grid.space.AbstractTask.run(AbstractTask.java:57)
           at com.splwg.base.support.grid.space.ThreadPool$TaskRunner.run(ThreadPool.java:166)
           at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
           at java.lang.Thread.run(Thread.java:811)
      Caused by: com.splwg.base.support.grid.space.LeaseUnavailableException: Unable to lease entry: EntryId:cc87451b-cfbf-4606-ab83-64dea9beb850
           at com.splwg.base.support.grid.space.SpaceManager.renewLeaseInTransaction(SpaceManager.java:282)
           at com.splwg.base.support.grid.node.DistributedExecutionContext.renewLeaseInTransaction(DistributedExecutionContext.java:129)
           ... 12 more
      01:52:37,003 [Thread-137:WorkProcessor$WorkRunner(WorkProcessor$WorkRunner:cc87451b-cfbf-4606-ab83-64dea9beb850)] ERROR (com.splwg.base.support.grid.node.DistributedExecutionContext) An error has occurred while processing distributed grid work. A rollback will be issued. Processing of other work will continue.
      com.splwg.base.support.grid.GridWorkAbortedException: com.splwg.base.support.grid.space.LeaseUnavailableException: Unable to lease entry: EntryId:cc87451b-cfbf-4606-ab83-64dea9beb850
           at com.splwg.base.support.grid.node.DistributedExecutionContext.renewLeaseInTransaction(DistributedExecutionContext.java:131)
           at com.splwg.base.api.batch.AbstractExecutionStrategy.abortThread(AbstractExecutionStrategy.java:291)
           at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:124)
           at com.splwg.base.support.batch.JavaBatchWork.access$300(JavaBatchWork.java:29)
           at com.splwg.base.support.batch.JavaBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(JavaBatchWork.java:91)
           at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:60)
           at com.splwg.base.support.batch.JavaBatchWork.doExecuteWork(JavaBatchWork.java:50)
           at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:69)
           at com.splwg.base.support.grid.node.WorkProcessor$WorkRunner.runOutsideTransaction(WorkProcessor.java:257)
           at com.splwg.base.support.grid.space.AbstractTask.run(AbstractTask.java:57)
           at com.splwg.base.support.grid.space.ThreadPool$TaskRunner.run(ThreadPool.java:166)
           at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(Unknown Source)
           at java.lang.Thread.run(Thread.java:811)
      Caused by: com.splwg.base.support.grid.space.LeaseUnavailableException: Unable to lease entry: EntryId:cc87451b-cfbf-4606-ab83-64dea9beb850
           at com.splwg.base.support.grid.space.SpaceManager.renewLeaseInTransaction(SpaceManager.java:282)
           at com.splwg.base.support.grid.node.DistributedExecutionContext.renewLeaseInTransaction(DistributedExecutionContext.java:129)
           ... 12 more