I am using Sun's Java Advanced Imaging (JAI) and Java Advanced Imaging-
Image I/O (JAI-IMAGEIO) on the server side of my application for
reading and processing TIFF's and other images which are then scaled,
converted to PNG, and sent to the browser.

Today I downloaded and installed GWT 2.0.0.  In attempting to run the
sample Showcase, I receive javax.imageio.IIOException's on the JPG
images, like jimmy.jpg.  This happens only if the $JAVA_HOME I'm using
has JAI and JAI-IMAGEIO installed.  Without JAI, the JPGs open fine.
(Note:  Yesterday with GWT 2.0.0 RC2 I was able to modify the JPGs by
converting them to/from PNG but that trick is not working today).

The stack trace strikes me as screwy, since the images start with the
proper 0xff 0xd8 0xff 0xe0:

00:00:22.020 [ERROR] Unable to read image resource
javax.imageio.IIOException: Not a JPEG file: starts with 0xff 0xd9
    at com.sun.imageio.plugins.jpeg.JPEGImageReader.readImageHeader
(Native Method)
    at com.sun.imageio.plugins.jpeg.JPEGImageReader.readNativeHeader
(JPEGImageReader.java:517)
    at com.sun.imageio.plugins.jpeg.JPEGImageReader.checkTablesOnly
(JPEGImageReader.java:272)
    at com.sun.imageio.plugins.jpeg.JPEGImageReader.getNumImages
(JPEGImageReader.java:324)
    at com.google.gwt.resources.rg.ImageBundleBuilder.addImage
(ImageBundleBuilder.java:685)
    at com.google.gwt.resources.rg.ImageBundleBuilder.assimilate
(ImageBundleBuilder.java:623)
    at com.google.gwt.resources.rg.ImageResourceGenerator.prepare
(ImageResourceGenerator.java:234)
    at
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare
(AbstractClientBundleGenerator.java:556)
    at
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.initAndPrepare
(AbstractClientBundleGenerator.java:582)
    at
com.google.gwt.resources.rebind.context.AbstractClientBundleGenerator.generate
(AbstractClientBundleGenerator.java:204)
    at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator
(StandardGeneratorContext.java:418)
    at com.google.gwt.dev.cfg.RuleGenerateWith.realize
(RuleGenerateWith.java:38)
    at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind
(StandardRebindOracle.java:108)
    at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind
(StandardRebindOracle.java:54)
    at com.google.gwt.dev.shell.StandardRebindOracle.rebind
(StandardRebindOracle.java:154)
    at com.google.gwt.dev.shell.ShellModuleSpaceHost.rebind
(ShellModuleSpaceHost.java:119)
    at com.google.gwt.dev.shell.ModuleSpace.rebind(ModuleSpace.java:
531)
    at com.google.gwt.dev.shell.ModuleSpace.rebindAndCreate
(ModuleSpace.java:414)
    at com.google.gwt.dev.shell.GWTBridgeImpl.create
(GWTBridgeImpl.java:39)
    at com.google.gwt.core.client.GWT.create(GWT.java:98)
    at com.google.gwt.sample.showcase.client.Showcase.<clinit>
(Showcase.java:151)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at com.google.gwt.dev.shell.ModuleSpace.loadClassFromSourceName
(ModuleSpace.java:580)
    at com.google.gwt.dev.shell.ModuleSpace.onLoad(ModuleSpace.java:
348)
    at com.google.gwt.dev.shell.OophmSessionHandler.loadModule
(OophmSessionHandler.java:185)
    at com.google.gwt.dev.shell.BrowserChannelServer.processConnection
(BrowserChannelServer.java:380)
    at com.google.gwt.dev.shell.BrowserChannelServer.run
(BrowserChannelServer.java:222)
    at java.lang.Thread.run(Thread.java:619)

--

You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.


Reply via email to