Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EGit » JGit(Exception while performing push operation)
JGit [message #802740] Mon, 20 February 2012 11:36
John J D is currently offline John J DFriend
Messages: 1
Registered: January 2012
Junior Member
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.
Previous Topic:what does "rejected" mean when pushing to a remote repository?
Next Topic:aborting a merge
Goto Forum:
  


Current Time: Wed Dec 17 23:22:05 GMT 2014

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

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