- From: Guido García Bernardo <ggarciab@itdeusto.com>
- Date: Tue, 08 Apr 2008 18:03:36 +0200
- To: "public-mobileok-checker@w3.org" <public-mobileok-checker@w3.org>
- Message-ID: <47FB9758.1070906@itdeusto.com>
Hi, I've found a website that causes mobileOk to crash. The website is http://www.latavolacalda.co.uk/ (it is the last word in web design) and mobileOk throws the exception below. It could be caused by a transparent GIF image with a wrong format. Capturing the IndexOutOfBoundsException in the HTTPImageResource.checkTransparency method is a solution, despite I don't like to catch RuntimeExceptions, so any other idea is welcomed. Exception in thread "main" org.w3c.mwi.mobileok.basic.TestException: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException at org.w3c.mwi.mobileok.basic.Preprocessor.extractResourcesAsynchronously(Preprocessor.java:253) at org.w3c.mwi.mobileok.basic.Preprocessor.preprocess(Preprocessor.java:124) at org.w3c.mwi.mobileok.basic.Tester.getPreprocessorResults(Tester.java:90) at org.w3c.mwi.mobileok.basic.Tester.main(Tester.java:202) Caused by: java.util.concurrent.ExecutionException: java.lang.reflect.InvocationTargetException at java.util.concurrent.FutureTask$Sync.innerGet(Unknown Source) at java.util.concurrent.FutureTask.get(Unknown Source) at org.w3c.mwi.mobileok.basic.Preprocessor.extractResourcesAsynchronously(Preprocessor.java:248) ... 3 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) at java.lang.reflect.Constructor.newInstance(Unknown Source) at org.w3c.mwi.mobileok.basic.Preprocessor$2.call(Preprocessor.java:233) at org.w3c.mwi.mobileok.basic.Preprocessor$2.call(Preprocessor.java:1) at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) at java.util.concurrent.FutureTask.run(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang.Thread.run(Unknown Source) *Caused by: java.lang.IndexOutOfBoundsException: off < 0 || len < 0 || off+len > b.length || off+len < 0! at javax.imageio.stream.MemoryCacheImageInputStream.read(Unknown Source) at com.sun.imageio.plugins.gif.GIFImageReader.getCode(Unknown Source) at com.sun.imageio.plugins.gif.GIFImageReader.read(Unknown Source) at javax.imageio.ImageIO.read(Unknown Source) at javax.imageio.ImageIO.read(Unknown Source) at org.w3c.mwi.mobileok.basic.HTTPImageResource.checkTransparency(HTTPImageResource.java:149)* at org.w3c.mwi.mobileok.basic.HTTPImageResource.checkGIFValidity(HTTPImageResource.java:139) at org.w3c.mwi.mobileok.basic.HTTPImageResource.<init>(HTTPImageResource.java:53) ... 11 more Thank you ! guido.
Received on Tuesday, 8 April 2008 16:04:59 UTC