JDK-4479378 : HTTPS test cases FAIL using Merlin B71
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.4.0
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_98
  • CPU: x86
  • Submitted: 2001-07-12
  • Updated: 2001-08-22
  • Resolved: 2001-08-22
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
1.4.0 beta2Fixed
Related Reports
Relates :  
Relates :  
Description
Platform : Win 98SE / Win NT / Win 2000 
Browser  : IE 5.0, Netscape 4.x , NS6.1
Build    : MB71
SUT      : merlot, lemonade, dnm-dtf-001 (lab 1457)

Steps to Reproduce 

 1.) On a Win 98SE machine , Install the J2SE for merlin build 61 from :
     /net/sqesvr/deployment3/merlin/beta/win32.b71/

 2.) go to the below link and execute the testcases
     http://sqesvr.eng.sun.com/deployment1/ws/doc/proc/JPI_https.html

 3.) Go to Quicklook Test Cases:  (Apache Web Server:  ) 
     Execute the test case
     https://129.144.85.140/https/tests/GP.html


RESULT : It throws the below mentioned Exceptions

Note : When I test this on Solaris and Linux platforms these test cases PASS, I also tested with Merlin B70 and the test cases are passing on windows platform also along with solaris and linux platforms

--------------------------------------------------------------------------------

Java(TM) Plug-in: Version 1.4.0
Using JRE version 1.4.0-beta_refresh Java HotSpot(TM) Client VM
User home directory = C:\WINDOWSProxy Configuration: Manual Configuration
     Proxy: http=webcache-cup:8080,https=webcache-cup:8080,ftp=webcache-cup:8080,gopher=webcache-cup:8080
     Proxy Overrides: javator.eng----------------------------------------------------
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 properties
t:   dump thread list
x:   clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
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 sun.plugin.AppletViewer.getDocumentBase(Unknown Source)	at sun.plugin.AppletViewer.getCodeBase(Unknown Source)	at sun.plugin.AppletViewer.appletInit(Unknown Source)	at sun.plugin.ocx.ActiveXAppletViewer$1.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)Caused by: java.lang.NullPointerException	at java.security.MessageDigest.update(Unknown Source)	at sun.plugin.security.WSecureRandom.<init>(Unknown Source)	at sun.reflect.GeneratedConstructorAccessor116.newInstance(Unknown Source)	at java.lang.reflect.Constructor.newInstance(Unknown Source)	at java.lang.Class.newInstance0(Unknown Source)	at java.lang.Class.newInstance(Unknown Source)	at java.security.Security.doGetImpl(Unknown Source)	at java.security.Security.doGetImpl(Unknown Source)	at java.security.Security.getImpl(Unknown Source)	at java.security.SecureRandom.getInstance(Unknown Source)	at java.security.SecureRandom.<init>(Unknown Source)	at sun.plugin.services.WIExplorerBrowserService.getSecureRandom(Unknown Source)	at sun.plugin.net.protocol.https.Handler.<clinit>(Unknown Source)	... 11 morejava.lang.NullPointerException	at sun.plugin.AppletViewer.getCodeBase(Unknown Source)	at sun.plugin.AppletViewer.appletInit(Unknown Source)	at sun.plugin.ocx.ActiveXAppletViewer$1.run(Unknown Source)	at java.lang.Thread.run(Unknown Source)


anjana.prabhakar@Eng 2001-07-26

Https tests are still failing with merlin beta-refresh build-72 on win ME with IE5.0, NS4.7x and NS 6.1


Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: merlin-beta2 FIXED IN: merlin-beta2 INTEGRATED IN: merlin-beta2 VERIFIED IN: merlin-beta2
14-06-2004

EVALUATION The problem is that WSecureRandom object is created through a different code path in the test case that doesn't have sufficient priviledges. This is now fixed by using doPriviledged block in Https's Handler.java. stanley.ho@Eng 2001-07-18
18-07-2001