Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jgit-dev] WG: Java8 support

Hey,

 

I can reproduce the issue also with plain jgit.sh on the command line:

 

mduft@friw0498 ~/Downloads/test $ JAVA_HOME=/opt/jdk7 ../org.eclipse.jgit.pgm-3.4.1.201406201815-r.sh clone ssh://wamas5.sources.salomon.at:2501/wamas5.git

Initialized empty Git repository in /home/mduft/Downloads/test/wamas5/.git

remote: Counting objects: 1

remote: Finding sources: 100% (515/515)

Receiving objects:        2% (  25485/1274209)^C

mduft@friw0498 ~/Downloads/test $ rm -rf wamas5/

mduft@friw0498 ~/Downloads/test $ JAVA_HOME=/opt/jdk8 ../org.eclipse.jgit.pgm-3.4.1.201406201815-r.sh clone ssh://wamas5.sources.salomon.at:2501/wamas5.git

Initialized empty Git repository in /home/mduft/Downloads/test/wamas5/.git

fatal: Auth fail

fatal: ssh://wamas5.sources.salomon.at:2501/wamas5.git: Auth fail

 

Von: egit-dev-bounces@xxxxxxxxxxx [mailto:egit-dev-bounces@xxxxxxxxxxx] Im Auftrag von Duft Markus
Gesendet: Montag, 22. September 2014 11:22
An: EGit developer discussion (egit-dev@xxxxxxxxxxx)
Betreff: [egit-dev] Java8 support

 

Hey!

 

I tried to switch to Java8 today, and I ran into some troubles with Git... We’re using public key authentication, and this does not work as soon as I switch from 7 to 8:

 

org.eclipse.jgit.api.errors.TransportException: ssh://xxx:2501/xxx.git: Auth fail

                at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:223)

                at org.eclipse.jgit.api.LsRemoteCommand.call(LsRemoteCommand.java:159)

                at org.eclipse.egit.core.op.ListRemoteOperation.run(ListRemoteOperation.java:99)

                at org.eclipse.egit.ui.internal.clone.SourceBranchPage$8.run(SourceBranchPage.java:324)

                at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

Caused by: org.eclipse.jgit.errors.TransportException: ssh://wamas5.sources.salomon.at:2501/wamas5.git: Auth fail

                at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:159)

                at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:137)

                at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:262)

                at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:161)

                at org.eclipse.jgit.api.LsRemoteCommand.execute(LsRemoteCommand.java:202)

                ... 4 more

Caused by: com.jcraft.jsch.JSchException: Auth fail

                at com.jcraft.jsch.Session.connect(Session.java:512)

                at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)

                ... 8 more

 

The other side is a Gerrit (2.8.1) server, client is Eclipse Luna 4.4 with EGit/JGit 3.5.0

 

Any Ideas, Hints, etc.? As soon as I switch back to jdk7 in eclipse.ini everything is working again.

 

Thanks!

 

--

Mit freundlichen Grüßen / Best regards

 

Markus Duft | Software Architect

SSI SCHÄFER | Salomon Automation GmbH | Friesachstraße 15 | 8114 Friesach bei Graz | Austria

Phone +43 3127 200-575 | Fax +43 3127 200-22

markus.duft@xxxxxxxxxxxxxxxx

Website | Blog | YouTube | Facebook

 

Salomon Automation GmbH | Friesachstrasse 15 | 8114 Friesach bei Graz | Austria
Registered Office: Friesach bei Graz | Commercial Register: 49324 K | VAT no. ATU28654300
Commercial Court: Landesgericht für Zivilrechtssachen Graz

Salomon Automation GmbH | Friesachstrasse 15 | 8114 Friesach bei Graz | Austria
Registered Office: Friesach bei Graz | Commercial Register: 49324 K | VAT no. ATU28654300
Commercial Court: Landesgericht für Zivilrechtssachen Graz
_______________________________________________
egit-dev mailing list
egit-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/egit-dev

Back to the top