码迷,mamicode.com
首页 > 其他好文 > 详细

Mybatis错误调试(二)

时间:2015-02-04 10:54:00      阅读:320      评论:0      收藏:0      [点我收藏+]

标签:

错误日志信息: 
Caused by: java.sql.BatchUpdateException: ORA-00911: 无效字符
    at oracle.jdbc.driver.OraclePreparedStatement.executeBatch(OraclePreparedStatement.java:10070)
    at oracle.jdbc.driver.OracleStatementWrapper.executeBatch(OracleStatementWrapper.java:213)
    at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeBatch(NewProxyPreparedStatement.java:1723)
    at org.apache.ibatis.executor.BatchExecutor.doFlushStatements(BatchExecutor.java:99)
    at org.apache.ibatis.executor.BaseExecutor.flushStatements(BaseExecutor.java:109)
    at org.apache.ibatis.executor.BaseExecutor.flushStatements(BaseExecutor.java:104)
    at org.apache.ibatis.executor.BaseExecutor.commit(BaseExecutor.java:193)
    at org.apache.ibatis.executor.CachingExecutor.commit(CachingExecutor.java:113)
    at org.apache.ibatis.session.defaults.DefaultSqlSession.commit(DefaultSqlSession.java:170)
    at org.apache.ibatis.session.defaults.DefaultSqlSession.commit(DefaultSqlSession.java:165)
    at org.mybatis.spring.SqlSessionUtils$SqlSessionSynchronization.beforeCommit(SqlSessionUtils.java:263)
    ... 53 more

原因:

   SQL有错

注意:

  1. 检查SQL中是否最后有一个;号。

   2.检查能否再plSQL中正常执行。

Mybatis错误调试(二)

标签:

原文地址:http://www.cnblogs.com/sdjnzqr/p/4271696.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!