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

Application wizard: When creating an app from a template, expanding the buildconfig causes error

XMLWordPrintable

    • devex #123 November 2016
    • 8
    • Hide
      1. EXEC: launch Application wizard, using openshift 3 connection
      2. EXEC: select template (ex. nodejs-example)
      3. EXEC: in "Details" section hit "Defined Resources..."
      4. ASSERT: Details dialog shows up, listing the resource that will be created with the selected template
      5. ASSERT: "BuildConfig" is listed
      6. EXEC: click on the "+"

      Result:
      The "+" disappears, no child items are displayed and the log contains the stacktrace paste in the description.

      Show
      EXEC: launch Application wizard, using openshift 3 connection EXEC: select template (ex. nodejs-example) EXEC: in "Details" section hit "Defined Resources..." ASSERT: Details dialog shows up, listing the resource that will be created with the selected template ASSERT: "BuildConfig" is listed EXEC: click on the "+" Result: The "+" disappears, no child items are displayed and the log contains the stacktrace paste in the description.

      When an application is created from a template in JbossTools, before the application gets created you can display the to-be-created resources.
      For BuildConfig, if you expand the node, JBossTools displays the build triggers but the resources implementation requires to have the resource URL but as the resource has not yet been created, this leads to an OpenshiftException:

      com.openshift.restclient.OpenShiftException: The api endpoint for kind 'BuildConfig' requires a namespace
      	at com.openshift.internal.restclient.URLBuilder.buildWithNamespaceInPath(URLBuilder.java:147)
      	at com.openshift.internal.restclient.URLBuilder.build(URLBuilder.java:127)
      	at com.openshift.internal.restclient.DefaultClient.getResourceURI(DefaultClient.java:108)
      	at com.openshift.internal.restclient.model.BuildConfig.getBuildTriggers(BuildConfig.java:82)
      	at org.jboss.tools.openshift.internal.ui.wizard.newapp.ResourceDetailsContentProvider.getBuildConfigChildren(ResourceDetailsContentProvider.java:112)
      	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:4410)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1103)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1088)
      	at org.eclipse.swt.widgets.Tree.wmNotifyChild(Tree.java:7705)
      	at org.eclipse.swt.widgets.Control.wmNotify(Control.java:5817)
      	at org.eclipse.swt.widgets.Composite.wmNotify(Composite.java:2033)
      	at org.eclipse.swt.widgets.Control.WM_NOTIFY(Control.java:5371)
      	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4847)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5102)
      	at org.eclipse.swt.internal.win32.OS.CallWindowProcW(Native Method)
      	at org.eclipse.swt.internal.win32.OS.CallWindowProc(OS.java:2446)
      	at org.eclipse.swt.widgets.Tree.callWindowProc(Tree.java:1552)
      	at org.eclipse.swt.widgets.Tree.WM_LBUTTONDOWN(Tree.java:6559)
      	at org.eclipse.swt.widgets.Control.windowProc(Control.java:4827)
      	at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:6074)
      	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5102)
      	at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)
      	at org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2552)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3814)
      	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:593)
      	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:4410)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4228)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3816)
      	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.GeneratedMethodAccessor310.invoke(Unknown Source)
      	at sun.reflect.DelegatingMethodAccessorImpl.__invoke(DelegatingMethodAccessorImpl.java:43)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
      	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:4410)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1079)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4228)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3816)
      	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:687)
      	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: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 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java)
      	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)
      
      

              jmaury@redhat.com Jeff MAURY
              jmaury@redhat.com Jeff MAURY
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: