[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
回答1
回答0
回答1
回答2
回答