JDK-6495348 : Thread context class loader is null
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Cannot Reproduce
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-11-19
  • Updated: 2012-04-11
  • Resolved: 2012-04-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7u6Resolved
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0-rc"
Java(TM) SE Runtime Environment (build 1.6.0-rc-b102)
Java HotSpot(TM) Client VM (build 1.6.0-rc-b102, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP Professional
Version: 2002 Service pack 2
Internet Explorer
Version: 6.0.2900.2180.xpsp_sp2_rtm.040803-2158
Mozilla Firefox
Version: 1.5.0.8

EXTRA RELEVANT SYSTEM CONFIGURATION :
Intel Pentium 4 3Ghz
1 GB of RAM

A DESCRIPTION OF THE PROBLEM :
Method Thread.currentThread().getContextClassLoader() returns null when it is called from JavaScript.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
1) Compile attached file TestThreadContextClassLoader.java
2) Open attached file TestThreadContextClassLoader.html in browser
3) Press button "Test Java" from applet - Test passed
4) Press button "Test HTML" from applet - Test failed: thread does not have context class loader

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Thread.currentThread().getContextClassLoader() should not return null
ACTUAL -
Thread.currentThread().getContextClassLoader() is null

REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION cannot reproduce with 6u32 and 7u4.
11-04-2012