Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit / JGit » Egit error Cast ssl(Egit error Cast ssl)
icon8.gif  Egit error Cast ssl [message #1479193] Wed, 19 November 2014 08:27 Go to next message
Marco Sousa is currently offline Marco SousaFriend
Messages: 1
Registered: November 2014
Junior Member
EGit 3.4.x / 3.5.1 / 3.5.2 give this error:
I have Eclipse 4.4.1 and the server is gitblit 1.6.1

https:// SERVER /r/AquaCIS_CF/proyectos.git


com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl cannot be cast to javax.net.ssl.HttpsURLConnection

When I do FETCH or PUSH.

"An internal error occurred during: "Pulling Branch amep/Preparacion_4.1.0 - proyectos".
com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl cannot be cast to javax.net.ssl.HttpsURLConnection"

Eclipse log error:

!ENTRY org.eclipse.egit.core 4 0 2014-11-19 09:23:04.674
!MESSAGE An exception occurred during push on URI https:// SERVER /r/AquaCIS_CF/proyectos.git: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl cannot be cast to javax.net.ssl.HttpsURLConnection
!STACK 0
java.lang.ClassCastException: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl cannot be cast to javax.net.ssl.HttpsURLConnection
at org.eclipse.jgit.transport.http.JDKHttpConnection.configure(JDKHttpConnection.java:191)
at org.eclipse.jgit.transport.TransportHttp.disableSslVerify(TransportHttp.java:570)
at org.eclipse.jgit.transport.TransportHttp.httpOpen(TransportHttp.java:544)
at org.eclipse.jgit.transport.TransportHttp.httpOpen(TransportHttp.java:526)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:468)
at org.eclipse.jgit.transport.TransportHttp.openPush(TransportHttp.java:399)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:154)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1173)
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:156)
at org.eclipse.egit.core.op.PushOperation.run(PushOperation.java:228)
at org.eclipse.egit.ui.internal.push.PushOperationUI.execute(PushOperationUI.java:167)
at org.eclipse.egit.ui.internal.push.PushOperationUI$1.run(PushOperationUI.java:229)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Re: Egit error Cast ssl [message #1480601 is a reply to message #1479193] Thu, 20 November 2014 10:08 Go to previous messageGo to next message
Matthias Sohn is currently offline Matthias SohnFriend
Messages: 1268
Registered: July 2009
Senior Member
you cross-posted the same question on the mailing list, it went on there
https://dev.eclipse.org/mhonarc/lists/jgit-dev/msg02761.html
Re: Egit error Cast ssl [message #1707567 is a reply to message #1479193] Mon, 07 September 2015 12:37 Go to previous message
Sundar Rajan is currently offline Sundar RajanFriend
Messages: 1
Registered: September 2015
Junior Member
Hi

Is there a resolution for this? Any release/work around that can fix this issue? The same code runs fine on Windows. I am running with JDK 1.8. The exception is pasted in the original post. But just to be sure, here is the exception i see
17:26:13.638 [main] INFO com.jpmorgan.exb.app.itf.TestRunner - executing Checkout
java.lang.ClassCastException: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl cannot be cast to javax.net.ssl.HttpsURLConnection
at org.eclipse.jgit.transport.http.JDKHttpConnection.configure(JDKHttpConnection.java:191)
at org.eclipse.jgit.transport.TransportHttp.disableSslVerify(TransportHttp.java:573)
Previous Topic:JGit low level subtree merge (?)
Next Topic:(someclass).getResourceAsStream is not working with egit.
Goto Forum:
  


Current Time: Fri Apr 26 20:13:32 GMT 2024

Powered by FUDForum. Page generated in 0.02685 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top