[jbosstools-issues] [JBoss JIRA] Commented: (JBIDE-9129) New Session Bean Wizard NPE's

Rob Stryker (JIRA) jira-events at lists.jboss.org
Wed Jun 15 09:55:29 EDT 2011


    [ https://issues.jboss.org/browse/JBIDE-9129?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12608852#comment-12608852 ] 

Rob Stryker commented on JBIDE-9129:
------------------------------------

Simple fix: replace
  if (element.getElementType() == IJavaElement.PACKAGE_FRAGMENT)
with
  if (element != null && element.getElementType() == IJavaElement.PACKAGE_FRAGMENT)

> New Session Bean Wizard NPE's
> -----------------------------
>
>                 Key: JBIDE-9129
>                 URL: https://issues.jboss.org/browse/JBIDE-9129
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: JBossAS
>            Reporter: Max Rydahl Andersen
>            Assignee: Rob Stryker
>             Fix For: 3.3.0.M3
>
>
> New Session Bean wizard (ours not WTP) gives the following exception when starting it:
> java.lang.NullPointerException
> 	at org.jboss.ide.eclipse.as.ui.mbeans.wizards.pages.NewSessionBeanWizardPage.createControl(NewSessionBeanWizardPage.java:180)
> 	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:1183)
> 	at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1242)
> 	at org.eclipse.jface.wizard.WizardDialog.access$4(WizardDialog.java:1239)
> 	at org.eclipse.jface.wizard.WizardDialog$8.run(WizardDialog.java:1228)
> 	at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
> 	at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1226)
> 	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:624)
> 	at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:240)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4123)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
> 	at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1270)
> 	at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3969)
> 	at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3608)
> 	at org.eclipse.jface.window.Window.runEventLoop(Window.java:825)
> 	at org.eclipse.jface.window.Window.open(Window.java:801)
> 	at org.eclipse.ui.internal.handlers.WizardHandler$New.executeHandler(WizardHandler.java:257)
> 	at org.eclipse.ui.internal.handlers.WizardHandler.execute(WizardHandler.java:277)
> 	at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:293)
> 	at org.eclipse.core.commands.Command.executeWithChecks(Command.java:476)
> 	at org.eclipse.core.commands.ParameterizedCommand.executeWithChecks(ParameterizedCommand.java:508)
> 	at org.eclipse.ui.internal.handlers.HandlerService.executeCommand(HandlerService.java:169)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.executeCommand(WorkbenchKeyboard.java:468)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.press(WorkbenchKeyboard.java:786)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.processKeyEvent(WorkbenchKeyboard.java:885)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.filterKeySequenceBindings(WorkbenchKeyboard.java:567)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard.access$3(WorkbenchKeyboard.java:508)
> 	at org.eclipse.ui.internal.keys.WorkbenchKeyboard$KeyDownFilter.handleEvent(WorkbenchKeyboard.java:123)
> 	at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
> 	at org.eclipse.swt.widgets.Display.filterEvent(Display.java:1069)
> 	at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4122)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1457)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1480)
> 	at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1465)
> 	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1494)
> 	at org.eclipse.swt.widgets.Widget.sendKeyEvent(Widget.java:1490)
> 	at org.eclipse.swt.widgets.Tree.sendKeyEvent(Tree.java:2570)
> 	at org.eclipse.swt.widgets.Control.keyDown(Control.java:2341)
> 	at org.eclipse.swt.widgets.Composite.keyDown(Composite.java:600)
> 	at org.eclipse.swt.widgets.Tree.keyDown(Tree.java:1963)
> 	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5468)
> 	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
> 	at org.eclipse.swt.widgets.Widget.callSuper(Widget.java:220)
> 	at org.eclipse.swt.widgets.Widget.windowSendEvent(Widget.java:2092)
> 	at org.eclipse.swt.widgets.Shell.windowSendEvent(Shell.java:2254)
> 	at org.eclipse.swt.widgets.Display.windowProc(Display.java:5530)
> 	at org.eclipse.swt.internal.cocoa.OS.objc_msgSendSuper(Native Method)
> 	at org.eclipse.swt.widgets.Display.applicationSendEvent(Display.java:4984)
> 	at org.eclipse.swt.widgets.Display.applicationProc(Display.java:5133)
> 	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:3605)
> 	at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2696)
> 	at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2660)
> 	at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2494)
> 	at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:674)
> 	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
> 	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:667)
> 	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
> 	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:123)
> 	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:344)
> 	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> 	at java.lang.reflect.Method.invoke(Method.java:597)
> 	at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:622)
> 	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:577)
> 	at org.eclipse.equinox.launcher.Main.run(Main.java:1410)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosstools-issues mailing list