Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-24146 Support pipeline deployment style
  3. JBIDE-24232

New application wizard: NPE when trying to inspect defined resources for jenkins-pipeline-example

    Details

      Description

      steps:

      1. ASSERT: use a cdk which has the "jenkins-pipeline-example" template
      2. EXEC: launch the app wizard and in the list of available server templates select the "jenkins-pipeline-example" template
      3. ASSERT: Details panel shows the details for this template and holds a button "Defined Resources..."
      4. EXEC: hit the "Defined Resources..." button
      5. ASSERT: Details dialog pops up listing all the resources
      6. EXEC: click the 2nd build config "BuildConfig {sample-pipeline}

        "

      Result:
      arrow (or +) to the left of the build config disappears, nothing else happens. In the Eclipse log you discover an NPE:

      java.lang.NullPointerException
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.ResourceDetailsContentProvider.getBuildConfigChildren(ResourceDetailsContentProvider.java:93)
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.ResourceDetailsContentProvider.getChildren(ResourceDetailsContentProvider.java:49)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.getRawChildren(AbstractTreeViewer.java:1372)
      	at org.eclipse.jface.viewers.TreeViewer.getRawChildren(TreeViewer.java:341)
      	at org.eclipse.jface.viewers.StructuredViewer.getFilteredChildren(StructuredViewer.java:907)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.getSortedChildren(AbstractTreeViewer.java:621)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.lambda$0(AbstractTreeViewer.java:817)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:795)
      	at org.eclipse.jface.viewers.TreeViewer.createChildren(TreeViewer.java:596)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.createChildren(AbstractTreeViewer.java:766)
      	at org.eclipse.jface.viewers.AbstractTreeViewer.handleTreeExpand(AbstractTreeViewer.java:1493)
      	at org.eclipse.jface.viewers.TreeViewer.handleTreeExpand(TreeViewer.java:882)
      	at org.eclipse.jface.viewers.AbstractTreeViewer$3.treeExpanded(AbstractTreeViewer.java:1505)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:133)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4256)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1501)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1509)
      	at org.eclipse.swt.widgets.TreeItem.sendExpand(TreeItem.java:1050)
      	at org.eclipse.swt.widgets.Tree.expandItem_expandChildren(Tree.java:1278)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5996)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      	at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:227)
      	at org.eclipse.swt.widgets.Widget.mouseDownSuper(Widget.java:1135)
      	at org.eclipse.swt.widgets.Tree.mouseDownSuper(Tree.java:2102)
      	at org.eclipse.swt.widgets.Widget.mouseDown(Widget.java:1127)
      	at org.eclipse.swt.widgets.Control.mouseDown(Control.java:2624)
      	at org.eclipse.swt.widgets.Tree.mouseDown(Tree.java:2069)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5733)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      	at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:227)
      	at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2140)
      	at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2402)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5797)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
      	at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:5226)
      	at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5375)
      	at org.eclipse.swt.internal.cocoa.OS.objc_msgSend(Native Method)
      	at org.eclipse.swt.internal.cocoa.NSApplication.sendEvent(NSApplication.java:128)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3703)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:818)
      	at org.eclipse.jface.window.Window.open(Window.java:794)
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.ApplicationSourceListPage$13.widgetSelected(ApplicationSourceListPage.java:590)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:249)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4256)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1501)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1509)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1313)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4080)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3706)
      	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:498)
      	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:55)
      	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:488)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:210)
      	at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:433)
      	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:454)
      	at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem$3.handleEvent(AbstractContributionItem.java:482)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4256)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1501)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1524)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1509)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1313)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4080)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3706)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:693)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:610)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)
      	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:498)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1519)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1492)
      
      

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  adietish André Dietisheim
                  Reporter:
                  adietish André Dietisheim
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: