My Oracle Support Banner

Application Returns Error "java.sql.SQLException Closed Connection" When Using A Datasource. (Doc ID 883326.1)

Last updated on JULY 31, 2019

Applies to:

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

Symptoms

 

An application using a datasource to connect to the database returns the following error when trying to access database:

FINER: RMIServer.logError RMIServer acceptNewConnection() exception: java.net.SocketTimeoutException: Accept timed out

FINEST: EJBJoinPointImpl.invoke Invoking method public <Package_name.Function_name>

java.sql.SQLException: Closed Connection

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)

at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:240)

at oracle.jdbc.driver.PhysicalConnection.createStatement(PhysicalConnection.java:778)

at oracle.jdbc.driver.PhysicalConnection.createStatement(PhysicalConnection.java:752)

at oracle.jdbc.OracleConnectionWrapper.createStatement(OracleConnectionWrapper.java:70)

at oracle_jdbc_driver_LogicalConnection_Proxy.createStatement()...........

<applicaton trace..........>

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

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