-
Bug
-
Resolution: Cannot Reproduce
-
P2
-
6u10
-
x86
-
windows
One of security functional test failed with kernel jre. It threw "Error downloading bundle".
The issue reproducible with attached test Security.java
Test run with:
java version "1.6.0_10-ea"
Java(TM) SE Runtime Environment (build 1.6.0_10-ea-b07)
Java HotSpot(TM) Client VM (build 1.6.0_10-ea-b07, mixed mode)
Steps to reproduce:
1. Install the kernel jre "*windows-i586-p-iftw-k.exe"
I use bundle under http://sqindia.india.sun.com/disk13/jcg/is2/1.6.0_10/
a). Run setup.reg
b). Install jre-6u10-ea-windows-i586-p-iftw-k.exe
2. Kill the background download ( by killing the "java" process )
3. Remove all files under ${ProgramFiles}/Java/jre6/lib/bundles/
4. Run the attached test use:
java -Xcomp -Djava.security.manager Security
Test supposed to threw an expected "AccessControlException", but it threw Error downloading errors as below:
Error downloading bundle for java/nio/channels/FileChannel.class:
java.lang.ClassCircularityError: java/nio/channels/FileChannel
at sun.nio.cs.StreamDecoder.inReady(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at sun.jkernel.Bundle.loadReceipts(Unknown Source)
at sun.jkernel.Bundle.updateState(Unknown Source)
at sun.jkernel.Bundle.isInstalled(Unknown Source)
at sun.jkernel.DownloadManager.doGetBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.access$500(Unknown Source)
at sun.jkernel.DownloadManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.jkernel.DownloadManager.getBootClassPathEntryForResource(UnknownSource)
at sun.jkernel.DownloadManager.getBootClassPathEntryForClass(Unknown Source)
at sun.nio.cs.StreamDecoder.inReady(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at sun.jkernel.Bundle.loadReceipts(Unknown Source)
at sun.jkernel.Bundle.updateState(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.DownloadManager.doGetBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.access$500(Unknown Source)
at sun.jkernel.DownloadManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.jkernel.DownloadManager.getBootClassPathEntryForResource(UnknownSource)
at sun.jkernel.DownloadManager.getBootClassPathEntryForClass(Unknown Source)
at sun.security.provider.PolicyFile.<init>(Unknown Source)
at java.security.Policy.getPolicyNoCheck(Unknown Source)
at java.security.ProtectionDomain.implies(Unknown Source)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkWrite(Unknown Source)
at Security.main(Security.java:34)
Error downloading bundle for java/util/concurrent/atomic/AtomicReference.class:
java.lang.ClassCircularityError: java/nio/channels/FileChannel
at sun.nio.cs.StreamDecoder.inReady(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at sun.jkernel.Bundle.loadReceipts(Unknown Source)
at sun.jkernel.Bundle.updateState(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.DownloadManager.doGetBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.access$500(Unknown Source)
at sun.jkernel.DownloadManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.jkernel.DownloadManager.getBootClassPathEntryForResource(UnknownSource)
at sun.jkernel.DownloadManager.getBootClassPathEntryForClass(Unknown Source)
at sun.security.provider.PolicyFile.<init>(Unknown Source)
at java.security.Policy.getPolicyNoCheck(Unknown Source)
at java.security.ProtectionDomain.implies(Unknown Source)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkWrite(Unknown Source)
at Security.main(Security.java:34)
Exception in thread "main" java.lang.NoClassDefFoundError: java/util/concurrent/atomic/AtomicReference
at sun.security.provider.PolicyFile.<init>(Unknown Source)
at java.security.Policy.getPolicyNoCheck(Unknown Source)
at java.security.ProtectionDomain.implies(Unknown Source)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkWrite(Unknown Source)
at Security.main(Security.java:34)
The issue reproducible with attached test Security.java
Test run with:
java version "1.6.0_10-ea"
Java(TM) SE Runtime Environment (build 1.6.0_10-ea-b07)
Java HotSpot(TM) Client VM (build 1.6.0_10-ea-b07, mixed mode)
Steps to reproduce:
1. Install the kernel jre "*windows-i586-p-iftw-k.exe"
I use bundle under http://sqindia.india.sun.com/disk13/jcg/is2/1.6.0_10/
a). Run setup.reg
b). Install jre-6u10-ea-windows-i586-p-iftw-k.exe
2. Kill the background download ( by killing the "java" process )
3. Remove all files under ${ProgramFiles}/Java/jre6/lib/bundles/
4. Run the attached test use:
java -Xcomp -Djava.security.manager Security
Test supposed to threw an expected "AccessControlException", but it threw Error downloading errors as below:
Error downloading bundle for java/nio/channels/FileChannel.class:
java.lang.ClassCircularityError: java/nio/channels/FileChannel
at sun.nio.cs.StreamDecoder.inReady(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at sun.jkernel.Bundle.loadReceipts(Unknown Source)
at sun.jkernel.Bundle.updateState(Unknown Source)
at sun.jkernel.Bundle.isInstalled(Unknown Source)
at sun.jkernel.DownloadManager.doGetBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.access$500(Unknown Source)
at sun.jkernel.DownloadManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.jkernel.DownloadManager.getBootClassPathEntryForResource(UnknownSource)
at sun.jkernel.DownloadManager.getBootClassPathEntryForClass(Unknown Source)
at sun.nio.cs.StreamDecoder.inReady(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at sun.jkernel.Bundle.loadReceipts(Unknown Source)
at sun.jkernel.Bundle.updateState(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.DownloadManager.doGetBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.access$500(Unknown Source)
at sun.jkernel.DownloadManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.jkernel.DownloadManager.getBootClassPathEntryForResource(UnknownSource)
at sun.jkernel.DownloadManager.getBootClassPathEntryForClass(Unknown Source)
at sun.security.provider.PolicyFile.<init>(Unknown Source)
at java.security.Policy.getPolicyNoCheck(Unknown Source)
at java.security.ProtectionDomain.implies(Unknown Source)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkWrite(Unknown Source)
at Security.main(Security.java:34)
Error downloading bundle for java/util/concurrent/atomic/AtomicReference.class:
java.lang.ClassCircularityError: java/nio/channels/FileChannel
at sun.nio.cs.StreamDecoder.inReady(Unknown Source)
at sun.nio.cs.StreamDecoder.implRead(Unknown Source)
at sun.nio.cs.StreamDecoder.read(Unknown Source)
at java.io.InputStreamReader.read(Unknown Source)
at java.io.BufferedReader.fill(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at java.io.BufferedReader.readLine(Unknown Source)
at sun.jkernel.Bundle.loadReceipts(Unknown Source)
at sun.jkernel.Bundle.updateState(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.Bundle.install(Unknown Source)
at sun.jkernel.DownloadManager.doGetBootClassPathEntryForResource(Unknown Source)
at sun.jkernel.DownloadManager.access$500(Unknown Source)
at sun.jkernel.DownloadManager$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at sun.jkernel.DownloadManager.getBootClassPathEntryForResource(UnknownSource)
at sun.jkernel.DownloadManager.getBootClassPathEntryForClass(Unknown Source)
at sun.security.provider.PolicyFile.<init>(Unknown Source)
at java.security.Policy.getPolicyNoCheck(Unknown Source)
at java.security.ProtectionDomain.implies(Unknown Source)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkWrite(Unknown Source)
at Security.main(Security.java:34)
Exception in thread "main" java.lang.NoClassDefFoundError: java/util/concurrent/atomic/AtomicReference
at sun.security.provider.PolicyFile.<init>(Unknown Source)
at java.security.Policy.getPolicyNoCheck(Unknown Source)
at java.security.ProtectionDomain.implies(Unknown Source)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkWrite(Unknown Source)
at Security.main(Security.java:34)