Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-12775

if cloning fails because of missing private key in ssh2 preferences,error dialog only shows a meaningless TargetInvocationException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Major Major
    • 4.0.0.Alpha2
    • 4.0.0.Alpha2
    • openshift
    • None
    • Hide

      Try to import application (clone git repo) without having the private portion of ssh key in ssh preferences.

      Show
      Try to import application (clone git repo) without having the private portion of ssh key in ssh preferences.
    • Workaround Exists
    • Hide

      Add private key to ssh2 preferences according to the instructions given.

      Show
      Add private key to ssh2 preferences according to the instructions given.

          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
      
      

      whole stack trace: http://pastebin.com/HF758uh3

      screenshot:

            adietish@redhat.com André Dietisheim
            sbunciak-rh Stefan Bunciak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: