JBoss EAP 5.2.0 is unable to resolve pingDatabase method

Solution Verified - Updated -

Issue

Our Oracle datasource is setup with connection checking and worked fine in JBoss EAP 5.1.x

    <valid-connection-checker-class-name>org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker</valid-connection-checker-class-name>

We have upgraded to JBoss EAP 5.2.0 and are now seeing a failure in the logs:

... WARN  [org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory] (WorkerThread#3[10.10.10.10:12345]:) Exception trying to create connection checker (disabling):
org.jboss.util.NestedRuntimeException: Unable to resolve pingDatabase method:; - nested throwable: (java.lang.NoSuchMethodException: oracle.jdbc.OracleConnection.pingDatabase())
        at org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker.<init>(OracleValidConnectionChecker.java:62)

and below:

Caused by: java.lang.NoSuchMethodException: oracle.jdbc.OracleConnection.pingDatabase()
        at java.lang.Class.getMethod(Class.java:1605)
        at org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker.initPing(OracleValidConnectionChecker.java:93)
        at org.jboss.resource.adapter.jdbc.vendor.OracleValidConnectionChecker.<init>(OracleValidConnectionChecker.java:58)
        ... 86 more

We do not see this message with JBoss EAP 5.1.2. How can it be fixed with JBoss EAP 5.2.0?

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 5.2.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content