从插件调用代码时出现问题:“org.eclipse.jface”当使用Checkstyle插件 [英] Problems occurred when invoking code from plug-in: "org.eclipse.jface" when using Checkstyle Plugin

查看:205
本文介绍了从插件调用代码时出现问题:“org.eclipse.jface”当使用Checkstyle插件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Rational Software Architect 7.0.0.4上使用eclipse-cs插件。



我最近卸载了旧的beta2版本并安装了beta3。插件本身的工作原理如前所述。但是,每当我尝试通过Windows-> Preferences-> Checkstyle重新配置检查规则时,我会收到以下错误:



从插件调用代码时出现问题:org.eclipse.jface。



当我点击配置按钮并尝试在UI上重新配置特定的选定检查规则时,会发生这种情况。



有没有人曾经遇到这个问题,如何修复?



完整的错误列表和堆栈跟踪如下所示:

 堆栈跟踪:
java.lang.NoSuchMethodError:org / eclipse / swt / widgets / Text.setMessage(Ljava / lang / String;)V
at net.sf.eclipsecs.ui.config.RuleConfigurationEditDialog.createAdvancedSection(Unknown Source)
at net.sf.eclipsecs.ui.config.RuleConfigurationEditDialog.createDialogArea(Unknown Source )
在org.eclipse.jface.dialogs.TitleAreaDialog.createContents(未知源)
在org.eclipse.jface.window.Window.create(未知源)
在org.eclipse .net.bat (未知来源)
在net.sf.eclipsecs.ui.config.CheckConfigurationConfigureDialog $ PageController.openModule(未知来源)
在net.sf.eclipsecs.ui.config.CheckConfigurationConfigureDialog $ PageController.doubleClick(未知来源)
在org.eclipse.jface.viewers.StructuredViewer $ 1.run(未知来源)
在org.eclipse.core.runtime.SafeRunner.run(未知来源)
在org。 eclipse.core.runtime.Platform.run(未知源)
在org.eclipse.ui.internal.JFaceUtil $ 1.run(未知来源)
在org.eclipse.jface.util.SafeRunnable.run (未知来源)
在org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(未知来源)
在org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(未知来源)
在org .eclipse.jface.viewers.StructuredViewer $ 4.widgetDefaultSelected(未知来源)
在org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(未知源)
在org.eclipse.jface.util.OpenStrategy.access $ 0(未知源)
在org.eclipse .jface.util.OpenStrategy $ 1.handleEvent(Unknown Source)
在org.eclipse.swt.widgets.EventTable.sendEvent(未知源)
在org.eclipse.swt.widgets.Widget.sendEvent(未知来源)
在org.eclipse.swt.widgets.Display.runDeferredEvents(未知来源)
在org.eclipse.swt.widgets.Display.readAndDispatch(未知来源)
在org。 eclipse.jface.window.Window.runEventLoop(未知源)
在org.eclipse.jface.window.Window.open(未知源)
在net.sf.eclipsecs.ui.config.CheckConfigurationWorkingSetEditor。 configureCheckConfig(未知源)
在net.sf.eclipsecs.ui.config.CheckConfigurationWorkingSetEditor.access $ 6(未知源)
在net.sf.eclipsecs.ui.config.CheckConfigurationWorkingSetEditor $ PageController.doubleClick(未知源)
在org.eclipse.jface.viewers.Structured Viewer $ 1.run(未知来源)
在org.eclipse.core.runtime.SafeRunner.run(未知来源)
在org.eclipse.core.runtime.Platform.run(未知来源)
在org.eclipse.ui.internal.JFaceUtil $ 1.run(未知来源)
在org.eclipse.jface.util.SafeRunnable.run(未知来源)
在org.eclipse.jface。 view.StructuredViewer.fireDoubleClick(未知源)
在org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(未知源)
在org.eclipse.jface.viewers.StructuredViewer $ 4.widgetDefaultSelected(未知来源)
在org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(未知源)
在org.eclipse.jface.util.OpenStrategy.access $ 0(未知源)
在org.eclipse。 jface.util.OpenStrategy $ 1.handleEvent(未知源)
在org.eclipse.swt.widgets.EventTable.sendEvent(未知源)
在org.eclipse.swt.widgets.Widget.sendEvent(未知来源)
在org.eclipse.swt.widgets.Display.runDeferredEvents(未知源)
在org.eclipse。 swt.widgets.Display.readAndDispatch(未知源)
在org.eclipse.jface.window.Window.runEventLoop(未知源)
在org.eclipse.jface.window.Window.open(未知来源)
在org.eclipse.ui.internal.OpenPreferencesAction.run(未知来源)
在org.eclipse.jface.action.Action.runWithEvent(未知来源)
在org.eclipse。 jface.action.ActionContributionItem.handleWidgetSelection(未知源)
在org.eclipse.jface.action.ActionContributionItem.access $ 2(未知来源)
在org.eclipse.jface.action.ActionContributionItem $ 5.handleEvent(未知来源)
在org.eclipse.swt.widgets.EventTable.sendEvent(未知来源)
在org.eclipse.swt.widgets.Widget.sendEvent(未知来源)
在org。 eclipse.swt.widgets.Display.runDeferredEvents(未知源)
在org.eclipse.swt.widgets.Display.readAndDispatch(未知来源)
在org.eclipse.ui.internal.Workbench.runEventLoop(未知来源)
在org.eclipse.ui.internal.Workbench.runUI(未知来源)
在org.eclipse.ui.internal.Workbench.createAndRunWorkbench(未知源)
在org.eclipse.ui.PlatformUI.createAndRunWorkbench(未知来源)
在org.eclipse.ui.internal .ide.IDEApplication.run(未知来源)
在org.eclipse.core.internal.runtime.PlatformActivator $ 1.run(未知来源)
在org.eclipse.core.runtime.internal.adaptor。 EclipseAppLauncher.runApplication(未知源)
在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(未知源)
在org.eclipse.core.runtime.adaptor.EclipseStarter.run(未知源)
在org.eclipse.core.runtime.adaptor.EclipseStarter.run(未知来源)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect。 NativeMethodAccessorImpl.invoke(未知源)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(未知源)
在java.lang.reflect.Method.invoke(未知源)
在org.eclipse。 core.launcher.Main.invokeFramework(Unknown Source)
在org.ecli pse.core.launcher.Main.basicRun(未知来源)
在org.eclipse.core.launcher.Main.run(未知来源)
在org.eclipse.core.launcher.Main.main(未知来源)

