org.springframework.beans.factory.BeanCreationException

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.

    • org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.oauth2ClientContext': Scope 'request' is not active for the current thread; consider defining a scoped proxy for this bean if you intend to refer to it from a singleton; nested exception is 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.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:355)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1076)[spring-context-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.spockframework.spring.SpringMockTestExecutionListener.beforeTestMethod(SpringMockTestExecutionListener.java:49)[spock-spring-1.1-groovy-2.4-rc-2.jar:na] at org.springframework.test.context.TestContextManager.beforeTestMethod(TestContextManager.java:269)[spring-test-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.spockframework.spring.SpringTestContextManager.beforeTestMethod(SpringTestContextManager.java:54)[spock-spring-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.spring.SpringInterceptor.interceptSetupMethod(SpringInterceptor.java:45)[spock-spring-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.extension.AbstractMethodInterceptor.intercept(AbstractMethodInterceptor.java:28)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.extension.MethodInvocation.proceed(MethodInvocation.java:87)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.invoke(BaseSpecRunner.java:472)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.runSetup(BaseSpecRunner.java:375)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.runSetup(BaseSpecRunner.java:370)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.doRunIteration(BaseSpecRunner.java:323)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner$6.invoke(BaseSpecRunner.java:309)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.invokeRaw(BaseSpecRunner.java:481)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.invoke(BaseSpecRunner.java:464)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.runIteration(BaseSpecRunner.java:288)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.initializeAndRunIteration(BaseSpecRunner.java:278)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.runSimpleFeature(BaseSpecRunner.java:269)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.doRunFeature(BaseSpecRunner.java:263)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner$5.invoke(BaseSpecRunner.java:246)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.invokeRaw(BaseSpecRunner.java:481)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.invoke(BaseSpecRunner.java:464)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.runFeature(BaseSpecRunner.java:238)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.runFeatures(BaseSpecRunner.java:188)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.doRunSpec(BaseSpecRunner.java:98)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner$1.invoke(BaseSpecRunner.java:84)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.invokeRaw(BaseSpecRunner.java:481)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.invoke(BaseSpecRunner.java:464)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.runSpec(BaseSpecRunner.java:76)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.BaseSpecRunner.run(BaseSpecRunner.java:67)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.spockframework.runtime.Sputnik.run(Sputnik.java:63)[spock-core-1.1-groovy-2.4-rc-2.jar:na] at org.junit.runner.JUnitCore.run(JUnitCore.java:137)[junit-4.12.jar:4.12] at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:117)[junit-rt.jar:na] at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)[junit-rt.jar:na] at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:262)[junit-rt.jar:na] at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:84)[junit-rt.jar:na] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[na:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[na:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[na:1.8.0_51] at java.lang.reflect.Method.invoke(Method.java:497)[na:1.8.0_51] at com.intellij.rt.execution.application.AppMain.main(AppMain.java:147)[idea_rt.jar:na] Caused by: 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.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.web.context.request.AbstractRequestAttributesScope.get(AbstractRequestAttributesScope.java:41)[spring-web-4.3.3.RELEASE.jar:4.3.3.RELEASE] at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:340)[spring-beans-4.3.3.RELEASE.jar:4.3.3.RELEASE] ... 41 more

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Victor_IT
    1 times, last one,
    17 more bugmates