#224750 - com.sun.jdi.ClassNotLoadedException: Class java.lang.Class not loaded

  • From: Martin Entlicher < >
  • To:
  • Subject: #224750 - com.sun.jdi.ClassNotLoadedException: Class java.lang.Class not loaded
  • Date: Mon, 14 Jan 2013 13:46:21 +0100

Bug: http://netbeans.org/bugzilla/show_bug.cgi?id=224750

Description: In order to upload agent classes for Visual Debugger, we need to use some class loader. Originally, ClassLoader.getSystemClassLoader() was used, but this did not work for applications, which change their system class loader. This is why we tried to find out the JVM boot class loader via iterating through class loader parents.
The problem here is, that the top most root of the class loaders is not able to load some JVM classes, for some reason. This is why this fix chooses the second top one, the AppClassLoader.

Impact assessment: events logging feature of Visual Debugger is unusable.

Risk assessment: most of the Visual Debugger functionality depends on it's agent classes.

The fix was successfully tested by Jiri Kovalsky and reviewed by Jaroslav Havlin.

Fix: http://hg.netbeans.org/main-golden/rev/47c8af772632

Thanks for the review,
Martin.


#224750 - com.sun.jdi.ClassNotLoadedException: Class java.lang.Class not loaded

Martin Entlicher 01/14/2013

Project Features

About this Project

www was started in November 2009, is owned by jpirek, and has 21 members.
By use of this website, you agree to the NetBeans Policies and Terms of Use (revision 20140418.2d69abc). © 2013, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo
 
 
Close
loading
Please Confirm
Close