You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by fips <fr...@googlemail.com> on 2012/08/21 09:43:10 UTC

java.lang.NoSuchMethodError: org.osgi.framework.Version.compareTo(Lorg/osgi/framework/Version

I try to deploy org.apache.aries.samples.blog.jdbc.eba-0.3.eba with
apache-karaf-2.2.9 and get the following error
BlueprintContainerImpl           | 9 - org.apache.aries.blueprint - 0.3.2 |
Bundle org.apache.aries.application.management is waiting for dependencies
[(objectClass=org.apache.aries.application.management.spi.resolve.DeploymentManifestManager)]
2012-08-21 09:22:18,634 | ERROR | raf-2.2.9/deploy | fileinstall                     
| 6 - org.apache.felix.fileinstall - 3.2.4 | In main loop, we have serious
trouble
java.lang.NoSuchMethodError:
org.osgi.framework.Version.compareTo(Lorg/osgi/framework/Version;)I
	at org.apache.aries.util.VersionRange.intersect(VersionRange.java:388)
	at
org.apache.aries.application.impl.VersionRangeImpl.intersect(VersionRangeImpl.java:145)
The only hint i found is under
http://computerfloss.com/2011/11/a-little-problem-in-the-osgi-version-class/

the signature of compareTo() method was changed (compareTo(Object) was
actually removed without being depreciated between OSGi 1.5 and 1.6),
causing formerly working code to become problematic. 

What would be the quickest way to solve this problem (e.g. cahange
Bundle-Version-Info in MANIFEST.MF?) because in the Class
http://svn.apache.org/repos/asf/aries/tags/org.apache.aries.util-0.3.1/src/main/java/org/apache/aries/util/VersionRange.java
I don't want to change all compareTo.
Any idea or help appriciated what component causes this API-Change.
Is it Felix?
Thanks
Frank




--
View this message in context: http://karaf.922171.n3.nabble.com/java-lang-NoSuchMethodError-org-osgi-framework-Version-compareTo-Lorg-osgi-framework-Version-tp4025745.html
Sent from the Karaf - Dev mailing list archive at Nabble.com.

Re: java.lang.NoSuchMethodError: org.osgi.framework.Version.compareTo(Lorg/osgi/framework/Version

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Frank

I have to check the contain of the blog EBA, but it seems that it ships 
OSGi core or framework.

Regards
JB

On 08/21/2012 09:43 AM, fips wrote:
> I try to deploy org.apache.aries.samples.blog.jdbc.eba-0.3.eba with
> apache-karaf-2.2.9 and get the following error
> BlueprintContainerImpl           | 9 - org.apache.aries.blueprint - 0.3.2 |
> Bundle org.apache.aries.application.management is waiting for dependencies
> [(objectClass=org.apache.aries.application.management.spi.resolve.DeploymentManifestManager)]
> 2012-08-21 09:22:18,634 | ERROR | raf-2.2.9/deploy | fileinstall
> | 6 - org.apache.felix.fileinstall - 3.2.4 | In main loop, we have serious
> trouble
> java.lang.NoSuchMethodError:
> org.osgi.framework.Version.compareTo(Lorg/osgi/framework/Version;)I
> 	at org.apache.aries.util.VersionRange.intersect(VersionRange.java:388)
> 	at
> org.apache.aries.application.impl.VersionRangeImpl.intersect(VersionRangeImpl.java:145)
> The only hint i found is under
> http://computerfloss.com/2011/11/a-little-problem-in-the-osgi-version-class/
>
> the signature of compareTo() method was changed (compareTo(Object) was
> actually removed without being depreciated between OSGi 1.5 and 1.6),
> causing formerly working code to become problematic.
>
> What would be the quickest way to solve this problem (e.g. cahange
> Bundle-Version-Info in MANIFEST.MF?) because in the Class
> http://svn.apache.org/repos/asf/aries/tags/org.apache.aries.util-0.3.1/src/main/java/org/apache/aries/util/VersionRange.java
> I don't want to change all compareTo.
> Any idea or help appriciated what component causes this API-Change.
> Is it Felix?
> Thanks
> Frank
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/java-lang-NoSuchMethodError-org-osgi-framework-Version-compareTo-Lorg-osgi-framework-Version-tp4025745.html
> Sent from the Karaf - Dev mailing list archive at Nabble.com.
>

-- 
Jean-Baptiste Onofré
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com