United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6833261 Error when building 6u14 b05 jkernel on Windows
JDK-6833261 : Error when building 6u14 b05 jkernel on Windows

Details
Type:
Bug
Submit Date:
2009-04-22
Status:
Resolved
Updated Date:
2010-07-23
Project Name:
JDK
Resolved Date:
2009-04-23
Component:
other-libs
OS:
windows
Sub-Component:
other
CPU:
generic
Priority:
P1
Resolution:
Fixed
Affected Versions:
6u14
Fixed Versions:
6u14 (b05)

Related Reports
Relates:

Sub Tasks

Description
Windows JRE build failed.

NeededToRun attempt=1 Exec: "C:\BUILD_AREA\jdk6_14\control\build\windows-i586\tmp\kernel\j2re-image-copy\bin\java" -verbose -Dkernel.nomerge=true -Dkernel.debug=true -Dkernel.download.url=internal-resource/ -Dkernel.background.download=false -Dkernel.deploy.debug=true -verify -Xbootclasspath/a:SplitJRE.jar                     -Djava.security.manager sun.kernel.DownloadTest

Error occurred during initialization of VM
java.lang.ExceptionInInitializerError
    at java.io.File.deleteOnExit(Unknown Source)
    at sun.jkernel.DownloadManager$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.jkernel.DownloadManager.<clinit>(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at java.lang.System.initializeSystemClass(Unknown Source)
Caused by: java.lang.NullPointerException
    at java.io.DeleteOnExitHook.<clinit>(Unknown Source)
    at java.io.File.deleteOnExit(Unknown Source)
    at sun.jkernel.DownloadManager$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.jkernel.DownloadManager.<clinit>(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at java.lang.System.initializeSystemClass(Unknown Source)

                                    

Comments
SUGGESTED FIX

------- j2se/src/share/classes/java/lang/System.java -------
34c34
<  * @version %I%, %G%
---
>  * @version 1.162, 04/01/09
1072a1073,1077
>         // Workaround until DownloadManager initialization is revisited.
>         // Make JavaLangAccess available early enough for internal
>         // Shutdown hooks to be registered
>         setJavaLangAccess();
>
1118a1124
>     }
1119a1126
>     private static void setJavaLangAccess() {
                                     
2009-04-22
EVALUATION

The DownloadManager initialization begins before the VM completes its initialization (during System.initializeSystemClass). The classes/libraries needed for VM initialization should be included in the core bundle for bootstrapping.  The DownloadManager should be deferred until 

This issue surfaces due to the fix for 6810254.

For 6u14 b05, we will putback a fix to workaround the existing DownloadManager initialization.  The DownloadManager initialization has to be revisited for the next release (see 6833260)
                                     
2009-04-22



Hardware and Software, Engineered to Work Together