My Oracle Support Banner

Tomcat Application Terminates Connection Abruptly To Oracle Database With "Connection Closed" Exception (Doc ID 2349922.1)

Last updated on JANUARY 17, 2018

Applies to:

JDBC - Version 12.1.0.2.0 and later
Information in this document applies to any platform.

Symptoms

Pivotal TC Server 2.9.6 application deployed in Tomcat Server 7.0.53 and using JDBC 12.1.0.2 (ojdbc7.jar) with JDK 1.7 terminates connection abruptly to Oracle database 12.1.0.2 with "Connection Closed" exception.
The issue is intermittent.

ERROR
-----------------------

java.sql.SQLRecoverableException: Closed Connection
at oracle.jdbc.driver.PhysicalConnection.getAutoCommit(PhysicalConnection.java:2254) ~[com.oracle.ojdbc7-12.1.0.2.jar:12.1.0.2.0]
at oracle.jdbc.driver.PhysicalConnection.rollback(PhysicalConnection.java:2424) ~[com.oracle.ojdbc7-12.1.0.2.jar:12.1.0.2.0]




Cause

To view full details, sign in with your My Oracle Support account.

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


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.