Hi all, I am trying to run Tuscany with Felix. I installed all the modules and there are no errors so far. Then I tried to start the sample-dosgi-calculator.jar from the samples folder. The description for the samples is for equinox but I thought that it should work in another OSGi container. When I start the sample the following error appears:
Bundle ID: 186 -> start 186 28.10.2009 14:18:18 calculator.dosgi.impl.CalculatorActivator start INFO: Starting calculator.dosgi [186] 28.10.2009 14:18:18 calculator.dosgi.impl.CalculatorActivator start INFO: Registering calculator.dosgi.CalculatorService 28.10.2009 14:18:18 calculator.dosgi.impl.CalculatorActivator getBundle INFO: calculator.dosgi.operations.AddService is loaded by bundle: calculator.dosgi 28.10.2009 14:18:19 org.apache.tuscany.sca.node.impl.NodeImpl start INFO: Starting node: calculator.dosgi 28.10.2009 14:18:19 org.apache.tuscany.sca.node.impl.NodeFactoryImpl configureNode INFO: Loading contribution: bundle://186.0:0/ 28.10.2009 14:18:19 org.apache.tuscany.sca.node.osgi.impl.NodeManager bundleStarted SCHWERWIEGEND: java.lang.NullPointerException: in is null java.lang.IllegalStateException: java.lang.NullPointerException: in is null at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:94) at org.apache.tuscany.sca.node.osgi.impl.NodeManager.bundleStarted(NodeManager. java:117) at org.apache.tuscany.sca.node.osgi.impl.NodeManager.bundleChanged(NodeManager. java:139) at org.apache.felix.framework.util.EventDispatcher.invokeBundleListenerCallback (EventDispatcher.java:800) at org.apache.felix.framework.util.EventDispatcher.fireEventImmediately(EventDi spatcher.java:728) at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatc her.java:610) at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:3576) at org.apache.felix.framework.Felix.startBundle(Felix.java:1650) at org.apache.felix.framework.BundleImpl.start(BundleImpl.java:915) at org.apache.felix.shell.impl.StartCommandImpl.execute(StartCommandImpl.java:1 14) at org.apache.felix.shell.impl.Activator$ShellServiceImpl.executeCommand(Activa tor.java:286) at org.apache.felix.shell.tui.Activator$ShellTuiRunnable.run(Activator.java:184 ) at java.lang.Thread.run(Thread.java:637) Caused by: java.lang.NullPointerException: in is null at java.util.zip.ZipInputStream.<init>(ZipInputStream.java:56) at java.util.jar.JarInputStream.<init>(JarInputStream.java:57) at java.util.jar.JarInputStream.<init>(JarInputStream.java:43) at org.apache.tuscany.sca.contribution.scanner.impl.JarContributionScanner.scan (JarContributionScanner.java:73) at org.apache.tuscany.sca.contribution.processor.impl.ContributionContentProces sor.read(ContributionContentProcessor.java:143) at org.apache.tuscany.sca.contribution.processor.impl.ContributionContentProces sor.read(ContributionContentProcessor.java:1) at org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExt ensionPoint$LazyURLArtifactProcessor.read(DefaultURLArtifactProcessorExtensi onPoint.java:339) at org.apache.tuscany.sca.node.impl.NodeFactoryImpl.configureNode(NodeFactoryIm pl.java:511) at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:80) ... 12 more I guess Tuscany is unable to read some information in the jar file. The jar file cannot be the problem because using equinox the sample worked. Does anyone has experience using Tuscany and Felix? Thanks, Alex