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

Getting NullPointerException when creating OpenShift application component for rest-http java application

    XMLWordPrintable

Details

    • Bug
    • Status: Open (View Workflow)
    • Critical
    • Resolution: Unresolved
    • 4.21.0.Final
    • 4.25.0.Final
    • openshift
    • None
    • Hide
      1. Start Studio with Java 17
      2. Connect to the openshift cluster with OpenShift App. Explorer
      3. Create a project
      4. Create launcher application mission: rest-http, runtime: vert-x community
      5. Create a component for project and application
      6. ASSERT: No error is created in error log and you can choose component type and finish the wizard

      Actual result: cannot finish the wizard, error appears.

      Show
      Start Studio with Java 17 Connect to the openshift cluster with OpenShift App. Explorer Create a project Create launcher application mission: rest-http, runtime: vert-x community Create a component for project and application ASSERT: No error is created in error log and you can choose component type and finish the wizard Actual result: cannot finish the wizard, error appears.

    Description

      I am getting an error when creating new component for Openshift project when using launcher's rest-http java project.

      
      null
      org.eclipse.core.databinding
      Error
      Tue Dec 14 22:15:05 CET 2021
      Unhandled exception: Cannot invoke "java.util.List.isEmpty()" because the return value of "org.eclipse.core.databinding.observable.value.IObservableValue.getValue()" is null
      
      java.lang.NullPointerException: Cannot invoke "java.util.List.isEmpty()" because the return value of "org.eclipse.core.databinding.observable.value.IObservableValue.getValue()" is null
          at org.jboss.tools.openshift.internal.ui.wizard.applicationexplorer.CreateComponentWizardPage.lambda$3(CreateComponentWizardPage.java:185)
          at org.eclipse.core.databinding.observable.value.ComputedValue$1.calculate(ComputedValue.java:110)
          at org.eclipse.core.databinding.observable.value.ComputedValue$PrivateInterface.run(ComputedValue.java:170)
          at org.eclipse.core.databinding.observable.ObservableTracker.runAndMonitor(ObservableTracker.java:113)
          at org.eclipse.core.databinding.observable.value.ComputedValue.doGetValue(ComputedValue.java:198)
          at org.eclipse.core.databinding.observable.value.AbstractObservableValue.getValue(AbstractObservableValue.java:92)
          at org.eclipse.core.databinding.observable.value.ComputedValue.lambda$0(ComputedValue.java:314)
          at org.eclipse.core.databinding.observable.Realm$1.run(Realm.java:151)
          at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:45)
          at org.eclipse.core.databinding.observable.Realm.safeRun(Realm.java:155)
          at org.eclipse.core.databinding.observable.Realm.exec(Realm.java:173)
          at org.eclipse.core.databinding.observable.value.ComputedValue.computeValueForListeners(ComputedValue.java:307)
          at org.eclipse.core.databinding.observable.value.ComputedValue.addValueChangeListener(ComputedValue.java:326)
          at org.eclipse.core.databinding.ValueBinding.postInit(ValueBinding.java:91)
          at org.eclipse.core.databinding.Binding.init(Binding.java:80)
          at org.eclipse.core.databinding.DataBindingContext.bindValue(DataBindingContext.java:201)
          at org.jboss.tools.common.ui.databinding.ValueBindingBuilder.bind(ValueBindingBuilder.java:36)
          at org.jboss.tools.common.ui.databinding.ValueBindingBuilder.access$0(ValueBindingBuilder.java:34)
          at org.jboss.tools.common.ui.databinding.ValueBindingBuilder$ModelDefinition.in(ValueBindingBuilder.java:69)
          at org.jboss.tools.openshift.internal.ui.wizard.applicationexplorer.CreateComponentWizardPage.doCreateControls(CreateComponentWizardPage.java:199)
          at org.jboss.tools.openshift.internal.common.ui.wizard.AbstractOpenShiftWizardPage.createControl(AbstractOpenShiftWizardPage.java:78)
          at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:178)
          at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:743)
          at org.eclipse.jface.wizard.WizardDialog.createContents(WizardDialog.java:635)
          at org.eclipse.jface.window.Window.create(Window.java:431)
          at org.eclipse.jface.dialogs.Dialog.create(Dialog.java:1094)
          at org.jboss.tools.common.ui.WizardUtils.openWizardDialog(WizardUtils.java:244)
          at org.jboss.tools.openshift.internal.ui.handler.applicationexplorer.CreateComponentHandler.openDialog(CreateComponentHandler.java:101)
          at org.jboss.tools.openshift.internal.ui.handler.applicationexplorer.CreateComponentHandler.execute(CreateComponentHandler.java:71)
          at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
          at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
          at jdk.internal.reflect.GeneratedMethodAccessor131.invoke(Unknown Source)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:568)
          at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
          at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:317)
          at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:251)
          at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:173)
          at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:156)
          at org.eclipse.core.commands.Command.executeWithChecks(Command.java:488)
          at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:487)
          at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
          at org.eclipse.e4.ui.workbench.renderers.swt.HandledContributionItem.executeItem(HandledContributionItem.java:438)
          at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.handleWidgetSelection(AbstractContributionItem.java:449)
          at org.eclipse.e4.ui.workbench.renderers.swt.AbstractContributionItem.lambda$2(AbstractContributionItem.java:475)
          at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
          at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5895)
          at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1515)
          at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:5126)
          at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4581)
          at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1154)
          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
          at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1045)
          at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:155)
          at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:644)
          at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
          at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:551)
          at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:156)
          at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:152)
          at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:136)
          at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:401)
          at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
          at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          at java.base/java.lang.reflect.Method.invoke(Method.java:568)
          at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:659)
          at org.eclipse.equinox.launcher.Main.basicRun(Main.java:596)
          at org.eclipse.equinox.launcher.Main.run(Main.java:1467)
          at org.eclipse.equinox.launcher.Main.main(Main.java:1440)
      
      

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated: