Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6495348

Thread context class loader is null

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: P3 P3
    • 7u6
    • 7
    • deploy
    • None
    • x86
    • windows_xp

      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.

            ngthomas Thomas Ng (Inactive)
            malenkov Sergey Malenkov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: