Watch, Follow, &
Connect with Us
Public Report
Report From: 3rdRail/Refactoring    [ Add a report in this area ]  
Report #:  64099   Status: Open
Random (?) exception raised on "Rename controller"
Project:  3rdRail Build #:  v20080311_0801
Version:    unspecifie Submitted By:   Olivier Lance
Report Type:  Issue Date Reported:  7/4/2008 3:05:26 AM
Severity:    Infrequently encountered problem Last Updated: 2/20/2009 2:19:24 PM
Platform:    Mac OS Internal Tracking #:  
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
I've got a project in which I cannot rename some (not all) controllers through refactoring.

I haven't quite an idea of which conditions will cause the exception. I thought it was only on controllers with irregular plurals defined in environment.rb, but it's not.

Creating a new project, adding controllers and trying to rename them will work.

However, creating a new project and copying controller files in this project will cause the refactoring to fail, importing the existing project as a new one as well.

The only error messages are :

"An unexpected exception occurred during condition checking. See the error log for more details.

See the error log for more details." with a red icon.

and then :

"An unexpected exception occurred during condition checking. See the error log for more details." with an exclamation mark icon.


Here is the error log concerning the problem :

!ENTRY org.eclipse.ltk.ui.refactoring 4 10000 2008-07-04 12:04:56.734
!MESSAGE Internal Error
!STACK 0
java.lang.reflect.InvocationTargetException

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

at org.eclipse.jface.dialogs.ProgressMonitorDialog.run(ProgressMonitorDialog.java:495)

at org.eclipse.ui.internal.progress.ProgressMonitorJobsDialog.run(ProgressMonitorJobsDialog.java:268)

at org.eclipse.ui.internal.progress.ProgressManager$3.run(ProgressManager.java:909)

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

at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:944)

at org.eclipse.ui.internal.progress.ProgressManager.busyCursorWhile(ProgressManager.java:919)

at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.checkInitialConditions(RefactoringWizardOpenOperation.java:166)

at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.access$0(RefactoringWizardOpenOperation.java:162)

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

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

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

at com.codegear.rails.ui.d.a.a(a.java:142)

at com.codegear.rails.ui.d.a.run(a.java:110)

at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)

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

at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)

at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)

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

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

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

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

at org.eclipse.swt.widgets.Widget.notifyListeners(Widget.java:1295)

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

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

at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)

at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)

at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)

at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)

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

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

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

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

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

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

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

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

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

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

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

at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
Caused by: java.lang.NullPointerException

at com.codegear.rails.ui.d.d.checkInitialConditions(d.java:135)

at org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(CheckConditionsOperation.java:81)

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

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

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Root exception:
java.lang.NullPointerException

at com.codegear.rails.ui.d.d.checkInitialConditions(d.java:135)

at org.eclipse.ltk.core.refactoring.CheckConditionsOperation.run(CheckConditionsOperation.java:81)

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

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

at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:113)
Steps to Reproduce:
None
Workarounds
None
Attachment
64099.zip
Comments

Mark Howe at 2/20/2009 2:54:47 PM -
Can you provide a sample set of steps when you copy a controller and rename it?

Thanks

Server Response from: ETNACODE01