4 Replies Latest reply on Feb 18, 2019 10:30 AM by Bob Smith

    Error trying to rename method in Eclipse

    Bob Smith Newbie

      Eclipse>>Check For Updates doesn't show any JBoss Tools recent changes.

       

      What steps will reproduce the problem?

      1. I am working on in a Java project.

      2. select method in Outline

      3. Refactor->Rename

      4. rename type" dialog opens, I enter the new name, and press "Preview >".

      5. Eventually for me, the "Rename Method" window appears with "A fatal error occured while performing the refactoring." 

      Found problems: "An unexpected exception occurred while creating a change object. See the error log for more details."

       

      -- Error Details --

      Date: Wed Feb 06 16:19:30 EST 2019

      Message: Internal Error

      Severity: Error

      Product: Eclipse IDE 4.10.0.20181214-0600 (org.eclipse.epp.package.jee.product)

      Plugin: org.eclipse.ltk.ui.refactoring

      Session Data:

      eclipse.buildId=4.10.0.I20181206-0815

      java.version=1.8.0_201

      java.vendor=Oracle Corporation

      BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=en_US

      Framework arguments: -product org.eclipse.epp.package.jee.product

      Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

       

      Exception Stack Trace:

      java.lang.reflect.InvocationTargetException

      at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:401)

      at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.run(RefactoringWizardDialog2.java:324)

      at org.eclipse.ltk.ui.refactoring.RefactoringWizard.createChange(RefactoringWizard.java:665)

      at org.eclipse.ltk.ui.refactoring.RefactoringWizard.computeUserInputSuccessorPage(RefactoringWizard.java:506)

      at org.eclipse.ltk.ui.refactoring.UserInputWizardPage.computeSuccessorPage(UserInputWizardPage.java:77)

      at org.eclipse.ltk.ui.refactoring.UserInputWizardPage.getNextPage(UserInputWizardPage.java:113)

      at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.nextOrPreviewPressed(RefactoringWizardDialog2.java:493)

      at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.access$2(RefactoringWizardDialog2.java:490)

      at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2$1.widgetSelected(RefactoringWizardDialog2.java:693)

      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:4131)

      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1055)

      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)

      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)

      at org.eclipse.jface.window.Window.runEventLoop(Window.java:822)

      at org.eclipse.jface.window.Window.open(Window.java:798)

      at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation$1.run(RefactoringWizardOpenOperation.java:192)

      at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:72)

      at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:212)

      at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:126)

      at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter.activate(RefactoringStarter.java:41)

      at org.eclipse.jdt.internal.ui.refactoring.UserInterfaceStarter.activate(UserInterfaceStarter.java:65)

      at org.eclipse.jdt.internal.ui.refactoring.reorg.RenameUserInterfaceStarter.activate(RenameUserInterfaceStarter.java:35)

      at org.eclipse.jdt.internal.ui.refactoring.reorg.RenameMethodUserInterfaceStarter.activate(RenameMethodUserInterfaceStarter.java:70)

      at org.eclipse.jdt.ui.refactoring.RenameSupport.openDialog(RenameSupport.java:163)

      at org.eclipse.jdt.ui.refactoring.RenameSupport.openDialog(RenameSupport.java:119)

      at org.eclipse.jdt.internal.corext.refactoring.RefactoringExecutionStarter.startRenameRefactoring(RefactoringExecutionStarter.java:441)

      at org.eclipse.jdt.internal.ui.refactoring.actions.RenameJavaElementAction.run(RenameJavaElementAction.java:227)

      at org.eclipse.jdt.internal.ui.refactoring.actions.RenameJavaElementAction.run(RenameJavaElementAction.java:113)

      at org.eclipse.jdt.ui.actions.RenameAction.run(RenameAction.java:113)

      at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:274)

      at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:252)

      at org.eclipse.jface.action.Action.runWithEvent(Action.java:476)

      at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:568)

      at org.eclipse.jface.action.ActionContributionItem.lambda$4(ActionContributionItem.java:400)

      at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:89)

      at org.eclipse.swt.widgets.Display.sendEvent(Display.java:4131)

      at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1055)

      at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3944)

      at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3547)

      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$5.run(PartRenderingEngine.java:1173)

      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)

      at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1062)

      at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:156)

      at org.eclipse.ui.internal.Workbench.lambda$3(Workbench.java:636)

      at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:339)

      at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:563)

      at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:151)

      at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:155)

      at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:203)

      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:137)

      at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:107)

      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:400)

      at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:255)

      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:659)

      at org.eclipse.equinox.launcher.Main.basicRun(Main.java:595)

      at org.eclipse.equinox.launcher.Main.run(Main.java:1501)

      Caused by: java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/corext/refactoring/tagging/IReferenceUpdating

      at org.jboss.tools.common.model.refactoring.RenameProcessorRunner.updateReferences(RenameProcessorRunner.java:52)

      at org.jboss.tools.jsf.model.handlers.bean.JSFRenameFieldParticipant.updateReferences(JSFRenameFieldParticipant.java:121)

      at org.jboss.tools.jsf.model.handlers.bean.JSFRenameFieldParticipant.createChange(JSFRenameFieldParticipant.java:61)

      at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.createChange(ProcessorBasedRefactoring.java:309)

      at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:125)

      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2295)

      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2322)

      at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:89)

      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)

      Root exception:

      java.lang.NoClassDefFoundError: org/eclipse/jdt/internal/corext/refactoring/tagging/IReferenceUpdating

      at org.jboss.tools.common.model.refactoring.RenameProcessorRunner.updateReferences(RenameProcessorRunner.java:52)

      at org.jboss.tools.jsf.model.handlers.bean.JSFRenameFieldParticipant.updateReferences(JSFRenameFieldParticipant.java:121)

      at org.jboss.tools.jsf.model.handlers.bean.JSFRenameFieldParticipant.createChange(JSFRenameFieldParticipant.java:61)

      at org.eclipse.ltk.core.refactoring.participants.ProcessorBasedRefactoring.createChange(ProcessorBasedRefactoring.java:309)

      at org.eclipse.ltk.core.refactoring.CreateChangeOperation.run(CreateChangeOperation.java:125)

      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2295)

      at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2322)

      at org.eclipse.ltk.internal.ui.refactoring.WorkbenchRunnableAdapter.run(WorkbenchRunnableAdapter.java:89)

      at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)