gpt4 book ai didi

Eclipse 在尝试重构方法的签名时出错

转载 作者:行者123 更新时间:2023-12-05 08:00:09 24 4
gpt4 key购买 nike

每当我尝试使用 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 内部错误

!堆栈 0

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)

///删除了更多行

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 无效

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

引起:java.lang.VerifyError: (class: org/springframework/ide/eclipse/beans/ui/editor/Activator, method: getTemplateStore signature: ()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)

我正在运行以下版本的 Eclipse:版本:朱诺发布构建 ID:20120614-1722

查看“for more details”,听起来错误可能是由 SpringIDE 插件引起的。我有版本:3.3.0.201307091516-RELEASE

如果您需要我提供更多详细信息,请询问并告诉我在哪里可以找到它们。

非常感谢

最佳答案

看起来类似于 Eclipse 错误 https://bugs.eclipse.org/bugs/show_bug.cgi?id=268226这建议重新启动 Eclipse 并指定 -clean 选项。

关于Eclipse 在尝试重构方法的签名时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19140972/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com