• Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 4.19.1.AM1
    • 4.19.0.AM1
    • webservices
    • None
    • Sprint #199 Apr 2021, Sprint #201 May 2021, Sprint #202 June 2021
    • 1
    • Undefined

      I got NPE during creating JAX-RS application. It happens when choosing File -> New -> Other... -> Web Services -> JAX-RS Application and hitting next button.

      Stack Trace:

      !ENTRY org.eclipse.ui 4 0 2021-03-23 22:06:50.677
      !MESSAGE Unhandled event loop exception
      !STACK 0
      java.lang.NullPointerException
      	at org.jboss.tools.ws.jaxrs.ui.wizards.JaxrsElementCreationUtils.hasUniqueChildFolder(JaxrsElementCreationUtils.java:237)
      	at org.jboss.tools.ws.jaxrs.ui.wizards.JaxrsElementCreationUtils.getProjectTopLevelPackage(JaxrsElementCreationUtils.java:220)
      	at org.jboss.tools.ws.jaxrs.ui.wizards.JaxrsApplicationCreationWizardPage.setDefaultValues(JaxrsApplicationCreationWizardPage.java:193)
      	at org.jboss.tools.ws.jaxrs.ui.wizards.JaxrsApplicationCreationWizardPage.setDefaultValues(JaxrsApplicationCreationWizardPage.java:167)
      	at org.jboss.tools.ws.jaxrs.ui.wizards.JaxrsApplicationCreationWizardPage.init(JaxrsApplicationCreationWizardPage.java:139)
      	at org.jboss.tools.ws.jaxrs.ui.wizards.JaxrsApplicationCreationWizard.addPages(JaxrsApplicationCreationWizard.java:65)
      	at org.eclipse.jface.wizard.WizardSelectionPage.getNextPage(WizardSelectionPage.java:119)
      	at org.eclipse.ui.internal.dialogs.WorkbenchWizardSelectionPage.getNextPage(WorkbenchWizardSelectionPage.java:98)
      	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:910)
      	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:468)
      	at org.eclipse.jface.dialogs.Dialog.lambda$0(Dialog.java:619)
      	at org.eclipse.swt.events.SelectionListener$1.widgetSelected(SelectionListener.java:84)
      	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:252)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5831)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1427)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1453)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1436)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1225)
      	at org.eclipse.reddeer.core.handler.WidgetHandler$3.run(WidgetHandler.java:150)
      	at org.eclipse.reddeer.common.util.Display$VoidResultRunnable.run(Display.java:196)
      	at org.eclipse.reddeer.common.util.Display$VoidResultRunnable.run(Display.java:1)
      	at org.eclipse.reddeer.common.util.Display$ErrorHandlingRunnable.run(Display.java:162)
      	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:5067)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4573)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:823)
      	at org.eclipse.jface.window.Window.open(Window.java:799)
      	at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:263)
      	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:283)
      	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:283)
      	at org.eclipse.ui.internal.handlers.E4HandlerProxy.execute(E4HandlerProxy.java:97)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:58)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:319)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:253)
      	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.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:389)
      	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:142)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:580)
      	at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:414)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)
      	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5831)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1427)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1453)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1436)
      	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1225)
      	at org.eclipse.reddeer.core.handler.MenuItemHandler$4.run(MenuItemHandler.java:109)
      	at org.eclipse.reddeer.common.util.Display$VoidResultRunnable.run(Display.java:196)
      	at org.eclipse.reddeer.common.util.Display$VoidResultRunnable.run(Display.java:1)
      	at org.eclipse.reddeer.common.util.Display$ErrorHandlingRunnable.run(Display.java:162)
      	at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:40)
      	at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:185)
      	at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:5067)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4573)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1157)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:338)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1046)
      	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.reddeer.jdt.junit.UITestApplication.start(UITestApplication.java:69)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)
      	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: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:62)
      	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.base/java.lang.reflect.Method.invoke(Method.java:566)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:653)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:590)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1461)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1434)
      

              stephane.bouchet Stephane Bouchet
              odockal@redhat.com Ondrej Dockal
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: