[jbosstools-issues] [JBoss JIRA] (JBIDE-12775) if cloning fails because of missing private key in ssh2 preferences, error dialog only shows a meaningless TargetInvocationException
Andre Dietisheim (JIRA)
jira-events at lists.jboss.org
Tue Oct 2 09:18:03 EDT 2012
[ https://issues.jboss.org/browse/JBIDE-12775?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12723284#comment-12723284 ]
Andre Dietisheim edited comment on JBIDE-12775 at 10/2/12 9:16 AM:
-------------------------------------------------------------------
weird, I cannot reproduce the very same error. I get a meaningful error:
!auth-error.png!
my stacktrace is also different:
{code}
org.eclipse.jgit.errors.TransportException: ssh://5d824d61cdc64132b25a94a758034615@aa-bubi.rhcloud.com/~/git/aa.git/: Auth fail
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
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.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:153)
at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:245)
at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.AbstractImportApplicationOperation.cloneRepository(AbstractImportApplicationOperation.java:94)
at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ImportNewProject.execute(ImportNewProject.java:73)
at org.jboss.tools.openshift.express.internal.ui.wizard.OpenShiftExpressApplicationWizardModel.importProject(OpenShiftExpressApplicationWizardModel.java:81)
at org.jboss.tools.openshift.express.internal.ui.wizard.OpenShiftExpressApplicationWizard$ImportJob.runInWorkspace(OpenShiftExpressApplicationWizard.java:291)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:482)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
... 17 more
{code}
I'm running egit 2.1:
{quote}
1122 STARTING org.eclipse.egit_2.1.0.201209190230-r
1123 ACTIVE org.eclipse.egit.core_2.1.0.201209190230-r
{quote}
and the following rse plugins:
{quote}
1498 STARTING org.eclipse.rse.connectorservice.ssh_2.1.300.201209191030
1512 STARTING org.eclipse.rse.services.ssh_3.2.0.201209191030{quote}
{quote}
was (Author: adietish):
weird, I cannot reproduce the very same error. I get a meaningful error:
!auth-error.png!
my stacktrace is also different:
{code}
org.eclipse.jgit.errors.TransportException: ssh://5d824d61cdc64132b25a94a758034615@aa-bubi.rhcloud.com/~/git/aa.git/: Auth fail
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142)
at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
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.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:153)
at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:245)
at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.AbstractImportApplicationOperation.cloneRepository(AbstractImportApplicationOperation.java:94)
at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ImportNewProject.execute(ImportNewProject.java:73)
at org.jboss.tools.openshift.express.internal.ui.wizard.OpenShiftExpressApplicationWizardModel.importProject(OpenShiftExpressApplicationWizardModel.java:81)
at org.jboss.tools.openshift.express.internal.ui.wizard.OpenShiftExpressApplicationWizard$ImportJob.runInWorkspace(OpenShiftExpressApplicationWizard.java:291)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
Caused by: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect(Session.java:482)
at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
... 17 more
{code}
I'm running egit 2.1:
{quote}
1122 STARTING org.eclipse.egit_2.1.0.201209190230-r
1123 ACTIVE org.eclipse.egit.core_2.1.0.201209190230-r
{quote}
> if cloning fails because of missing private key in ssh2 preferences,error dialog only shows a meaningless TargetInvocationException
> -----------------------------------------------------------------------------------------------------------------------------------
>
> Key: JBIDE-12775
> URL: https://issues.jboss.org/browse/JBIDE-12775
> Project: Tools (JBoss Tools)
> Issue Type: Bug
> Components: openshift
> Affects Versions: 4.0.0.Alpha2
> Reporter: Stefan Bunciak
> Assignee: Andre Dietisheim
> Fix For: 4.0.0.Beta1
>
> Attachments: auth-error.png, sshexception.png
>
>
> {code}
> java.lang.reflect.InvocationTargetException
> at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:173)
> at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:245)
> at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:233)
> at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.AbstractImportApplicationOperation.cloneRepository(AbstractImportApplicationOperation.java:97)
> at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ConfigureUnsharedProject.copyOpenshiftConfigurations(ConfigureUnsharedProject.java:140)
> at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ConfigureUnsharedProject.execute(ConfigureUnsharedProject.java:93)
> at org.jboss.tools.openshift.express.internal.ui.wizard.OpenShiftExpressApplicationWizardModel.configureUnsharedProject(OpenShiftExpressApplicationWizardModel.java:119)
> at org.jboss.tools.openshift.express.internal.ui.wizard.OpenShiftExpressApplicationWizard$ImportJob.runInWorkspace(OpenShiftExpressApplicationWizard.java:304)
> at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
> Caused by: org.eclipse.jgit.api.errors.TransportException: ssh://733a664b01da4c8f8352a271434c0805@rich-heydoman.rhcloud.com/~/git/rich.git/: Auth fail
> at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
> at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
> at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
> at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:153)
> ... 9 more
> Caused by: org.eclipse.jgit.errors.TransportException: ssh://733a664b01da4c8f8352a271434c0805@rich-heydoman.rhcloud.com/~/git/rich.git/: Auth fail
> at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142)
> at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
> at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
> at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
> 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)
> ... 12 more
> Caused by: com.jcraft.jsch.JSchException: Auth fail
> at com.jcraft.jsch.Session.connect(Session.java:482)
> at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
> ... 19 more
> Root exception:
> org.eclipse.jgit.api.errors.TransportException: ssh://733a664b01da4c8f8352a271434c0805@rich-heydoman.rhcloud.com/~/git/rich.git/: Auth fail
> at org.eclipse.jgit.api.FetchCommand.call(FetchCommand.java:137)
> at org.eclipse.jgit.api.CloneCommand.fetch(CloneCommand.java:178)
> at org.eclipse.jgit.api.CloneCommand.call(CloneCommand.java:125)
> at org.eclipse.egit.core.op.CloneOperation.run(CloneOperation.java:153)
> at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:245)
> at org.jboss.tools.openshift.egit.core.EGitUtils.cloneRepository(EGitUtils.java:233)
> at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.AbstractImportApplicationOperation.cloneRepository(AbstractImportApplicationOperation.java:97)
> at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ConfigureUnsharedProject.copyOpenshiftConfigurations(ConfigureUnsharedProject.java:140)
> at org.jboss.tools.openshift.express.internal.ui.wizard.appimport.ConfigureUnsharedProject.execute(ConfigureUnsharedProject.java:93)
> at org.jboss.tools.openshift.express.internal.ui.wizard.OpenShiftExpressApplicationWizardModel.configureUnsharedProject(OpenShiftExpressApplicationWizardModel.java:119)
> at org.jboss.tools.openshift.express.internal.ui.wizard.OpenShiftExpressApplicationWizard$ImportJob.runInWorkspace(OpenShiftExpressApplicationWizard.java:304)
> at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
> at org.eclipse.core.internal.jobs.Worker.run(Worker.java:53)
> Caused by: org.eclipse.jgit.errors.TransportException: ssh://733a664b01da4c8f8352a271434c0805@rich-heydoman.rhcloud.com/~/git/rich.git/: Auth fail
> at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:142)
> at org.eclipse.jgit.transport.SshTransport.getSession(SshTransport.java:121)
> at org.eclipse.jgit.transport.TransportGitSsh$SshFetchConnection.<init>(TransportGitSsh.java:248)
> at org.eclipse.jgit.transport.TransportGitSsh.openFetch(TransportGitSsh.java:147)
> 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)
> ... 12 more
> Caused by: com.jcraft.jsch.JSchException: Auth fail
> at com.jcraft.jsch.Session.connect(Session.java:482)
> at org.eclipse.jgit.transport.JschConfigSessionFactory.getSession(JschConfigSessionFactory.java:116)
> ... 19 more
> {code}
> whole stack trace: http://pastebin.com/HF758uh3
> screenshot:
> * !sshexception.png|thumbnail!
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jbosstools-issues
mailing list