harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vasily Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-2615) [drlvm][test] Stress test for massive class loading from bootclasspath
Date Tue, 12 Dec 2006 18:17:22 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2615?page=comments#action_12457828 ] 
            
Vasily Zakharov commented on HARMONY-2615:
------------------------------------------

On RI (jdk1.5.0_07 Win32), this test completes successfuly, after loading 13740 classes with
two errors:

ERROR at class com.sun.management.OperatingSystem:
java.lang.UnsatisfiedLinkError: initialize
	at com.sun.management.OperatingSystem.initialize(Native Method)
	at com.sun.management.OperatingSystem.<clinit>(OperatingSystem.java:45)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:164)
	at CrashTestBCP.load(CrashTestBCP.java:101)
	at CrashTestBCP.main(CrashTestBCP.java:116)

ERROR at class sun.jdbc.odbc.JdbcOdbcPlatform:
java.lang.UnsatisfiedLinkError: getSQLLENSize
	at sun.jdbc.odbc.JdbcOdbc.getSQLLENSize(Native Method)
	at sun.jdbc.odbc.JdbcOdbcPlatform.<clinit>(JdbcOdbcPlatform.java:82)
	at java.lang.Class.forName0(Native Method)
	at java.lang.Class.forName(Class.java:164)
	at CrashTestBCP.load(CrashTestBCP.java:101)
	at CrashTestBCP.main(CrashTestBCP.java:116)

On DRLVM the test currently terminates (see HARMONY-2650) after loading 9965 classes with
the following errors:

ERROR at class com.ibm.icu4jni.converters.ByteToCharConverterICU:
java.lang.ClassNotFoundException: com.ibm.icu4jni.converters.ByteToCharConverterICU
	at java.net.URLClassLoader.findClass(URLClassLoader.java:625)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader$SystemClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at CrashTestBCP.load(CrashTestBCP.java:98)
	at CrashTestBCP.main(CrashTestBCP.java:115)

ERROR at class com.ibm.icu4jni.converters.ByteToCharGB18030:
java.lang.ClassNotFoundException: com.ibm.icu4jni.converters.ByteToCharGB18030
	at java.net.URLClassLoader.findClass(URLClassLoader.java:625)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader$SystemClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at CrashTestBCP.load(CrashTestBCP.java:98)
	at CrashTestBCP.main(CrashTestBCP.java:115)

ERROR at class com.ibm.icu4jni.converters.CharToByteConverterICU:
java.lang.ClassNotFoundException: com.ibm.icu4jni.converters.CharToByteConverterICU
	at java.net.URLClassLoader.findClass(URLClassLoader.java:625)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader$SystemClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at CrashTestBCP.load(CrashTestBCP.java:98)
	at CrashTestBCP.main(CrashTestBCP.java:115)

ERROR at class com.ibm.icu4jni.converters.CharToByteGB18030:
java.lang.ClassNotFoundException: com.ibm.icu4jni.converters.CharToByteGB18030
	at java.net.URLClassLoader.findClass(URLClassLoader.java:625)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader$SystemClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at CrashTestBCP.load(CrashTestBCP.java:98)
	at CrashTestBCP.main(CrashTestBCP.java:115)

ERROR at class java.util.concurrent.ScheduledThreadPoolExecutor:
java.lang.UnsatisfiedLinkError: java/util/concurrent/atomic/AtomicLong.VMSupportsCS8()Z
	at java.util.concurrent.atomic.AtomicLong.<clinit>(AtomicLong.java:27)
	at java.util.concurrent.ScheduledThreadPoolExecutor.<clinit>(ScheduledThreadPoolExecutor.java:52)
	at java.lang.VMClassRegistry.initializeClass(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at CrashTestBCP.load(CrashTestBCP.java:98)
	at CrashTestBCP.main(CrashTestBCP.java:115)

ERROR at class java.util.concurrent.atomic.AtomicLong:
java.lang.NoClassDefFoundError: java/util/concurrent/atomic/AtomicLong
	at java.lang.VMClassRegistry.initializeClass(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at CrashTestBCP.load(CrashTestBCP.java:98)
	at CrashTestBCP.main(CrashTestBCP.java:115)

ERROR at class org.apache.harmony.awt.gl.opengl.OGLBlitter:
java.lang.UnsatisfiedLinkError: Can not find the library: oglwrapper.dll
	at java.lang.Runtime.loadLibrary0(Unknown Source)
	at java.lang.System.loadLibrary(Unknown Source)
	at org.apache.harmony.awt.gl.opengl.GL.<init>(GL.java:41)
	at org.apache.harmony.awt.gl.opengl.GL.getInstance(GL.java:35)
	at org.apache.harmony.awt.gl.opengl.OGLBlitter.<clinit>(OGLBlitter.java)
	at java.lang.VMClassRegistry.initializeClass(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at CrashTestBCP.load(CrashTestBCP.java:98)
	at CrashTestBCP.main(CrashTestBCP.java:115)

ERROR at class org.apache.harmony.awt.gl.opengl.OGLGraphics2D:
java.lang.UnsatisfiedLinkError: Can not find the library: oglwrapper.dll
	at java.lang.Runtime.loadLibrary0(Unknown Source)
	at java.lang.System.loadLibrary(Unknown Source)
	at org.apache.harmony.awt.gl.opengl.GL.<init>(GL.java:41)
	at org.apache.harmony.awt.gl.opengl.GL.getInstance(GL.java:35)
	at org.apache.harmony.awt.gl.opengl.OGLGraphics2D.<clinit>(OGLGraphics2D.java:107)
	at java.lang.VMClassRegistry.initializeClass(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at CrashTestBCP.load(CrashTestBCP.java:98)
	at CrashTestBCP.main(CrashTestBCP.java:115)

ERROR at class org.apache.yoko.rmi.impl.PortableRemoteObjectExtImpl:
java.lang.Error: java.lang.NoSuchFieldException: classes
	at org.apache.yoko.rmi.util.ClassLoaderLocal$1.run(ClassLoaderLocal.java:118)
	at java.security.AccessController.doPrivilegedImpl(Unknown Source)
	at java.security.AccessController.doPrivileged(Unknown Source)
	at org.apache.yoko.rmi.util.ClassLoaderLocal.<clinit>(ClassLoaderLocal.java:110)
	at org.apache.yoko.rmi.impl.PortableRemoteObjectExtImpl.<clinit>(PortableRemoteObjectExtImpl.java:28)
	at java.lang.VMClassRegistry.initializeClass(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at CrashTestBCP.load(CrashTestBCP.java:98)
	at CrashTestBCP.main(CrashTestBCP.java:115)
Caused by: java.lang.NoSuchFieldException: classes
	at java.lang.Class.getDeclaredField(Unknown Source)
	at org.apache.yoko.rmi.util.ClassLoaderLocal$1.run(ClassLoaderLocal.java:113)
	at java.security.AccessController.doPrivilegedImpl(Unknown Source)
	... 8 more

ERROR at class org.apache.yoko.rmi.util.ClassLoaderLocal:
java.lang.NoClassDefFoundError: org/apache/yoko/rmi/util/ClassLoaderLocal
	at java.lang.VMClassRegistry.initializeClass(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at CrashTestBCP.load(CrashTestBCP.java:98)
	at CrashTestBCP.main(CrashTestBCP.java:115)

java.lang.ClassNotFoundException: null.Factory
	at java.lang.Class.forName(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at org.mmtk.vm.VM.<clinit>(Unknown Source)
	at org.mmtk.utility.Constants.<clinit>(Unknown Source)
	at org.mmtk.plan.Plan.<clinit>(Unknown Source)
	at java.lang.VMClassRegistry.initializeClass(Native Method)
	at java.lang.Class.forName(Unknown Source)
	at java.lang.Class.forName(Unknown Source)
	at CrashTestBCP.load(CrashTestBCP.java:98)
	at CrashTestBCP.main(CrashTestBCP.java:115)

Probably some of these errors should be reported as separate issues.


> [drlvm][test] Stress test for massive class loading from bootclasspath
> ----------------------------------------------------------------------
>
>                 Key: HARMONY-2615
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2615
>             Project: Harmony
>          Issue Type: Test
>          Components: DRLVM
>            Reporter: Vasily Zakharov
>         Attachments: CrashTestBCP.java
>
>
> This is a stress test which loads all the classes it finds in VM bootclasspath using
simple Class.forName() call.
>  
> Not all of the classes are supposed to be loaded correctly this way, so the test ignores
any class loading errors - its main purpose is to make sure VM survives loading thousands
of classes without a crash. Also, investigating why particular classes fail to load may provide
clues to some other bugs in VM or classlib.
> I recommend including this test to some Harmony test suite that is run regularly, as
it may detect many VM issues that may occur in future.
> Currently this test crashes both on Windows/IA32 and Linux/IA32 in a very strange way
- at some point, unhandled exception occurs inside the catch(Throwable) block:
> 9879: org.mmtk.plan.Plan
> java.lang.ClassNotFoundException: null.Factory
>         at java.lang.Class.forName(Unknown Source)
>         at java.lang.Class.forName(Unknown Source)
>         at org.mmtk.vm.VM.<clinit>(Unknown Source)
>         at org.mmtk.utility.Constants.<clinit>(Unknown Source)
>         at org.mmtk.plan.Plan.<clinit>(Unknown Source)
>         at java.lang.VMClassRegistry.initializeClass(Native Method)
>         at java.lang.Class.forName(Unknown Source)
>         at java.lang.Class.forName(Unknown Source)
>         at CrashTestBCP.load(CrashTestBCP.java:75)
>         at CrashTestBCP.main(CrashTestBCP.java:98)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message