|Class loader error - two versions of Guava [message #1819260]
||Fri, 10 January 2020 15:31
| Steve Hickman
Registered: January 2017
Using the code from https://github.com/nbhusare/EMF-Compare/ as an example and the EMF Compare Developer Guide, I've created a customized DifferenceFilter, DiffBuilder, FeatureFilter and PostProcessor. I've got JUnit5 tests using sample XText based models that pass (Both models stored as strings and models loaded from files).|
The next step is to get all of this hooked into the UI. That's where I'm having a problem. I've followed the directions from the Developer's Guide to set up the extnsion points, and I've added the Content Type Association in Eclipse. When I did this initially, it worked - intermittently. Now it doesn't work at all.
The problem I'm getting is a class loader error (see below)
Caused by: java.lang.LinkageError: loader constraint violation: when resolving overridden method "com.honeywell.fractool.NoSemanticDifferenceFilter.getPredicateWhenSelected()Lcom/google/common/base/Predicate;" the class loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) of the current class, com/honeywell/fractool/NoSemanticDifferenceFilter, and its superclass loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader), have different Class objects for the type com/google/common/base/Predicate used in the signature
I suspect this worked in the past simply because the load order is unstable and occasionally happened to be in an order that was OK.
My questions are:
1) How to I solve this?
2) More generally, is there a troubleshooting guide for this kind of thing that I can refer to?
Other notes: This problem originally started with Eclipse 2019-09 on a Windows 10 machine. I've updated to Eclipse 2019-12. I've got the latest version of EMF Compare available via the Marketplace (18.104.22.168909101346). BTW - note that this is not the version that the EMF Compare site says should be part of the 2019-12 release. Don't know why. The same problem occurs with both versions of Eclipse.
[Updated on: Tue, 14 January 2020 17:03]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01686 seconds