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-2650) [drlvm][exception] massive boot class loading causes uncaught ClassNotFoundException
Date Tue, 12 Dec 2006 17:44:23 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-2650?page=comments#action_12457816 ] 
            
Vasily Zakharov commented on HARMONY-2650:
------------------------------------------

Interesting is that RI demonstrates the same strange behaviour on this class.

Looks like the problem is in org.mmtk.plan.Plan class, and massive class loading is not a
factor at all. However, the VM reaction is very strange and sure requires investigation.

I'm attaching a simple test case that demonstrates that.

public class Test {
    public static void main(String[] args) {
        try {
            System.out.println("STARTING");
            Class.forName("org.mmtk.plan.Plan");
        } catch (Throwable e) {
            System.out.println("CATCHED: ");
            e.printStackTrace(System.out);
        }
        System.out.println("TERMINATING");
    }
}

Output on RI, without mmtk-20061012.jar in classpath (valid behaviour):

C:\> java Test
STARTING
CATCHED:
java.lang.ClassNotFoundException: org.mmtk.plan.Plan
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at Test.main(Test.java:5)
TERMINATING

Output on RI, with mmtk-20061012.jar in classpath (strange behaviour):

C:\> java -cp .;mmtk-20061012.jar Test
STARTING
java.lang.ClassNotFoundException: null.Factory
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        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.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at Test.main(Test.java:5)

Output on DRLVM (strange behaviour):

C:\> java Test
STARTING
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 Test.main(Test.java:5)


> [drlvm][exception] massive boot class loading causes uncaught ClassNotFoundException
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2650
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2650
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>            Reporter: Vladimir Beliaev
>            Priority: Minor
>         Attachments: Test.java
>
>
> I've double checked the results of running test described in http://issues.apache.org/jira/browse/HARMONY-2615.

> Unhandled ClassNotFoundException happens while this test running in spite of try { ...
} catch (Throwable e) {} wrapping. 
> I've created this JIRA to let working on this current issue regardless whether the test
is integrated to any suite or not.
> Please take the test from http://issues.apache.org/jira/browse/HARMONY-2615.
> Part of test output (which shows issue) for Windows/IA32 and Linux/IA32 is:
> .... 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) 
> Thanks
> Vladimir

-- 
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