cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brecht Schoolmeesters <brecht.schoolmeest...@zappware.com>
Subject ArrayIndexOutOfBoundsException in CachingOutputStream
Date Thu, 15 May 2014 15:07:08 GMT
Hello all,

recently our cocoon server is failing with the following stacktrace:
Caused by: java.lang.ArrayIndexOutOfBoundsException
at java.lang.System.arraycopy(Native Method)
at
org.apache.cocoon.caching.CachingOutputStream.write(CachingOutputStream.java:77)
at java.io.BufferedOutputStream.write(BufferedOutputStream.java:105)
at javax.imageio.stream.MemoryCache.writeToStream(MemoryCache.java:154)
at
javax.imageio.stream.MemoryCacheImageOutputStream.flushBefore(MemoryCacheImageOutputStream.java:175)
at
com.sun.imageio.plugins.png.IDATOutputStream.finishChunk(PNGImageWriter.java:178)
at
com.sun.imageio.plugins.png.IDATOutputStream.finish(PNGImageWriter.java:236)
at
com.sun.imageio.plugins.png.PNGImageWriter.write_IDAT(PNGImageWriter.java:933)
at
com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1146)
at javax.imageio.ImageWriter.write(ImageWriter.java:598)
at com.zappware.ZL2Block.ImageScaler.write(ImageScaler.java:244)
at com.zappware.ZL2Block.ImageScaler.processStream(ImageScaler.java:197)
at
org.apache.cocoon.reading.ResourceReader.generate(ResourceReader.java:386)
at sun.reflect.GeneratedMethodAccessor232.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.cocoon.core.container.spring.avalon.PoolableProxyHandler.invoke(PoolableProxyHandler.java:79)
at $Proxy163.generate(Unknown Source)
at
com.zappware.ZL2Block.ExpiresCachingPipeline.processReader(ExpiresCachingPipeline.java:474)

I found this related mail thread online, but it seems that it was never
solved:
http://blog.gmane.org/gmane.text.xml.cocoon.user/month=20021101/page=21

The exception occurs for every image we try to generate. We are using
Cocoon 2.2.
When we reboot the server, the issue seems to be resolved, but a few
minutes later, it re-appears.
It only appears on our production server. We have developed our own image
scaler and it works when we run it locally on our laptops.

Any help is greatly appreciated.
Best regards,
Brecht

Mime
View raw message