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

NPE when creating Simple Web Service & Sample RESTful Web Service

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 4.1.0.Beta2
    • Fix Version/s: 4.1.0.CR1
    • Component/s: webservices
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      1. create Java Project
      2. Open Web Service Client wizard targeted for Java Project
      3. enter some valid SOAP WS and press finish
      4. Right click on Java Project -> New -> Other -> Create a Sample RESTful Web Service
      ASSERT : exception is thrown

      5. close New wizard
      6. Right click on Java Project -> New -> Other -> Create simple Web Service
      ASSERT : exception is thrown

      Show
      1. create Java Project 2. Open Web Service Client wizard targeted for Java Project 3. enter some valid SOAP WS and press finish 4. Right click on Java Project -> New -> Other -> Create a Sample RESTful Web Service ASSERT : exception is thrown 5. close New wizard 6. Right click on Java Project -> New -> Other -> Create simple Web Service ASSERT : exception is thrown

      Description

      Create a Sample RESTful Web Service wizard throws

      java.lang.NullPointerException
      	at org.jboss.tools.ws.ui.wizards.JBossRSGenerateWizardPage.setWebXMLSelectionValueBasedOnProjectFacet(JBossRSGenerateWizardPage.java:359)
      	at org.jboss.tools.ws.ui.wizards.JBossRSGenerateWizardPage.createControl(JBossRSGenerateWizardPage.java:158)
      	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174)
      	at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736)
      	at org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java:1182)
      	at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1241)
      	at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1238)
      	at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1227)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1225)
      	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:915)
      	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:428)
      	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
      	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.Widget.sendEvent(Widget.java:1392)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
      	at org.eclipse.jface.window.Window.open(Window.java:802)
      	at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:259)
      	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:279)
      	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
      	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:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
      	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
      	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
      	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
      	at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:420)
      	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
      

      and Create simple Web Service throws

      java.lang.NullPointerException
      	at org.jboss.tools.ws.ui.wizards.JBossWSAnnotatedClassWizardPage.setWebXMLSelectionValueBasedOnProjectFacet(JBossWSAnnotatedClassWizardPage.java:580)
      	at org.jboss.tools.ws.ui.wizards.JBossWSAnnotatedClassWizardPage.createApplicationGroup(JBossWSAnnotatedClassWizardPage.java:364)
      	at org.jboss.tools.ws.ui.wizards.JBossWSAnnotatedClassWizardPage.createControl(JBossWSAnnotatedClassWizardPage.java:526)
      	at org.eclipse.jface.wizard.Wizard.createPageControls(Wizard.java:174)
      	at org.eclipse.jface.wizard.WizardDialog.createPageControls(WizardDialog.java:736)
      	at org.eclipse.jface.wizard.WizardDialog.setWizard(WizardDialog.java:1182)
      	at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1241)
      	at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1238)
      	at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1227)
      	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1225)
      	at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:915)
      	at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:428)
      	at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:628)
      	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.Widget.sendEvent(Widget.java:1392)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
      	at org.eclipse.jface.window.Window.runEventLoop(Window.java:826)
      	at org.eclipse.jface.window.Window.open(Window.java:802)
      	at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:259)
      	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:279)
      	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:290)
      	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:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.eclipse.e4.core.internal.di.MethodRequestor.execute(MethodRequestor.java:56)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invokeUsingClass(InjectorImpl.java:243)
      	at org.eclipse.e4.core.internal.di.InjectorImpl.invoke(InjectorImpl.java:224)
      	at org.eclipse.e4.core.contexts.ContextInjectionFactory.invoke(ContextInjectionFactory.java:132)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceHandler.execute(HandlerServiceHandler.java:167)
      	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:499)
      	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
      	at org.eclipse.e4.core.commands.internal.HandlerServiceImpl.executeHandler(HandlerServiceImpl.java:213)
      	at org.eclipse.ui.internal.handlers.LegacyHandlerService.executeCommand(LegacyHandlerService.java:420)
      	at org.eclipse.ui.internal.actions.CommandAction.runWithEvent(CommandAction.java:157)
      	at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
      	at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
      	at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:411)
      	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1392)
      	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3742)
      	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3363)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1113)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:997)
      	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:138)
      	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:610)
      	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:567)
      	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)
      	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
      	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
      	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:354)
      	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:181)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:601)
      	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
      	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
      	at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
      	at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bfitzpat Brian Fitzpatrick
                Reporter:
                rawagner Rastislav Wagner
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: