JGit [message #802740] |
Mon, 20 February 2012 06:36 |
Eclipse User |
|
|
|
I did some experiments using JGit. While attempting to (programmatically) push the .war file, the following exception is thrown.
Created SSHKey:com.openshift.express.client.SSHKeyPair@1186fab
org.eclipse.jgit.api.errors.JGitInternalException: Exception caught during execution of push command
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:156)
at com.wi.jgit.helper.JGitHelper.pushRepo(JGitHelper.java:61)
at com.wi.jgit.helper.JGitHelper.main(JGitHelper.java:25)
Caused by: org.eclipse.jgit.errors.TransportException: ssh://2a96c96d37264406a33dac4dc232ff1a@testmc7-testmc.rhcloud.com/~/git/testmc7.git/: Auth fail
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:141)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
at org.eclipse.jgit.transport.TransportGitSsh$SshPushConnection.<init>(TransportGitSsh.java:306)
at org.eclipse.jgit.transport.TransportGitSsh.openPush(TransportGitSsh.java:152)
at org.eclipse.jgit.transport.PushProcess.execute(PushProcess.java:130)
at org.eclipse.jgit.transport.Transport.push(Transport.java:1120)
at org.eclipse.jgit.api.PushCommand.call(PushCommand.java:152)
... 2 more
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:464)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
... 8 more
Attached is the relevant code. If you could provide some clues, that would be great.
|
|
|
Powered by
FUDForum. Page generated in 0.02928 seconds