Hi,
I am trying to get the BPEL hello world sample running in Tuscany M5.
I start the node inside the Activator of the jar file:
String location =
ContributionLocationHelper.getContributionLocation(Activator.class);
node = NodeFactory.newInstance().createNode("helloworld.composite", new
Contribution("test", location));
Hello bpelService = node.getService(Hello.class, "BPELHelloWorldComponent");
String result = bpelService.hello("Hello"); System.out.println(result);
The file structure of the jar is the following:
helloworld.bpel
helloworld.bpelex
helloworld.composite
helloworld.wsdl
log4j.properties
META-INF
MANIFEST.MF
sca-contribution.xml
de/fhg/fokus/ngni/xposer/see/service/bpel
Activator.class
Hello.class
The only things I changed in the sample is the namespace in the composite
and contribution from
xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200903 to
xmlns="http://docs.oasis-open.org/ns/opencsa/sca/200912.
Now the following error occurs:
26.07.2010 11:42:05
org.apache.tuscany.sca.implementation.bpel.xml.BPELDocumentProcessor
[Contribution: test, Artifact:
META-INF/maven/de.fhg.fokus.ngni.xposer.see.services/service.bpel]
(ContributionReadException)
SCHWERWIEGEND: ContributionReadException occured due to :
org.apache.tuscany.sca.contribution.processor.ContributionReadException:
java.lang.NullPointerException
at
org.apache.tuscany.sca.implementation.bpel.xml.BPELDocumentProcessor.read(BP
ELDocumentProcessor.java:93)
at
org.apache.tuscany.sca.implementation.bpel.xml.BPELDocumentProcessor.read(BP
ELDocumentProcessor.java:57)
at
org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExt
ensionPoint$LazyURLArtifactProcessor.read(DefaultURLArtifactProcessorExtensi
onPoint.java:288)
at
org.apache.tuscany.sca.contribution.processor.ExtensibleURLArtifactProcessor
.read(ExtensibleURLArtifactProcessor.java:109)
at
org.apache.tuscany.sca.contribution.processor.impl.ContributionContentProces
sor.read(ContributionContentProcessor.java:152)
at
org.apache.tuscany.sca.contribution.processor.impl.ContributionContentProces
sor.read(ContributionContentProcessor.java:64)
at
org.apache.tuscany.sca.contribution.processor.DefaultURLArtifactProcessorExt
ensionPoint$LazyURLArtifactProcessor.read(DefaultURLArtifactProcessorExtensi
onPoint.java:288)
at
org.apache.tuscany.sca.deployment.impl.DeployerImpl.loadContribution(Deploye
rImpl.java:621)
at
org.apache.tuscany.sca.node.impl.NodeFactoryImpl.loadContributions(NodeFacto
ryImpl.java:394)
at org.apache.tuscany.sca.node.impl.NodeImpl.start(NodeImpl.java:125)
at
de.fhg.fokus.ngni.xposer.see.service.bpel.Activator.start(Activator.java:48)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1.run(BundleConte
xtImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(Bu
ndleContextImpl.java:773)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleConte
xtImpl.java:754)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.j
ava:352)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.updateWorker(Abstrac
tBundle.java:625)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.update(AbstractBundl
e.java:572)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.update(AbstractBundl
e.java:555)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandProvider._update(Fr
ameworkCommandProvider.java:380)
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.eclipse.osgi.framework.internal.core.FrameworkCommandInterpreter.execute
(FrameworkCommandInterpreter.java:155)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.docommand(Framewor
kConsole.java:303)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.console(FrameworkC
onsole.java:288)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.run(FrameworkConso
le.java:224)
at java.lang.Thread.run(Thread.java:637)
Caused by: java.lang.NullPointerException
at java.io.FilterInputStream.close(FilterInputStream.java:155)
at
sun.net.www.protocol.jar.JarURLConnection$JarURLInputStream.close(JarURLConn
ection.java:90)
at
org.apache.tuscany.sca.implementation.bpel.xml.BPELDocumentProcessor.readPro
cessDefinition(BPELDocumentProcessor.java:174)
at
org.apache.tuscany.sca.implementation.bpel.xml.BPELDocumentProcessor.read(BP
ELDocumentProcessor.java:89)
... 28 more
I guess that the BPEL document cannot be found. But I did not find a way to
point on the file in the sample.
Thanks in advance for some advice.
greetings,
Alex