Spring 中存储过程执行的间歇性问题

Intermittent issue with stored procedure execution in Spring

我在应用程序日志中收到以下异常。

3~Error in xxxxImpl execute method :  org.springframework.jdbc.UncategorizedSQLException: CallableStatementCallback; uncategorized SQLException for SQL [{call xxx.GETxxx(?, ?, ?, , , , , ?, ?, , ?, ?, ?, )}, ?, ?, ?, ?, ?)}]; SQL state [99999]; error code [17041]; Missing IN or OUT parameter at index:: 12; nested exception is java.sql.SQLException: Missing IN or OUT parameter at index:: 12

当我重新启动应用程序或重新启动应用程序服务器时,问题就消失了。

一段时间后再次出现,比如3到4天的时间!

除此间歇性问题外,应用程序运行正常。

我正在使用 spring.framework.version - 3.2.5.RELEASE.

为了从 Java 调用存储过程,我正在使用 org.springframework.jdbc.object.StoredProcedure。

使用 ojdbc6.jar 后问题得到解决。

我在 JDK 6 环境中使用 ojdbc14.jar :)。