Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Sapphire » Bug in feature dependencies in 8.2
Bug in feature dependencies in 8.2 [message #1700052] Mon, 29 June 2015 20:56 Go to next message
Ralf S. is currently offline Ralf S.Friend
Messages: 5
Registered: April 2015
Junior Member
I just installed a feature that depends on Sapphire 8.x.x.x on Eclipse Mars.
After adding the update site for 8.2 installation went smooth and the feature worked.

But in the error log I found the following error message:
org.osgi.framework.BundleException: Could not resolve module: org.eclipse.sapphire.modeling [921]
  Unresolved requirement: Require-Capability: osgi.ee; filter:="(&(osgi.ee=JavaSE)(version=1.8))"


From my understanding the following happend:

The custom feature has the following in its feature.xml:
   <requires>
      <import feature="org.eclipse.sapphire.osgi" version="8.0.0" match="compatible"/>
   </requires>

because of this entry the feature org.eclipse.sapphire.osgi_8.2.0.201506110935 was installed. This feature has the following entry in its feature.xml:
   <requires>
      <import feature="org.eclipse.sapphire" version="8.2.0"/>
   </requires>

Because of this entry the feature org.eclipse.sapphire_9.0.0.201506110922 was installed. This version requires Java 8, hence the error message.

I think the correct entry in the feature.xml of org.eclipse.sapphire.osgi_8.2.0 should be:
   <requires>
      <import feature="org.eclipse.sapphire" version="8.2.0" match="equivalent"/>
   </requires>

The value "equivalent" would also accept the version 8.2.1, 8.2.2 etc. The value "perfect" might be even better, as it only matches 8.2.0.

IMO the missing match attribute is wrong (as match="greaterOrEqual" would be).

Ralf
Re: Bug in feature dependencies in 8.2 [message #1700053 is a reply to message #1700052] Mon, 29 June 2015 20:58 Go to previous messageGo to next message
Konstantin Komissarchik is currently offline Konstantin KomissarchikFriend
Messages: 1077
Registered: July 2009
Senior Member
Interesting. Could you open a bug with these details? Thanks.
Re: Bug in feature dependencies in 8.2 [message #1700057 is a reply to message #1700053] Mon, 29 June 2015 21:36 Go to previous message
Ralf S. is currently offline Ralf S.Friend
Messages: 4
Registered: June 2015
Junior Member
Done: Bug # 471385
Previous Topic:Property editor's property reference path is invalid.
Next Topic:Can custom contributors be added to ValidationMarkerPresentaton?
Goto Forum:
  


Current Time: Fri Sep 21 00:25:30 GMT 2018

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

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

Back to the top