You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "Jean-Baptiste Onofré (JIRA)" <ji...@apache.org> on 2013/05/01 10:46:17 UTC

[jira] [Commented] (KARAF-2240) Incompatible Equinox version

    [ https://issues.apache.org/jira/browse/KARAF-2240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13646461#comment-13646461 ] 

Jean-Baptiste Onofré commented on KARAF-2240:
---------------------------------------------

http://svn.apache.org/viewvc?view=revision&revision=1477932
                
> Incompatible Equinox version
> ----------------------------
>
>                 Key: KARAF-2240
>                 URL: https://issues.apache.org/jira/browse/KARAF-2240
>             Project: Karaf
>          Issue Type: Bug
>    Affects Versions: 3.0.0.RC1
>            Reporter: Harald Wellmann
>            Assignee: Jean-Baptiste Onofré
>             Fix For: 3.0.0
>
>
> Karaf 3.0.0.RC1 comes with Equinox 3.8.0 which provides org.osgi.framework 1.7. 
> This does not match the OSGi system packages declared in etc/config.properties, including org.osgi.framework 1.6.
> At runtime, I'm getting strange stacktraces like the following which I suspect to be due to this conflict:
> java.lang.NoSuchMethodError: org.osgi.framework.Version.toString0()Ljava/lang/String;
> 	at org.osgi.framework.VersionRange.toString(VersionRange.java:393)[osgi-3.8.0.v20120529-1548.jar:]
> 	at java.lang.String.valueOf(String.java:2854)[:1.7.0_17]
> 	at java.lang.StringBuffer.append(StringBuffer.java:232)[:1.7.0_17]
> 	at org.eclipse.osgi.internal.resolver.ImportPackageSpecificationImpl.toString(ImportPackageSpecificationImpl.java:212)
> 	at org.eclipse.osgi.internal.module.ResolverImpl.resolveBundle(ResolverImpl.java:1373)
> 	at org.eclipse.osgi.internal.module.ResolverImpl.resolveBundles0(ResolverImpl.java:783)
> 	at org.eclipse.osgi.internal.module.ResolverImpl.resolveBundles(ResolverImpl.java:653)
> 	at org.eclipse.osgi.internal.module.ResolverImpl.resolve(ResolverImpl.java:487)
> 	at org.eclipse.osgi.internal.resolver.StateImpl.resolve(StateImpl.java:481)
> 	at org.eclipse.osgi.internal.resolver.StateImpl.resolve(StateImpl.java:557)
> 	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.doResolveBundles(PackageAdminImpl.java:249)
> 	at org.eclipse.osgi.framework.internal.core.PackageAdminImpl.resolveBundles(PackageAdminImpl.java:192)
> 	at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:322)
> 	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:300)
> 	at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:292)
> 	at org.apache.karaf.bundle.command.Start.executeOnBundle(Start.java:27)
> 	at org.apache.karaf.bundle.command.BundlesCommandWithConfirmation.doExecute(BundlesCommandWithConfirmation.java:53)
> 	at org.apache.karaf.bundle.command.BundlesCommand.doExecute(BundlesCommand.java:50)
> 	at org.apache.karaf.bundle.command.BundlesCommandWithConfirmation.doExecute(BundlesCommandWithConfirmation.java:41)
> 	at org.apache.karaf.shell.console.AbstractAction.execute(AbstractAction.java:33)
> 	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:39)
> 	at org.apache.karaf.shell.commands.basic.AbstractCommand.execute(AbstractCommand.java:33)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[:1.7.0_17]
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)[:1.7.0_17]
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[:1.7.0_17]
> 	at java.lang.reflect.Method.invoke(Method.java:601)[:1.7.0_17]
> 	at org.apache.aries.proxy.impl.ProxyHandler$1.invoke(ProxyHandler.java:54)
> 	at org.apache.aries.proxy.impl.ProxyHandler.invoke(ProxyHandler.java:119)
> 	at org.apache.karaf.shell.console.commands.$BlueprintCommand1800385139.execute(Unknown Source)
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:477)
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:403)
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleImpl.run(ConsoleImpl.java:182)
> 	at java.lang.Thread.run(Thread.java:722)[:1.7.0_17]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.doRun(ConsoleFactoryService.java:102)[48:org.apache.karaf.shell.console:3.0.0.RC1]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3$1.run(ConsoleFactoryService.java:93)
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_17]
> 	at javax.security.auth.Subject.doAs(Subject.java:356)[:1.7.0_17]
> 	at org.apache.karaf.shell.console.impl.jline.ConsoleFactoryService$3.run(ConsoleFactoryService.java:91)[48:org.apache.karaf.shell.console:3.0.0.RC1]
> To reproduce:
> - Unpack a Karaf distro.
> - Set karaf.framework=equinox in etc/config.properties
> - Start Karaf.
> - Install a bundle with unsatisfied imports, e.g. install mvn:org.ops4j.pax.exam/pax-exam/3.0.1
> - Start the bundle.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira