Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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/DispatcherPortlet: In this case, use RequestContextListener or RequestContextFilter to expose the current request.
- at org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:131) ~[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]
- at org.springframework.web.context.support.WebApplicationContextUtils.currentRequestAttributes(WebApplicationContextUtils.java:309) ~[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]
- at org.springframework.web.context.support.WebApplicationContextUtils.access$400(WebApplicationContextUtils.java:64) ~[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]
- at org.springframework.web.context.support.WebApplicationContextUtils$RequestObjectFactory.getObject(WebApplicationContextUtils.java:325) ~[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]
- at org.springframework.web.context.support.WebApplicationContextUtils$RequestObjectFactory.getObject(WebApplicationContextUtils.java:320) ~[spring-web-4.3.13.RELEASE.jar:4.3.13.RELEASE]
- at org.springframework.beans.factory.support.AutowireUtils$ObjectFactoryDelegatingInvocationHandler.invoke(AutowireUtils.java:307) ~[spring-beans-4.3.13.RELEASE.jar:4.3.13.RELEASE]
- at com.sun.proxy.$Proxy199.getAttribute(Unknown Source) ~[na:na]
- at com.flprint.easyflyer.pim.v4.common.service.impl.PimServiceImpl.getUserId(PimServiceImpl.java:30) ~[classes/:na]
- at com.flprint.easyflyer.pim.v4.mcpkeys.service.impl.McpKeysServiceImpl.saveAll(McpKeysServiceImpl.java:123) ~[classes/:na]
- at com.flprint.easyflyer.pim.v4.mcpkeys.service.impl.McpKeysServiceImpl.generateKeysOnProductSave(McpKeysServiceImpl.java:183) ~[classes/:na]
- at com.flprint.easyflyer.pim.v4.product.service.impl.ProductServiceImpl.generateMcpKeys(ProductServiceImpl.java:461) [classes/:na]
- at com.flprint.easyflyer.pim.v4.product.service.impl.ProductServiceImpl.lambda$saveAll$6(ProductServiceImpl.java:454) [classes/:na]
- at java.util.ArrayList.forEach(ArrayList.java:1257) ~[na:1.8.0_162]
- at com.flprint.easyflyer.pim.v4.product.service.impl.ProductServiceImpl.saveAll(ProductServiceImpl.java:454) [classes/:na]
- at com.flprint.easyflyer.pim.v4.product.service.impl.ProductServiceImpl.generateMcpKeys(ProductServiceImpl.java:378) [classes/:na]
- at com.flprint.easyflyer.pim.SchedulerConfiguration.generateMcpKeys(SchedulerConfiguration.java:41) ~[classes/:na]
- at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_162]
- at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_162]
- at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_162]
- at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_162]
- at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
- at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
- at java.util.concurrent.Executors$RunnableAdapter.call$$$capture(Executors.java:511) ~[na:1.8.0_162]
- at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java) ~[na:1.8.0_162]
- at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) ~[na:1.8.0_162]
- at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) ~[na:1.8.0_162]
- at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) ~[na:1.8.0_162]
- at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_162]
- at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_162]
- at java.lang.Thread.run(Thread.java:748) ~[na:1.8.0_162]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement