Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » java.lang.LinkageError: loader constraint violation
java.lang.LinkageError: loader constraint violation [message #1061081] Wed, 29 May 2013 20:34
Mokhtar Abdu is currently offline Mokhtar AbduFriend
Messages: 104
Registered: November 2011
Senior Member
Hello,
Could anyone please help me getting rid of the below exception? It is produced "sometimes" only. The exception trace below shows that it is thrown starting from the stmt marked with "HERE>>" in below loop:
       for (ResultsVersion rv : versions) {
	     for (Candidate c : rv.getCandidates()) {
		IFigure figure =FigureFactory.makeFigure(c);          
            HERE>> cNode = new CandidateNode(graph,SWT.NONE,figure,c);
	        cNode.setData(c);
		candidateNodes.add(cNode);		
	   }		
	}


This is part of the custom graphnode class:
public class CandidateNode extends GraphNode{

	private Object extraData=null;
	
	public CandidateNode(IContainer graph, int style,IFigure figure,Object extraData) {
		super(graph, style,figure);
		this.extraData = extraData;
	}
	
	protected IFigure createFigureForModel() {
		return (IFigure) this.getData();
	}


The exception.
!ENTRY org.eclipse.ui 4 0 2013-05-29 22:09:16.662
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.cs3.jtransformer.analysis.quality.ui.CandidateNode.createFigureForModel()Lorg/eclipse/draw2d/IFigure;" the class loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader) of the current class, org/cs3/jtransformer/analysis/quality/ui/CandidateNode, and its superclass loader (instance of org/eclipse/osgi/internal/baseadaptor/DefaultClassLoader), have different Class objects for the type teNode.createFigureForModel()Lorg/eclipse/draw2d/IFigure; used in the signature
	at org.cs3.jtransformer.analysis.quality.ui.ResultsModelGraph.createGraphNodes(ResultsModelGraph.java:71)
	at org.cs3.jtransformer.analysis.quality.ui.ResultsModelGraph.createEvolutionGraph(ResultsModelGraph.java:131)
	at org.cs3.jtransformer.analysis.quality.AQuA.updateGraph(AQuA.java:892)
	at org.cs3.jtransformer.analysis.quality.AQuA.visualize(AQuA.java:883)
	at org.cs3.jtransformer.analysis.quality.AQuA.updateCheckState(AQuA.java:870)
	at org.cs3.jtransformer.analysis.quality.AQuA$25.selected(AQuA.java:1243)
	at org.cs3.jtransformer.analysis.quality.AQuA$25.widgetSelected(AQuA.java:1247)
	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.e4.ui.internal.workbench.swt.PartRenderingEngine$9.run(PartRenderingEngine.java:1029)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:923)
	at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:86)
	at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:588)
	at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
	at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:543)
	at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
	at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:124)
	at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
	at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353)
	at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180)
	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:629)
	at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584)
	at org.eclipse.equinox.launcher.Main.run(Main.java:1438)
	at org.eclipse.equinox.launcher.Main.main(Main.java:1414)


Regards,
Mok
Previous Topic:Wrap nodes with others
Next Topic:[ZEST] Problems with DotImport Zest 2.0
Goto Forum:
  


Current Time: Thu Nov 27 18:27:42 GMT 2014

Powered by FUDForum. Page generated in 0.01853 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software