java - getOutputStream() has already been called for this response error -


exception :

org.apache.jasper.jasperexception: java.lang.illegalstateexception: getoutputstream() has been called response org.apache.jasper.servlet.jspservletwrapper.handlejspexception(jspservletwrapper.java:584) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:466) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:389) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:333) javax.servlet.http.httpservlet.service(httpservlet.java:722) org.netbeans.modules.web.monitor.server.monitorfilter.dofilter(monitorfilter.java:393) 

root cause :

java.lang.illegalstateexception: getoutputstream() has been called response org.apache.catalina.connector.response.getwriter(response.java:627) org.apache.catalina.connector.responsefacade.getwriter(responsefacade.java:215) javax.servlet.servletresponsewrapper.getwriter(servletresponsewrapper.java:105) org.apache.jasper.runtime.jspwriterimpl.initout(jspwriterimpl.java:125) org.apache.jasper.runtime.jspwriterimpl.flushbuffer(jspwriterimpl.java:118) org.apache.jasper.runtime.pagecontextimpl.release(pagecontextimpl.java:190) org.apache.jasper.runtime.jspfactoryimpl.internalreleasepagecontext(jspfactoryimpl.java:123) org.apache.jasper.runtime.jspfactoryimpl.releasepagecontext(jspfactoryimpl.java:80) org.apache.jsp.downloadresume_jsp._jspservice(downloadresume_jsp.java:91) org.apache.jasper.runtime.httpjspbase.service(httpjspbase.java:70) javax.servlet.http.httpservlet.service(httpservlet.java:722) org.apache.jasper.servlet.jspservletwrapper.service(jspservletwrapper.java:433) org.apache.jasper.servlet.jspservlet.servicejspfile(jspservlet.java:389) org.apache.jasper.servlet.jspservlet.service(jspservlet.java:333) javax.servlet.http.httpservlet.service(httpservlet.java:722) org.netbeans.modules.web.monitor.server.monitorfilter.dofilter(monitorfilter.java:393) 

i think got error when working jasper reports struts. happen after creating report still returned value(null) action class(servlet/controller). issue is, report set httpresponse , generated , returned response action class again. commented return part action class , worked. hope solve issue. thanks.


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -