Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Linkageerror in Equinox but no error in Eclipse
Linkageerror in Equinox but no error in Eclipse [message #1740141] Tue, 09 August 2016 16:05
aurel pestell is currently offline aurel pestellFriend
Messages: 90
Registered: October 2013
Location: Sweden
Member
Hi,

When I test out a plugin based application within Eclipse, everything works but testing the same application within Equinox does not work, here is what I get:
Quote:
com.google.inject.internal.util.$ComputationException: java.lang.LinkageError: l
oader constraint violation: loader (instance of org/eclipse/osgi/internal/loader
/EquinoxClassLoader) previously initiated loading for a different type with name
"javafx/stage/Stage"
at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMak
er.java:553)
at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMak
er.java:419)
at com.google.inject.internal.util.$CustomConcurrentHashMap$ComputingImp
l.get(CustomConcurrentHashMap.java:2041)
at com.google.inject.internal.FailableCache.get(FailableCache.java:50)
at com.google.inject.internal.MembersInjectorStore.get(MembersInjectorSt
ore.java:65)
at com.google.inject.internal.InjectorImpl.getMembersInjector(InjectorIm
pl.java:950)
at com.google.inject.internal.InjectorImpl.getMembersInjector(InjectorIm
pl.java:957)
at com.google.inject.internal.InjectorImpl.injectMembers(InjectorImpl.ja
va:943)
at yapp.ui.javafx.impl.YappFxControllerImpl.launch(YappFxControllerImpl.
java:56)
at yapp.capp.executablefamilies.application.ExecutableFamiliesApplicatio
n.run(ExecutableFamiliesApplication.java:21)
at yapp.capp.executablefamilies.application.Application.run(Application.
java:22)
at yapp.core.YappRunnable.dorun(YappRunnable.java:31)
at yapp.launching.core.runner.YappRunner.run(YappRunner.java:65)
at yapp.launching.core.runner.YappRunner.run(YappRunner.java:45)
at yapp.launching.core.internal.YappApplication.invokeRunner(YappApplica
tion.java:174)
at yapp.launching.core.internal.YappApplication.start(YappApplication.ja
va:153)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandl
e.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runAppli
cation(EclipseAppLauncher.java:134)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(Ec
lipseAppLauncher.java:104)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:380)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.ja
va:235)
at yapp.equinox.launcher.AbstractEclipseStarter.startFramework(AbstractE
clipseStarter.java:127)
at yapp.equinox.launcher.AbstractEclipseStarter.run(AbstractEclipseStart
er.java:99)
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 yapp.equinox.bootstrapper.Bootstrap.startFramework(Bootstrap.java:181
)
at yapp.equinox.bootstrapper.Bootstrap.run(Bootstrap.java:144)
at yapp.capp.executablefamilies.application.internal.Starter.main(Starte
r.java:24)
Caused by: java.lang.LinkageError: loader constraint violation: loader (instance
of org/eclipse/osgi/internal/loader/EquinoxClassLoader) previously initiated lo
ading for a different type with name "javafx/stage/Stage"
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredFields(Unknown Source)
at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoin
t.java:649)
at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(Inje
ctionPoint.java:356)
at com.google.inject.internal.MembersInjectorStore.createWithListeners(M
embersInjectorStore.java:90)
at com.google.inject.internal.MembersInjectorStore.access$000(MembersInj
ectorStore.java:34)
at com.google.inject.internal.MembersInjectorStore$1.create(MembersInjec
torStore.java:42)
at com.google.inject.internal.MembersInjectorStore$1.create(MembersInjec
torStore.java:39)
at com.google.inject.internal.FailableCache$1.apply(FailableCache.java:3
9)
at com.google.inject.internal.util.$MapMaker$StrategyImpl.compute(MapMak
er.java:549)
... 29 more


I had that before when a class was loaded from 2 different jars but this is not the case here. Anyway, if it was the case, it would not work in Eclipse as well.
Anybody has a clue (even small) why this could happen?
Thank you.
Previous Topic:Unable to delete uninstalled bundle from filesystem.
Next Topic:How to configure p2 httpclient in order to disable hostname verification
Goto Forum:
  


Current Time: Thu Nov 15 12:48:09 GMT 2018

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

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

Back to the top