会话数据:

 会话数据:
eclipse.buildId =未知
java.fullversion = J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223ifx-20070323(启用JIT)
J9VM - 20070322_12058_lHdSMR
JIT - 20070109_1805ifx3_r8
GC - WASIFIX_2007
BootLoader常量:OS = win32,ARCH = x86,WS = win32,NL = en_GB
框架参数: -product com.ibm.rational.rsa.product.ide
命令行参数:-os win32 -ws win32 -arch x86 -product com.ibm.rational.rsa.product.ide


解决方案

尝试从控制台/终端启动Eclipse,使用 -clean 选项。



在Windows上:

  Eclipse.exe -clean 

On * nix:

  ./ eclipse -clean 

或者如果Eclipse在您的PATH中

  eclipse -clean 

这将清除您的插件缓存,也许解决问题。


I am trying to use the eclipse-cs plugin on Rational Software Architect 7.0.0.4.

I recently uninstalled the older beta2 version and installed beta3. The plug-in itself works as was previously configured. But whenever I attempt to re-configure the check rules via Windows->Preferences->Checkstyle, I get the following error:

Problems occurred when invoking code from plug-in: "org.eclipse.jface".

This occurs when I click the configure button and attempt to reconfigure a specific selected check rule on the UI.

Has anyone ever encountered this issue before and how can it be fixed?

The full error listing and stack trace is shown below:

Stack trace:
java.lang.NoSuchMethodError: org/eclipse/swt/widgets/Text.setMessage(Ljava/lang/String;)V
at net.sf.eclipsecs.ui.config.RuleConfigurationEditDialog.createAdvancedSection(Unknown Source)
at net.sf.eclipsecs.ui.config.RuleConfigurationEditDialog.createDialogArea(Unknown Source)
at org.eclipse.jface.dialogs.TitleAreaDialog.createContents(Unknown Source)
at org.eclipse.jface.window.Window.create(Unknown Source)
at org.eclipse.jface.dialogs.Dialog.create(Unknown Source)
at net.sf.eclipsecs.ui.config.RuleConfigurationEditDialog.create(Unknown Source)
at org.eclipse.jface.window.Window.open(Unknown Source)
at net.sf.eclipsecs.ui.config.CheckConfigurationConfigureDialog$PageController.openModule(Unknown Source)
at net.sf.eclipsecs.ui.config.CheckConfigurationConfigureDialog$PageController.doubleClick(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer$1.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.runtime.Platform.run(Unknown Source)
at org.eclipse.ui.internal.JFaceUtil$1.run(Unknown Source)
at org.eclipse.jface.util.SafeRunnable.run(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(Unknown Source)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(Unknown Source)
at org.eclipse.jface.util.OpenStrategy.access$0(Unknown Source)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.jface.window.Window.runEventLoop(Unknown Source)
at org.eclipse.jface.window.Window.open(Unknown Source)
at net.sf.eclipsecs.ui.config.CheckConfigurationWorkingSetEditor.configureCheckConfig(Unknown Source)
at net.sf.eclipsecs.ui.config.CheckConfigurationWorkingSetEditor.access$6(Unknown Source)
at net.sf.eclipsecs.ui.config.CheckConfigurationWorkingSetEditor$PageController.doubleClick(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer$1.run(Unknown Source)
at org.eclipse.core.runtime.SafeRunner.run(Unknown Source)
at org.eclipse.core.runtime.Platform.run(Unknown Source)
at org.eclipse.ui.internal.JFaceUtil$1.run(Unknown Source)
at org.eclipse.jface.util.SafeRunnable.run(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer.fireDoubleClick(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer.handleDoubleSelect(Unknown Source)
at org.eclipse.jface.viewers.StructuredViewer$4.widgetDefaultSelected(Unknown Source)
at org.eclipse.jface.util.OpenStrategy.fireDefaultSelectionEvent(Unknown Source)
at org.eclipse.jface.util.OpenStrategy.access$0(Unknown Source)
at org.eclipse.jface.util.OpenStrategy$1.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.jface.window.Window.runEventLoop(Unknown Source)
at org.eclipse.jface.window.Window.open(Unknown Source)
at org.eclipse.ui.internal.OpenPreferencesAction.run(Unknown Source)
at org.eclipse.jface.action.Action.runWithEvent(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem.access$2(Unknown Source)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(Unknown Source)
at org.eclipse.swt.widgets.EventTable.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Widget.sendEvent(Unknown Source)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Unknown Source)
at org.eclipse.swt.widgets.Display.readAndDispatch(Unknown Source)
at org.eclipse.ui.internal.Workbench.runEventLoop(Unknown Source)
at org.eclipse.ui.internal.Workbench.runUI(Unknown Source)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(Unknown Source)
at org.eclipse.ui.internal.ide.IDEApplication.run(Unknown Source)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(Unknown Source)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(Unknown Source)
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.core.launcher.Main.invokeFramework(Unknown Source)
at org.eclipse.core.launcher.Main.basicRun(Unknown Source)
at org.eclipse.core.launcher.Main.run(Unknown Source)
at org.eclipse.core.launcher.Main.main(Unknown Source)

And the session data:

Session Data:
eclipse.buildId=unknown
java.fullversion=J2RE 1.5.0 IBM J9 2.3 Windows XP x86-32 j9vmwi3223ifx-20070323 (JIT enabled)
J9VM - 20070322_12058_lHdSMR
JIT  - 20070109_1805ifx3_r8
GC   - WASIFIX_2007
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
Framework arguments:  -product com.ibm.rational.rsa.product.ide
Command-line arguments:  -os win32 -ws win32 -arch x86 -product com.ibm.rational.rsa.product.ide

解决方案

Try so start Eclipse from the console/terminal with the -clean option.

On Windows:

Eclipse.exe -clean

On *nix:

./eclipse -clean

or if Eclipse is in your PATH

eclipse -clean

This will clear your plug-ins cache, maybe it solves the issue.

这篇关于从插件调用代码时出现问题:“org.eclipse.jface”当使用Checkstyle插件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