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

NPE is thrown when user tries to rename Seam Component which is declared in components.xml

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 3.1.0.M1
    • 3.1.0.M1
    • seam2
    • None

      1. Create Seam Project (New Seam Project Wizard)
      2. Open components.xml. Add <component class="org.domain.<project_name>.session.Authenticator" name="authenticator"/>
      3. Open Authenticator.java. Remove @Name("authenticator")
      4. Right click->Seam->Rename Component
      5. Enter new name, press finish.
      6. There is en error in Eclipse log:

      java.lang.NullPointerException
      at org.jboss.tools.seam.ui.wizard.RenameComponentWizard.<init>(RenameComponentWizard.java:54)
      at org.jboss.tools.seam.ui.refactoring.SeamComponentRenameHandler.invokeRenameWizard(SeamComponentRenameHandler.java:73)
      at org.jboss.tools.seam.ui.refactoring.SeamComponentRenameHandler.execute(SeamComponentRenameHandler.java:64)
      at org.eclipse.ui.internal.handlers.HandlerProxy.execute(HandlerProxy.java:291)
      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.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
      at org.eclipse.ui.internal.handlers.SlaveHandlerService.executeCommand(SlaveHandlerService.java:247)
      at org.eclipse.ui.menus.CommandContributionItem.handleWidgetSelection(CommandContributionItem.java:743)
      at org.eclipse.ui.menus.CommandContributionItem.access$10(CommandContributionItem.java:729)
      at org.eclipse.ui.menus.CommandContributionItem$5.handleEvent(CommandContributionItem.java:719)
      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1003)
      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3880)
      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3473)
      at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2393)
      at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2357)
      at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2209)
      at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:499)
      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:492)
      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:113)
      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:194)
      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:368)
      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:585)
      at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:556)
      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:511)
      at org.eclipse.equinox.launcher.Main.run(Main.java:1284)
      at org.eclipse.equinox.launcher.Main.main(Main.java:1260)

              dazarov_jira Daniel Azarov (Inactive)
              alexeykazakov Alexey Kazakov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: