Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-157

getOutputStream() has already been called

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 0.9.840
    • Fix Version/s: 1.0 B1
    • Labels:
      None
    • Environment:
      Windows 2000 server
    • keywords:
      getOutputStream IllegalStateException
    • Similar issues:

      Description

      Randomly when filling in a form using a template w/object and saving it, the resulting page is created, but there is no context and no object. The following exception is in the log:

      ClientAbortException: java.net.SocketException: Connection reset by peer: socket write error
      at org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java(Compiled Code))
      at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java(Compiled Code))
      at org.apache.coyote.tomcat5.OutputBuffer.writeBytes(OutputBuffer.java(Compiled Code))
      at org.apache.coyote.tomcat5.OutputBuffer.write(OutputBuffer.java(Inlined Compiled Code))
      at org.apache.coyote.tomcat5.CoyoteOutputStream.write(CoyoteOutputStream.java(Inlined Compiled Code))
      at org.apache.coyote.tomcat5.CoyoteOutputStream.write(CoyoteOutputStream.java(Compiled Code))
      at com.xpn.xwiki.XWikiService.renderSkin(XWikiService.java(Compiled Code))
      at com.xpn.xwiki.XWikiService.renderSkin(XWikiService.java(Compiled Code))
      at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java(Compiled Code))
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java(Inlined Compiled Code))
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java(Compiled Code))
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java(Inlined Compiled Code))
      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java(Compiled Code))
      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled Code))
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled Code))
      at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java(Compiled Code))
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled Code))
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled Code))
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java(Compiled Code))
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled Code))
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java(Compiled Code))
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java(Compiled Code))
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled Code))
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java(Compiled Code))
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled Code))
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Compiled Code))
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled Code))
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java(Compiled Code))
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled Code))
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled Code))
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java(Compiled Code))
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java(Compiled Code))
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java(Compiled Code))
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java(Compiled Code))
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      at java.lang.Thread.run(Thread.java:568)
      java.lang.IllegalStateException: getOutputStream() has already been called for this response
      at org.apache.coyote.tomcat5.CoyoteResponse.getWriter(CoyoteResponse.java(Compiled Code))
      at org.apache.coyote.tomcat5.CoyoteResponseFacade.getWriter(CoyoteResponseFacade.java(Compiled Code))
      at com.xpn.xwiki.web.XWikiServletResponse.getWriter(XWikiServletResponse.java(Compiled Code))
      at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java(Compiled Code))
      at com.xpn.xwiki.web.Utils.parseTemplate(Utils.java(Inlined Compiled Code))
      at com.xpn.xwiki.web.ViewEditAction.execute(ViewEditAction.java(Compiled Code))
      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java(Inlined Compiled Code))
      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java(Compiled Code))
      at org.apache.struts.action.ActionServlet.process(ActionServlet.java(Inlined Compiled Code))
      at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java(Compiled Code))
      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
      at javax.servlet.http.HttpServlet.service(HttpServlet.java(Compiled Code))
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled Code))
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled Code))
      at com.xpn.xwiki.web.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java(Compiled Code))
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java(Compiled Code))
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java(Compiled Code))
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java(Compiled Code))
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled Code))
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
      at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java(Compiled Code))
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java(Compiled Code))
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled Code))
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java(Compiled Code))
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled Code))
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java(Compiled Code))
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled Code))
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java(Compiled Code))
      at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java(Compiled Code))
      at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java(Compiled Code))
      at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java(Compiled Code))
      at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java(Compiled Code))
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java(Compiled Code))
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java(Compiled Code))
      at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java(Compiled Code))
      at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
      at java.lang.Thread.run(Thread.java:568)

        Attachments

          Activity

            People

            • Assignee:
              jeremi jeremi Joslin
              Reporter:
              lauzon Shawn Lauzon
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: