iBatis2错误:com.ibatis.common.jdbc.exception.NestedSQLException:
2012-04-28 13:50
615 查看
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映射文件某部分错误;
--- 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映射文件某部分错误;
相关文章推荐
- iBatis2错误:com.ibatis.common.jdbc.exception.NestedSQLException:
- Ibatis com.ibatis.common.jdbc.exception.NestedSQLException
- com.ibatis.common.jdbc.exception.NestedSQLException:原因分析
- com.ibatis.common.jdbc.exception.NestedSQLException 今天用ibatis做数据查询时发生了这个异常
- 将截断字符串或二进制数据。; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
- com.ibatis.common.jdbc.exception.NestedSQLException:
- ibatis+spring+mysql nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
- com.ibatis.common.jdbc.exception.NestedSQLException:Error setting property...
- Cause: net.sf.cglib.beans.BulkBeanException; nested exception is com.ibatis.common.jdbc.exception.NestedSQLException:
- ibatis Cause: com.microsoft.sqlserver.jdbc.SQLServerException: '@P0' 附近有语法错误
- com.microsoft.sqlserver.jdbc.SQLServerException: 将 IDENTITY 转换为数据类型 numeric 时出现算术溢出错误。
- 问题:org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.jdbc.Dri
- com.microsoft.sqlserver.jdbc.SQLServerException: '@P0' 附近有语法错误。
- eclipse 连接 sqlserver2005错误信息:"java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver"
- nested exception is java.sql.SQLException: com.mysql.jdbc.Driver
- com.microsoft.sqlserver.jdbc.SQLServerException: 驱动程序无法使用安全套接字层(SSL)加密与 SQL Server 建立安全连接。错误: RSA pr
- JSP com.microsoft.sqlserver.jdbc.SQLServerException: '@P0' 附近有语法错误。
- 连接Sql2005报的错误:Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: 到主机 的 TCP/IP 连接失败
- Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: 接收 TDS 预登录响应时发生 I/O 错误。
- invalid: "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.mysql.j