org.hibernate.exception.LockAcquisitionException: could not execute query

org.hibernate.exception.LockAcquisitionException: could not execute query

at org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java.105)

at org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java.66)

at org.hibernate.loader.Loader.doList(Loader.java.2235)

at org.hibernate.loader.Loader.listIgnoreQueryCache(Loader.java.2129)

at org.hibernate.loader.Loader.list(Loader.java.2124)

at org.hibernate.loader.custom.CustomLoader.list(CustomLoader.java.312)

at org.hibernate.impl.SessionImpl.listCustomQuery(SessionImpl.java.1723)

at org.hibernate.impl.AbstractSessionImpl.list(AbstractSessionImpl.java.165)

at org.hibernate.impl.SQLQueryImpl.list(SQLQueryImpl.java.175)

at com.manpowergroup.cn.icloud.charge.dao.SocialRuleGoApplyDao.querySocialRuleGoInfoByBatchContdition(SocialRuleGoApplyDao.java.270)

at com.manpowergroup.cn.icloud.charge.service.impl.AccountSsbServiceImpl.accountGo(AccountSsbServiceImpl.java.138)

at com.manpowergroup.cn.icloud.charge.service.impl.AccountSsbServiceImpl$$FastClassByCGLIB$$a6218bff.invoke(.-1)

at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java.191)

at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java.689)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java.150)

at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java.110)

at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java.172)

at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java.622)

at com.manpowergroup.cn.icloud.charge.service.impl.AccountSsbServiceImpl$$EnhancerByCGLIB$$6f18d0bc.accountGo(.-1)

at com.manpowergroup.cn.icloud.charge.web.AccountSocialBenefitAction.accountGo(AccountSocialBenefitAction.java.112)

at sun.reflect.NativeMethodAccessorImpl.invoke0(NativeMethodAccessorImpl.java.-2)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java.57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java.43)

at java.lang.reflect.Method.invoke(Method.java.616)

at com.opensymphony.xwork2.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java.440)

at com.opensymphony.xwork2.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java.279)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.242)

at com.manpowergroup.cn.icloud.sys.util.ExceptionInterceptor.intercept(ExceptionInterceptor.java.29)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.manpowergroup.cn.icloud.sys.util.MenuStack.intercept(MenuStack.java.35)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.manpowergroup.cn.icloud.sys.util.LogonStack.intercept(LogonStack.java.98)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java.195)

at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java.87)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.opensymphony.xwork2.interceptor.ScopedModelDrivenInterceptor.intercept(ScopedModelDrivenInterceptor.java.128)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.opensymphony.xwork2.interceptor.PrepareInterceptor.doIntercept(PrepareInterceptor.java.138)

at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java.87)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.opensymphony.xwork2.interceptor.I18nInterceptor.intercept(I18nInterceptor.java.148)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java.176)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.opensymphony.xwork2.interceptor.ConversionErrorInterceptor.intercept(ConversionErrorInterceptor.java.122)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.opensymphony.xwork2.interceptor.ParametersInterceptor.doIntercept(ParametersInterceptor.java.195)

at com.opensymphony.xwork2.interceptor.MethodFilterInterceptor.intercept(MethodFilterInterceptor.java.87)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.opensymphony.xwork2.interceptor.StaticParametersInterceptor.intercept(StaticParametersInterceptor.java.148)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at org.apache.struts2.interceptor.CheckboxInterceptor.intercept(CheckboxInterceptor.java.93)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at org.apache.struts2.interceptor.FileUploadInterceptor.intercept(FileUploadInterceptor.java.235)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.opensymphony.xwork2.interceptor.ModelDrivenInterceptor.intercept(ModelDrivenInterceptor.java.89)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at org.apache.struts2.interceptor.ProfilingActivationInterceptor.intercept(ProfilingActivationInterceptor.java.104)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at org.apache.struts2.interceptor.debugging.DebuggingInterceptor.intercept(DebuggingInterceptor.java.267)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.opensymphony.xwork2.interceptor.ChainingInterceptor.intercept(ChainingInterceptor.java.126)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at org.apache.struts2.interceptor.ServletConfigInterceptor.intercept(ServletConfigInterceptor.java.164)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.opensymphony.xwork2.interceptor.AliasInterceptor.intercept(AliasInterceptor.java.128)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at com.opensymphony.xwork2.interceptor.ExceptionMappingInterceptor.intercept(ExceptionMappingInterceptor.java.176)

at com.opensymphony.xwork2.DefaultActionInvocation.invoke(DefaultActionInvocation.java.236)

at org.apache.struts2.impl.StrutsActionProxy.execute(StrutsActionProxy.java.52)

at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java.468)

at org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java.77)

at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java.76)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java.243)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java.210)

at org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextCleanUp.java.102)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java.243)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java.210)

at org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java.198)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java.76)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java.243)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java.210)

at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java.88)

at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java.76)

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.224)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java.169)

at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java.472)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java.168)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java.98)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java.928)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java.118)

at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java.407)

at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java.987)

at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java.539)

at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java.300)

at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java.1110)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java.603)

at java.lang.Thread.run(Thread.java.636)

 

 

The problem is the result of the batch job (which saves changes from the plan member summary view) taking too long in a concurrent user environment. This results in a long database transaction that will cause subsequent queries to timeout and fail.

你可能感兴趣的:(java)