运行时java.lang.LinkageError:违反加载程序约束:解决方法org.eclipse.swt.widgets.TableColumn.addSelectionListener时

时间:2019-05-24 18:11:51

标签: runtime linkageerror

以“运行”或“调试”模式运行时,我收到以下错误消息

INFO: java.lang.LinkageError: loader constraint violation: when resolving method "org.eclipse.swt.widgets.TableColumn.addSelectionListener(Lorg/eclipse/swt/events/SelectionListener;)V" the class loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) of the current class, com/rci/ttm/ui/views/CommonViewComparator, and the class loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) for the method's defining class, org/eclipse/swt/widgets/TableColumn, have different Class objects for the type org/eclipse/swt/events/SelectionListener used in the signature



eclipse.buildId=unknown
java.version=1.8.0_211
java.vendor=Oracle Corporation
BootLoader constants: OS=win32
ARCH=x86_64
WS=win32
NL=en_US

在eclipse Debug配置屏幕下,我已经验证了所有插件,以确保所有依赖项都已解决。

我已验证我正在使用swt-3.6.1-win32-win32-x86_64 jar文件。

似乎是缺少匹配项或缺少lib文件,但不清楚正在考虑蚀验证的问题。

在执行调试过程中,我收到以下消息:

INFO: java.lang.LinkageError: loader constraint violation: when resolving method org.eclipse.swt.widgets.TableColumn.addSelectionListener(Lorg/eclipse/swt/events/SelectionListener;)V" the class loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) of the current class, com/rci/ttm/ui/views/CommonViewComparator, and the class loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) for the method's defining class, org/eclipse/swt/widgets/TableColumn, have different Class objects for the type org/eclipse/swt/events/SelectionListener used in the signature

INFO: java.lang.NullPointerException
at org.eclipse.ui.internal.views.helpers.EmptyWorkspaceHelper.dispose(EmptyWorkspaceHelper.java:139)
at org.eclipse.ui.internal.views.helpers.EmptyWorkspaceHelper.access$4(EmptyWorkspaceHelper.java:138)
at org.eclipse.ui.internal.views.helpers.EmptyWorkspaceHelper$Listener.widgetDisposed(EmptyWorkspaceHelper.java:367)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:127)
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.Widget.sendEvent(Widget.java:1079)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1060)
at org.eclipse.swt.widgets.Widget.release(Widget.java:812)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:931)
at org.eclipse.swt.widgets.Widget.release(Widget.java:815)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:931)
at org.eclipse.swt.widgets.Widget.release(Widget.java:815)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:931)
at org.eclipse.swt.widgets.Widget.release(Widget.java:815)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:931)
at org.eclipse.swt.widgets.Widget.release(Widget.java:815)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:931)
at org.eclipse.swt.widgets.Widget.release(Widget.java:815)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:931)
at org.eclipse.swt.widgets.Widget.release(Widget.java:815)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:931)
at org.eclipse.swt.widgets.Widget.release(Widget.java:815)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:931)
at org.eclipse.swt.widgets.Widget.release(Widget.java:815)
at org.eclipse.swt.widgets.Composite.releaseChildren(Composite.java:931)
at org.eclipse.swt.widgets.Canvas.releaseChildren(Canvas.java:174)
at 
org.eclipse.swt.widgets.Decorations.releaseChildren(Decorations.java:731)
at org.eclipse.swt.widgets.Shell.releaseChildren(Shell.java:1353)
at org.eclipse.swt.widgets.Widget.release(Widget.java:815)
at org.eclipse.swt.widgets.Widget.dispose(Widget.java:429)
at org.eclipse.swt.widgets.Decorations.dispose(Decorations.java:408)
at org.eclipse.swt.widgets.Shell.dispose(Shell.java:742)
at org.eclipse.swt.widgets.Display.release(Display.java:3598)
at org.eclipse.swt.graphics.Device.dispose(Device.java:300)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:171)
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:661)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:597)
at org.eclipse.equinox.launcher.Main.run(Main.java:1476)
at org.eclipse.equinox.launcher.Main.main(Main.java:1449)

0 个答案:

没有答案