问答专栏Q & A COLUMN

AsyncTask - No thread-bound request found

303187999303187999 回答0 收藏3
问题描述:

[udp-717] ERROR cn.ucloud.udp.async.task.AbstractTask - 2022-11-15 15:56:00 [AsyncTask] java.lang.IllegalStateException: No thread-bound request found: Are you referring to request attributes outside of an actual web request, or processing a request outside of the originally receiving thread? If you are actually operating within a web request and still receive this message, your code is probably running outside of DispatcherServlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.  at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:131)  at org.springframework.web.context.support.WebApplicationContextUtils.currentRequestAttributes(WebApplicationContextUtils.java:313)  at org.springframework.web.context.support.WebApplicationContextUtils.access$400(WebApplicationContextUtils.java:66)  at org.springframework.web.context.support.WebApplicationContextUtils$SessionObjectFactory.getObject(WebApplicationContextUtils.java:370)  at org.springframework.web.context.support.WebApplicationContextUtils$SessionObjectFactory.getObject(WebApplicationContextUtils.java:365)  at org.springframework.beans.factory.support.AutowireUtils$ObjectFactoryDelegatingInvocationHandler.invoke(AutowireUtils.java:295)  at com.sun.proxy.$Proxy89.getAttribute(Unknown Source)  at cn.ucloud.udp.service.ServerSessionService.getUserId(ServerSessionService.java:19)  at cn.ucloud.udp.service.ServerPermissionService.queryEntranceListAsEnablePermission(ServerPermissionService.java:2048)  at cn.ucloud.udp.service.ServerPermissionService.queryEntranceList(ServerPermissionService.java:1075)  at cn.ucloud.udp.service.ServerPermissionService.queryAcitonList(ServerPermissionService.java:1308)  at cn.ucloud.udp.service.ServerPermissionService$$FastClassBySpringCGLIB$$4b068bb2.invoke(<generated>)  at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218)  at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:769)  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)  at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747)  at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:366)  at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:99)  at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186)  at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:747)  at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:689)  at cn.ucloud.udp.service.ServerPermissionService$$EnhancerBySpringCGLIB$$c72878b9.queryAcitonList(<generated>)  at cn.ucloud.udp.service.ServerYarnConfigService.queryCapacityQueueList(ServerYarnConfigService.java:7025)  at 

收藏问题
温馨提示
该问题目前已经被作者或者管理员关闭, 无法添加新回复

0条回答

相关问题

最新活动

您已邀请0人回答 查看邀请

我的邀请列表

  • 擅长该话题
  • 回答过该话题
  • 我关注的人
向帮助了您的网友说句感谢的话吧!
付费偷看金额在0.1-10元之间
<