You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by 冯仁君 <fe...@gmail.com> on 2013/04/22 08:53:18 UTC
Fwd: How to run TUSCANY and BPEL within shell
---------- Forwarded message ----------
From: 冯仁君 <fe...@gmail.com>
Date: Thu, Apr 18, 2013 at 2:06 PM
Subject: How to run TUSCANY and BPEL within shell
To: user@tuscany.apache.org
Hi all,
I'm new in TUSCANY and I try run BPEL on TUSCANY within shell.
I put a helloworld.bpel, a helloworld.wsld, and a helloworld.composite in a
folder. Then start TUSCANY.
There is no error when I start this composite in shell and I can see
detials of this composite with command SERVICES.
However, when I invoke this service, I get following exception:
default> invoke BPELHelloWorldComponent/helloPartnerLink hello asd
org.oasisopen.sca.ServiceRuntimeException:
org.apache.tuscany.sca.core.factory.ObjectCreationException:
java.lang.NullPointerException
at
org.apache.tuscany.sca.core.context.impl.ServiceReferenceImpl.getService(ServiceReferenceImpl.java:160)
at
org.apache.tuscany.sca.impl.ServiceHelper.getService(ServiceHelper.java:82)
at org.apache.tuscany.sca.impl.NodeImpl.getService(NodeImpl.java:470)
at org.apache.tuscany.sca.shell.commands.Invoke.invoke(Invoke.java:85)
at org.apache.tuscany.sca.shell.Shell$1.call(Shell.java:518)
at org.apache.tuscany.sca.shell.Shell$1.call(Shell.java:516)
at org.apache.tuscany.sca.shell.Shell.apply(Shell.java:628)
at org.apache.tuscany.sca.shell.Shell.run(Shell.java:642)
at org.apache.tuscany.sca.shell.Shell.main(Shell.java:112)
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.tuscany.sca.launcher.LauncherMain.invokeMainMethod(LauncherMain.java:115)
at org.apache.tuscany.sca.launcher.LauncherMain.main(LauncherMain.java:56)
Caused by: org.apache.tuscany.sca.core.factory.ObjectCreationException:
java.lang.NullPointerException
at
org.apache.tuscany.sca.core.context.impl.ServiceReferenceImpl.getProxy(ServiceReferenceImpl.java:143)
at
org.apache.tuscany.sca.core.context.impl.ServiceReferenceImpl.getService(ServiceReferenceImpl.java:158)
... 14 more
Caused by: java.lang.NullPointerException
at
org.apache.tuscany.sca.core.invocation.ExtensibleProxyFactory.createProxy(ExtensibleProxyFactory.java:97)
at
org.apache.tuscany.sca.core.context.impl.ServiceReferenceImpl.createProxy(ServiceReferenceImpl.java:152)
at
org.apache.tuscany.sca.core.context.impl.ServiceReferenceImpl.getProxy(ServiceReferenceImpl.java:139)
... 15 more
Any one knows this problem?
Or tell me how to run a BPEL on TUSCANY within shell( not just mvn test).
plz, thank you!
--
Best Regards,
Feng Renjun.
--
Best Regards,
Feng Renjun.