[Bug 457] New: Shark ExceptionInInitializerError when using low -XX:CompileThreshold -Xbatch and -jar
bugzilla-daemon at icedtea.classpath.org
bugzilla-daemon at icedtea.classpath.org
Mon Mar 22 03:24:57 PDT 2010
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=457
Summary: Shark ExceptionInInitializerError when using low -
XX:CompileThreshold -Xbatch and -jar
Product: IcedTea
Version: 6-hg
Platform: all
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Shark
AssignedTo: unassigned at icedtea.classpath.org
ReportedBy: xerxes at zafena.se
openjdk hits an exception when launcing jar files in combination with a low
-XX:CompileThreshold and -Xbatch
CompileThresholds of 1 to 17 have been found to trigger this bug repeatedly
CompileThresholds above 18 dont trigger this bug.
the bug fires after jitting around 1400-1500 methods during startup before any
swing/awt windows have been displayed.
testcase:
$ wget
http://trac-hg.assembla.com/jgears/attachment/wiki/WikiStart/jgears.jar?format=raw
-O jgears.jar
$ /sd/20mar-shark-340m/bin/java -XX:CompileThreshold=1 -Xbatch -jar jgears.jar
Exception in thread "main" java.lang.ExceptionInInitializerError
at sun.java2d.SurfaceData.<clinit>(SurfaceData.java:399)
at
sun.awt.X11GraphicsEnvironment$1.run(X11GraphicsEnvironment.java:195)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:142)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at
java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:82)
at sun.awt.X11.XToolkit.<clinit>(XToolkit.java:111)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:186)
at java.awt.Toolkit$2.run(Toolkit.java:849)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:841)
at java.awt.Toolkit.getEventQueue(Toolkit.java:1694)
at java.awt.EventQueue.invokeLater(EventQueue.java:957)
at javax.swing.SwingUtilities.invokeLater(SwingUtilities.java:1292)
at JGears2.main(JGears2.java:293)
Caused by: java.security.PrivilegedActionException:
java.security.PrivilegedActionException: java.io.FileNotFoundException:
/media/disk/20mar-shark-340m/jre/classes
at java.security.AccessController.doPrivileged(Native Method)
at
sun.java2d.pipe.RenderingEngine.getInstance(RenderingEngine.java:115)
at sun.java2d.pipe.LoopPipe.<clinit>(LoopPipe.java:51)
... 17 more
Caused by: java.security.PrivilegedActionException:
java.io.FileNotFoundException: /media/disk/20mar-shark-340m/jre/classes
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:337)
at sun.misc.URLClassPath.getLoader(URLClassPath.java:314)
at sun.misc.URLClassPath.access$000(URLClassPath.java:76)
at sun.misc.URLClassPath$2.next(URLClassPath.java:258)
at sun.misc.URLClassPath$2.hasMoreElements(URLClassPath.java:269)
at java.lang.ClassLoader$2.hasMoreElements(ClassLoader.java:1129)
at sun.misc.CompoundEnumeration.next(CompoundEnumeration.java:45)
at
sun.misc.CompoundEnumeration.hasMoreElements(CompoundEnumeration.java:54)
at java.util.ServiceLoader$LazyIterator.hasNext(ServiceLoader.java:346)
at java.util.ServiceLoader$1.hasNext(ServiceLoader.java:432)
at sun.java2d.pipe.RenderingEngine$1.run(RenderingEngine.java:127)
... 20 more
Caused by: java.io.FileNotFoundException:
/media/disk/20mar-shark-340m/jre/classes
at sun.misc.URLClassPath$JarLoader.getJarFile(URLClassPath.java:658)
at sun.misc.URLClassPath$JarLoader.access$600(URLClassPath.java:555)
at sun.misc.URLClassPath$JarLoader$1.run(URLClassPath.java:622)
at java.security.AccessController.doPrivileged(Native Method)
at sun.misc.URLClassPath$JarLoader.ensureOpen(URLClassPath.java:614)
at sun.misc.URLClassPath$JarLoader.<init>(URLClassPath.java:598)
at sun.misc.URLClassPath$3.run(URLClassPath.java:348)
... 32 more
java version "1.6.0_18"
OpenJDK Runtime Environment (IcedTea6 1.8pre+r20627a528aa1) (Ubuntu build
1.6.0_18-b18)
OpenJDK Shark VM (build 14.0-b16, mixed mode)
tested to be reproduceable using Shark running on ARM and ia32
--
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the distro-pkg-dev
mailing list