CA Identity Manager Server log Error "You are trying to use a connection factory that has been shut down"
search cancel

CA Identity Manager Server log Error "You are trying to use a connection factory that has been shut down"

book

Article ID: 270471

calendar_today

Updated On:

Products

CA Identity Suite

Issue/Introduction

After upgrading to 14.4.2, the IM Application Server logs frequently show the below error

connection factory that has been shut down: java:/iam/im/jdbc/jdbc/object-store

ERROR [ims.jdbc.JDBCManagedObjectProvider] (pool-13-thread-7) java.sql.SQLException: javax.resource.ResourceException: IJ000470: You are trying to use a connection factory that has been shut down: java:/iam/im/jdbc/jdbc/objectstore
        at org.jboss.jca.adapters.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:146)
        at org.jboss.as.connector.subsystems.datasources.WildFlyDataSource.getConnection(WildFlyDataSource.java:64)
        at com.netegrity.llsdk6.imsimpl.jdbcmanagedobject.JDBCManagedObjectProvider.findUniqueAttribute(JDBCManagedObjectProvider.java:                                
        at com.netegrity.llsdk6.imsimpl.jdbcmanagedobject.JDBCManagedObjectProvider.getUniqueNames(JDBCManagedObjectProvider.java:553)
        at com.netegrity.llsdk6.imsimpl.jdbcmanagedobject.JDBCManagedObjectProvider.findByID(JDBCManagedObjectProvider.java:537)
        at com.netegrity.llsdk6.imsimpl.metadata.ScreenImpl._populateLocalFieldCache(ScreenImpl.java:615)
        at com.netegrity.llsdk6.imsimpl.metadata.ScreenImpl.prepareForCache(ScreenImpl.java:751)
        at com.netegrity.llsdk6.imsimpl.jdbcmanagedobject.JDBCBootstrapCacheLoader.loadAll(JDBCBootstrapCacheLoader.java:118)
        at com.netegrity.llsdk6.imsimpl.jdbcmanagedobject.JDBCBootstrapCacheLoader.lambda$load$3(JDBCBootstrapCacheLoader.java:77)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at java.lang.Thread.run(Thread.java:750)

Environment

IM 14.4.2

Cause

  • The following exception is raised when attempting to obtain a connection from a JBoss-managed DataSource in EAP 6 or later

    ... javax.resource.ResourceException: IJ000470: You are trying to use a connection factory that has been shut down: <my_jndi_datasource>

Resolution

The following exception is raised when attempting to obtain a connection from a JBoss-managed DataSource 

... ERROR util.database.DBConnectionManager;:(?:getConnection():?) - Couldn't get DB connection
    org.jboss.util.NestedSQLException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.; - nested throwable:
    (javax.resource.ResourceException: You are trying to use a connection factory that has been shut down: ManagedConnectionFactory is null.)
  • JBoss has to be restarted before the application can successfully obtain a data source connection

Additional Information

Reference Link:

https://access.redhat.com/solutions/25307