United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6626774 Plugin2: ClassLoader cache leak if the applet fails to load some class
JDK-6626774 : Plugin2: ClassLoader cache leak if the applet fails to load some class

Details
Type:
Bug
Submit Date:
2007-11-06
Status:
Closed
Updated Date:
2010-09-08
Project Name:
JDK
Resolved Date:
2008-06-13
Component:
deploy
OS:
generic
Sub-Component:
plugin
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b08)

Related Reports
Relates:

Sub Tasks

Description
This is a stop applet bug. Under the situation an applet is not loaded correctly, for instance, the ClassNotFoundException, the applet is not stopped correctly after leave the page or reload.
The applet ThreadGroup and AppContext are not disposed during reloading, the cache entry of the Applet2ClassLoader is live and refCount keep increasing.

                                    

Comments
EVALUATION

When errors (null applet, ClassNotFoundException, etc.) happened in applet start, applet stop did not do some routine cleanups such as checking ClassLoader cache, disposing AppContext, notifying LiveConnect worker thread. It resulted in ClassLoader cache reference count leak and Exceptions being thrown. To fix it, we need call the cleanup routines in the applet stop when errorOccurred during applet start.
                                     
2007-11-09



Hardware and Software, Engineered to Work Together