java.lang.IllegalStateException: Cannot use ServletOutputStream because a PrintWriter is being used. User getWriter() instead. This included request was probably nested in a Jsp BodyTag

Oracle Community | 3004 | 1 decade ago
  1. 0

    WebLogic 6.1 Admin Console exception.

    Google Groups | 1 decade ago | Eleanor
    java.lang.IllegalStateException: Cannot use ServletOutputStream because a PrintWriter is being used. User getWriter() instead. This included request was probably nested in a Jsp BodyTag
  2. 0

    WebLogic 6.1 Admin Console exception.

    Oracle Community | 1 decade ago | 3004
    java.lang.IllegalStateException: Cannot use ServletOutputStream because a PrintWriter is being used. User getWriter() instead. This included request was probably nested in a Jsp BodyTag
  3. 0

    [CXF-5431] Spring Request scope is not available in OneWay WS method. - ASF JIRA

    apache.org | 12 months ago
    org.apache.cxf.interceptor.Fault: Error creating bean with name 'scopedTarget.requestScopeBean': 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

    Grails3 controller integration test case fail: No thread-bound request found

    Stack Overflow | 1 year ago | user1071671
    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?

    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.

    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

      Cannot use ServletOutputStream because a PrintWriter is being used. User getWriter() instead. This included request was probably nested in a Jsp BodyTag

      at weblogic.servlet.jsp.NestedBodyResponse.getOutputStream()
    2. weblogic.servlet.jsp
      NestedBodyResponse.getOutputStream
      1. weblogic.servlet.jsp.NestedBodyResponse.getOutputStream(NestedBodyResponse.java:21)
      1 frame
    3. JavaServlet
      ServletResponseWrapper.getOutputStream
      1. javax.servlet.ServletResponseWrapper.getOutputStream(ServletResponseWrapper.java:136)
      1 frame
    4. Atmosphere weblogic
      ChunkOutputWrapper.print
      1. weblogic.servlet.internal.DelegateChunkWriter.getWriter(DelegateChunkWriter.java:132)
      2. weblogic.servlet.internal.DelegateChunkWriter.print(DelegateChunkWriter.java:99)
      3. weblogic.servlet.internal.ChunkOutputWrapper.print(ChunkOutputWrapper.java:136)
      3 frames
    5. weblogic.servlet.jsp
      JspWriterImpl.print
      1. weblogic.servlet.jsp.JspWriterImpl.print(JspWriterImpl.java:204)
      1 frame
    6. weblogic.management.console
      __simpleformtag_javascript._jspService
      1. weblogic.management.console.webapp._common.__simpleformtag_javascript._jspService(__simpleformtag_javascript.java:99)
      1 frame
    7. weblogic.servlet.jsp
      JspBase.service
      1. weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
      1 frame
    8. Atmosphere weblogic
      RequestDispatcherImpl.include
      1. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
      2. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
      3. weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:446)
      4. weblogic.servlet.internal.RequestDispatcherImpl.include(RequestDispatcherImpl.java:298)
      4 frames
    9. weblogic.management.console
      __connectorcomponent._jspService
      1. weblogic.management.console.tags.IncludeTag.doDispatcherInclude(IncludeTag.java:122)
      2. weblogic.management.console.tags.IncludeTag.doStartTag(IncludeTag.java:83)
      3. weblogic.management.console.tags.SimpleFormTag.doStartTag(SimpleFormTag.java:129)
      4. weblogic.management.console.tags.ThreeColumnFormTag.doStartTag(ThreeColumnFormTag.java:44)
      5. weblogic.management.console.webapp._domain.__connectorcomponent._jspService(__connectorcomponent.java:267)
      5 frames
    10. weblogic.servlet.jsp
      JspBase.service
      1. weblogic.servlet.jsp.JspBase.service(JspBase.java:27)
      1 frame
    11. Atmosphere weblogic
      RequestDispatcherImpl.forward
      1. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
      2. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
      3. weblogic.servlet.internal.RequestDispatcherImpl.forward(RequestDispatcherImpl.java:232)
      3 frames
    12. weblogic.servlet.jsp
      PageContextImpl.forward
      1. weblogic.servlet.jsp.PageContextImpl.forward(PageContextImpl.java:120)
      1 frame
    13. weblogic.management.console
      ActionServlet.doGet
      1. weblogic.management.console.actions.ForwardAction.perform(ForwardAction.java:35)
      2. weblogic.management.console.actions.internal.ActionServlet.doAction(ActionServlet.java:171)
      3. weblogic.management.console.actions.internal.ActionServlet.doGet(ActionServlet.java:91)
      3 frames
    14. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
      2. javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
      2 frames
    15. Atmosphere weblogic
      ServletRequestImpl.execute
      1. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:262)
      2. weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:198)
      3. weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:2643)
      4. weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2401)
      4 frames
    16. weblogic.kernel
      ExecuteThread.run
      1. weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:139)
      2. weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
      2 frames