Org.hibernate.exception.GenericJDBCException:could not execute statement

Source: Internet
Author: User
Tags aop stack trace

Exception information:

Exception:

Org.hibernate.exception.GenericJDBCException:could not execute statement

Stack Trace:
        Org.hibernate.exception.GenericJDBCException:could not execute Statementat org.hibernate.exception.internal.Stand Ardsqlexceptionconverter.convert (standardsqlexceptionconverter.java:54) at Org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert (sqlexceptionhelper.java:125) at Org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert (sqlexceptionhelper.java:110) at Org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate (resultsetreturnimpl.java:136) at Org.hibernate.id.identitygenerator$getgeneratedkeysdelegate.executeandextract (IdentityGenerator.java:96) at Org.hibernate.id.insert.AbstractReturningDelegate.performInsert (abstractreturningdelegate.java:58) at Org.hibernate.persister.entity.AbstractEntityPersister.insert (abstractentitypersister.java:2975) at Org.hibernate.persister.entity.AbstractEntityPersister.insert (abstractentitypersister.java:3487) at Org.hibernate.action.internal.EntityIdentityInsertAction.execute (entityidentityinsertaction.java:81) at Org.hibernate.engiNe.spi.ActionQueue.execute (actionqueue.java:377) at Org.hibernate.engine.spi.ActionQueue.addResolvedEntityInsertAction (actionqueue.java:214) at Org.hibernate.engine.spi.ActionQueue.addInsertAction (actionqueue.java:194) at Org.hibernate.engine.spi.ActionQueue.addAction (actionqueue.java:178) at Org.hibernate.event.internal.AbstractSaveEventListener.addInsertAction (abstractsaveeventlistener.java:321) at Org.hibernate.event.internal.AbstractSaveEventListener.performSaveOrReplicate (Abstractsaveeventlistener.java : 286) at Org.hibernate.event.internal.AbstractSaveEventListener.performSave (abstractsaveeventlistener.java:192) At Org.hibernate.event.internal.AbstractSaveEventListener.saveWithGeneratedId (Abstractsaveeventlistener.java : () at Org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId ( defaultsaveorupdateeventlistener.java:206) at Org.hibernate.event.internal.DefaultSaveEventListener.saveWithGeneratedOrRequestedId ( DEFAULTSAVEEVENTLISTENER.JAVA:55) at Org.hibeRnate.event.internal.DefaultSaveOrUpdateEventListener.entityIsTransient (Defaultsaveorupdateeventlistener.java : 191) at Org.hibernate.event.internal.DefaultSaveEventListener.performSaveOrUpdate (Defaultsaveeventlistener.java : +) at Org.hibernate.event.internal.DefaultSaveOrUpdateEventListener.onSaveOrUpdate ( DEFAULTSAVEORUPDATEEVENTLISTENER.JAVA:90) at Org.hibernate.internal.SessionImpl.fireSave (sessionimpl.java:764) at Org.hibernate.internal.SessionImpl.save (sessionimpl.java:756) at Org.hibernate.internal.SessionImpl.save ( sessionimpl.java:752) at Com.test.dao.impl.UserDaoImpl.save (userdaoimpl.java:19) at Com.test.service.impl.UserServiceImpl.save (userserviceimpl.java:16) at com.test.service.impl.userserviceimpl$$ Fastclassbycglib$$7d9d4604.invoke (<generated>) at Org.springframework.cglib.proxy.MethodProxy.invoke ( methodproxy.java:204) at Org.springframework.aop.framework.cglibaopproxy$cglibmethodinvocation.invokejoinpoint ( cglibaopproxy.java:710) at Org.springframework.aop.framework.ReflectiveMetHodinvocation.proceed (reflectivemethodinvocation.java:157) at Org.springframework.transaction.interceptor.transactioninterceptor$1.proceedwithinvocation ( TRANSACTIONINTERCEPTOR.JAVA:98) at Org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction ( transactionaspectsupport.java:262) at Org.springframework.transaction.interceptor.TransactionInterceptor.invoke ( transactioninterceptor.java:95) at Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed ( reflectivemethodinvocation.java:179) at Org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke ( exposeinvocationinterceptor.java:92) at Org.springframework.aop.framework.ReflectiveMethodInvocation.proceed ( reflectivemethodinvocation.java:179) at org.springframework.aop.framework.cglibaopproxy$ Dynamicadvisedinterceptor.intercept (cglibaopproxy.java:643) at com.test.service.impl.userserviceimpl$$ enhancerbycglib$ $f 1d51c6f.save (<generated>) at Com.test.action.UserAction.save (useraction.java:26) at Sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) at Sun.reflect.NativeMethodAccessorImpl.invoke ( nativemethodaccessorimpl.java:57) at Sun.reflect.DelegatingMethodAccessorImpl.invoke ( delegatingmethodaccessorimpl.java:43) at Java.lang.reflect.Method.invoke (method.java:606) at Com.opensymphony.xwork2.DefaultActionInvocation.invokeAction (defaultactioninvocation.java:450) at Com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly (defaultactioninvocation.java:289) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:252) at Org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept (debugginginterceptor.java:256) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246) at Com.opensymphony.xwork2.interceptor.DefaultWorkflowInterceptor.doIntercept (defaultworkflowinterceptor.java:167 ) at Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98) at Com.opensyMphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246) at Com.opensymphony.xwork2.validator.ValidationInterceptor.doIntercept (validationinterceptor.java:265) at Org.apache.struts2.interceptor.validation.AnnotationValidationInterceptor.doIntercept ( annotationvalidationinterceptor.java:68) at Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246) at Com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept (conversionerrorinterceptor.java:138) At Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246) at Com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (parametersinterceptor.java:239) at Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (DEFAULTACTIONINVOCATION.Java:246) at Com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept (parametersinterceptor.java:239 ) at Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246) at Com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept (staticparametersinterceptor.java:191 ) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246) at Org.apache.struts2.interceptor.MultiselectInterceptor.intercept (multiselectinterceptor.java:73) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246) at Org.apache.struts2.interceptor.CheckboxInterceptor.intercept (checkboxinterceptor.java:91) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246) at Org.apache.struts2.interceptor.FileUploadInterceptor.intercept (fileuploadinterceptor.java:252) at Com.opensymphonY.xwork2.defaultactioninvocation.invoke (defaultactioninvocation.java:246) at Com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept (modeldriveninterceptor.java:100) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246) at Com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept (Scopedmodeldriveninterceptor.java : 141) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246) at Com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept (chaininginterceptor.java:145) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246) at Com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept (prepareinterceptor.java:171) at Com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept (methodfilterinterceptor.java:98) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke (defaultactioninvocation.java:246) at Com.opensymphony.xwork2.interceptor.I18Ninterceptor.intercept (i18ninterceptor.java:161) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke ( defaultactioninvocation.java:246) at Org.apache.struts2.interceptor.ServletConfigInterceptor.intercept ( servletconfiginterceptor.java:164) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke ( defaultactioninvocation.java:246) at Com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept ( aliasinterceptor.java:193) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke ( defaultactioninvocation.java:246) at Com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept ( exceptionmappinginterceptor.java:189) at Com.opensymphony.xwork2.DefaultActionInvocation.invoke ( defaultactioninvocation.java:246) at Org.apache.struts2.impl.StrutsActionProxy.execute (strutsactionproxy.java:54 ) at Org.apache.struts2.dispatcher.Dispatcher.serviceAction (dispatcher.java:563) at Org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction (executeoperations.java:77) at Org.apache.struts2.dispatCher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter (strutsprepareandexecutefilter.java:99) at Org.apache.catalina.core.ApplicationFilterChain.internalDoFilter (applicationfilterchain.java:243) at Org.apache.catalina.core.ApplicationFilterChain.doFilter (applicationfilterchain.java:210) at Org.apache.catalina.core.StandardWrapperValve.invoke (standardwrappervalve.java:222) at Org.apache.catalina.core.StandardContextValve.invoke (standardcontextvalve.java:123) at Org.apache.catalina.authenticator.AuthenticatorBase.invoke (authenticatorbase.java:502) at Org.apache.catalina.core.StandardHostValve.invoke (standardhostvalve.java:171) at Org.apache.catalina.valves.ErrorReportValve.invoke (errorreportvalve.java:99) at Org.apache.catalina.valves.AccessLogValve.invoke (accesslogvalve.java:953) at Org.apache.catalina.core.StandardEngineValve.invoke (standardenginevalve.java:118) at Org.apache.catalina.connector.CoyoteAdapter.service (coyoteadapter.java:408) at Org.apache.coyote.http11.AbstractHttp11Processor.procesS (abstracthttp11processor.java:1023) at Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process ( abstractprotocol.java:589) at Org.apache.tomcat.util.net.jioendpoint$socketprocessor.run (JIoEndpoint.java:310) at Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145) at Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615) at Java.lang.Thread.run ( thread.java:745) caused By:java.sql.SQLException:Field ' id ' doesn ' t have a default valueat Com.mysql.jdbc.SQLError.createSQLException (sqlerror.java:1075) at Com.mysql.jdbc.MysqlIO.checkErrorPacket ( mysqlio.java:3566) at Com.mysql.jdbc.MysqlIO.checkErrorPacket (mysqlio.java:3498) at Com.mysql.jdbc.MysqlIO.sendCommand (mysqlio.java:1959) at Com.mysql.jdbc.MysqlIO.sqlQueryDirect (mysqlio.java:2113 ) at Com.mysql.jdbc.ConnectionImpl.execSQL (connectionimpl.java:2568) at Com.mysql.jdbc.PreparedStatement.executeInternal (preparedstatement.java:2113) at Com.mysql.jdbc.PreparedStatement.executeUpdate (Preparedstatement.java:2409) at Com.mysql.jdbc.PreparedStatement.executeUpdate (preparedstatement.java:2327) at Com.mysql.jdbc.PreparedStatement.executeUpdate (preparedstatement.java:2312) at Org.hibernate.engine.jdbc.internal.ResultSetReturnImpl.executeUpdate (resultsetreturnimpl.java:133) ... More

Error reason: The database table primary key has not been set since the growth

Org.hibernate.exception.GenericJDBCException:could not execute statement

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.