1
存儲過程當我嘗試用春天來執行存儲過程中的這種異常被拋出:執行彈簧
Caused by: org.springframework.jdbc.UncategorizedSQLException: CallableStatementCallback; uncategorized SQLException for SQL [{call TEST_PKG.DO_IT(?, ?, ?, ?, ?, ?, ?, ?, ?)}]; SQL state [72000]; error code [1461]; ORA-01461: can bind a LONG value only for insert into a LONG column
ORA-06512: at "TEST.TEST_PKG", line 53
ORA-06512: at line 1
; nested exception is java.sql.SQLException: ORA-01461: can bind a LONG value only for insert into a LONG column
ORA-06512: at "TEST.TEST_PKG", line 53
ORA-06512: at line 1
at org.springframework.jdbc.support.SQLStateSQLExceptionTranslator.translate(SQLStateSQLExceptionTranslator.java:124)
at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.translate(SQLErrorCodeSQLExceptionTranslator.java:322)
at org.springframework.jdbc.core.JdbcTemplate.execute(JdbcTemplate.java:952)
at org.springframework.jdbc.core.JdbcTemplate.call(JdbcTemplate.java:985)
at org.springframework.jdbc.object.StoredProcedure.execute(StoredProcedure.java:117)
我使用的MyFaces 1.2.5,2.0.2春季
第一個參數是整數,最後一個是NUMBER。甲骨文類型和Java類型的映射如下:
Integer -> Numeric
NUMBER -> Decimal.
我的問題是什麼是此異常的原因,以及如何解決它?
在此先感謝。
數據庫開發人員已經看到了這種情況,並說在數據庫中一切正常。奇怪的是,它在Google Chrome中工作,但不在IE中。 – 2013-05-08 07:06:12