Discussion:
ClientAbortException: java.net.SocketException: Broken pipe
Claudio Greuter
2008-01-31 08:26:33 UTC
Permalink
Hi Thomas

I use Magnolia in combination with MYSQL, not Derby or BDB. However I
had a similar exception in my logs once, caused by database disconnects.

I managed to get rid of them by specifying "Autoreconnect=true" in the
connection string. However I don't know if you could do the same on
Derby or BDB.

Is there some sort of timeout setting for the Derby or BDB? Does it only
happen with bigger files?

Hth
Claudio

-----Original Message-----
From: user-list-O8DnXSz/wDok+I/***@public.gmane.org [mailto:user-list-O8DnXSz/wDok+I/***@public.gmane.org]
Sent: Freitag, 25. Januar 2008 15:50
To: user-list-O8DnXSz/wDok+I/***@public.gmane.org
Subject: [magnolia-user] ClientAbortException: java.net.SocketException:
Broken pipe

Hi List

I have a rather puzzling issue that arises in multiple projects:
whenever I try to pull downloads from the dms I get a

ClientAbortException: java.net.SocketException: Broken pipe

and as a result a corrupted file in the download. It happens with
different files (zip/pdf/mov) in different projects.

Magnolia Version: 3.0.2 with BDB and 3.0.5 with derby on different
OS's (linux/OSX)



Can someone give me a clue how to avoid this?

TIA for any pointer!
Thomas



----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

----------------------------------------------------------------
Thomas Martin
2008-02-02 14:28:29 UTC
Permalink
Hello Claudio

Thanks for the input.

Unfortunately I'm not clear where I would configure the connection
string or timeout setting.

Any further explanation is highly appreciated.

File sizes range between 200k to 10MB.

Tx, Thomas
Post by Claudio Greuter
Hi Thomas
I use Magnolia in combination with MYSQL, not Derby or BDB. However I
had a similar exception in my logs once, caused by database
disconnects.
I managed to get rid of them by specifying "Autoreconnect=true" in the
connection string. However I don't know if you could do the same on
Derby or BDB.
Is there some sort of timeout setting for the Derby or BDB? Does it
only
happen with bigger files?
Hth
Claudio
-----Original Message-----
Sent: Freitag, 25. Januar 2008 15:50
Broken pipe
Hi List
whenever I try to pull downloads from the dms I get a
ClientAbortException: java.net.SocketException: Broken pipe
and as a result a corrupted file in the download. It happens with
different files (zip/pdf/mov) in different projects.
Magnolia Version: 3.0.2 with BDB and 3.0.5 with derby on different
OS's (linux/OSX)
Can someone give me a clue how to avoid this?
TIA for any pointer!
Thomas
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
Mit freundlichen Grüssen
--------------------------
Thomas Martin [tm]
Dipl. Interaktionsleiter FH
St. Johanns-Vorstadt 3
CH 4056 Basel
Switzerland
T +41 61 273 57 72
M +41 76 558 67 90
tm-***@public.gmane.org
http://www.thomas-martin.ch
skype: thomas-martin.ch
--------------------------------------




----------------------------------------------------------------
David Smith
2008-02-04 03:12:13 UTC
Permalink
Hi Thomas. Could you post the whole stack trace to your
ClientAbortException including root cause? This may not have anything
to do with the persistence layer, but with firewalls or bad network
equipment interrupting the transfer.

--David
Post by Thomas Martin
Hello Claudio
Thanks for the input.
Unfortunately I'm not clear where I would configure the connection
string or timeout setting.
Any further explanation is highly appreciated.
File sizes range between 200k to 10MB.
Tx, Thomas
Post by Claudio Greuter
Hi Thomas
I use Magnolia in combination with MYSQL, not Derby or BDB. However I
had a similar exception in my logs once, caused by database disconnects.
I managed to get rid of them by specifying "Autoreconnect=true" in the
connection string. However I don't know if you could do the same on
Derby or BDB.
Is there some sort of timeout setting for the Derby or BDB? Does it only
happen with bigger files?
Hth
Claudio
-----Original Message-----
Sent: Freitag, 25. Januar 2008 15:50
Broken pipe
Hi List
whenever I try to pull downloads from the dms I get a
ClientAbortException: java.net.SocketException: Broken pipe
and as a result a corrupted file in the download. It happens with
different files (zip/pdf/mov) in different projects.
Magnolia Version: 3.0.2 with BDB and 3.0.5 with derby on different
OS's (linux/OSX)
Can someone give me a clue how to avoid this?
TIA for any pointer!
Thomas
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
Mit freundlichen Grüssen
--------------------------
Thomas Martin [tm]
Dipl. Interaktionsleiter FH
St. Johanns-Vorstadt 3
CH 4056 Basel
Switzerland
T +41 61 273 57 72
M +41 76 558 67 90
http://www.thomas-martin.ch
skype: thomas-martin.ch
--------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
Claudio Greuter
2008-02-04 09:47:21 UTC
Permalink
Hello Thomas

For my Msql database this connection string is in the datasource definition of the tomcat configuration (Server.xml).

This is how I configured my datasource:

<Resource name="jdbc/DATASOURCENAME"
auth="Container"
type="javax.sql.DataSource"
maxActive="4"
maxIdle="2"
maxWait="5000"
username="MYSQLUSERNAME"
password="SECRET"
driverClassName="com.mysql.jdbc.Driver"
url="jdbc:mysql://localhost:3306/DATABASENAME?autoReconnect=true"
/>
<ResourceParams name="jdbc/DATASAOURCENAME">
<parameter>
<name>factory</name> <value>org.apache.commons.dbcp.BasicDataSourceFactory</value>
</parameter>
<parameter>
<name>validationQuery</name>
<value>select now();</value>
</parameter>
<parameter>
<name>removeAbandoned</name>
<value>true</value>
</parameter>
<parameter>
<name>removeAbandonedTimeout</name>
<value>300</value>
</parameter>
<parameter>
<name>logAbandoned</name>
<value>true</value>
</parameter>
</ResourceParams>

HTH
Claudio

PS: I am not sure if this will solve the problem with your derby and BDB databases. David already noted that it may be as well any other networking issue, since the broken pipe message you get only tells us that the connection has been lost.



-----Original Message-----
From: user-list-O8DnXSz/wDok+I/***@public.gmane.org [mailto:user-list-O8DnXSz/wDok+I/***@public.gmane.org]
Sent: Samstag, 2. Februar 2008 15:28
To: user-list-O8DnXSz/wDok+I/***@public.gmane.org
Subject: Re: [magnolia-user] ClientAbortException: java.net.SocketException: Broken pipe

Hello Claudio

Thanks for the input.

Unfortunately I'm not clear where I would configure the connection
string or timeout setting.

Any further explanation is highly appreciated.

File sizes range between 200k to 10MB.

Tx, Thomas
Post by Claudio Greuter
Hi Thomas
I use Magnolia in combination with MYSQL, not Derby or BDB. However I
had a similar exception in my logs once, caused by database
disconnects.
I managed to get rid of them by specifying "Autoreconnect=true" in the
connection string. However I don't know if you could do the same on
Derby or BDB.
Is there some sort of timeout setting for the Derby or BDB? Does it
only
happen with bigger files?
Hth
Claudio
-----Original Message-----
Sent: Freitag, 25. Januar 2008 15:50
Broken pipe
Hi List
whenever I try to pull downloads from the dms I get a
ClientAbortException: java.net.SocketException: Broken pipe
and as a result a corrupted file in the download. It happens with
different files (zip/pdf/mov) in different projects.
Magnolia Version: 3.0.2 with BDB and 3.0.5 with derby on different
OS's (linux/OSX)
Can someone give me a clue how to avoid this?
TIA for any pointer!
Thomas
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
Mit freundlichen Grüssen
--------------------------
Thomas Martin [tm]
Dipl. Interaktionsleiter FH
St. Johanns-Vorstadt 3
CH 4056 Basel
Switzerland
T +41 61 273 57 72
M +41 76 558 67 90
tm-***@public.gmane.org
http://www.thomas-martin.ch
skype: thomas-martin.ch
--------------------------------------




----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------

----------------------------------------------------------------
Thomas Martin
2008-02-06 10:26:14 UTC
Permalink
Hey David

Thanks for your reply - I pasted some more details of the exception
below.

If you can make anything of it I am more than happy to hear about it.

Cheers, Thomas

ERROR info.magnolia.cms.cache.simple.CacheImpl CacheImpl.java
(streamFromCache:238) 05.02.2008 06:18:18 Error while reading cache
for: '/dms/geschaeftsberichte/gb_04/gb_04.pdf'.
ClientAbortException: java.net.SocketException: Broken pipe
at org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes
(OutputBuffer.java:373)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer
(ByteChunk.java:398)
at org.apache.tomcat.util.buf.ByteChunk.append
(ByteChunk.java:318)
at org.apache.coyote.tomcat5.OutputBuffer.writeBytes
(OutputBuffer.java:401)
at org.apache.coyote.tomcat5.OutputBuffer.write
(OutputBuffer.java:388)
at org.apache.coyote.tomcat5.CoyoteOutputStream.write
(CoyoteOutputStream.java:76)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:997)
at info.magnolia.cms.cache.simple.CacheImpl.streamFromCache
(CacheImpl.java:233)
at
info.magnolia.cms.cache.DefaultCacheManager.doStreamFromCache
(DefaultCacheManager.java:102)
at info.magnolia.cms.cache.BaseCacheManager.streamFromCache
(BaseCacheManager.java:248)
at
info.magnolia.cms.cache.ManageableCacheManager.streamFromCache
(ManageableCacheManager.java:143)
at info.magnolia.cms.cache.CacheFilter.doFilter
(CacheFilter.java:68)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MgnlInterceptFilter.doFilter
(MgnlInterceptFilter.java:130)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MgnlContextFilter.doFilter
(MgnlContextFilter.java:45)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.security.SecurityFilter.doFilter
(SecurityFilter.java:101)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MultipartRequestFilter.doFilter
(MultipartRequestFilter.java:80)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MgnlVirtualUriFilter.doFilter
(MgnlVirtualUriFilter.java:83)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.ContentTypeFilter.doFilter
(ContentTypeFilter.java:66)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MagnoliaManagedFilter.doFilter
(MagnoliaManagedFilter.java:65)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal
(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service
(CoyoteAdapter.java:160)
at org.apache.jk.server.JkCoyoteHandler.invoke
(JkCoyoteHandler.java:300)
at org.apache.jk.common.HandlerRequest.invoke
(HandlerRequest.java:374)
at org.apache.jk.common.ChannelSocket.invoke
(ChannelSocket.java:743)
at org.apache.jk.common.ChannelSocket.processConnection
(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt
(ChannelSocket.java:866)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:613)

ERROR info.magnolia.module.dms.DMSDownloadServlet
DMSDownloadServlet.java(doGet:50) 05.02.2008 06:18:18 error during
download
ClientAbortException: java.net.SocketException: Broken pipe
at org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes
(OutputBuffer.java:373)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer
(ByteChunk.java:398)
at org.apache.tomcat.util.buf.ByteChunk.append
(ByteChunk.java:318)
at org.apache.coyote.tomcat5.OutputBuffer.writeBytes
(OutputBuffer.java:401)
at org.apache.coyote.tomcat5.OutputBuffer.write
(OutputBuffer.java:388)
at org.apache.coyote.tomcat5.CoyoteOutputStream.write
(CoyoteOutputStream.java:76)
at info.magnolia.cms.cache.MultiplexServletOutputStream.write
(MultiplexServletOutputStream.java:36)
at
info.magnolia.module.dms.DMSDownloadServlet.sendUnCompressed
(DMSDownloadServlet.java:78)
at
info.magnolia.module.dms.DMSDownloadServlet.handleResourceRequest
(DMSDownloadServlet.java:67)
at info.magnolia.module.dms.DMSDownloadServlet.process
(DMSDownloadServlet.java:141)
at info.magnolia.module.dms.DMSDownloadServlet.doGet
(DMSDownloadServlet.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:157)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:88)
at info.magnolia.cms.filters.MgnlCmsFilter.doFilter
(MgnlCmsFilter.java:106)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.cache.CacheFilter.doFilter
(CacheFilter.java:77)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MgnlInterceptFilter.doFilter
(MgnlInterceptFilter.java:130)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MgnlContextFilter.doFilter
(MgnlContextFilter.java:45)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.security.SecurityFilter.doFilter
(SecurityFilter.java:101)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MultipartRequestFilter.doFilter
(MultipartRequestFilter.java:80)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MgnlVirtualUriFilter.doFilter
(MgnlVirtualUriFilter.java:83)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.ContentTypeFilter.doFilter
(ContentTypeFilter.java:66)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MagnoliaManagedFilter.doFilter
(MagnoliaManagedFilter.java:65)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal
(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service
(CoyoteAdapter.java:160)
at org.apache.jk.server.JkCoyoteHandler.invoke
(JkCoyoteHandler.java:300)
at org.apache.jk.common.HandlerRequest.invoke
(HandlerRequest.java:374)
at org.apache.jk.common.ChannelSocket.invoke
(ChannelSocket.java:743)
at org.apache.jk.common.ChannelSocket.processConnection
(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt
(ChannelSocket.java:866)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:613)
Post by David Smith
Hi Thomas. Could you post the whole stack trace to your
ClientAbortException including root cause? This may not have
anything to do with the persistence layer, but with firewalls or
bad network equipment interrupting the transfer.
--David
Post by Thomas Martin
Hello Claudio
Thanks for the input.
Unfortunately I'm not clear where I would configure the connection
string or timeout setting.
Any further explanation is highly appreciated.
File sizes range between 200k to 10MB.
Tx, Thomas
Post by Claudio Greuter
Hi Thomas
I use Magnolia in combination with MYSQL, not Derby or BDB.
However I
had a similar exception in my logs once, caused by database
disconnects.
I managed to get rid of them by specifying "Autoreconnect=true"
in the
connection string. However I don't know if you could do the same on
Derby or BDB.
Is there some sort of timeout setting for the Derby or BDB? Does
it only
happen with bigger files?
Hth
Claudio
-----Original Message-----
Sent: Freitag, 25. Januar 2008 15:50
Broken pipe
Hi List
whenever I try to pull downloads from the dms I get a
ClientAbortException: java.net.SocketException: Broken pipe
and as a result a corrupted file in the download. It happens with
different files (zip/pdf/mov) in different projects.
Magnolia Version: 3.0.2 with BDB and 3.0.5 with derby on different
OS's (linux/OSX)
Can someone give me a clue how to avoid this?
TIA for any pointer!
Thomas
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
Mit freundlichen Grüssen
--------------------------
Thomas Martin [tm]
Dipl. Interaktionsleiter FH
St. Johanns-Vorstadt 3
CH 4056 Basel
Switzerland
T +41 61 273 57 72
M +41 76 558 67 90
http://www.thomas-martin.ch
skype: thomas-martin.ch
--------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
David Smith
2008-02-06 12:40:27 UTC
Permalink
Thanks for the stack trace. The error occurs on the connection between
tomcat and the client. Neither Jackrabbit or the BDB are at fault
here. Something between your tomcat server and your client browser is
disrupting the connection. I would investigate firewalls, network
switches, and ethernet cables as possible culprits. Does this happen
with one particular client machine or does everyone get this problem?
That'll tell you which end to look at.

--David
Post by Thomas Martin
Hey David
Thanks for your reply - I pasted some more details of the exception
below.
If you can make anything of it I am more than happy to hear about it.
Cheers, Thomas
ERROR info.magnolia.cms.cache.simple.CacheImpl CacheImpl.java
(streamFromCache:238) 05.02.2008 06:18:18 Error while reading cache
for: '/dms/geschaeftsberichte/gb_04/gb_04.pdf'.
ClientAbortException: java.net.SocketException: Broken pipe
at org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes
(OutputBuffer.java:373)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer
(ByteChunk.java:398)
at org.apache.tomcat.util.buf.ByteChunk.append
(ByteChunk.java:318)
at org.apache.coyote.tomcat5.OutputBuffer.writeBytes
(OutputBuffer.java:401)
at org.apache.coyote.tomcat5.OutputBuffer.write
(OutputBuffer.java:388)
at org.apache.coyote.tomcat5.CoyoteOutputStream.write
(CoyoteOutputStream.java:76)
at org.apache.commons.io.IOUtils.copy(IOUtils.java:997)
at info.magnolia.cms.cache.simple.CacheImpl.streamFromCache
(CacheImpl.java:233)
at
info.magnolia.cms.cache.DefaultCacheManager.doStreamFromCache
(DefaultCacheManager.java:102)
at info.magnolia.cms.cache.BaseCacheManager.streamFromCache
(BaseCacheManager.java:248)
at
info.magnolia.cms.cache.ManageableCacheManager.streamFromCache
(ManageableCacheManager.java:143)
at info.magnolia.cms.cache.CacheFilter.doFilter
(CacheFilter.java:68)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MgnlInterceptFilter.doFilter
(MgnlInterceptFilter.java:130)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MgnlContextFilter.doFilter
(MgnlContextFilter.java:45)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.security.SecurityFilter.doFilter
(SecurityFilter.java:101)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MultipartRequestFilter.doFilter
(MultipartRequestFilter.java:80)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MgnlVirtualUriFilter.doFilter
(MgnlVirtualUriFilter.java:83)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.ContentTypeFilter.doFilter
(ContentTypeFilter.java:66)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MagnoliaManagedFilter.doFilter
(MagnoliaManagedFilter.java:65)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal
(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service
(CoyoteAdapter.java:160)
at org.apache.jk.server.JkCoyoteHandler.invoke
(JkCoyoteHandler.java:300)
at org.apache.jk.common.HandlerRequest.invoke
(HandlerRequest.java:374)
at org.apache.jk.common.ChannelSocket.invoke
(ChannelSocket.java:743)
at org.apache.jk.common.ChannelSocket.processConnection
(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt
(ChannelSocket.java:866)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:613)
ERROR info.magnolia.module.dms.DMSDownloadServlet
DMSDownloadServlet.java(doGet:50) 05.02.2008 06:18:18 error during
download
ClientAbortException: java.net.SocketException: Broken pipe
at org.apache.coyote.tomcat5.OutputBuffer.realWriteBytes
(OutputBuffer.java:373)
at org.apache.tomcat.util.buf.ByteChunk.flushBuffer
(ByteChunk.java:398)
at org.apache.tomcat.util.buf.ByteChunk.append
(ByteChunk.java:318)
at org.apache.coyote.tomcat5.OutputBuffer.writeBytes
(OutputBuffer.java:401)
at org.apache.coyote.tomcat5.OutputBuffer.write
(OutputBuffer.java:388)
at org.apache.coyote.tomcat5.CoyoteOutputStream.write
(CoyoteOutputStream.java:76)
at info.magnolia.cms.cache.MultiplexServletOutputStream.write
(MultiplexServletOutputStream.java:36)
at
info.magnolia.module.dms.DMSDownloadServlet.sendUnCompressed
(DMSDownloadServlet.java:78)
at
info.magnolia.module.dms.DMSDownloadServlet.handleResourceRequest
(DMSDownloadServlet.java:67)
at info.magnolia.module.dms.DMSDownloadServlet.process
(DMSDownloadServlet.java:141)
at info.magnolia.module.dms.DMSDownloadServlet.doGet
(DMSDownloadServlet.java:47)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:157)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:88)
at info.magnolia.cms.filters.MgnlCmsFilter.doFilter
(MgnlCmsFilter.java:106)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.cache.CacheFilter.doFilter
(CacheFilter.java:77)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MgnlInterceptFilter.doFilter
(MgnlInterceptFilter.java:130)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MgnlContextFilter.doFilter
(MgnlContextFilter.java:45)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.security.SecurityFilter.doFilter
(SecurityFilter.java:101)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MultipartRequestFilter.doFilter
(MultipartRequestFilter.java:80)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MgnlVirtualUriFilter.doFilter
(MgnlVirtualUriFilter.java:83)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.ContentTypeFilter.doFilter
(ContentTypeFilter.java:66)
at info.magnolia.cms.filters.MagnoliaManagedFilter
$CustomFilterChain.doFilter(MagnoliaManagedFilter.java:92)
at info.magnolia.cms.filters.MagnoliaManagedFilter.doFilter
(MagnoliaManagedFilter.java:65)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter
(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal
(StandardContextValve.java:198)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextValve.java:152)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardHostValve.invoke
(StandardHostValve.java:137)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.valves.ErrorReportValve.invoke
(ErrorReportValve.java:118)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:102)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineValve.java:109)
at org.apache.catalina.core.StandardValveContext.invokeNext
(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke
(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke
(ContainerBase.java:929)
at org.apache.coyote.tomcat5.CoyoteAdapter.service
(CoyoteAdapter.java:160)
at org.apache.jk.server.JkCoyoteHandler.invoke
(JkCoyoteHandler.java:300)
at org.apache.jk.common.HandlerRequest.invoke
(HandlerRequest.java:374)
at org.apache.jk.common.ChannelSocket.invoke
(ChannelSocket.java:743)
at org.apache.jk.common.ChannelSocket.processConnection
(ChannelSocket.java:675)
at org.apache.jk.common.SocketConnection.runIt
(ChannelSocket.java:866)
at org.apache.tomcat.util.threads.ThreadPool
$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Thread.java:613)
Post by David Smith
Hi Thomas. Could you post the whole stack trace to your
ClientAbortException including root cause? This may not have
anything to do with the persistence layer, but with firewalls or bad
network equipment interrupting the transfer.
--David
Post by Thomas Martin
Hello Claudio
Thanks for the input.
Unfortunately I'm not clear where I would configure the connection
string or timeout setting.
Any further explanation is highly appreciated.
File sizes range between 200k to 10MB.
Tx, Thomas
Post by Claudio Greuter
Hi Thomas
I use Magnolia in combination with MYSQL, not Derby or BDB. However I
had a similar exception in my logs once, caused by database
disconnects.
I managed to get rid of them by specifying "Autoreconnect=true" in
the
connection string. However I don't know if you could do the same on
Derby or BDB.
Is there some sort of timeout setting for the Derby or BDB? Does
it only
happen with bigger files?
Hth
Claudio
-----Original Message-----
Sent: Freitag, 25. Januar 2008 15:50
Broken pipe
Hi List
whenever I try to pull downloads from the dms I get a
ClientAbortException: java.net.SocketException: Broken pipe
and as a result a corrupted file in the download. It happens with
different files (zip/pdf/mov) in different projects.
Magnolia Version: 3.0.2 with BDB and 3.0.5 with derby on different
OS's (linux/OSX)
Can someone give me a clue how to avoid this?
TIA for any pointer!
Thomas
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
Mit freundlichen Grüssen
--------------------------
Thomas Martin [tm]
Dipl. Interaktionsleiter FH
St. Johanns-Vorstadt 3
CH 4056 Basel
Switzerland
T +41 61 273 57 72
M +41 76 558 67 90
http://www.thomas-martin.ch
skype: thomas-martin.ch
--------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------
for list details see
http://documentation.magnolia.info/docs/en/editor/stayupdated.html
----------------------------------------------------------------
----------------------------------------------------------------

Loading...