Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Java SSL: handshake_failure when trying to install plugin #171

Closed
monkbroc opened this issue Jan 27, 2017 · 12 comments
Closed

Java SSL: handshake_failure when trying to install plugin #171

monkbroc opened this issue Jan 27, 2017 · 12 comments

Comments

@monkbroc
Copy link

@monkbroc monkbroc commented Jan 27, 2017

Sorry to bother you with yet another plugin install issue. I read http://gnuarmeclipse.github.io/blog/2016/12/02/plugins-install-issue/ and the closed issues related to plugin install but haven't managed to solve the issue.

I get the "Unable to read repository at http://gnuarmeclipse.sourceforge.net/updates/content.xml." when installing with ProvisionException and handshake_failure.

Unable to read repository at http://gnuarmeclipse.sourceforge.net/updates/content.xml.
Received fatal alert: handshake_failure

image

I tried both on Windows and on Linux with Eclipse Luna, Neon and Neon.2 and with JRE 8u121 and JDK 8u121. I get the error in all cases. I'm doing this from a network without a proxy or firewall, and I don't have an antivirus on Linux and disabled the default Windows Defender. I get the error regardless if I use Eclipse Marketplace or the Install new software menu.

Latest and greatest Eclipse configuration:
image

Do you have any other suggestions on what to try?

@ilg-ul

This comment has been minimized.

Copy link
Contributor

@ilg-ul ilg-ul commented Jan 27, 2017

it is hard to say. can you install from a local archive? can you install from updates-test?

I don't know what machines you are using, but I'd favour 64-bits JDK and Eclipse.

@monkbroc

This comment has been minimized.

Copy link
Author

@monkbroc monkbroc commented Jan 28, 2017

I'll try 64 bit versions.

Yesterday another developer tried to uninstall and reinstall the plugin on a machine that had the plugin working and got the same error.

Could you please try an install? Maybe SourceForge changed their SSL setup again, maybe due to the OpenSSL security advisory of January 26, 2017.

@ilg-ul

This comment has been minimized.

Copy link
Contributor

@ilg-ul ilg-ul commented Jan 28, 2017

you are right, I can no longer install from SourceForge, Eclipse fails with:

!SUBENTRY 1 org.eclipse.equinox.p2.transport.ecf 4 1002 2017-01-28 18:48:05.200
!MESSAGE Unable to read repository at http://gnuarmeclipse.sourceforge.net/updates-test/content.xml.
!STACK 0
javax.net.ssl.SSLHandshakeException: Received fatal alert: handshake_failure
	at sun.security.ssl.Alerts.getSSLException(Unknown Source)
	at sun.security.ssl.Alerts.getSSLException(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.recvAlert(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.readRecord(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at sun.security.ssl.SSLSocketImpl.startHandshake(Unknown Source)
	at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:535)
	at org.apache.http.conn.ssl.SSLSocketFactory.connectSocket(SSLSocketFactory.java:403)
	at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection(DefaultClientConnectionOperator.java:177)
	at org.apache.http.impl.conn.ManagedClientConnectionImpl.open(ManagedClientConnectionImpl.java:304)
	at org.apache.http.impl.client.DefaultRequestDirector.tryConnect(DefaultRequestDirector.java:611)
	at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:446)
	at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:863)
	at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
	at org.eclipse.ecf.provider.filetransfer.httpclient4.HttpClientFileSystemBrowser.runRequest(HttpClientFileSystemBrowser.java:259)
	at org.eclipse.ecf.provider.filetransfer.browse.AbstractFileSystemBrowser$DirectoryJob.run(AbstractFileSystemBrowser.java:69)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)

I'll investigate. in the mean time, download the archive and install it locally.

@cnoviello

This comment has been minimized.

Copy link

@cnoviello cnoviello commented Jan 29, 2017

This stackoverflow answer fixes the issue:

http://stackoverflow.com/a/38264878

@ilg-ul

This comment has been minimized.

Copy link
Contributor

@ilg-ul ilg-ul commented Jan 29, 2017

great!

I'll add a page to the docu site to explain this.

(but for long term, I'm searching for a solution to host the update sites in a different location)

@cnoviello

This comment has been minimized.

Copy link

@cnoviello cnoviello commented Jan 29, 2017

I agree. SF is no longer a good place to store good software ;-)

@monkbroc

This comment has been minimized.

Copy link
Author

@monkbroc monkbroc commented Jan 29, 2017

I got the plugin working with a manual install.

Thank you for your efforts in maintaining this plugin! I'm excited to upgrade from text mode gdb to Eclipse for embedded debugging.

@ilg-ul

This comment has been minimized.

Copy link
Contributor

@ilg-ul ilg-ul commented Jan 29, 2017

thank you @monkbroc, good luck with your projects!

@ilg-ul

This comment has been minimized.

Copy link
Contributor

@ilg-ul ilg-ul commented Jan 29, 2017

@monkbroc, unless you are in Iran or other difficult location, I suggest you install 'Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 8 Download', as Carmine suggested, for me it solved the problem.

@ilg-ul ilg-ul changed the title handshake_failure when trying to install plugin Java SSL: handshake_failure when trying to install plugin Jan 29, 2017
@wrljet

This comment has been minimized.

Copy link

@wrljet wrljet commented Feb 21, 2017

'Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files 8 Download' worked for me as well.
In Windows 7 the two jar files went in: C:\Program Files (x86)\Java\jre1.8.0_121\lib\security

@ilg-ul

This comment has been minimized.

@ilg-ul ilg-ul closed this Feb 25, 2017
@jrohit54

This comment has been minimized.

Copy link

@jrohit54 jrohit54 commented Apr 7, 2018

the issue got resolved bu install the other version of java

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.