日期:2014-05-20  浏览次数:20825 次

请教高手Hibernate问题(org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update)
提示的错误内容如下:
Hibernate:   select   max(ID)   from   TGS_ENTERPRISE_COUNTINFO
Hibernate:   insert   into   TGS_ENTERPRISE_COUNTINFO   (QYZCH,   CORNAME,   CORNAME_ENG,   REG_CODE,   REG_FUNDING,   REG_DATE,   E_AREAID,   E_YWFWID,   ADDRESS,   POSTCODE,   TEL,   TEX,   EMAIL,   WEBSITE,   E_FR,   E_FR_CODE,   XUELI,   AGE,   SOFT_QYRZ,   SYS_JCZZRZ,   CMMRZ,   SOFT_RZJG,   SOFT_RZH,   SYS_RZJG,   SYS_RZH,   CMMRZ_LEVEL,   ZGDW,   ZGDW_FZR,   AUTHOR,   DATE,   CMMRZ_RZH,   ID)   values   (?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?,   ?)
org.hibernate.exception.SQLGrammarException:   Could   not   execute   JDBC   batch   update
at   org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:67)
at   org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:43)
at   org.hibernate.jdbc.AbstractBatcher.executeBatch(AbstractBatcher.java:202)
at   org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:235)
at   org.hibernate.engine.ActionQueue.executeActions(ActionQueue.java:139)
at   org.hibernate.event.def.AbstractFlushingEventListener.performExecutions(AbstractFlushingEventListener.java:297)
at   org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:27)
at   org.hibernate.impl.SessionImpl.flush(SessionImpl.java:985)
at   org.hibernate.impl.SessionImpl.managedFlush(SessionImpl.java:333)
at   org.hibernate.transaction.JDBCTransaction.commit(JDBCTransaction.java:106)
at   tgcom.hibernate.yb.TgsEnterpriseCountinfoDAO.save(TgsEnterpriseCountinfoDAO.java:68)
at   tgcom.struts.yb.action.TgsEnterpriseCountinfoAction.execute(TgsEnterpriseCountinfoAction.java:42)
at   org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:484)
at   org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274)
at   org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
at   org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
at   javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at   org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at   org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at   org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at   org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at   org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at   org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at   org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at   org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at   org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at   org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at   org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)