My Oracle Support Banner

JDBC Connection Validation Broken in GlassFish Server 2.1.1 Patch 9 and Patch 10 (Doc ID 1289919.1)

Last updated on APRIL 20, 2020

Applies to:

Oracle GlassFish Server - Version 2.1.1 to 2.1.1 [Release 2.1]
Information in this document applies to any platform.

Symptoms

The typical symptom for this problem is your application receiving a SQLException from a connection that has just been obtained from a JDBC Connection Pool.  For example:


If the connection pool does not have validation enabled then seeing SQLExceptions in your application is entirely possible as the connection pool does not test the connection before supplying it to your requesting application.  Therefore, if the database has been restarted, the pool will contain "bad" connections which potentially won't be removed until the instance is restarted, and will cause errors until it is.


Changes

You've upgraded from an earlier version of the GlassFish Server to either 2.1.1 patch 9 or patch 10.

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
Changes
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.