`
asgab
  • 浏览: 43650 次
  • 性别: Icon_minigender_1
  • 来自: 大连
社区版块
存档分类
最新评论

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

    博客分类:
  • java
 
阅读更多
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.

分享到:
评论

相关推荐

    关键字user附近有语法错误解决方案

    警告: SQL Error: 156, ...org.hibernate.exception.SQLGrammarException: could not execute query org.hibernate.util.JDBCExceptionReporter logExceptions 严重: 关键字 'user' 附近有语法错误。 的解决方案。

    Jenkins编译报错Failed to execute goal org.apache.maven.plugins_maven-clean-plugin

    Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project

    could not execute

    could not execute:bad executable format(win32 error 193) 下了一个实现MD5的代码,编译时没有错误,但是执行的时候却提示:could not execute:bad executable format(win32 error 193)

    Failed to execute goal org.apache.maven.plugins:maven-compiler

    在<plugins></plugins>中添加 <groupId>org.apache.maven.plugins <artifactId>maven-compiler-plugin <version>3.8.1 <source>1.8 <target>1.8 </plugin>

    commons-beanutils-1.7.0

    java.lang.SecurityException: class "org.apache.commons.collections.SequencedHashMap"'s signer information does not match signer information of other classes in the same package at java.lang....

    Hibernate错误及解决办法集合

    ### Hibernate常见错误及解决办法 #### 一、Nodefaultconstructorforentity 错误 **问题描述**:在使用Hibernate执行查询语句时,系统抛出`Nodefaultconstructorforentity`错误。 **可能原因**:该错误通常是由于...

    Hibernate映射导致的几个异常

    SQLGrammerException, Could not execute JDBC batch update 当执行批量更新操作时,如果SQL语法错误或数据库不支持批处理,可能会遇到此异常。检查SQL语句的语法正确性,以及数据库驱动是否支持所需的批处理功能...

    maven出现:Failed to execute goal on project …: Could not resolve dependencies for project …

    在使用Maven构建Java项目时,可能会遇到这样一个错误:“Failed to execute goal on project …: Could not resolve dependencies for project …”。这个错误通常表明Maven在构建过程中遇到了依赖解析问题,无法...

    Maven报错: Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources

    idea创建Maven项目时,报错显示Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.0.2:resources,并且Maven插件内看不到 mybatis-generator。如下图: 折腾了好久发现配置放错地方了,...

    MyEclipse注册机

    Exception in thread "main" org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update 或者org.springframework.jdbc.BadSqlGrammarException: Hibernate operation: could not insert: ...

    SSH整合项目中容易出现的错误

    nested exception is org.hibernate.exception.SQLGrammarException: could not execute query 这个错误是由于SQL语句有错误,导致查询失败。解决方法是检查SQL语句的正确性,确保语句正确无误。 4. 严重: Error ...

    Failed to execute goal org...的解决办法

    关于解决“Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1”问题,首先需要了解Maven的构建生命周期,以及Maven的编译插件(maven-compiler-plugin)如何在编译过程中发挥作用。...

    springCloud集成ureport,并通过网关访问的源码修改

    @PostMapping("/execute") public ResponseEntity[]> executeReport(@RequestBody Map, Object> params) { // 获取报表模型和参数,调用UReportService执行报表 // 将执行结果封装为ResponseEntity返回 } } ```...

    ssh框架报错分析集合

    nested exception is org.hibernate.exception.SQLGrammarException: could not execute query` 这个异常表明执行SQL查询时出现了语法错误。检查并修正相关的SQL语句,确保其符合SQL语法规范,并且与数据库表结构...

    org.freeswitch.esl.client-0.9.2.jar

    org.freeswitch.esl.client-0.9.2.jar org.freeswitch.esl.client-0.9.2.jar

    org.apache.http相关jar包下载(httpcomponents-client-4.2.5-bin.tar)

    - 执行请求:调用HttpClient的`execute`方法发送请求。 - 处理响应:获取`HttpResponse`对象,检查状态码,读取响应内容,可能还需要处理重定向、cookies等。 **异步HTTP请求**: - 使用`AsyncHttpClient`,可以...

    hadoop-2.6.0-hadoop.dll-winutils.exe

    log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory). log4j:WARN Please initialize the log4j system properly. log4j:WARN See ...

    MyEclipse报错说明

    3. **Exception in thread "main" org.hibernate.exception.SQLGrammarException: Could not execute JDBC batch update** Hibernate在执行数据库批处理更新时出现SQL语法错误,可能是由于数据库表不存在或结构不符...

Global site tag (gtag.js) - Google Analytics