Out Of Memory Exception When Running. C1-WAMEX Batch.

(Doc ID 1587363.1)

Last updated on AUGUST 14, 2014

Applies to:

Oracle Utilities Customer Care and Billing - Version 2.3.1 and later
Information in this document applies to any platform.

Goal

On : 2.3.1 version, SW - System Wide, when running C1-WAMEX batch, the following error occurs.

ERROR
-----------------------
- 01:44:18,773 [main] ERROR (com.splwg.base.api.batch.AbstractExecutionStrategy) Thread execution aborted: BatchThreadInstance_Id(batchThreadId: [batchRunId: [batchControlId: [C1-WAMEX], batchNumber: 4, batchRerunNumber: 0], batchThreadNumber: 1], batchInstance: 55)
com.splwg.base.support.grid.GridWorkAbortedException: java.lang.OutOfMemoryError: Java heap space
at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:118)
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.SingleThreadedGrid.addToWorkables(SingleThreadedGrid.java:50)
at com.splwg.base.support.grid.node.AbstractSingleThreadedGrid.processNewWork(AbstractSingleThreadedGrid.java:49)
at com.splwg.base.api.batch.StandaloneExecuter$ProcessNewWorkExecutable.execute(StandaloneExecuter.java:667)
at com.splwg.base.support.context.SessionExecutable.doInNewSession(SessionExecutable.java:41)
at com.splwg.base.api.batch.StandaloneExecuter.submitToGrid(StandaloneExecuter.java:250)
at com.splwg.base.api.batch.StandaloneExecuter.submitJob(StandaloneExecuter.java:204)
at com.splwg.base.api.batch.StandaloneExecuter.runOnGrid(StandaloneExecuter.java:164)
at com.splwg.base.api.batch.StandaloneExecuter.run(StandaloneExecuter.java:147)
at com.splwg.base.api.batch.StandaloneExecuter.main(StandaloneExecuter.java:427)
Caused by: java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.addEntry(HashMap.java:753)
at java.util.HashMap.put(HashMap.java:385)
at org.hibernate.event.def.AbstractFlushingEventListener.postFlush(AbstractFlushingEventListener.java:347)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:28)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1001)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:339)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at com.splwg.base.support.context.FrameworkSession.basicCommit(FrameworkSession.java:605)
at com.splwg.base.support.context.FrameworkSession.commit(FrameworkSession.java:588)
at com.splwg.base.support.grid.node.MultiSessionStrategy.doCommit(MultiSessionStrategy.java:61)
at com.splwg.base.support.grid.node.SingleThreadedGrid$SingleThreadedContext.commit(SingleThreadedGrid.java:101)
at com.splwg.base.api.batch.SingleTransactionStrategy.concreteExecuteWork(SingleTransactionStrategy.java:97)
at com.splwg.base.api.batch.AbstractExecutionStrategy.executeWork(AbstractExecutionStrategy.java:246)
at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:109)
... 14 more
01:44:18,776 [main] ERROR (com.splwg.base.api.batch.AbstractExecutionStrategy) An exception was caught executing work for batch instance BatchThreadInstance_Id(batchThreadId: [batchRunId: [batchControlId: [C1-WAMEX], batchNumber: 4, batchRerunNumber: 0], batchThreadNumber: 1], batchInstance: 55). The following key (-2578864606145300835) matches the value provided on the message log table.
java.lang.OutOfMemoryError: Java heap space
at java.util.HashMap.addEntry(HashMap.java:753)
at java.util.HashMap.put(HashMap.java:385)
at org.hibernate.event.def.AbstractFlushingEventListener.postFlush(AbstractFlushingEventListener.java:347)
at org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:28)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1001)
at org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:339)
at org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at com.splwg.base.support.context.FrameworkSession.basicCommit(FrameworkSession.java:605)
at com.splwg.base.support.context.FrameworkSession.commit(FrameworkSession.java:588)
at com.splwg.base.support.grid.node.MultiSessionStrategy.doCommit(MultiSessionStrategy.java:61)
at com.splwg.base.support.grid.node.SingleThreadedGrid$SingleThreadedContext.commit(SingleThreadedGrid.java:101)
at com.splwg.base.api.batch.SingleTransactionStrategy.concreteExecuteWork(SingleTransactionStrategy.java:97)
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.SingleThreadedGrid.addToWorkables(SingleThreadedGrid.java:50)
at com.splwg.base.support.grid.node.AbstractSingleThreadedGrid.processNewWork(AbstractSingleThreadedGrid.java:49)
at com.splwg.base.api.batch.StandaloneExecuter$ProcessNewWorkExecutable.execute(StandaloneExecuter.java:667)
at com.splwg.base.support.context.SessionExecutable.doInNewSession(SessionExecutable.java:41)
at com.splwg.base.api.batch.StandaloneExecuter.submitToGrid(StandaloneExecuter.java:250)
at com.splwg.base.api.batch.StandaloneExecuter.submitJob(StandaloneExecuter.java:204)
at com.splwg.base.api.batch.StandaloneExecuter.runOnGrid(StandaloneExecuter.java:164)
at com.splwg.base.api.batch.StandaloneExecuter.run(StandaloneExecuter.java:147)
at com.splwg.base.api.batch.StandaloneExecuter.main(StandaloneExecuter.java:427)


The fix for BUG 13018501 did not resolve the issue.
 

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms