PDA

View Full Version : auto-flush is disabled exception thrown by resin


amit.kolhe
06-18-2010, 05:43 AM
Hi All,

We are getting below error across the application but nature of error is not consistent sometime its come on pages.

Please find below full stack of exception.

Version USE: resin-2.1.17 + jdk1.4.2_05.

500 Servlet Exception

java.io.IOException: auto-flush is disabled.
at com.caucho.server.http.ResponseStream.write(Respon seStream.java:266)
at com.caucho.vfs.WriteStream.write(WriteStream.java: 288)
at com.caucho.server.http.QServletOutputStream.write( QServletOutputStream.java:80)
at com.caucho.vfs.VfsStream.write(VfsStream.java:216)
at com.caucho.vfs.i18n.UTF8Writer.write(UTF8Writer.ja va:134)
at com.caucho.vfs.WriteStream.print(WriteStream.java: 447)
at com.caucho.xml.XmlPrinter.print(XmlPrinter.java:15 52)
at com.caucho.xml.XmlPrinter.print(XmlPrinter.java:15 30)
at com.caucho.xml.XmlPrinter.print(XmlPrinter.java:15 20)
at com.caucho.xml.OtherEntities.printText(OtherEntiti es.java:118)
at com.caucho.xml.XmlPrinter.finishAttributes(XmlPrin ter.java:998)
at com.caucho.xml.XmlPrinter.completeOpenTag(XmlPrint er.java:1429)
at com.caucho.xml.XmlPrinter.startElement(XmlPrinter. java:712)
at com.caucho.xsl.XslWriter.startElement(XslWriter.ja va:1044)
at com.caucho.xsl.XslWriter.pushElement(XslWriter.jav a:443)
at _xsl._._WEB_22dINF._xsl._company_0gujarati__xsl._x sl_template_(_company_0gujarati__xsl.java:4167)
at _xsl._._WEB_22dINF._xsl._company_0gujarati__xsl.ap plyNode(_company_0gujarati__xsl.java:8860)
at com.caucho.xsl.StylesheetImpl.transform(Stylesheet Impl.java:205)
at com.caucho.xsl.TransformerImpl.transform(Transform erImpl.java:423)
at com.caucho.xsl.TransformerImpl.transform(Transform erImpl.java:352)
at com.caucho.jsp.XslFilter.service(XslFilter.java:23 8)
at com.caucho.server.http.FilterChainServlet.doFilter (FilterChainServlet.java:96)
at com.caucho.server.http.QNamedDispatcher.forward(QN amedDispatcher.java:157)
at com.caucho.server.http.QNamedDispatcher.chain(QNam edDispatcher.java:86)
at com.caucho.server.http.FilterChainBase.handleChain (FilterChainBase.java:93)
at com.caucho.server.http.FilterChainPage.doFilter(Fi lterChainPage.java:185)
at com.caucho.server.http.Invocation.service(Invocati on.java:315)
at com.caucho.server.http.CacheInvocation.service(Cac heInvocation.java:135)
at com.caucho.server.http.QRequestDispatcher.forward( QRequestDispatcher.java:223)
at com.caucho.server.http.QRequestDispatcher.forward( QRequestDispatcher.java:103)
at com.caucho.server.http.QRequestDispatcher.forward( QRequestDispatcher.java:80)
at com.caucho.jsp.QPageContext.forward(QPageContext.j ava:581)
at _jsp._companies_0gujarati__jsp._jspService(/money/jsp/companies_gujarati.jsp:87)
at com.caucho.jsp.JavaPage.service(JavaPage.java:75)
at com.caucho.jsp.Page.subservice(Page.java:506)
at com.caucho.server.http.FilterChainPage.doFilter(Fi lterChainPage.java:182)
at com.caucho.server.http.Invocation.service(Invocati on.java:315)
at com.caucho.server.http.CacheInvocation.service(Cac heInvocation.java:135)
at com.caucho.server.http.RunnerRequest.handleRequest (RunnerRequest.java:346)
at com.caucho.server.http.RunnerRequest.handleConnect ion(RunnerRequest.java:274)
at com.caucho.server.TcpConnection.run(TcpConnection. java:139)
at java.lang.Thread.run(Thread.java:534)

Thanks and Regards,
Amit

ferg
06-21-2010, 05:29 PM
In general, your JSP should not set the autoFlush="false" attribute. There's almost never any reason to set that value.

Resin is throwing that exception because your JSP is telling it to throw an exception if the buffered data is larger than Resin's page buffer.