Open greatmazinger opened 9 years ago
Ran into this today as well. It's actually the case that com.sun.image.codec.jpeg.TruncatedFileException is part of the Oracle JDK and not OpenJDK (I am using OpenJDK 7). I solved the problem by just installing the Oracle JDK for my benchmarking purposes. For other purposes you can find that specific class in $ORACLE_JDK_HOME/lib/rt.jar.
This is a known problem. com.sun.image.codec.jpeg is not part of the Java standard as it is proprietary.
This seems to be an error for OpenJDK 8 in general. There is a missing class in OpenJDK 8. (Not sure what it is right now.)
The error message:
===== DaCapo 9.12 batik starting ===== About to transcode 3 SVG file(s)
Converting mapWaadt.svg to /data/rveroy/pulsrc/./scratch/mapWaadt.png ... ... success Converting mapSpain.svg to /data/rveroy/pulsrc/./scratch/mapSpain.png ... ... success Converting sydney.svg to /data/rveroy/pulsrc/./scratch/sydney.png ... java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:483) at org.dacapo.harness.Batik.iterate(Batik.java:63) at org.dacapo.harness.Benchmark.run(Benchmark.java:166) at org.dacapo.harness.TestHarness.runBenchmark(TestHarness.java:218) at org.dacapo.harness.TestHarness.main(TestHarness.java:171) at Harness.main(Harness.java:17) Caused by: java.lang.NoClassDefFoundError: com/sun/image/codec/jpeg/TruncatedFileException at org.apache.batik.ext.awt.image.codec.jpeg.JPEGRegistryEntry.handleStream(JPEGRegistryEntry.java:87) at org.apache.batik.ext.awt.image.spi.ImageTagRegistry.readURL(ImageTagRegistry.java:189) at org.apache.batik.bridge.SVGImageElementBridge.createImageGraphicsNode(SVGImageElementBridge.java:257) at org.apache.batik.bridge.SVGImageElementBridge.buildImageGraphicsNode(SVGImageElementBridge.java:176) at org.apache.batik.bridge.SVGImageElementBridge.createGraphicsNode(SVGImageElementBridge.java:118) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:206) at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:164) at org.apache.batik.bridge.GVTBuilder.buildGraphicsNode(GVTBuilder.java:212) at org.apache.batik.bridge.GVTBuilder.buildComposite(GVTBuilder.java:164) at org.apache.batik.bridge.GVTBuilder.build(GVTBuilder.java:78) at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:214) at org.apache.batik.transcoder.image.ImageTranscoder.transcode(ImageTranscoder.java:92) at org.apache.batik.transcoder.XMLAbstractTranscoder.transcode(XMLAbstractTranscoder.java:142) at org.apache.batik.transcoder.SVGAbstractTranscoder.transcode(SVGAbstractTranscoder.java:159) at org.apache.batik.apps.rasterizer.SVGConverter.transcode(SVGConverter.java:992) at org.apache.batik.apps.rasterizer.SVGConverter.execute(SVGConverter.java:715) at org.apache.batik.apps.rasterizer.Main.execute(Main.java:938) ... 9 more Caused by: java.lang.ClassNotFoundException: com.sun.image.codec.jpeg.TruncatedFileException at java.net.URLClassLoader$1.run(URLClassLoader.java:372) at java.net.URLClassLoader$1.run(URLClassLoader.java:361) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:360) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at org.dacapo.harness.DacapoClassLoader.loadClass(DacapoClassLoader.java:127) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ... 26 more