users@glassfish.java.net

Re: After some days working the server throws: java.io.IOException: Broken pipe

From: Jeanfrancois Arcand <Jeanfrancois.Arcand_at_Sun.COM>
Date: Tue, 22 Jan 2008 15:38:05 -0500

Hi,

glassfish_at_javadesktop.org wrote:
> Hello,
>
> I don't know why but, after a few days os use I'm getting this error:
>
> [#|2008-01-22T17:23:20.323-0200|WARNING|sun-appserver9.1|javax.enterprise.resource.webcontainer.jsf.lifecycle|_ThreadID=21;_ThreadName=httpSSLWorkerThread-8080-0;_RequestID=7808210c-4916-46e0-be1d-572a69ecc3d9;|executePhase(RENDER_RESPONSE 6,com.sun.faces.context.FacesContextImpl_at_139f564) threw exception
> javax.faces.FacesException
> at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:135)
> at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
> at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
> at org.apache.catalina.core.ApplicationFilterChain.servletService(ApplicationFilterChain.java:411)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:317)
> at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:198)
> at com.sun.webui.jsf.util.UploadFilter.doFilter(UploadFilter.java:267)
> at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)
>
> (...)
> [b]
> Caused by: ClientAbortException: java.io.IOException: Broken pipe[/b]
> at org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:412)
> at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:417)
> at org.apache.coyote.tomcat5.OutputBuffer.doFlush(OutputBuffer.java:359)
>
> (...)
> [b]Caused by: java.io.IOException: Broken pipe[/b]
> at sun.nio.ch.FileDispatcher.write0(Native Method)
> at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:29)
> at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:104)
> at sun.nio.ch.IOUtil.write(IOUtil.java:75)
> at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:334)
> at com.sun.enterprise.web.connector.grizzly.OutputWriter.flushChannel(OutputWriter.java:94)
> at com.sun.enterprise.web.connector.grizzly.OutputWriter.flushChannel(OutputWriter.java:67)
> at com.sun.enterprise.web.connector.grizzly.SocketChannelOutputBuffer.flushChannel(SocketChannelOutputBuffer.java:167)
> at com.sun.enterprise.web.connector.grizzly.SocketChannelOutputBuffer.flushBuffer(SocketChannelOutputBuffer.java:202)
> at com.sun.enterprise.web.connector.grizzly.SocketChannelOutputBuffer.flush(SocketChannelOutputBuffer.java:178)
> at com.sun.enterprise.web.connector.grizzly.SocketChannelOutputBuffer.realWriteBytes(SocketChannelOutputBuffer.java:145)
> at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:851)
> at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:149)
> at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:626)
> at org.apache.coyote.Response.doWrite(Response.java:599)
> at org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes(OutputBuffer.java:407)
>
>
> After this my application stops and the usage of CPU by java process goes and still 100% all the time, until I shutdown.

Can you try the latest GlassFish release? The exception you are seeing
means the client closed the connection before the server was able to
write the response. I don't think this is the problem, but we never know
  :-) By any chance, are you able to reproduce the problem with a test case?

Thanks

-- Jeanfrancois


>
> What this it means? What can I do? Where can I look to find out what's happen?
>
> Thanks in advice,
> [Message sent by forum member 'fmcypriano' (fmcypriano)]
>
> http://forums.java.net/jive/thread.jspa?messageID=255196
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>