iBatis2错误:com.ibatis.common.jdbc.exception.NestedSQLException:

写于2011-03-18 15:37

com.ibatis.common.jdbc.exception.NestedSQLException:   
--- The error occurred in com/itcast/Student.xml.  
--- The error occurred while applying a parameter map.  
--- Check the selectAllStudent-InlineParameterMap.  
--- Check the statement (query failed).  
--- Cause: java.sql.SQLException: ORA-00911: 无效字符


错误信息如下,找了好久都没有合适的答案,自己又认真看了一下才明白。

O/R映射文件的sql多了一个分号(;)oracle 的sql写多了,时不时的总是写上一个分号,导致了错误.

 

网上的参考:

(1)可能是javaBean中的数据类型不对;

(2)O/R映射文件某部分错误;

 

我觉得错误可能性比较大的就上上面两种情况吧。

猜你喜欢

转载自paladin1988.iteye.com/blog/1634938