JDK-6285180 : JavaPlugin fails to connect to TLSv1 only web server
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 1.4.2,5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-06-14
  • Updated: 2011-02-16
  • Resolved: 2005-06-23
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b09)
Java HotSpot(TM) Client VM (build 1.5.0_02-b09, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Kernel version:            Microsoft Windows XP, Uniprocessor Free
Product type:                Professional
Product version:          5.1
Service pack:               1
Kernel build number:  2600
Firefox version:           1.0.2
IE version:                    6.0000

A DESCRIPTION OF THE PROBLEM :
Java Plugin fails to connect to HTTPS webserver with only TLSv1 is enabled, resulting in failure to run any applets hosted on such webservers.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
- Configure a HTTPS Webserver with only TLSv1.
- Host a page containing java applet in the Webserver.
- Configure your browser (Firefox/IE) to use Java Plugin to run applets.
- Try accessing the page containing applet.


EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Java Plugin should download the applet and run it.

The property to enable TLSv1 should be picked from the browser in which Plugin is running and not another configuration under Plugin Control Panel as suggested at http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=5077603 (which will make deployment of applet a pain.)

ACTUAL -
Applet will fail to load and browser display "XXXApplet not inited" in its status bar.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
oad: class com.XXX.XXXApplet not found.
java.lang.ClassNotFoundException: com.XXX.XXXApplet
	at sun.applet.AppletClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.applet.AppletClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.applet.AppletClassLoader.loadCode(Unknown Source)
	at sun.applet.AppletPanel.createApplet(Unknown Source)
	at sun.plugin.AppletViewer.createApplet(Unknown Source)
	at sun.applet.AppletPanel.runLoader(Unknown Source)
	at sun.applet.AppletPanel.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: open HTTP connection failed.
	at sun.applet.AppletClassLoader.getBytes(Unknown Source)
	at sun.applet.AppletClassLoader.access$100(Unknown Source)
	at sun.applet.AppletClassLoader$1.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	... 10 more


REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
In Windows Edit the file "\Documents and Settings<user>\Application
Data\Sun\Deployment\deployment.properties" and add the following property.

deployment.security.TLSv1=true
###@###.### 2005-06-14 11:16:59 GMT

Comments
EVALUATION This issue has been addressed in Mustang, bug 5077603, which has been putback on Mustang B08. We have added options in Java control panel, which will allow user to enable the TLSv1 option for TLSv1 webserver, the default for this option is disabled. This bug will be closed as duplicate of bug 5077603, and a new sub bug (2127548) will be created under 5077603 ###@###.### 2005-06-23 20:08:54 GMT
23-06-2005