Skip to main content



      Home
Home » Eclipse Projects » EGit / JGit » JGit(Exception while performing push operation)
JGit [message #802740] Mon, 20 February 2012 06:36
Eclipse UserFriend
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: Tue Jun 24 13:40:33 EDT 2025

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

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

Back to the top