Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 92804

Summary: Setting local Javadoc for JDK breaks SSL
Product: [Eclipse Project] JDT Reporter: Marc Lehmann <marc.lehmann>
Component: DebugAssignee: JDT-Debug-Inbox <jdt-debug-inbox>
Status: RESOLVED DUPLICATE QA Contact:
Severity: major    
Priority: P3 CC: codex69, janvik
Version: 3.1   
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Marc Lehmann CLA 2005-04-26 12:57:42 EDT
Eclipse 3.1M6
JDK 1.5.0_02

Starting with 3.1M6 I can't change http://java.sun.com/j2se/1.5.0/docs/api/ to 
file://... in one place any more. There used to be an input box for setting 
Javadoc URL for the installed JRE (Preferences/Java).
By unchecking "Use default system libraries" I can set local Javadoc on a per 
jar basis. However, this breaks SSL for all applications I run in the IDE.

javax.net.ssl.SSLKeyException: RSA premaster secret error
Comment 1 John Anvik CLA 2005-05-19 20:42:01 EDT
Eclipse 3.1M7
Java 1.5.0_02

I am working with a program that accesses secure web pages (https://...). When I
attach the source code for the 1.5 libraries (src.zip that comes  with the
standard JDK), it causes the program to throw the following exception:

javax.net.ssl.SSLKeyException: RSA premaster secret error  

Steps to reproduce:
1. Create a new project
2. Attach src.zip from the jdk1.5.0_02 to the rt.jar
3. Create and run a class with the following main method:

public static void main(String[] args) {
	String url = "https://bugs.eclipse.org/bugs";
	
	try {
		new InputStreamReader(new URL(url).openStream());
		System.out.print("Connection Succeeded");
	} catch (Exception e) {
		System.err.print("Connection Failed");
		e.printStackTrace();
	} 
}
Comment 2 Stephen Schaub CLA 2005-05-26 09:33:27 EDT
Please bring back the JavaDoc URL text entry field in the Edit JRE dialog. We
need a convenient way to associate local Javadoc with installed JRE's. The
current state of affairs (3.1M7) represents a significant step backward in
functionality and needs to be fixed for the 3.1 release!
Comment 3 Darin Wright CLA 2005-05-26 14:35:13 EDT
I believe the problem of "javax.net.ssl.SSLKeyException: RSA premaster secret 
error" is fixed with the fix to bug 89935, which will be in RC1.

The problem of being able to specify one javadoc location for all libraries is 
a dup of bug 89474.

*** This bug has been marked as a duplicate of 89474 ***