Specific User is not able to edit Confluence Page : Caused by: java.net.SocketException: Broken pipe
Asked by Jijo John [DevOps Consultant]:

2015-02-20 11:32:31,328 ERROR \[http-80-22\] \[ContainerBase.\[Standalone\].\[localhost\].\[/\]\] log Unhandled exception occurred whilst decorating page  
-- url: /plugins/servlet/imgFilter.png \| userName: nagaraj.mandya \| referer: <http://confluence.gdev.com/display/CROS/Crossover+-+Business+rules>  
java.lang.RuntimeException: ClientAbortException: [java.net](http://java.net).SocketException: Broken pipe  
at com.atlassian.confluence.image.effects.ImageFilterServlet$1.doInTransaction(ImageFilterServlet.java:226)  
at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:25)  
at com.atlassian.sal.spring.component.SpringHostContextAccessor$1.doInTransaction(SpringHostContextAccessor.java:88)  
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:128)  
at com.atlassian.sal.spring.component.SpringHostContextAccessor.doInTransaction(SpringHostContextAccessor.java:82)  
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
at java.lang.reflect.Method.invoke(Method.java:597)  
at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129)  
at $Proxy183.doInTransaction(Unknown Source)  
at sun.reflect.GeneratedMethodAccessor102.invoke(Unknown Source)  
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)  
at java.lang.reflect.Method.invoke(Method.java:597)  
at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:154)  
at $Proxy183.doInTransaction(Unknown Source)  

...........

at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)  
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:588)  
at [org.apache.tomcat.util.net](http://org.apache.tomcat.util.net).JIoEndpoint$Worker.run(JIoEndpoint.java:489)  
at java.lang.Thread.run(Thread.java:662)  
Caused by: ClientAbortException: [java.net](http://java.net).SocketException: Broken pipe  
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:358)  
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:352)  
at org.apache.catalina.connector.OutputBuffer.writeBytes(OutputBuffer.java:381)  
at org.apache.catalina.connector.OutputBuffer.write(OutputBuffer.java:370)  
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:89)  
at org.apache.catalina.connector.CoyoteOutputStream.write(CoyoteOutputStream.java:83)  
at com.opensymphony.module.sitemesh.filter.RoutableServletOutputStream.write(RoutableServletOutputStream.java:114)  
at com.atlassian.confluence.image.effects.ImageFilterServlet$1.doInTransaction(ImageFilterServlet.java:216)  
... 185 more  
Caused by: [java.net](http://java.net).SocketException: Broken pipe  
at [java.net](http://java.net).SocketOutputStream.socketWrite0(Native Method)  
at [java.net](http://java.net).SocketOutputStream.socketWrite(SocketOutputStream.java:92)  
at [java.net](http://java.net).SocketOutputStream.write(SocketOutputStream.java:136)  
at org.apache.coyote.http11.InternalOutputBuffer.realWriteBytes(InternalOutputBuffer.java:760)  
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer(ByteChunk.java:432)  
at org.apache.tomcat.util.buf.ByteChunk.append(ByteChunk.java:347)  
at org.apache.coyote.http11.InternalOutputBuffer$OutputStreamOutputBuffer.doWrite(InternalOutputBuffer.java:784)  
at org.apache.coyote.http11.filters.ChunkedOutputFilter.doWrite(ChunkedOutputFilter.java:126)  
at org.apache.coyote.http11.InternalOutputBuffer.doWrite(InternalOutputBuffer.java:593)  
at org.apache.coyote.Response.doWrite(Response.java:560)  
at org.apache.catalina.connector.OutputBuffer.realWriteBytes(OutputBuffer.java:353)  
... 192 more  
2015-02-20 11:32:31,685 ERROR \[http-80-22\] \[\[Standalone\].\[localhost\].\[/\].\[servlet-module-container-servlet\]\] log Servlet.service() for servlet servlet-module-container-servlet threw exception  


Answers:
author: Alejandro Conde Carrillo
body: Hello Jijo.

I believe you could be facing this known issue: <https://jira.atlassian.com/browse/CONF-29346>. It has already been fixed in Confluence 5.2.1 and later.


author: Jijo John [DevOps Consultant]
body: Hello,

Thanks Much for both of your comments, I actually asked user to try from another computer

Let you know the findings on that.

Regards

Jijo


author: Mallmann
body: Hey Jijo,

Just in addition to Sash's comment: since you've mentioned that this only happens to a specific user, can you ask this user to try to edit the page using another workstation, preferably in another network? This would isolate the issue so we would know whether this is a network problem indeed.

Let us know what you can find there.

Eduardo


author: Alex Medved _ConfiForms_
body: ClientAbortException clearly shows that the connection is aborted by the user, probably due to network instability

Actually, such exceptions are not rare, you can get it very easily - just do not wait until the content get's loaded and close the browser

A bit of discussion on SOF - <http://stackoverflow.com/questions/839314/clientabortexception-java-net-socketexception-connection-reset-by-peer-socket>