[jboss-user] [Datasource Configuration] - OracleValidConnectionChecker Unexpected error in pingDatabase

Gunnar Bostrom do-not-reply at jboss.com
Mon Apr 11 03:49:12 EDT 2011

Gunnar Bostrom [http://community.jboss.org/people/gunnarbos] created the discussion

"OracleValidConnectionChecker Unexpected error in pingDatabase"

To view the discussion, visit: http://community.jboss.org/message/599108#599108

We use JBoss 5.1.0.GA and java 1.6 and run in to trouble with org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker.
>From the log:

08:23:24,519 WARN  [org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker] (http- Unexpected error in pingDatabase
java.lang.IllegalArgumentException: object is not an instance of declaring class

This started to happen when I added 
<!-- sql to call on an existing pooled connection when it is obtained from                               pool - the OracleValidConnectionChecker is prefered -->
                    <check-valid-connection-sql>select 1 from dual</check-valid-connection-sql>

to our oracle-ds.xml because we must check if the connection in the pool is valid.

The log says warning, but is the check done and a new connection created if the check failed?


Reply to this message by going to Community

Start a new discussion in Datasource Configuration at Community

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-user/attachments/20110411/5288cf7c/attachment.html 

More information about the jboss-user mailing list