[jbosstools-issues] [JBoss JIRA] (JBIDE-12005) Handle SSH auth fail correctly

Xavier Coulon (JIRA) jira-events at lists.jboss.org
Fri May 25 07:55:17 EDT 2012


Xavier Coulon created JBIDE-12005:
-------------------------------------

             Summary: Handle SSH auth fail correctly
                 Key: JBIDE-12005
                 URL: https://issues.jboss.org/browse/JBIDE-12005
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: openshift
    Affects Versions: 3.3.0.Beta3
            Reporter: Xavier Coulon
            Assignee: Xavier Coulon
             Fix For: 3.3.0.CR1


Trying to open PortForwarding with no valid ssh key gives the following error:

!ENTRY org.jboss.tools.openshift.express.ui 4 0 2012-05-25 12:18:11.339
!MESSAGE Could not load forwardable ports for application 'chat'
!STACK 0
com.openshift.client.OpenShiftSSHOperationException: Failed to open a new SSH session for application 'chat'
	at org.jboss.tools.openshift.express.internal.core.portforward.ApplicationPortForwardingWizardModel.verifyApplicationSSHSession(ApplicationPortForwardingWizardModel.java:224)
	at org.jboss.tools.openshift.express.internal.core.portforward.ApplicationPortForwardingWizardPage$12.run(ApplicationPortForwardingWizardPage.java:333)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
Caused by: com.jcraft.jsch.JSchException: Auth fail
	at com.jcraft.jsch.Session.connect(Session.java:461)
	at com.jcraft.jsch.Session.connect(Session.java:154)
	at org.jboss.tools.openshift.express.internal.ui.utils.OpenShiftSshSessionFactory.createSession(OpenShiftSshSessionFactory.java:106)
	at org.jboss.tools.openshift.express.internal.ui.utils.OpenShiftSshSessionFactory.createSession(OpenShiftSshSessionFactory.java:83)
	at org.jboss.tools.openshift.express.internal.core.portforward.ApplicationPortForwardingWizardModel.verifyApplicationSSHSession(ApplicationPortForwardingWizardModel.java:220)
	... 2 more

!ENTRY org.eclipse.core.databinding 4 0 2012-05-25 12:18:12.051
!MESSAGE Unhandled exception: com.openshift.client.OpenShiftSSHOperationException: No SSH session available for application 'chat'
!STACK 0
java.lang.RuntimeException: com.openshift.client.OpenShiftSSHOperationException: No SSH session available for application 'chat'
	at org.eclipse.core.internal.databinding.beans.BeanPropertyHelper.writeProperty(BeanPropertyHelper.java:65)
	at org.eclipse.core.internal.databinding.beans.BeanValueProperty.doSetValue(BeanValueProperty.java:51)
	at org.eclipse.core.databinding.property.value.ValueProperty.setValue(ValueProperty.java:83)
	at org.eclipse.core.internal.databinding.property.value.SimplePropertyObservableValue.doSetValue(SimplePropertyObservableValue.java:104)
	at org.eclipse.core.databinding.observable.value.AbstractObservableValue.setValue(AbstractObservableValue.java:55)
	at org.eclipse.core.databinding.observable.value.DecoratingObservableValue.setValue(DecoratingObservableValue.java:103)
	at org.eclipse.core.databinding.observable.value.DecoratingObservableValue.setValue(DecoratingObservableValue.java:103)
	at org.eclipse.core.databinding.UpdateValueStrategy.doSet(UpdateValueStrategy.java:486)
	at org.eclipse.core.databinding.ValueBinding$4.run(ValueBinding.java:197)
	at org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:148)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:152)
	at org.eclipse.core.databinding.observable.Realm.exec(Realm.java:170)
	at org.eclipse.core.databinding.ValueBinding$3.run(ValueBinding.java:188)
	at org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:148)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:152)
	at org.eclipse.core.databinding.observable.Realm.exec(Realm.java:170)
	at org.eclipse.core.databinding.ValueBinding.doUpdate(ValueBinding.java:151)
	at org.eclipse.core.databinding.ValueBinding.updateTargetToModel(ValueBinding.java:112)
	at org.eclipse.core.databinding.DataBindingContext.updateModels(DataBindingContext.java:451)
	at org.jboss.tools.common.ui.WizardUtils.runInWizard(WizardUtils.java:175)
	at org.jboss.tools.common.ui.WizardUtils.runInWizard(WizardUtils.java:168)
	at org.jboss.tools.openshift.express.internal.core.portforward.ApplicationPortForwardingWizardPage.onPageActivated(ApplicationPortForwardingWizardPage.java:327)
	at org.jboss.tools.openshift.express.internal.ui.wizard.AbstractOpenShiftWizardPage$1.pageChanged(AbstractOpenShiftWizardPage.java:76)
	at org.eclipse.jface.wizard.WizardDialog$9.run(WizardDialog.java:1554)
	at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
	at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49)
	at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175)
	at org.eclipse.jface.wizard.WizardDialog.firePageChanged(WizardDialog.java:1552)
	at org.eclipse.jface.wizard.WizardDialog.update(WizardDialog.java:1337)
	at org.eclipse.jface.wizard.WizardDialog.showStartingPage(WizardDialog.java:1289)
	at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:610)
	at org.eclipse.jface.window.Window.create(Window.java:431)
	at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1089)
	at org.jboss.tools.openshift.express.internal.core.portforward.ApplicationPortForwardingAction.run(ApplicationPortForwardingAction.java:32)
	at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4128)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3974)
	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3613)
	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701)
	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665)
	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499)
	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:344)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1386)
Caused by: com.openshift.client.OpenShiftSSHOperationException: No SSH session available for application 'chat'
	at com.openshift.internal.client.ApplicationResource.sshExecCmd(ApplicationResource.java:582)
	at com.openshift.internal.client.ApplicationResource.loadPorts(ApplicationResource.java:559)
	at com.openshift.internal.client.ApplicationResource.getForwardablePorts(ApplicationResource.java:532)
	at org.jboss.tools.openshift.express.internal.core.portforward.ApplicationPortForwardingWizardModel.updateLocalAddressBindings(ApplicationPortForwardingWizardModel.java:161)
	at org.jboss.tools.openshift.express.internal.core.portforward.ApplicationPortForwardingWizardModel.setUseDefaultLocalIpAddress(ApplicationPortForwardingWizardModel.java:136)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:597)
	at org.eclipse.core.internal.databinding.beans.BeanPropertyHelper.writeProperty(BeanPropertyHelper.java:59)
	... 68 more




--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list