java.lang.IllegalStateException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • GitHub comment 675#169984837
    via GitHub by miguelfgar
    ,
    • 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.2.RELEASE.jar:4.3.2.RELEASE] at org.springframework.web.context.request.AbstractRequestAttributesScope.get(AbstractRequestAttributesScope.java:41)[spring-web-4.3.2.RELEASE.jar:4.3.2.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:340)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE] at org.springframework.aop.target.SimpleBeanTargetSource.getTarget(SimpleBeanTargetSource.java:35)[spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE] at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:192)[spring-aop-4.3.2.RELEASE.jar:4.3.2.RELEASE] at com.sun.proxy.$Proxy106.getAccessToken(Unknown Source)[na:na] at org.springframework.cloud.security.oauth2.client.feign.OAuth2FeignRequestInterceptor.getToken(OAuth2FeignRequestInterceptor.java:124)[spring-cloud-security-1.1.2.RELEASE.jar:1.1.2.RELEASE] at org.springframework.cloud.security.oauth2.client.feign.OAuth2FeignRequestInterceptor.extract(OAuth2FeignRequestInterceptor.java:112)[spring-cloud-security-1.1.2.RELEASE.jar:1.1.2.RELEASE] at org.springframework.cloud.security.oauth2.client.feign.OAuth2FeignRequestInterceptor.apply(OAuth2FeignRequestInterceptor.java:100)[spring-cloud-security-1.1.2.RELEASE.jar:1.1.2.RELEASE] at feign.SynchronousMethodHandler.targetRequest(SynchronousMethodHandler.java:154)[feign-core-8.16.2.jar:8.16.2] at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:88)[feign-core-8.16.2.jar:8.16.2] at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76)[feign-core-8.16.2.jar:8.16.2] at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)[feign-core-8.16.2.jar:8.16.2] at com.sun.proxy.$Proxy107.getDefinedEntries(Unknown Source)[na:na] at com.github.bilak.poc.hystrix_oauth2_feign.api.rest.SampleController$SampleServiceClientCaller.call(SampleController.java:69)[classes/:na] at com.github.bilak.poc.hystrix_oauth2_feign.api.rest.SampleController$SampleServiceClientCaller.call(SampleController.java:58)[classes/:na] at org.springframework.security.concurrent.DelegatingSecurityContextCallable.call(DelegatingSecurityContextCallable.java:86)[spring-security-core-4.1.1.RELEASE.jar:4.1.1.RELEASE] at java.util.concurrent.FutureTask.run(FutureTask.java:266)[na:1.8.0_77] at java.lang.Thread.run(Thread.java:745)[na:1.8.0_77]

    Users with the same issue

    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Victor_ITVictor_IT
    1 times, last one,
    Andreas HäberAndreas Häber
    1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    18 more bugmates