You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Seen in com.ibm.ws.rest.handler's RESTHandlerContainerImpl.java
While handling error thrown by handleRequest method, the catch statement uses getWriter to report the error message in the response. As seen in documentation when getOutputStream has been called on this response object prior to the exception, this use of getWriter will throw IllegalStateException.
Would occur whenever an implementation of RESTHandler.handleRequest calls response.getOutputStream prior to throwing a RESTHandlerJsonException.
Encountered error output:
00000049 id=00000000 com.ibm.ws.webcontainer.util.ApplicationErrorUtils E SRVE0777E: Exception thrown by application class 'com.ibm.ws.webcontainer.srt.SRTServletResponse.getWriter:807'
java.lang.IllegalStateException: SRVE0199E: OutputStream already obtained
at com.ibm.ws.webcontainer.srt.SRTServletResponse.getWriter(SRTServletResponse.java:807)
at com.ibm.ws.rest.handler.helper.ServletRESTResponseImpl.getWriter(ServletRESTResponseImpl.java:43)
at com.ibm.ws.rest.handler.internal.service.RESTHandlerContainerImpl.handleRequest(RESTHandlerContainerImpl.java:470)
at com.ibm.ws.jmx.connector.server.rest.JMXRESTProxyServlet.handleWithDelegate(JMXRESTProxyServlet.java:58)
at com.ibm.ws.jmx.connector.server.rest.JMXRESTProxyServlet.service(JMXRESTProxyServlet.java:43)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1230)
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: