Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Eclipse Communications Framework (ECF) » Problem running ECF 3.5.2 on Helios(java.lang.NoSuchMethodError: org.osgi.framework.Version.compareTo(Lorg/osgi/framework/Version;))
Problem running ECF 3.5.2 on Helios [message #752471] Wed, 26 October 2011 12:00 Go to next message
Victor Sanchez is currently offline Victor SanchezFriend
Messages: 4
Registered: July 2009
Junior Member
Hi all!

I am trying the ECF remote services examples of the Wiki in Eclipse Helios, version Modeling, with ECF 3.5.2 installed instead of making use of a specific target platform. An exception raises upon execution of

in line 111 of After that the consumer is unable to access the published service IHello.

Here is the exception trace:

java.lang.NoSuchMethodError: org.osgi.framework.Version.compareTo(Lorg/osgi/framework/Version;)I
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(
at org.eclipse.osgi.framework.eventmgr.EventManager$

It seems that the problem comes from an API change in org.osgi.framework.Version.compareTo(...), where the type of the single parameter has changed from Eclipse 3.6 to 3.7.

The way I have solved this is by recompiling the plugin on the Helios platform, no source code modification required. Now the exception has disappeared and the consumer succeeds in accessing the service and invoking its methods.

I guess this means that ECF 3.5.2 is not strictly compatible with Helios... Has anyone experienced the same issue?


Re: Problem running ECF 3.5.2 on Helios [message #754766 is a reply to message #752471] Fri, 04 November 2011 09:18 Go to previous message
Karl Beecher is currently offline Karl BeecherFriend
Messages: 1
Registered: November 2011
Junior Member
I just blogged about a solution I came up with. It should fix this problem and allow you to compile on any Eclipse version.
Previous Topic:How can the 'ecf.exported.containerfactoryargs' set dynamically while using DS?
Next Topic:How to debug ECF?
Goto Forum:

Current Time: Thu Jun 08 22:18:40 GMT 2023

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

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

Back to the top