Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Using https error fetch in the 2.2.0 version

2012/12/20 Marco Sousa <marcomsousa@xxxxxxxxx>
Hello,

Using the 2.2.0 (yesterday), using fetch or pull it give this error:
Eclipse 4.2 using https in the url



!ENTRY org.eclipse.egit.ui 4 0 2012-12-20 10:55:12.873
!MESSAGE com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl cannot be cast to javax.net.ssl.HttpsURLConnection
!STACK 1
org.eclipse.core.runtime.CoreException: com.sun.net.ssl.internal.www.protocol.https.HttpsURLConnectionOldImpl cannot be cast to javax.net.ssl.HttpsURLConnection
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:102)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI$1.run(FetchOperationUI.java:117)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: 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.TransportHttp.disableSslVerify(TransportHttp.java:533)
at org.eclipse.jgit.transport.TransportHttp.httpOpen(TransportHttp.java:509)
at org.eclipse.jgit.transport.TransportHttp.httpOpen(TransportHttp.java:501)
at org.eclipse.jgit.transport.TransportHttp.connect(TransportHttp.java:452)
at org.eclipse.jgit.transport.TransportHttp.openFetch(TransportHttp.java:305)
at org.eclipse.jgit.transport.FetchProcess.executeImp(FetchProcess.java:136)
at org.eclipse.jgit.transport.FetchProcess.execute(FetchProcess.java:122)
at org.eclipse.jgit.transport.Transport.fetch(Transport.java:1104)
at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:128)
at org.eclipse.egit.core.op.FetchOperation.run(FetchOperation.java:127)
at org.eclipse.egit.ui.internal.fetch.FetchOperationUI.execute(FetchOperationUI.java:99)
... 2 more

_______________________________________________
egit-dev mailing list
egit-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/egit-dev


I can't reproduce this problem, I tried the following steps successfully
with JGit/EGit 2.2.0.201212191850-r on Mac OS X using java 1.6.0_27-b07

- install a fresh eclipse-SDK-4.2.1-macosx-cocoa-x86_64.tar.gz
- install jgit and egit from http://download.eclipse.org/egit/updates
- I was able to clone (which includes fetch) https://git.eclipse.org/r/jgit/jgit.git
- also a subsequent fetch works fine
- I use http.sslVerify = true

Which Eclipse package, OS and java version are you using ?

--
Matthias

Back to the top