-
Bug
-
Resolution: Fixed
-
P1
-
5.0, 5.0u2
-
b03
-
x86
-
windows_2000, windows_xp
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2124460 | 6 | Hao Dong | P2 | Closed | Won't Fix |
A customer is running into problems trying to load an applet from an https web
page when using the mandatory profiles on Windows 2000 (ntuser.man) instead of
the typical profiles (ntuser.dat).
Here is the Stack Trace :
Java Plug-in 1.5.0_02
Using JRE version 1.5.0_02 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\vmware.VMNET
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
I am running as an applet!!!
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.net.URL.getURLStreamHandler(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at TestApplet.start(TestApplet.java:29)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at java.security.SecureRandom.nextBytes(Unknown Source)
at java.security.SecureRandom.next(Unknown Source)
at java.util.Random.nextInt(Unknown Source)
at com.sun.deploy.net.protocol.https.Handler$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.net.protocol.https.Handler.<clinit>(Unknown Source)
... 9 more
===============
Source Code :
===============
Here is the source for test case:
import java.io.*;
import java.net.URL;
import javax.swing.JApplet;
public class TestApplet extends JApplet
{
public TestApplet()
{
}
public void start()
{
try
{
System.out.println("I am running as an applet!!!");
URL yahoo = new URL("https://www.docmagic.com/");
BufferedReader in = new BufferedReader(new
InputStreamReader(yahoo.openStream()));
String inputLine;
while((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}
catch(Exception ioe)
{
ioe.printStackTrace();
}
}
public static void main(String args[])
{
System.out.println("I am running as an application!!!");
}
}
=========
Note :
=========
This bug was fixed for 1.4.0_04, 1.4.1_02, mantis and JRE 1.6.0 beta.
Need a fix for 1.5.0_02 version also.
###@###.### 2005-03-18 23:02:54 GMT
page when using the mandatory profiles on Windows 2000 (ntuser.man) instead of
the typical profiles (ntuser.dat).
Here is the Stack Trace :
Java Plug-in 1.5.0_02
Using JRE version 1.5.0_02 Java HotSpot(TM) Client VM
User home directory = C:\Documents and Settings\vmware.VMNET
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
p: reload proxy configuration
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
I am running as an applet!!!
java.lang.ExceptionInInitializerError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at java.net.URL.getURLStreamHandler(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at java.net.URL.<init>(Unknown Source)
at TestApplet.start(TestApplet.java:29)
at sun.applet.AppletPanel.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
at java.security.SecureRandom.nextBytes(Unknown Source)
at java.security.SecureRandom.next(Unknown Source)
at java.util.Random.nextInt(Unknown Source)
at com.sun.deploy.net.protocol.https.Handler$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at com.sun.deploy.net.protocol.https.Handler.<clinit>(Unknown Source)
... 9 more
===============
Source Code :
===============
Here is the source for test case:
import java.io.*;
import java.net.URL;
import javax.swing.JApplet;
public class TestApplet extends JApplet
{
public TestApplet()
{
}
public void start()
{
try
{
System.out.println("I am running as an applet!!!");
URL yahoo = new URL("https://www.docmagic.com/");
BufferedReader in = new BufferedReader(new
InputStreamReader(yahoo.openStream()));
String inputLine;
while((inputLine = in.readLine()) != null)
System.out.println(inputLine);
in.close();
}
catch(Exception ioe)
{
ioe.printStackTrace();
}
}
public static void main(String args[])
{
System.out.println("I am running as an application!!!");
}
}
=========
Note :
=========
This bug was fixed for 1.4.0_04, 1.4.1_02, mantis and JRE 1.6.0 beta.
Need a fix for 1.5.0_02 version also.
###@###.### 2005-03-18 23:02:54 GMT
- backported by
-
JDK-2124460 Loading 1.4 plugin from HTTPS page fails for Win2K user with mandatory profile
- Closed
- duplicates
-
JDK-6227159 Can't create HTTPS URLs in applets when logged in as guest
- Closed
- relates to
-
JDK-6261009 Loading 1.5 plugin from HTTPS page fails for W2K3 user with mandatory profile
- Resolved
-
JDK-4774627 Loading 1.4 plugin from HTTPS page fails for Win2K user with mandatory profile
- Resolved
-
JDK-4479378 HTTPS test cases FAIL using Merlin B71
- Closed