My Oracle Support Banner

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

Last updated on JUNE 07, 2017

Applies to:

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


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

       at oracle.jdbc.driver.AutoKeyInfo.initMetaDataColumnIndexes(
       at oracle.jdbc.driver.AutoKeyInfo.initMetaData(
       at oracle.jdbc.driver.OracleReturnResultSet.getMetaData(


The same code works with JDBC


 Upgrade from JDBC to JDBC


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.