Other |
---|
5.0u4 b03Fixed |
Duplicate :
|
|
Relates :
|
|
Relates :
|
|
Relates :
|
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
|