My Oracle Support Banner

AC/Replay Throws NPE with Oracle 19.3 JDBC Driver and 12.2.x Database (Doc ID 2652467.1)

Last updated on JUNE 10, 2023

Applies to:

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

Symptoms

With Oracle 19.3 JDBC driver, AC/Replay does not work against a 12.2.x database. An NPE is thrown during the replay process. Please see the complete exception stack below.

The following is observed:
- With the old 18c JDBC driver and 12.2.x database, the replay test passed.
- With the 19.3 JDBC driver and 19c database, the replay test passed.
- With the 19.3 JDBC driver with a 12.2.x database, the replay fails.

Note: Switching the ojdbc8.jar back to version 18.3 solves the issue.

Exception stack

java.lang.NullPointerException
  at oracle.jdbc.replay.driver.TxnFailoverManagerImpl.prepareReplay (TxnFailoverManagerImpl.java:3177)
  at oracle.jdbc.replay.driver.TxnFailoverManagerImpl.handleOutageInternal (TxnFailoverManagerImpl.java:1520)
  at oracle.jdbc.replay.driver.TxnFailoverManagerImpl.handleOutage (TxnFailoverManagerImpl.java:1118)
  at oracle.jdbc.replay.driver.TxnReplayableBase.onErrorForAll (TxnReplayableBase.java:365)
  at oracle.jdbc.replay.driver.TxnReplayableStatement.onErrorForAll (TxnReplayableStatement.java:1248)
  at oracle.jdbc.proxy.oracle$1jdbc$1replay$1driver$1TxnReplayableStatement$2oracle$1jdbc$1internal$1OraclePreparedStatement$$$Proxy.executeUpdate (Unknown Source)
  at oracle.ucp.jdbc.proxy.oracle$1ucp$1jdbc$1proxy$1oracle$1StatementProxy$2oracle$1jdbc$1internal$1OraclePreparedStatement$$$Proxy.executeUpdate (Unknown Source)
  at sandbox.ucp.UCPReplayTest.main (UCPReplayTest.java:119)
  at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
  at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke (Method.java:498)
  at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:282)
  at java.lang.Thread.run (Thread.java:748)

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