Passivation Fails With Error "Connection has already been closed" in PoolConnection.checkConnection() (Doc ID 1330271.1)

Last updated on AUGUST 05, 2016

Applies to:

Oracle JDeveloper - Version and later
Information in this document applies to any platform.


You have developed a web application with ADF BC/Faces/JHeadstart 11g.

The application works correctly in the Development environment.
In your QA and Production environment, however, the end users notice the following unexpected behavior, occurring intermittently:
Suppose the end user has access to 2 records from a View Object:

When editing the second record, say with value "C", and saving the changes, the end user first gets
a dialog "No changes to save" (though the record was updated).
Then the first record (instead of the second one) is updated with the value; so he ends up with:

Checking your log files, you see the following error occurring during the passivation:

java.sql.SQLException: Connection has already been closed.
   at weblogic.jdbc.wrapper.PoolConnection.checkConnection(
   at weblogic.jdbc.wrapper.Connection.preInvocationHandler(
   at weblogic.jdbc.wrapper.Connection.getMetaData(
   at oracle.jbo.server.DBTransactionImpl.getDatabaseProductName(
   at oracle.jbo.server.DBTransactionImpl.getInternalConnection(
   at oracle.jbo.server.DBTransactionImpl.getPersistManagerConnection(
   at oracle.jbo.pcoll.PCollManager.ensureConnection(
   at oracle.jbo.pcoll.OraclePersistManager.getConnection(
   at oracle.jbo.pcoll.OraclePersistManager.insert(
   at oracle.jbo.pcoll.PCollNode.passivateElem(
   at oracle.jbo.pcoll.PCollNode.passivate(

and no error was reported at that time in the ADF Faces page.

Your JDBC Datasource is set up to "oracle.jdbc.OracleDriver" and not the XA driver "oracle.jdbc.xa.client.OracleXADataSource", excluding known issues as documented in
The error cannot be reproduced at will, even when disabling the Application Module pooling as explained in <note:417546.1> - How To Reproduce Problems Related to AM Passivation / Activation.

One of the difficulties in reproducing the problem is getting the timing right:


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