Return-Path: X-Original-To: apmail-aries-dev-archive@www.apache.org Delivered-To: apmail-aries-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D8D47108D8 for ; Wed, 26 Aug 2015 15:44:02 +0000 (UTC) Received: (qmail 38010 invoked by uid 500); 26 Aug 2015 15:41:05 -0000 Delivered-To: apmail-aries-dev-archive@aries.apache.org Received: (qmail 35437 invoked by uid 500); 26 Aug 2015 15:41:03 -0000 Mailing-List: contact dev-help@aries.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@aries.apache.org Delivered-To: mailing list dev@aries.apache.org Received: (qmail 31879 invoked by uid 99); 26 Aug 2015 15:38:46 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Aug 2015 15:38:46 +0000 Date: Wed, 26 Aug 2015 15:38:46 +0000 (UTC) From: "John Ross (JIRA)" To: dev@aries.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ARIES-1143) Problems running Aries Subsystem OBR bundle on Apache Felix MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ARIES-1143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14714184#comment-14714184 ] John Ross commented on ARIES-1143: ---------------------------------- David, is this still an issue? > Problems running Aries Subsystem OBR bundle on Apache Felix > ----------------------------------------------------------- > > Key: ARIES-1143 > URL: https://issues.apache.org/jira/browse/ARIES-1143 > Project: Aries > Issue Type: Bug > Components: Subsystem > Affects Versions: 1.0 > Reporter: David Bosschaert > Priority: Minor > Attachments: bundles.jar, cdi.esa > > > With the recent changes in Apache Felix, it is now possible to run Aries Subsystems in Felix. Basic subsystems work, however more advanced subsystems cause errors. > To show a basic subsystem that works, compile the latest Apache Felix trunk (for example take the trunk of 7 Jan 2014): > {code}cd framework > mvn install > cd ../main > mvn install{code} > Then replace the contents of the {{bundle}} directory with the contents of the attached bundles.jar. > Then run the following to see a succesful basic subsystem installed: > {code}java -jar bin/felix.jar > g! subsystem:install http://coderthoughts.googlecode.com/files/subsystem1.esa > Installing subsystem: http://coderthoughts.googlecode.com/files/subsystem1.esa > Subsystem successfully installed: subsystem1; id: 1 > {code} > However, if I install a more complex subsystem, like the attached cdi.esa, I run into different errors: > {code}subsystem:install https://issues.apache.org/jira/secure/attachment/12621616/cdi.esa > gogo: SubsystemException: org.apache.aries.application.modelling.ModellerException: java.lang.NullPointerException{code} > I managed to get around the above error by adding the following 2 lines to the top of subsystem-core/.../BundleRevisionResource.computeServiceCapabilities() > {code} private List computeServiceCapabilities() { > if (revision.getBundle().getBundleId() == 0) > return Collections.emptyList();{code} > However, with that change I run into a slightly different and more confusing error below. Note that the bundle mentioned is *not* part of the cdi.esa and is installed as part of the boot-up bundles: > {code} > gogo: SubsystemException: org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.apache.felix.gogo.runtime:0.10.0 > {code} > Note that this cdi.esa file does work with Subsystems running on Equinox (when deployed [as described here|http://coderthoughts.blogspot.com/2013/04/osgi-subsystems.html])... However, I'm not fully convinced yet that this exception is an issue with the Felix Framework... > The full exception is: > {code}org.osgi.framework.BundleException: Bundle symbolic name and version are not unique: org.apache.felix.gogo.runtime:0.10.0 > at org.apache.felix.framework.BundleImpl.createRevision(BundleImpl.java:1300) > at org.apache.felix.framework.BundleImpl.(BundleImpl.java:112) > at org.apache.felix.framework.Felix.installBundle(Felix.java:2905) > at org.apache.felix.framework.BundleContextImpl.installBundle(BundleContextImpl.java:165) > at org.eclipse.equinox.internal.region.BundleIdBasedRegion.installBundle0(BundleIdBasedRegion.java:117) > at org.eclipse.equinox.internal.region.BundleIdBasedRegion.installBundleAtLocation(BundleIdBasedRegion.java:97) > at org.apache.aries.subsystem.core.internal.BundleResourceInstaller.installBundle(BundleResourceInstaller.java:189) > at org.apache.aries.subsystem.core.internal.BundleResourceInstaller.install(BundleResourceInstaller.java:178) > at org.apache.aries.subsystem.core.internal.SubsystemResourceInstaller.installAriesSubsystem(SubsystemResourceInstaller.java:98) > at org.apache.aries.subsystem.core.internal.SubsystemResourceInstaller.install(SubsystemResourceInstaller.java:38) > at org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:75) > at org.apache.aries.subsystem.core.internal.InstallAction.run(InstallAction.java:31) > at java.security.AccessController.doPrivileged(Native Method) > at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:621) > at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:259) > at org.apache.aries.subsystem.core.internal.BasicSubsystem.install(BasicSubsystem.java:63) > at org.coderthoughts.subsystems.gogo.Activator.install(Activator.java:29) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137) > at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) > 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.felix.gogo.shell.Console.run(Console.java:62) > at org.apache.felix.gogo.shell.Shell.console(Shell.java:203) > at org.apache.felix.gogo.shell.Shell.gosh(Shell.java:128) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > at org.apache.felix.gogo.runtime.Reflective.invoke(Reflective.java:137) > at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:82) > 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.felix.gogo.shell.Activator.run(Activator.java:75) > at java.lang.Thread.run(Thread.java:680){code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)