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

Embed cartridges: cannot embed cartridges when using connection to (default) server while connection is not default

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.CR1
    • 4.0.0.CR1
    • openshift
    • Hide
      1. EXEC: create a connection to the default server, but make sure that you UNCHECK the use default server checkbox (while having it pointing to the default server)
      2. ASSERT: make sure you dont have a 2nd, DEFAULT connection to the very same server ("use default server" IS checked)
      3. In OpenShift Explorer: pick Edit Embedded Cartridges...

      Result:
      Nothing happens. In the Eclipse log you'll spot the following:

      
      
      
      java.lang.IllegalArgumentException: No connection provided
      	at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.application.ApplicationWizardModel.<init>(ApplicationWizardModel.java:30)
      	at org.jboss.tools.openshift.express.internal.ui.wizard.embed.EmbedCartridgeWizard.<init>(EmbedCartridgeWizard.java:28)
      	at org.jboss.tools.openshift.express.internal.ui.action.EditCartridgesAction.run(EditCartridgesAction.java:46)
      	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.Widget.sendEvent(Widget.java:1276)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      	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:353)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
      	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:629)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)
      
      Show
      EXEC: create a connection to the default server, but make sure that you UNCHECK the use default server checkbox (while having it pointing to the default server) ASSERT: make sure you dont have a 2nd, DEFAULT connection to the very same server ("use default server" IS checked) In OpenShift Explorer: pick Edit Embedded Cartridges... Result: Nothing happens. In the Eclipse log you'll spot the following: java.lang.IllegalArgumentException: No connection provided at org.eclipse.core.runtime.Assert.isLegal(Assert.java:63) at org.jboss.tools.openshift.express.internal.ui.wizard.application.ApplicationWizardModel.<init>(ApplicationWizardModel.java:30) at org.jboss.tools.openshift.express.internal.ui.wizard.embed.EmbedCartridgeWizard.<init>(EmbedCartridgeWizard.java:28) at org.jboss.tools.openshift.express.internal.ui.action.EditCartridgesAction.run(EditCartridgesAction.java:46) 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.Widget.sendEvent(Widget.java:1276) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3554) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3179) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923) at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86) at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124) 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:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) 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:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414)

          adietish@redhat.com André Dietisheim
          adietish@redhat.com André Dietisheim
          Votes:
          0 Vote for this issue
          Watchers:
          3 Start watching this issue

            Created:
            Updated:
            Resolved: