`
paladin1988
  • 浏览: 320672 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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映射文件某部分错误;

 

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

 

 

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics