https://bugzilla.redhat.com/show_bug.cgi?id=1416121
--- Comment #3 from Mat Booth mat.booth@redhat.com --- (In reply to Roland Grunberg from comment #2)
This seems similar to Bug 1329342 . What version of java-1.8.0-openjdk are you using ?
In fact on my machine this seems reproducible using Jiri's HttpsCheck reproduction case from that bug:
$ cat HttpsCheck.java import java.io.BufferedReader; import java.io.BufferedWriter; import java.io.InputStream; import java.io.InputStreamReader; import java.net.URL;
public class HttpsCheck { static String[] urls = { "https://bugzilla.redhat.com/", "https://dl.bintray.com/fabioz/pydev/4.5.5/%22%7D;
public static void main(String[] args) throws Exception{ for (String url : urls) { URL u = new URL(url); InputStream is = u.openStream(); BufferedReader bw = new BufferedReader(new InputStreamReader(is,"utf8")); StringBuilder page = new StringBuilder(); while(true){ String s = bw.readLine(); if (s == null){ break; } page.append(s); } System.out.println(page.toString()); } } } $ javac HttpsCheck.java $ java -cp . HttpsCheck Exception in thread "main" javax.net.ssl.SSLException: java.security.ProviderException: java.lang.NegativeArraySizeException at sun.security.ssl.Alerts.getSSLException(Alerts.java:208) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1949) at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1906) at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1889) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1410) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1387) at sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:559) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185) at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1546) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1474) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254) at java.net.URL.openStream(URL.java:1045) at HttpsCheck.main(HttpsCheck.java:15) Caused by: java.security.ProviderException: java.lang.NegativeArraySizeException at sun.security.ec.ECKeyPairGenerator.generateKeyPair(ECKeyPairGenerator.java:147) at java.security.KeyPairGenerator$Delegate.generateKeyPair(KeyPairGenerator.java:703) at sun.security.ssl.ECDHCrypt.<init>(ECDHCrypt.java:77) at sun.security.ssl.ClientHandshaker.serverKeyExchange(ClientHandshaker.java:721) at sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:281) at sun.security.ssl.Handshaker.processLoop(Handshaker.java:979) at sun.security.ssl.Handshaker.process_record(Handshaker.java:914) at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1062) at sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1375) at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1403) ... 8 more Caused by: java.lang.NegativeArraySizeException at sun.security.ec.ECKeyPairGenerator.generateECKeyPair(Native Method) at sun.security.ec.ECKeyPairGenerator.generateKeyPair(ECKeyPairGenerator.java:128) ... 17 more
So it seems not to be an Eclipse-specific problem...
eclipse-sig@lists.fedoraproject.org