Identity Manager application server log shows repetitive 'Exception while writing to the DB' error
search cancel

Identity Manager application server log shows repetitive 'Exception while writing to the DB' error


Article ID: 216877


Updated On:


CA Identity Manager


Application Server log shows the following repetitive "Exception while writing to the DB" error

12:07:10,326 ERROR [ims.RuntimeStatusDetail] Exception while writing to the DB
java.sql.SQLException: Numeric Overflow
 at oracle.jdbc.driver.NumberCommonAccessor.throwOverflow(
 at oracle.jdbc.driver.NumberCommonAccessor.getInt(
 at oracle.jdbc.driver.OracleCallableStatement.getInt(
 at oracle.jdbc.driver.OracleCallableStatementWrapper.getInt(
 at weblogic.jdbc.wrapper.CallableStatement_oracle_jdbc_driver_OracleCallableStatementWrapper.getInt(Unknown Source)
 at com.netegrity.ims.persistence.PersistenceProvider.saveRuntimeStatusDetail(
 at com.netegrity.ims.statusDetail.RuntimeStatusDetailService.writeToPersistence(
 at com.netegrity.ims.statusDetail.RuntimeStatusDetailService.writeRuntimeStatusDetail(
 at com.netegrity.ims.statusDetail.RuntimeStatusDetailMessageBean.onMessage(
 at weblogic.ejb.container.internal.MDListener.execute(
 at weblogic.ejb.container.internal.MDListener.transactionalOnMessage(
 at weblogic.ejb.container.internal.MDListener.onMessage(
 at weblogic.jms.client.JMSSession.onMessage(
 at weblogic.jms.client.JMSSession.execute(
 at weblogic.jms.client.JMSSession.executeMessage(
 at weblogic.jms.client.JMSSession.access$000(
 at weblogic.jms.client.JMSSession$
 at weblogic.invocation.ComponentInvocationContextManager._runAs(
 at weblogic.invocation.ComponentInvocationContextManager.runAs(

Due to this problem, task execution performance is affected, and Last Activity column in View Submitted Task is blank.


Release : 14.3 CP2
Application Server : WebLogic
External Database: Oracle 11g


The Numeric Overflow error is due to Sequence being used has reach max value.


To remedy this issue we need rebuild Task Persistence (TP) database.

The issue here is due to TP database sequence which has overflowed and we can remedy this problem by rebuilding (creating new) TP database.

We can create a new schema in the Oracle database and modify the JDBC data source in WebLogic to point correctly to use the new schema. Upon Identity Manager restart, Identity Manager will recreate TP tables within the new schema.

We have the following JDBC datasources in Identity Manager

We just need to modify the TP data source to point to new schema/database. The remaining data sources should *not* be touched. 

The steps to rebuild TP database for this purpose are

1. Shutdown IM
2. Create a new schema (user with same permissions as the old TP database schema)
3. Use WebLogic Server Admin Console to modify TP data source so it points to new schema
4. Restart IM

Please note that when IM uses a brand new TP database the following happened
    - View Submitted Task page will not shows previous tasks data contained in old TP database
    - Tasks that were running in progress before using the new TP database will need to be recovered. So please note down those task before switching to new TP database and consider recovery plan
    - Task Schedules will be removed. So please note down any task schedules and organize to configure the schedules again after switching to new TP database