My Oracle Support Banner

JDBC THIN 12c: getParameterMetaData() Reports java.lang.ArrayIndexOutOfBoundsException (Doc ID 2322392.1)

Last updated on OCTOBER 31, 2017

Applies to:

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


A java application using JDBC THIN driver (and Oracle database 12c) reports the following exception:

java.lang.ArrayIndexOutOfBoundsException: 50
at oracle.jdbc.driver.OracleParameterMetaDataParser.getParameterMetaDataSql(
at oracle.jdbc.driver.OracleParameterMetaData.getParameterMetaData(
at oracle.jdbc.driver.OraclePreparedStatement.getParameterMetaData(
at oracle.jdbc.driver.OraclePreparedStatementWrapper.getParameterMetaData(



* PreparedStatement is unable to process a complex SQL while fetching meta-data using getParameterMetaData().
* This issue is reproducible even with JDBC THIN
* This issue never occurred with JDBC THIN




 JDBC THIN driver was upgraded from to


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.