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

Seam Refactor: Exception while attempt to rename Seam component from jar file

XMLWordPrintable

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

      Testcase:

      1. Create "test" seam war project
      2. Open Seam Components view
      3. Open test->org.jboss.seam.core->init
      4. Select "Rename Seam Component" popup menu item on "init" component
      5. Type new name for component
      6. Press Next button

      FAIL: Exception:

      java.lang.reflect.InvocationTargetException
      at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
      at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
      at org.eclipse.ltk.ui.refactoring.RefactoringWizard.createChange(RefactoringWizard.java:583)
      at org.eclipse.ltk.ui.refactoring.RefactoringWizard.computeUserInputSuccessorPage(RefactoringWizard.java:422)
      at org.eclipse.ltk.ui.refactoring.UserInputWizardPage.computeSuccessorPage(UserInputWizardPage.java:74)
      at org.eclipse.ltk.ui.refactoring.UserInputWizardPage.getNextPage(UserInputWizardPage.java:114)
      at org.jboss.tools.seam.ui.wizard.RenameComponentWizard$RenameComponentWizardPage.getNextPage(RenameComponentWizard.java:121)
      at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:813)
      at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
      at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
      at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:228)
      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.jface.window.Window.runEventLoop(Window.java:825)
      at org.eclipse.jface.window.Window.open(Window.java:801)
      at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation$1.run(RefactoringWizardOpenOperation.java:143)
      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
      at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:155)
      at org.jboss.tools.seam.ui.refactoring.SeamRefactorContributionFactory.invokeRenameComponentWizard(SeamRefactorContributionFactory.java:378)
      at org.jboss.tools.seam.ui.views.actions.RenameComponentAction.run(RenameComponentAction.java:49)
      at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
      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: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(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      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)
      Caused by: java.lang.NullPointerException
      at org.jboss.tools.seam.internal.core.refactoring.SeamRenameProcessor.findAnnotations(SeamRenameProcessor.java:170)
      at org.jboss.tools.seam.internal.core.refactoring.SeamRenameProcessor.findAnnotations(SeamRenameProcessor.java:156)
      at org.jboss.tools.seam.internal.core.refactoring.SeamRenameProcessor.renameComponent(SeamRenameProcessor.java:533)
      at org.jboss.tools.seam.internal.core.refactoring.RenameComponentProcessor.createChange(RenameComponentProcessor.java:85)
      at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.createChange(ProcessorBasedRefactoring.java:290)
      at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:124)
      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
      at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:87)
      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

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

                Created:
                Updated:
                Resolved: