org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
来源:互联网 发布:卖家加入农村淘宝 编辑:程序博客网 时间:2024/04/28 03:50
org.apache.jasper.JasperException: org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch updateorg.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:522)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:416)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch updateorg.hibernate.exception.ErrorCodeConverter.convert(ErrorCodeConverter.java:70)org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:181)org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:226)org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:136)org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:324)org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)com.swl.hibernate.pojo.FinanceOperate.insert(FinanceOperate.java:41)org.apache.jsp.AddFinance_005fdo_jsp._jspService(AddFinance_005fdo_jsp.java:109)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)javax.servlet.http.HttpServlet.service(HttpServlet.java:717)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
root cause
java.sql.BatchUpdateException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'declare, input, output, userid, id) values ('2', '2', '2012å¹´03月31æ—¥ 17:15:' at line 1com.mysql.jdbc.PreparedStatement.executeBatchSerially(PreparedStatement.java:2016)com.mysql.jdbc.PreparedStatement.executeBatch(PreparedStatement.java:1452)org.hibernate.jdbc.BatchingBatcher.doExecuteBatch(BatchingBatcher.java:57)org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:174)org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:226)org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:136)org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:274)org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)org.hibernate.impl.SessionImpl.flush(SessionImpl.java:730)org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:324)org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:86)com.swl.hibernate.pojo.FinanceOperate.insert(FinanceOperate.java:41)org.apache.jsp.AddFinance_005fdo_jsp._jspService(AddFinance_005fdo_jsp.java:109)org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)javax.servlet.http.HttpServlet.service(HttpServlet.java:717)org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:374)org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:342)org.apache.jasper.servlet.JspServlet.service(JspServlet.java:267)javax.servlet.http.HttpServlet.service(HttpServlet.java:717)弄了两个多小时,居然是由于数据表中的字段declare和系统关键字一样,修改下declare为其他的名称,就好了。
- org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
- org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
- org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
- nested exception is org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
- org.hibernate.exception.SQLGrammarException:Could not execute JDBC batch update问题的解决
- org.hibernate.exception.SQLGrammarException:Could not execute JDBC batch update问题的解决
- org.hibernate.exception.SQLGrammarException:Could not execute JDBC batch update问题的解决
- org.hibernate.exception.SQLGrammarException:Could not execute JDBC batch update问题的解决
- org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update错误
- org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
- org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
- org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update
- org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
- org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
- org.hibernate.exception.ConstraintViolationException: Could not execute JDBC batch update
- org.hibernate.exception.SQLGrammarException: could not execute batch
- SQLGrammarException: Could not execute JDBC batch update
- org.hibernate.exception.GenericJDBCException: Could not execute JDBC batch update at org.hibernate.
- 诠释.net中 Form.show()与 Form.ShowDialog()
- jpcsp源码解读13:动态二进制翻译1
- 累,缺少自信啊
- sed学习心得
- 我们一起老去
- org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update
- S3C6410实时时钟RTC 秒字符设备
- 指向指针的指针(转)
- linux sleep用法
- 访问sharepoint站点需要输入用户名和密码?
- 很好的说明了TimeSpan可以赋什么值
- 如何改变对话框的背景颜色
- 黑马程序员__java基础笔记1
- 如何更改管理中心网站端口号 (SharePoint Server 2010)?