My Oracle Support Banner

NullPointerException With getGeneratedKeys().getMetaData() in JDBC 12.1.0.1.0 (Doc ID 1619185.1)

Last updated on JUNE 07, 2017

Applies to:

JDBC - Version 12.1.0.1.0 to 12.1.0.1.0 [Release 12.1]
Information in this document applies to any platform.

Symptoms

 Using the 12.1.0.1.0 JDBC driver connected to an Oracle 11.2 database, the following null pointer exception is received when getting metadata from a generated key:


java.lang.NullPointerException
       at oracle.jdbc.driver.AutoKeyInfo.initMetaDataColumnIndexes(AutoKeyInfo.java:423)
       at oracle.jdbc.driver.AutoKeyInfo.initMetaData(AutoKeyInfo.java:396)
       at oracle.jdbc.driver.OracleReturnResultSet.getMetaData(OracleReturnResultSet.java:77)

 

The same code works with JDBC 11.2.0.3.0.


Changes

 Upgrade from JDBC 11.2.0.3 to JDBC 12.1.0.1.

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!


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