1 Reply Latest reply on Mar 17, 2014 5:59 AM by nivas.meriga

    While checking the logs in jboss server founded an error,how to slove this issue?

    malli

      ERROR [org.apache.catalina.core.ContainerBase] Servlet.service() for servlet jsp threw exception

      java.lang.IllegalStateException: getOutputStream() has already been called for this response

      at org.apache.catalina.connector.Response.getWriter(Response.java:604)

              at org.apache.catalina.connector.ResponseFacade.getWriter(ResponseFacade.java:198)

              at org.apache.jasper.runtime.JspWriterImpl.initOut(JspWriterImpl.java:125)

              at org.apache.jasper.runtime.JspWriterImpl.flushBuffer(JspWriterImpl.java:118)

              at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:326)

              at org.apache.jasper.runtime.JspWriterImpl.write(JspWriterImpl.java:342)

              at org.apache.jasper.runtime.JspWriterImpl.print(JspWriterImpl.java:468)

              at org.apache.taglibs.standard.tag.common.core.ImportSupport.doEndTag(ImportSupport.java:161)

              at org.apache.jsp._404_jsp._jspx_meth_c_005fimport_005f0(_404_jsp.java:1179)

              at org.apache.jsp._404_jsp._jspService(_404_jsp.java:506)

              at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:387)

              at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)

              at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

              at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

              at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

              at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:687)

              at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:471)

              at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:403)

              at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)

              at com.vwr.intl.page.MelPage.redirectOrForward(MelPage.java:275)

              at com.vwr.intl.page.MelPage.produceContent(MelPage.java:258)

              at com.vwr.intl.servlet.MelPageServlet.produceContent(MelPageServlet.java:421)

              at com.vwr.intl.servlet.MelPageServlet.doGet(MelPageServlet.java:349)

              at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)

        • 1. Re: While checking the logs in jboss server founded an error,how to slove this issue?
          nivas.meriga

          Hi Malli,

           

          This will happen when user tries to download some file from the application, and immediately user click on another link without completing the download of file.

          Because still that particular request will try to write the response back to the client(browser).

          But the user navigate to another page so the request is changed.  Old request is not available.

           

          So we cannot do anything on this. If you want to avoid this problem, just catch it and eat the exception.

          But it is not a good practice to eat up the exception in programming.