United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6569136 ClassNotFoundException while loading classes from rt.jar
JDK-6569136 : ClassNotFoundException while loading classes from rt.jar

Details
Type:
Bug
Submit Date:
2007-06-13
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2007-08-03
Component:
deploy
OS:
windows
Sub-Component:
deployment_toolkit
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u4
Fixed Versions:
6u4 (b01)

Related Reports

Sub Tasks

Description
I am getting the following ClassNotFoundException while loading all the classes in rt.jar using Kernel JRE.  (rt.jar used is from 1.6.0 release )

CNFE: "sun.misc.resources.Messages"
CNFE: "sun.misc.resources.Messages_de"
CNFE: "sun.misc.resources.Messages_es"
CNFE: "sun.misc.resources.Messages_fr"
CNFE: "sun.misc.resources.Messages_it"
CNFE: "sun.misc.resources.Messages_ja"
CNFE: "sun.misc.resources.Messages_ko"
CNFE: "sun.misc.resources.Messages_sv"
CNFE: "sun.misc.resources.Messages_zh_CN"
CNFE: "sun.misc.resources.Messages_zh_HK"
CNFE: "sun.misc.resources.Messages_zh_TW"
Installing Optional Packages failing with Kernel JRE.

How to reproduce:
Try loading the following URL
http://sqindia.india.sun.com/disk13/deployment/_Raghu/raghu_baseline/StdExtn/windows/Standalone_deployment_plugin_2006_07_26_17_34_53/Admin.Windows_XP.x86/StdExtn/testbase/optpkgs/applethtml/Test_Pure.html

Exception shown:
java.lang.NoClassDefFoundError: Could not initialize class sun.misc.ExtensionInfo
   at sun.misc.ExtensionDependency.checkExtensionAgainst(Unknown Source)
   at sun.misc.ExtensionDependency.checkExtensionAgainstInstalled(Unknown Source)
   at sun.misc.ExtensionDependency.checkExtension(Unknown Source)
   at sun.misc.ExtensionDependency.checkExtensions(Unknown Source)
   at sun.misc.ExtensionDependency.checkExtensionsDependencies(Unknown Source)
   at sun.misc.URLClassPath$JarLoader.parseExtensionsDependencies(Unknown Source)
   at sun.misc.URLClassPath$JarLoader.getClassPath(Unknown Source)
   at sun.misc.URLClassPath.getLoader(Unknown Source)
   at sun.misc.URLClassPath.getResource(Unknown Source)
   at java.net.URLClassLoader$1.run(Unknown Source)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.net.URLClassLoader.findClass(Unknown Source)
   at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:155)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:127)
   at java.lang.ClassLoader.loadClass(Unknown Source)
   at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:618)
   at sun.applet.AppletPanel.createApplet(AppletPanel.java:778)
   at sun.plugin.AppletViewer.createApplet(AppletViewer.java:2070)
   at sun.applet.AppletPanel.runLoader(AppletPanel.java:707)
   at sun.applet.AppletPanel.run(AppletPanel.java:361)
   at java.lang.Thread.run(Unknown Source)

                                    

Comments
EVALUATION

The sun.misc.* classes are filtered out in DownloadManager, due to the fact that they are all included and it causes problems for DownloadManager to be asked about its sun.misc dependencies while it's still in the middle of initializing.

The resources subpackage was unfortunately being hit by the same filter, despite not being part of the core -- so none of them could ever be loaded.  I changed the sun/misc/* rule to sun/misc/..., so these classes are likewise part of the core.
                                     
2007-06-14



Hardware and Software, Engineered to Work Together