javax.faces.el.EvaluationException: /views/test.xhtml @20,62 value="#{controllerBean.personId}": org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'controllerBean': 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? 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.

Icesoft | Tenanijebo | 9 years ago
  1. 0

    ice:inputFile component and its upload button

    icesoft.org | 1 year ago
    javax.faces.el.EvaluationException: /views/test.xhtml @20,62 value="#{controllerBean.personId}": org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'controllerBean': 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? 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.
  2. 0

    Re:ice:inputFile component and its upload button

    Icesoft | 9 years ago | Tenanijebo
    javax.faces.el.EvaluationException: /views/test.xhtml @20,62 value="#{controllerBean.personId}": org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'controllerBean': 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? 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.
  3. 0

    Spring MVC: How to use a request-scoped bean inside a spawned thread?

    Stack Overflow | 4 years ago | Abdull
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.facebook': 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.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Spring deferred result & request scoped bean(Oauth2ClientContext) in the web filter

    Stack Overflow | 2 years ago
    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.
  6. 0

    Spring MVC: How to use a request-scoped bean inside a spawned thread?

    codedmi.com | 1 year ago
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'scopedTarget.facebook': 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.

  1. Andreas Häber 1 times, last 1 month ago
9 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalStateException

    No thread-bound request found: Are you referring to request attributes outside of an actual web request? 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()
  2. Spring
    AbstractRequestAttributesScope.get
    1. org.springframework.web.context.request.RequestContextHolder.currentRequestAttributes(RequestContextHolder.java:102)
    2. org.springframework.web.context.request.AbstractRequestAttributesScope.get(AbstractRequestAttributesScope.java:40)
    2 frames
  3. Spring Beans
    AbstractBeanFactory.getBean
    1. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:285)
    2. org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
    2 frames
  4. de.mindmatters.faces
    DelegatingVariableResolver.resolveVariable
    1. de.mindmatters.faces.spring.factory.DelegatingVariableResolver.resolveVariable(DelegatingVariableResolver.java:101)
    1 frame
  5. Facelets
    LegacyELContext$LegacyELResolver.getValue
    1. com.sun.facelets.el.LegacyELContext$LegacyELResolver.getValue(LegacyELContext.java:134)
    1 frame
  6. EL
    ValueExpressionImpl.getValue
    1. com.sun.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
    2. com.sun.el.parser.AstValue.getValue(AstValue.java:85)
    3. com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:183)
    3 frames
  7. Facelets
    LegacyValueBinding.getValue
    1. com.sun.facelets.el.TagValueExpression.getValue(TagValueExpression.java:71)
    2. com.sun.facelets.el.LegacyValueBinding.getValue(LegacyValueBinding.java:56)
    2 frames
  8. JavaEE 7
    UIOutput.getValue
    1. javax.faces.component.UIOutput.getValue(UIOutput.java:167)
    1 frame
  9. com.icesoft.faces
    DomBasicRenderer.encodeEnd
    1. com.icesoft.faces.renderkit.dom_html_basic.DomBasicInputRenderer.getValue(DomBasicInputRenderer.java:60)
    2. com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.getValue(DomBasicRenderer.java:153)
    3. com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeEnd(DomBasicRenderer.java:125)
    3 frames
  10. JavaEE 7
    UIComponentBase.encodeEnd
    1. javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:740)
    1 frame
  11. com.icesoft.faces
    GridRenderer.encodeChildren
    1. com.icesoft.faces.renderkit.dom_html_basic.DomBasicRenderer.encodeParentAndChildren(DomBasicRenderer.java:352)
    2. com.icesoft.faces.renderkit.dom_html_basic.GridRenderer.encodeChildren(GridRenderer.java:196)
    2 frames
  12. JavaEE 7
    UIComponentBase.encodeChildren
    1. javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:721)
    1 frame
  13. com.icesoft.faces
    D2DViewHandler.renderView
    1. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:561)
    2. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
    3. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
    4. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
    5. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
    6. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
    7. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
    8. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
    9. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
    10. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
    11. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
    12. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
    13. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
    14. com.icesoft.faces.application.D2DViewHandler.renderResponse(D2DViewHandler.java:565)
    15. com.icesoft.faces.facelets.D2DFaceletViewHandler.renderResponse(D2DFaceletViewHandler.java:317)
    16. com.icesoft.faces.application.D2DViewHandler.renderView(D2DViewHandler.java:153)
    16 frames
  14. de.mindmatters.faces
    LifecycleImpl.render
    1. de.mindmatters.faces.lifecycle.RenderResponsePhase.executePhase(RenderResponsePhase.java:45)
    2. de.mindmatters.faces.lifecycle.AbstractPhase.execute(AbstractPhase.java:37)
    3. de.mindmatters.faces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:166)
    4. de.mindmatters.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:226)
    4 frames
  15. com.icesoft.faces
    PersistentFacesState$RenderRunner.run
    1. com.icesoft.faces.webapp.xmlhttp.PersistentFacesState.render(PersistentFacesState.java:146)
    2. com.icesoft.faces.webapp.xmlhttp.PersistentFacesState$RenderRunner.run(PersistentFacesState.java:299)
    2 frames
  16. Backport of JSR 166
    ThreadPoolExecutor$Worker.run
    1. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:643)
    2. edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)
    2 frames
  17. Java RT
    Thread.run
    1. java.lang.Thread.run(Thread.java:797)
    1 frame