[英]Eclipse is giving an error when trying to refactor a method's signature
Whenever I try to change a method's signature using eclipse refactoring functionality (shortcut Shift+Alt+c) I get an error dialog with the text below. 每当我尝试使用Eclipse重构功能(快捷键Shift + Alt + c)更改方法的签名时,都会出现带有以下文本的错误对话框。
An unexpected exception occured while performing the refactoring. See the error log for more details
org/springframework/ide/eclipse/ui/editor/util/BeansEditorUtils
!ENTRY org.eclipse.ltk.ui.refactoring 4 10000 2013-10-03 12:25:20.295
!MESSAGE Internal Error !MESSAGE内部错误
!STACK 0 !堆栈0
java.lang.reflect.InvocationTargetException java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:421)
at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.run(RefactoringWizardDialog2.java:331)
at org.eclipse.ltk.ui.refactoring.RefactoringWizard.internalPerformFinish(RefactoringWizard.java:637)
at org.eclipse.ltk.ui.refactoring.UserInputWizardPage.performFinish(UserInputWizardPage.java:153)
at org.eclipse.ltk.ui.refactoring.RefactoringWizard.performFinish(RefactoringWizard.java:710)
at org.eclipse.ltk.internal.ui.refactoring.RefactoringWizardDialog2.okPressed(RefactoringWizardDialog2.java:455)
at org.eclipse.jface.dialogs.Dialog.buttonPressed(Dialog.java:472)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:624)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:248)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4169)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3758)
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:187)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70)
at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:202)
at org.eclipse.ltk.ui.refactoring.RefactoringWizardOpenOperation.run(RefactoringWizardOpenOperation.java:122)
at org.eclipse.jdt.internal.ui.refactoring.actions.RefactoringStarter.activate(RefactoringStarter.java:38)
/// many more lines removed ///删除了更多行
Caused by: org.osgi.framework.BundleException: The activator org.springframework.ide.eclipse.beans.ui.editor.Activator for bundle org.springframework.ide.eclipse.beans.ui.editor is invalid 引起原因:org.osgi.framework.BundleException:捆绑包org.springframework.ide.eclipse.beans.ui.editor的激活器org.springframework.ide.eclipse.beans.ui.editor.Activator无效
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:172)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:679)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:381)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:440)
at org.eclipse.osgi.internal.loader.BundleLoader.setLazyTrigger(BundleLoader.java:263)
at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLazyStarter.java:107)
... 133 more
Caused by: java.lang.VerifyError: (class: org/springframework/ide/eclipse/beans/ui/editor/Activator, method: getTemplateStore signature: ()Lorg/eclipse/jface/text/templates/persistence/TemplateStore;) Bad type in putfield/putstatic 由以下原因引起:java.lang.VerifyError:(类:org / springframework / ide / eclipse / beans / ui / editor / Activator,方法:getTemplateStore签名:()Lorg / eclipse / jface / text / templates / persistence / TemplateStore;) Putfield / putstatic中的错误类型
at java.lang.Class.getDeclaredConstructors0(Native Method)
at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
at java.lang.Class.getConstructor0(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.loadBundleActivator(AbstractBundle.java:167)
I'm running the following version of eclipse: Version: Juno Release Build id: 20120614-1722 我正在运行以下版本的eclipse:版本:Juno发行版本ID:20120614-1722
looking at the "for more details" it sounds that the error could be caused by the SpringIDE plugin. 查看“更多详细信息”,听起来该错误可能是由SpringIDE插件引起的。 I have the version: 3.3.0.201307091516-RELEASE 我的版本:3.3.0.201307091516-RELEASE
If you need me to provide additional details please ask and tell me where I could find them. 如果您需要我提供其他详细信息,请询问并告诉我在哪里可以找到它们。
Thanks a lot 非常感谢
看起来类似于Eclipse错误https://bugs.eclipse.org/bugs/show_bug.cgi?id=268226 ,该漏洞建议使用-clean
选项重新启动Eclipse。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.