My Oracle Support Banner

JBoss Application Server Shows "pingDatabase failed status=-2" When Connecting to Oracle RDBMS (Doc ID 1446547.1)

Last updated on FEBRUARY 26, 2021

Applies to:

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


Using the Oracle 11.x thin JDBC driver with a connection pool in the JBoss application server, J2EE applications intermittently fail to get a connection to the database server. The JBoss connection pool reports a failure while validating an open connection. The failure is signalled by the JDBC driver's pingDatabase(timeout) method returning a status code of -2.

The JBoss server may show the following stack back-trace:


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

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