Using Tuscany 2.0 M3 with Apache FelixIt might have something to do with the 
Felix's scheme for the bundle entry or resource URL. I'll take a look.

Thanks,
Raymond


From: Alexander Blotny 
Sent: Wednesday, October 28, 2009 6:43 AM
To: [email protected] 
Subject: Using Tuscany 2.0 M3 with Apache Felix


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(EventDispatcher.java:728)
    at 
org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.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: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)
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.ContributionContentProcessor.read(ContributionContentProcessor.java:143)
    at 
org.apache.tuscany.sca.contribution.processor.impl.ContributionContentProcessor.read(ContributionContentProcessor.java:1)
    at 
org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExtensionPoint$LazyURLArtifactProcessor.read(DefaultURLArtifactProcessorExtensionPoint.java:339)
    at 
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.configureNode(NodeFactoryImpl.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 

Reply via email to