Foros de discusión

Incorrect scanline stride: 4 cannot deploy

Marc Howard, modificado hace 9 años.

Incorrect scanline stride: 4 cannot deploy

New Member Mensajes: 12 Fecha de incorporación: 22/05/14 Mensajes recientes
I am trying to deploy my custom theme however I keep getting a raster format exception:

15:30:45,608 ERROR [stderr] (ServerService Thread Pool -- 147) java.awt.image.RasterFormatException: Incorrect scanline stride: 4
15:30:45,609 ERROR [stderr] (ServerService Thread Pool -- 147) 	at sun.awt.image.ByteComponentRaster.verify(ByteComponentRaster.java:894)
15:30:45,609 ERROR [stderr] (ServerService Thread Pool -- 147) 	at sun.awt.image.ByteComponentRaster.<init>(ByteComponentRaster.java:201)
15:30:45,609 ERROR [stderr] (ServerService Thread Pool -- 147) 	at sun.awt.image.ByteInterleavedRaster.<init>(ByteInterleavedRaster.java:191)
15:30:45,610 ERROR [stderr] (ServerService Thread Pool -- 147) 	at sun.awt.image.ByteInterleavedRaster.<init>(ByteInterleavedRaster.java:113)
15:30:45,610 ERROR [stderr] (ServerService Thread Pool -- 147) 	at java.awt.image.Raster.createWritableRaster(Raster.java:980)
15:30:45,610 ERROR [stderr] (ServerService Thread Pool -- 147) 	at javax.media.jai.RecyclingTileFactory.createTile(RecyclingTileFactory.java:392)
15:30:45,610 ERROR [stderr] (ServerService Thread Pool -- 147) 	at javax.media.jai.PlanarImage.createWritableRaster(PlanarImage.java:1982)
15:30:45,610 ERROR [stderr] (ServerService Thread Pool -- 147) 	at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:771)
15:30:45,611 ERROR [stderr] (ServerService Thread Pool -- 147) 	at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
15:30:45,611 ERROR [stderr] (ServerService Thread Pool -- 147) 	at javax.media.jai.OpImage.getTile(OpImage.java:1129)
15:30:45,611 ERROR [stderr] (ServerService Thread Pool -- 147) 	at javax.media.jai.PointOpImage.computeTile(PointOpImage.java:962)
15:30:45,611 ERROR [stderr] (ServerService Thread Pool -- 147) 	at com.sun.media.jai.util.SunTileScheduler.scheduleTile(SunTileScheduler.java:904)
15:30:45,611 ERROR [stderr] (ServerService Thread Pool -- 147) 	at javax.media.jai.OpImage.getTile(OpImage.java:1129)
15:30:45,612 ERROR [stderr] (ServerService Thread Pool -- 147) 	at javax.media.jai.PlanarImage.copyData(PlanarImage.java:2343)
15:30:45,612 ERROR [stderr] (ServerService Thread Pool -- 147) 	at javax.media.jai.RenderedOp.copyData(RenderedOp.java:2299)
15:30:45,612 ERROR [stderr] (ServerService Thread Pool -- 147) 	at javax.media.jai.RenderedImageAdapter.copyData(RenderedImageAdapter.java:163)
15:30:45,612 ERROR [stderr] (ServerService Thread Pool -- 147) 	at javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2525)
15:30:45,612 ERROR [stderr] (ServerService Thread Pool -- 147) 	at javax.media.jai.PlanarImage.getAsBufferedImage(PlanarImage.java:2546)
15:30:45,613 ERROR [stderr] (ServerService Thread Pool -- 147) 	at com.liferay.portal.image.ImageToolImpl.getBufferedImage(ImageToolImpl.java:152)
15:30:45,613 ERROR [stderr] (ServerService Thread Pool -- 147) 	at com.liferay.portal.image.ImageToolImpl.encodeGIF(ImageToolImpl.java:85)
15:30:45,613 ERROR [stderr] (ServerService Thread Pool -- 147) 	at sun.reflect.GeneratedMethodAccessor236.invoke(Unknown Source)
15:30:45,613 ERROR [stderr] (ServerService Thread Pool -- 147) 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
15:30:45,613 ERROR [stderr] (ServerService Thread Pool -- 147) 	at java.lang.reflect.Method.invoke(Method.java:606)
15:30:45,614 ERROR [stderr] (ServerService Thread Pool -- 147) 	at com.liferay.portal.security.lang.DoPrivilegedHandler.doInvoke(DoPrivilegedHandler.java:88)
15:30:45,614 ERROR [stderr] (ServerService Thread Pool -- 147) 	at com.liferay.portal.security.lang.DoPrivilegedHandler.invoke(DoPrivilegedHandler.java:56)
15:30:45,614 ERROR [stderr] (ServerService Thread Pool -- 147) 	at com.sun.proxy.$Proxy149.encodeGIF(Unknown Source)
</init></init></init>

How can i tell which image file is causing this exception?
thumbnail
James Falkner, modificado hace 9 años.

RE: Incorrect scanline stride: 4 cannot deploy

Liferay Legend Mensajes: 1399 Fecha de incorporación: 17/09/10 Mensajes recientes
Marc Howard:
I am trying to deploy my custom theme however I keep getting a raster format exception:

15:30:45,608 ERROR [stderr] (ServerService Thread Pool -- 147) java.awt.image.RasterFormatException: Incorrect scanline stride: 4
...
...

How can i tell which image file is causing this exception?


Unless you set a breakpoint with a debugger, you can't know which file is causing it - but this is a known JDK issue which I believe was fixed in later releases, so first I would try to update your JDK you are using. You can also look for images that have a specific colorspace encoding (see this report for details) and re-encode them or delete them.
Marc Howard, modificado hace 9 años.

RE: Incorrect scanline stride: 4 cannot deploy

New Member Mensajes: 12 Fecha de incorporación: 22/05/14 Mensajes recientes
I have updated the JDK to version 7u72, the exception has changed slightly to incorrect pixel stride: 4