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

Application wizard: NPE from eclipse project with no remote git reference.

XMLWordPrintable

    • devex #114 May 2016
    • 2
    • Hide

      1) Have project in workspace which is shared with git locally (no remote references)
      2) Create new Openshift application, select the project.
      3) ASSERT: Warning "A remote Git repository using the HTTP(S) protocol must be defined on project..."
      3) FAIL: Finish is enabled - should be disabled.
      4) FAIL: Clicking finish throws NPE to Error Log

      Show
      1) Have project in workspace which is shared with git locally (no remote references) 2) Create new Openshift application, select the project. 3) ASSERT: Warning "A remote Git repository using the HTTP(S) protocol must be defined on project..." 3) FAIL: Finish is enabled - should be disabled. 4) FAIL: Clicking finish throws NPE to Error Log

      Trying to finish new openshift application wizard using existing aplication from workspace without remote git repository fails with NPE:

      Unhandled event loop exception
      java.lang.NullPointerException
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.NewApplicationWizard.performFinish(NewApplicationWizard.java:194)
      	at org.eclipse.jface.wizard.WizardDialog.finishPressed(WizardDialog.java:790)
      	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:423)
      	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4494)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1339)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3832)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3443)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
      	at org.eclipse.jface.window.Window.open(Window.java:794)
      	at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:287)
      	at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:270)
      	at org.jboss.tools.openshift.internal.ui.handler.NewApplicationHandler.execute(NewApplicationHandler.java:34)
      	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:295)
      	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:90)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:54)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:282)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:264)
      	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:152)
      	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:494)
      	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:491)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
      	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:425)
      	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:449)
      	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem$3.handleEvent(AbstractContributionItem.java:477)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4494)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1339)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3832)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3443)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1118)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1019)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:157)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:691)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:497)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:670)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:609)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1516)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1489)
      

            scabanovich Viacheslav Kabanovich (Inactive)
            rhopp@redhat.com Radim Hopp
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: