Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Java T4CConnection cannot be cast to ReplayableConnection error

2900941Jun 23 2017 — edited Jun 28 2017

Hi,

I'm trying an Application Continuity test using the code from

   https://bdrouvot.wordpress.com/2015/05/07/12c-application-continuity-with-data-guard-in-action/

I've also tried code from

  https://laurent-leturgez.com/2015/06/01/oracle-12c-application-continuity-and-its-resources-usage/

Both fail with

    java.lang.ClassCastException: oracle.jdbc.driver.T4CConnection cannot be cast to oracle.jdbc.replay.ReplayableConnection

    at AppCont.main(AppCont.java:54)  **line number will vary depending on script

I've tried Java 1.7 and Java 1.8 on Solaris and Java 1.8 on Windows.  Same error.  I'm an Oracle DBA by background so answer may be simple, but I'm missing it.

Any light anyone could shed would be greatly appreciated.   Thx,

Doug

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 26 2017
Added on Jun 23 2017
4 comments
2,937 views