commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christoph Brücke (JIRA) <>
Subject [jira] [Commented] (DBUTILS-117) Error in control the use of ParameterMetaData
Date Wed, 16 Jul 2014 14:51:05 GMT


Christoph Brücke commented on DBUTILS-117:

I've had the same issue, when using Oracle DB 12 and DbUtils 1.5/1.6-SNAPSHOT (see attached

java.sql.SQLSyntaxErrorException: ORA-00904: "A"."TABLE_NAME": invalid identifier

	at oracle.jdbc.driver.T4CTTIoer.processError(
	at oracle.jdbc.driver.T4CTTIoer.processError(
	at oracle.jdbc.driver.T4CTTIoer.processError(
	at oracle.jdbc.driver.T4CTTIfun.processError(
	at oracle.jdbc.driver.T4CTTIfun.receive(
	at oracle.jdbc.driver.T4CTTIfun.doRPC(
	at oracle.jdbc.driver.T4C8Odscrarr.doODNY(
	at oracle.jdbc.driver.T4CPreparedStatement.doDescribe(
	at oracle.jdbc.driver.OracleStatement.describe(
	at oracle.jdbc.driver.OracleResultSetMetaData.<init>(
	at oracle.jdbc.driver.OracleStatement.getResultSetMetaData(
	at oracle.jdbc.driver.OraclePreparedStatement.getMetaData(
	at oracle.jdbc.driver.OraclePreparedStatementWrapper.getMetaData(
	at oracle.jdbc.driver.OracleParameterMetaData.getParameterMetaData(
	at oracle.jdbc.driver.OraclePreparedStatement.getParameterMetaData(
	at oracle.jdbc.driver.OraclePreparedStatementWrapper.getParameterMetaData(
	at org.apache.commons.dbutils.AbstractQueryRunner.fillStatement(

As a change I have wrapped call to {{ParameterMetaData.getParameterCount()}} in a try-catch-block
and set {{pmdKnownBroken}} to {{true}}.

Please let me know if anythings needs to be changed.

> Error in control the use of ParameterMetaData
> ---------------------------------------------
>                 Key: DBUTILS-117
>                 URL:
>             Project: Commons DbUtils
>          Issue Type: Bug
>    Affects Versions: 1.5
>            Reporter: Vadim Smirnov
>            Priority: Minor
>              Labels: easyfix, newbie
>   Original Estimate: 1h
>  Remaining Estimate: 1h
> Error in fillStatement method of AbstractQueryRunner class.
> There is no try...catch statement near pmd = stmt.getParameterMetaData();
> So method fails instead of automaticallye turning pmdKnownBroken to true.

This message was sent by Atlassian JIRA

View raw message