"java.lang.IllegalStateException: getOutputStream() has already been called for this response" errors seen in the Spectrum OneClick log file
search cancel

"java.lang.IllegalStateException: getOutputStream() has already been called for this response" errors seen in the Spectrum OneClick log file

book

Article ID: 218563

calendar_today

Updated On:

Products

CA Spectrum

Issue/Introduction

The following error is seen in the OneClick $SPECROOT/tomcat/logs/stdout.log (Windows) or catalina.out (Linux) file:

Mai 03, 2021 4:17:12 AM org.apache.catalina.core.StandardWrapperValve invoke
SEVERE: Servlet.service() for servlet [jsp] in context with path [/spectrum] threw exception [java.lang.IllegalStateException: getOutputStream() has already been called for this response] with root cause
java.lang.IllegalStateException: getOutputStream() has already been called for this response
 at org.apache.catalina.connector.Response.getWriter(Response.java:583)
 at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:227)
 at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:115)
 at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:108)
 at org.apache.jasper.runtime.PageContextImpl.release(PageContextImpl.java:179)
 at org.apache.jasper.runtime.JspFactoryImpl.internalReleasePageContext(JspFactoryImpl.java:119)
 at org.apache.jasper.runtime.JspFactoryImpl.releasePageContext(JspFactoryImpl.java:74)
 at org.apache.jsp.spectrumpngproxy_jsp._jspService(spectrumpngproxy_jsp.java:227)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:71)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
 at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:474)
 at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
 at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
 at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
 at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
 at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
 at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
 at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
 at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
 at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
 at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
 at java.lang.Thread.run(Thread.java:748)

Environment

Release : Any

Component : Spectrum OneClick

Resolution

Please do the following:

1. Have all users log out of OneClick

2. Stop tomcat on the OneClick system

3. Delete the $SPECROOT/tomcat/work directory and all of the files located in this directory

4. Look for and delete any files named spectrumpngproxy.jsp and/or spectrumpngproxy_https.jsp in the $SPECROOT/tomcat directory structure

5. Start tomcat on the OneClick system

6. Check the $SPECROOT/tomcat/logs/stdout.log (Windows) or catalina.out (Linux) file for the error

If the error still appears, please open a case with Spectrum Support and provide the $SPECROOT/tomcat/logs/stdout.log (Windows) or catalina.out (Linux) file for review.