hankolerd
9 years agoNew Contributor
Eclipse 4.5.2 + Collaborator 9.5 LinkageError
I couldn't find any place to send bug reports, so thought I would try here in the forums.
I am experiencing the below LinkageError for com.google.common.base.Function (presumably from mis-matched versions of Google Guava), after updating from Collaborator 9.2 to 9.5.
java.lang.LinkageError: loader constraint violation: when resolving method "com.smartbear.util.SmartBearUtils.correlate(Ljava/lang/Iterable;Lcom/google/common/base/Function;Ljava/lang/Iterable;Lcom/google/common/base/Function;)Ljava/util/Map;" the class loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) of the current class, com/smartbear/collaborator/resources/DefectMarkerUtils, and the class loader (instance of org/eclipse/osgi/internal/loader/EquinoxClassLoader) for resolved class, com/smartbear/util/SmartBearUtils, have different Class objects for the type Lcom/google/common/base/Function;Ljava/lang/Iterable;Lcom/google/common/base/Function;)Ljava/util/Map; used in the signature at com.smartbear.collaborator.resources.DefectMarkerUtils.updateDefectMarkers(DefectMarkerUtils.java:154) at com.smartbear.collaborator.resources.DefectMarkerUtils.updateDefectMarkers(DefectMarkerUtils.java:145) at com.smartbear.collaborator.ui.ide.jobs.ClientActionItemsRefreshJob.updateDecoratorsAndMarkers(ClientActionItemsRefreshJob.java:100) at com.smartbear.collaborator.ui.ide.jobs.ClientActionItemsRefreshJob.doRun(ClientActionItemsRefreshJob.java:75) at com.smartbear.collaborator.ui.ide.jobs.ClientActionItemsRefreshJob.doRun(ClientActionItemsRefreshJob.java:32) at com.smartbear.collaborator.jobs.RefreshJob.run(RefreshJob.java:153) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Eclipse Platform is 4.5.2.v20160212-1500. Before upgrading from 9.2 my profile had the following matches in the /plugins folder:
danijoh2$ find . -name "*guava*.jar*" ./com.google.guava_15.0.0.v201403281430.jar ./com.smartbear.collaborator_9.2.9200.001/libs/guava-11.0.2.jar ./org.eclipse.m2e.maven.runtime_1.6.2.20150902-0001/jars/guava-18.0.jar
After upgrading it has:
danijoh2$ find . -name "*guava*.jar*" ./com.google.guava_15.0.0.v201403281430.jar ./com.google.guava_18.0.0.jar ./com.smartbear.collaborator_9.5.9501.001/guava-18.0.jar ./org.eclipse.m2e.maven.runtime_1.6.2.20150902-0001/jars/guava-18.0.jar
guava 15.0.0.v201403281430 is signed by Eclipse Orbit
guava 18.0.0 is unsigned, and seems to have been installed with the 9.5 update of CC
Anyone know how to resolve the error? Thanks in advance