PDA

View Full Version : Error loading JPEG


vangun
01-16-2006, 08:37 AM
I get this error when I try to load any JPEG in Openlaszlo 3.1. I was able to load .jpg images earlier. I am not using the SOLO deployment.

ERROR: null : Exception stack: java.lang.NoClassDefFoundError at org.openlaszlo.iv.flash.api.image.JPEGBitmap.proce ssImage(JPEGBitmap.java:166) at org.openlaszlo.iv.flash.api.image.JPEGBitmap.write (JPEGBitmap.java:247) at org.openlaszlo.iv.flash.api.FlashObject.generate(F lashObject.java:138)

Has anybody else seen this error before?

objectid
01-16-2006, 11:20 PM
I know that there was an issue with progressive scan JPG. Try a non progressive scan JPG to be sure.

vangun
01-20-2006, 01:17 PM
I see this bug filed for Linux:
http://www.openlaszlo.org/jira/browse/LPP-183

I am getting the same error on Windows, but I am still not sure about the test case. Progressive JPEGs seem to be a problem but not always. Is there some other cause also for this error?

qman
05-21-2006, 06:13 PM
I had the same error when i tried to load a jpeg image from a wms service, my app is deployed (proxied) on a tomcat5.5 server together with other j2ee apps. it worked when first deployed. however, whenever tomcat is restarted, it stops to work with the fowllowing error:

«string(2996)#0| null : Exception stack:
java.lang.ExceptionInInitializerError at
org.openlaszlo.iv.flash.api.image.JPEGBitmap.proce ssImage(JPEGBitmap.java:166)
at
org.openlaszlo.iv.flash.api.image.JPEGBitmap.write (JPEGBitmap.java:247)
at
org.openlaszlo.iv.flash.api.FlashObject.generate(F lashObject.java:138)
at
org.openlaszlo.iv.flash.api.FlashObject.generate(F lashObject.java:133)
at
org.openlaszlo.iv.flash.api.FlashObject.generate(F lashObject.java:133)
at org.openlaszlo.iv.flash.api.Frame.generate(Frame.j ava:325) at
org.openlaszlo.iv.flash.api.Timeline.generate(Time line.java:236) at
org.openlaszlo.iv.flash.api.Timeline.generate(Time line.java:221) at
org.openlaszlo.iv.flash.api.Script.generate(Script .java:207) at
org.openlaszlo.iv.flash.api.FlashFile.generate(Fla shFile.java:615) at
org.openlaszlo.media.Transcoder.convertImageToSWF( Transcoder.java:255)
at org.openlaszlo.media.Transcoder.transcode(Transcod er.java:105) at
org.openlaszlo.data.MediaConverter.convertToSWF(Me diaConverter.java:60)
at...»
.....

the only workaround i have found is to shutdown the tomcat server, totally redeploy the app, and restart tomcat. this is incomvinient and i am not sure it there any other solutions to this.

vangun
05-21-2006, 07:32 PM
In my case, progressive JPGs were the cause of the error. Changing them to non-progressive JPGs made all the difference. But if you are using Flash 8, then progressive JPGs should not be a problem.

qman
05-21-2006, 09:53 PM
Originally posted by vangun
In my case, progressive JPGs were the cause of the error. Changing them to non-progressive JPGs made all the difference. But if you are using Flash 8, then progressive JPGs should not be a problem.

that is right, i just tested it with png, and the problem has gone.

Thanks