On Fri, May 21, 2010 at 3:34 PM, Alexander Blotny <alexander.blo...@fokus.fraunhofer.de> wrote: > Hi, > > I started Tuscany-SCA-2.0-M4 in Apache Felix. I am trying to use the > calculator-osgi example from the samples folder of the distribution. > I am getting following exception: > > -> start > file:/Users/alb/Development/Tuscany/tuscany-sca-2.0-M4/samples/calculator-osgi/target/sample-calculator-osgi.jar > 21.05.2010 16:21:29 org.apache.tuscany.sca.node.impl.NodeImpl start > INFO: Starting node: http://tuscany.apache.org/sca/1.1/nodes/default7 > domain: tuscany.apache.org > java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 > at java.util.ArrayList.RangeCheck(ArrayList.java:547) > at java.util.ArrayList.get(ArrayList.java:322) > at > org.apache.tuscany.sca.node.osgi.impl.OSGiNodeFactoryImpl.getNodeKey(OSGiNodeFactoryImpl.java:129) > at > org.apache.tuscany.sca.node.impl.NodeFactoryImpl.addNode(NodeFactoryImpl.java:113) > at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:115) > at calculator.CalculatorActivator.start(CalculatorActivator.java:41) > at > org.apache.felix.framework.util.SecureAction.startActivator(SecureAction.java:661) > at org.apache.felix.framework.Felix.activateBundle(Felix.java:1756) > at org.apache.felix.framework.Felix.startBundle(Felix.java:1678) > at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:905) > at > org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:114) > at > org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activator.java:286) > at > org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184) > at java.lang.Thread.run(Thread.java:637) > > Perhaps this is a configuration error and I have to change something in the > sample jar file? > > greetings > Alex
Hi Alex I just tried running this up in Equinox using the code in trunk and I get an error also. It is a different error so not quite sure what's going on. Can you raise a JIRA targetting 2.x-M5 so we can track it. It run ok from both mvn and ant (in both cases this starts an equinox runtime internally) so there must be something wrong in the way that the configuration is set up to run in a stand-alone OSGi container. Who did you start Felix when you ran it? If you spot any config errors don't hesitate to jump in and suggest a fix. Regards Simon -- Apache Tuscany committer: tuscany.apache.org Co-author of a book about Tuscany and SCA: tuscanyinaction.com