You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by lu...@gmail.com on 2009/06/22 18:11:07 UTC
Tuscany with BPEL
Greetings All,
I'm very new to tuscany and ODE, doing some experiments and disparately
trying to get the right direction. I'm trying to manage the interaction
between three Tuscany components with BPEL, the flow is like,
My BPEL component will receive the request from Client , on receiving the
request it will invoke a Greeting Component after getting the response from
greeting component , the BPEL will invoke another Hello component , my goal
is to mix the response from these components and serve the same to the out
side world.
While trying to do so, I'm getting an error /exception which I'm not able
to crack. Please guide me to solve this issue,
My Error Log
==============
[DEBUG] - GeronimoLog.debug(66) | BPEL SERVER initializing
[DEBUG] - GeronimoLog.debug(66) | BPEL SERVER starting.
[INFO] - GeronimoLog.info(79) | BPEL Server Started.
[INFO] - GeronimoLog.info(79) | ODE BPEL server started.
[INFO] - GeronimoLog.info(79) | >>> Deploying :
D:\WORKSPACES\harish-sca\.metadata\.plugins\org.eclipse.wst.server.core\tmp2\wtpwebapps\LocalBpel\WEB-INF\helloworld
[DEBUG] - GeronimoLog.debug(66) | register: {http://helloworld}HelloWorld-1
[DEBUG] - GeronimoLog.debug(66) | Registering process
{http://helloworld}HelloWorld-1 with server.
[DEBUG] - GeronimoLog.debug(66) | Register process:
serviceId={http://tuscany.apache.org}helloPartnerLink:ServicePort,
process=BpelProcess[{http://helloworld}HelloWorld-1]
[DEBUG] - GeronimoLog.debug(66) | Activating {http://helloworld}HelloWorld-1
[DEBUG] - GeronimoLog.debug(66) | Activating MyRole Endpoint :
{http://helloworld}HelloWorld-1 -
{http://tuscany.apache.org}helloPartnerLink
[DEBUG] - GeronimoLog.debug(66) | Activated {http://helloworld}HelloWorld-1
myrole helloPartnerLink: EPR is
org.apache.tuscany.sca.implementation.bpel.ode.TuscanyEPR@163c5bb
[DEBUG] - GeronimoLog.debug(66) | Activated {http://helloworld}HelloWorld-1
[DEBUG] - GeronimoLog.debug(66) | Rehydrating process
{http://helloworld}HelloWorld-1
[DEBUG] - GeronimoLog.debug(66) | Processing <invoke> element for process
{http://helloworld}HelloWorld-1: partnerlink sayHelloPartnerLink -->
{http://tuscany.apache.org}sayHelloPartnerLink:ReferencePort
[DEBUG] - GeronimoLog.debug(66) | Processing <invoke> element for process
{http://helloworld}HelloWorld-1: partnerlink greetingsPartnerLink -->
{http://tuscany.apache.org}greetingsPartnerLink:ReferencePort
[DEBUG] - GeronimoLog.debug(66) | Create PartnerRole channel :
{http://helloworld}HelloWorld-1 -
{http://hello.tcc.com/hello.wsdl}HelloService -
{http://tuscany.apache.org}sayHelloPartnerLink
[DEBUG] - GeronimoLog.debug(66) | Activated {http://helloworld}HelloWorld-1
partnerrole sayHelloPartnerLink: EPR is
org.apache.tuscany.sca.implementation.bpel.ode.TuscanyPRC$1@156f14c
[DEBUG] - GeronimoLog.debug(66) | Create PartnerRole channel :
{http://helloworld}HelloWorld-1 - {http://greetings}Greetings -
{http://tuscany.apache.org}greetingsPartnerLink
[DEBUG] - GeronimoLog.debug(66) | Activated {http://helloworld}HelloWorld-1
partnerrole greetingsPartnerLink: EPR is
org.apache.tuscany.sca.implementation.bpel.ode.TuscanyPRC$1@fbd1fc
[DEBUG] - GeronimoLog.debug(66) | Creating process DAO for
{http://helloworld}HelloWorld-1 (guid=hqejbhcnphr4disp9resn5)
[DEBUG] - GeronimoLog.debug(66) | Found ProcessDAO for
{http://helloworld}HelloWorld-1 with GUID hqejbhcnphr4dis4508vg7
[DEBUG] - GeronimoLog.debug(66) | ProcessDAO GUID hqejbhcnphr4dis4508vg7
does not match hqejbhcnphr4disp9resn5; replacing.
[INFO] - GeronimoLog.info(79) | Registered process
{http://helloworld}HelloWorld-1.
Completed calling new Process deployment code...
Jun 22, 2009 9:09:34 PM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 22, 2009 9:09:34 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jun 22, 2009 9:09:34 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/32 config=null
Jun 22, 2009 9:09:34 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 17418 ms
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-2,5,main]:
lock(iid=954, time=1MICROSECONDS)
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-4,5,main]:
lock(iid=1054, time=1MICROSECONDS)
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-3,5,main]:
lock(iid=1004, time=1MICROSECONDS)
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-1,5,main]:
lock(iid=904, time=1MICROSECONDS)
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-2,5,main]:
lock(iid=954, time=1MICROSECONDS)-->GRANTED
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-4,5,main]:
lock(iid=1054, time=1MICROSECONDS)-->GRANTED
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-3,5,main]:
lock(iid=1004, time=1MICROSECONDS)-->GRANTED
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-1,5,main]:
lock(iid=904, time=1MICROSECONDS)-->GRANTED
[ERROR] - GeronimoLog.error(108) | Scheduled job failed;
jobDetail={type=INVOKE_RESPONSE, channel=34, mexid=hqejbhcnphr4diqo75h9nw,
iid=904}
java.lang.NullPointerException
at
org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:315)
at
org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:373)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:341)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:340)
at
org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:179)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:339)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:336)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
[ERROR] - GeronimoLog.error(108) | Scheduled job failed;
jobDetail={type=INVOKE_RESPONSE, channel=31, mexid=hqejbhcnphr4dirslukpbg,
iid=1004}
java.lang.NullPointerException
at
org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:315)
at
org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:373)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:341)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:340)
at
org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:179)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:339)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:336)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
[ERROR] - GeronimoLog.error(108) | Scheduled job failed;
jobDetail={type=INVOKE_RESPONSE, channel=31, mexid=hqejbhcnphr4diragcnj22,
iid=954}
java.lang.NullPointerException
at
org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:315)
at
org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:373)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:341)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:340)
at
org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:179)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:339)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:336)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
[ERROR] - GeronimoLog.error(108) | Scheduled job failed;
jobDetail={type=INVOKE_RESPONSE, channel=31, mexid=hqejbhcnphr4dis4508vge,
iid=1054}
java.lang.NullPointerException
at
org.apache.ode.bpel.engine.BpelEngineImpl.onScheduledJob(BpelEngineImpl.java:315)
at
org.apache.ode.bpel.engine.BpelServerImpl.onScheduledJob(BpelServerImpl.java:373)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:341)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4$1.call(SimpleScheduler.java:340)
at
org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:179)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:339)
at
org.apache.ode.scheduler.simple.SimpleScheduler$4.call(SimpleScheduler.java:336)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-1,5,main]:
unlock(iid=904)
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-3,5,main]:
unlock(iid=1004)
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-2,5,main]:
unlock(iid=954)
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-4,5,main]:
unlock(iid=1054)
[DEBUG] - GeronimoLog.debug(66) | Initializing BPELInvoker
Invoking bpel component : {http://tuscany.apache.org}helloPartnerLink#hello
[DEBUG] - GeronimoLog.debug(66) | Routed: svcQname
{http://tuscany.apache.org}helloPartnerLink -->
BpelProcess[{http://helloworld}HelloWorld-1]
Creating invocation message:
>> args.....: <?xml version="1.0" encoding="UTF-8"?>
<hello xmlns="http://helloworld"><message
xmlns:ns2="http://helloworld/">foo hello !!!</message></hello>
>> message..:<?xml version="1.0" encoding="UTF-8"?>
<message><TestPart><hello xmlns="http://helloworld"><message
xmlns:ns2="http://helloworld/">foo
hello !!!</message></hello></TestPart></message>
[DEBUG] - GeronimoLog.debug(66) | Routed: svcQname
{http://tuscany.apache.org}helloPartnerLink -->
BpelProcess[{http://helloworld}HelloWorld-1]
[DEBUG] - GeronimoLog.debug(66) | invoke() EPR= null ==>
BpelProcess[{http://helloworld}HelloWorld-1]
[DEBUG] - GeronimoLog.debug(66) | >>
handleWorkEvent(jobData={type=INVOKE_INTERNAL,
mexid=hqejbhcnphr4disp9resn7, pid={http://helloworld}HelloWorld-1})
[DEBUG] - GeronimoLog.debug(66) | InvokeInternal event for mexid
hqejbhcnphr4disp9resn7
[DEBUG] - GeronimoLog.debug(66) | GET MEX property
org.apache.ode.bpel.myRoleSessionId = null
[DEBUG] - GeronimoLog.debug(66) | GET MEX property
org.apache.ode.bpel.myRoleSessionId = null
[DEBUG] - GeronimoLog.debug(66) | GET MEX property
org.apache.ode.bpel.partnerRoleSessionId = null
[DEBUG] - GeronimoLog.debug(66) | INPUTMSG: 26.hello: MSG RCVD keys=[]
mySessionId=null partnerSessionId=null
[DEBUG] - GeronimoLog.debug(66) | INPUTMSG: 26.hello: routing failed,
CREATING NEW INSTANCE
[DEBUG] - GeronimoLog.debug(66) | BpelRuntimeContextImpl created for
instance 1104. INDEXED STATE={}
[DEBUG] - GeronimoLog.debug(66) | SELECT: PickResponseChannel#9: USING
CORRELATOR 26.hello
[DEBUG] - GeronimoLog.debug(66) | SELECT: PickResponseChannel#9: CHECKING
for NEW INSTANCE match
[DEBUG] - GeronimoLog.debug(66) | INPUTMSGMATCH: Changing process instance
state from ready to active
[DEBUG] - GeronimoLog.debug(66) | SELECT: PickResponseChannel#9: FOUND
match for NEW instance mexRef={MyRoleMex#hqejbhcnphr4disp9resn7 [Client
hqejbhcnphr4disp9resn6] calling
{http://tuscany.apache.org}helloPartnerLink.hello(...)}
[DEBUG] - GeronimoLog.debug(66) | INVOKING PARTNER:
partnerLink={PartnerLinkInstance
partnerLinkDecl=OPartnerLink#27,scopeInstanceId=1105}, op=getGreetings
channel=InvokeResponseChannel#20)
[DEBUG] - GeronimoLog.debug(66) | INVOKE PARTNER (SEP): sessionId=null
partnerSessionId=null
[DEBUG] - GeronimoLog.debug(66) | Routed: svcQname
{http://tuscany.apache.org}greetingsPartnerLink --> null
[DEBUG] - GeronimoLog.debug(66) | Invoking a partner operation: getGreetings
[DEBUG] - GeronimoLog.debug(66) | replyAsync mex=hqejbhcnphr4disp9resna
[DEBUG] - GeronimoLog.debug(66) | Setting execution state on instance 1104
[DEBUG] - GeronimoLog.debug(66) | Starting invocation of SCA Reference
[DEBUG] - GeronimoLog.debug(66) | >>> Original message: <?xml version="1.0"
encoding="UTF-8"?>
<message><parameters><getGreetings xmlns="http://greetings"><message
xmlns="http://helloworld" xmlns:ns2="http://helloworld/">foo
hello !!!</message></getGreetings></parameters></message>
[DEBUG] - GeronimoLog.debug(66) | >>> Payload: <?xml version="1.0"
encoding="UTF-8"?>
<getGreetings xmlns="http://greetings"><message xmlns="http://helloworld"
xmlns:ns2="http://helloworld/">foo hello !!!</message></getGreetings>
[DEBUG] - GeronimoLog.debug(66) | SCA Reference invocation finished
[DEBUG] - GeronimoLog.debug(66) | >>> Result : <?xml version="1.0"
encoding="UTF-8"?>
<getGreetingsResponse xmlns="http://greetings"><getGreetingsReturn
xmlns:ns2="http://greetings/">Hello foo
hello !!!</getGreetingsReturn></getGreetingsResponse>
[DEBUG] - GeronimoLog.debug(66) | Creating result message:
[DEBUG] - GeronimoLog.debug(66) | >>><?xml version="1.0" encoding="UTF-8"?>
<message><parameters><getGreetingsResponse
xmlns="http://greetings"><getGreetingsReturn
xmlns:ns2="http://greetings/">Hello foo
hello !!!</getGreetingsReturn></getGreetingsResponse></parameters></message>
[DEBUG] - GeronimoLog.debug(66) | reply mex=hqejbhcnphr4disp9resna
[DEBUG] - GeronimoLog.debug(66) | create work event for
mex=hqejbhcnphr4disp9resna
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-5,5,main]:
lock(iid=1104, time=1MICROSECONDS)
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-5,5,main]:
lock(iid=1104, time=1MICROSECONDS)-->GRANTED
[DEBUG] - GeronimoLog.debug(66) | >>
handleWorkEvent(jobData={type=INVOKE_RESPONSE,
mexid=hqejbhcnphr4disp9resna, channel=20, iid=1104})
[DEBUG] - GeronimoLog.debug(66) | BpelRuntimeContextImpl created for
instance 1104. INDEXED STATE={{OScope '__PROCESS_SCOPE:HelloWorld'
id=3}::0=[ACTIVE(...)], {OScope 'invokeGreetings' id=39}::10=[SCOPE(...)],
OInvoke#40-invokeGreetings::11=[ACTIVITYGUARD(...)],
{OScope '__PROCESS_SCOPE:HelloWorld' id=3}::0=[SCOPE(...)],
OSequence#28-sequence-activity-line-57::1=[ACTIVITYGUARD(...)],
OInvoke#40-invokeGreetings::12=[INVOKE(...)],
OSequence#28-sequence-activity-line-57::2=[SEQUENCE(self=(OSequence#28-sequence-activity-line-57,TerminationChannel#3,ParentScopeChannel#5),
linkframe=org.apache.ode.bpel.runtime.LinkFrame@10f3a9c,
remaining=[{OScope 'invokeGreetings' id=39}, {OAssign :
assignToSayHelloRequest, joinCondition=null}, {OScope 'invokeSayHello'
id=52}, {OAssign : assignToHelloResponse, joinCondition=null},
OReply#65-end])], {OScope 'invokeGreetings' id=39}::10=[ACTIVE(...)],
{OScope 'invokeGreetings' id=39}::9=[ACTIVITYGUARD(...)]}
[DEBUG] - GeronimoLog.debug(66) | InvokeResponse event for iid 1104
[DEBUG] - GeronimoLog.debug(66) | Invoking message response for mexid
hqejbhcnphr4disp9resna and channel 20
[DEBUG] - GeronimoLog.debug(66) | Triggering response
[DEBUG] - GeronimoLog.debug(66) | INVOKING PARTNER:
partnerLink={PartnerLinkInstance
partnerLinkDecl=OPartnerLink#25,scopeInstanceId=1105}, op=sayHello
channel=InvokeResponseChannel#31)
[DEBUG] - GeronimoLog.debug(66) | INVOKE PARTNER (SEP): sessionId=null
partnerSessionId=null
[DEBUG] - GeronimoLog.debug(66) | Routed: svcQname
{http://tuscany.apache.org}sayHelloPartnerLink --> null
[DEBUG] - GeronimoLog.debug(66) | Invoking a partner operation: sayHello
[DEBUG] - GeronimoLog.debug(66) | replyAsync mex=hqejbhcnphr4disp9resnc
[DEBUG] - GeronimoLog.debug(66) | Setting execution state on instance 1104
[DEBUG] - GeronimoLog.debug(66) | Thread[pool-3-thread-5,5,main]:
unlock(iid=1104)
[DEBUG] - GeronimoLog.debug(66) | Starting invocation of SCA Reference
[DEBUG] - GeronimoLog.debug(66) | >>> Original message: <?xml version="1.0"
encoding="UTF-8"?>
<message><parameters><sayHelloRequest
xmlns="http://hello.tcc.com/hello.wsdl" xmlns:ns2="http://greetings/">Hello
foo hello !!!</sayHelloRequest></parameters></message>
[DEBUG] - GeronimoLog.debug(66) | >>> Payload: <?xml version="1.0"
encoding="UTF-8"?>
<sayHelloRequest xmlns="http://hello.tcc.com/hello.wsdl"
xmlns:ns2="http://greetings/">Hello foo hello !!!</sayHelloRequest>
[DEBUG] - GeronimoLog.debug(66) | replyWithFailure
mex=hqejbhcnphr4disp9resnc failureType=OTHER description=null details=null
[DEBUG] - GeronimoLog.debug(66) | create work event for
mex=hqejbhcnphr4disp9resnc
[ERROR] - GeronimoLog.error(108) | Error sending message
(mex={PartnerRoleMex#hqejbhcnphr4disp9resnc [PID
{http://helloworld}HelloWorld-1] calling null.sayHello(...)}): Unable to
register synchronizer.
org.apache.ode.bpel.iapi.ContextException: Unable to register synchronizer.
at
org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:206)
at
org.apache.ode.scheduler.simple.SimpleScheduler.addTodoOnCommit(SimpleScheduler.java:364)
at
org.apache.ode.scheduler.simple.SimpleScheduler.schedulePersistedJob(SimpleScheduler.java:232)
at
org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.continueAsync(PartnerRoleMessageExchangeImpl.java:126)
at
org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.replyWithFailure(PartnerRoleMessageExchangeImpl.java:97)
at
org.apache.tuscany.sca.implementation.bpel.ode.ODEExternalService$1$1.call(ODEExternalService.java:132)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at
org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:194)
... 10 more
My BPEL
=========
<process name="HelloWorld"
targetNamespace="http://helloworld"
xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:tns="http://helloworld"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:helloworld="http://helloworld"
xmlns:greetings="http://greetings"
xmlns:ad="http://ws.tcc.com"
xmlns:hello="http://hello.tcc.com/hello.wsdl"
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
<import location="../hello/hello.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"
namespace="http://hello.tcc.com/hello.wsdl"/>
<import location="helloworld.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"
namespace="http://helloworld"/>
<import location="../greetings/greetings.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"
namespace="http://greetings"/>
<partnerLinks>
<partnerLink name="sayHelloPartnerLink"
partnerLinkType="hello:SayHelloPartnerLinkType" partnerRole="Provider2" />
<partnerLink name="helloPartnerLink"
partnerLinkType="helloworld:HelloPartnerLinkType" myRole="me" />
<partnerLink name="greetingsPartnerLink"
partnerLinkType="greetings:GreetingsPartnerLinkType" partnerRole="Provider"
initializePartnerRole="yes" />
</partnerLinks>
<variables>
<variable name="sayHelloRequest" messageType="hello:getSayHelloRequest"/>
<variable name="sayHelloResponse" messageType="hello:getSayHelloResponse"/>
<variable name="helloMessage" messageType="helloworld:HelloMessage"/>
<variable name="helloResponse" messageType="helloworld:HelloMessage"/>
<variable name="greetingsRequest"
messageType="greetings:getGreetingsRequest"/>
<variable name="greetingsResponse"
messageType="greetings:getGreetingsResponse"/>
</variables>
<sequence>
<receive
name="start"
createInstance="yes"
operation="hello"
variable="helloMessage"
partnerLink="helloPartnerLink"
portType="helloworld:HelloWorld" />
<assign name="assignToGreetingsRequest">
<copy>
<from>$helloMessage.TestPart</from>
<to>$greetingsRequest.parameters</to>
</copy>
</assign>
<invoke name="invokeGreetings"
operation="getGreetings"
inputVariable="greetingsRequest"
outputVariable="greetingsResponse"
partnerLink="greetingsPartnerLink"
portType="greetings:Greetings" />
<assign name="assignToSayHelloRequest">
<copy>
<from>$greetingsResponse.parameters/greetings:getGreetingsReturn</from>
<to>$sayHelloRequest.parameters</to>
</copy>
</assign>
<invoke name="invokeSayHello"
operation="sayHello"
inputVariable="sayHelloRequest"
outputVariable="sayHelloResponse"
partnerLink="sayHelloPartnerLink"
portType="hello:HelloService" />
<assign name="assignToHelloResponse">
<copy>
<from>$sayHelloResponse.parameters</from>
<to>$helloResponse.TestPart</to>
</copy>
</assign>
<reply name="end"
operation="hello"
partnerLink="helloPartnerLink"
portType="helloworld:HelloWorld"
variable="helloResponse"/>
</sequence>
</process>
Hello.wsdl
===============================
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="HelloServiceService"
targetNamespace="http://hello.tcc.com/hello.wsdl"
xmlns:tns="http://hello.tcc.com/hello.wsdl"
xmlns:SOAP="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:SOAP11="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:bpws="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/">
<wsdl:types>
<xs:schema attributeFormDefault="qualified"
elementFormDefault="unqualified"
targetNamespace="http://hello.tcc.com/hello.wsdl"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="sayHelloResponse">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="returnGreetings" nillable="true"
type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="sayHelloRequest">
<xs:complexType>
<xs:sequence>
<xs:element minOccurs="0" name="name" nillable="true" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
</wsdl:types>
<wsdl:message name="getSayHelloResponse">
<wsdl:part name="parameters" element="tns:sayHelloResponse">
</wsdl:part>
</wsdl:message>
<wsdl:message name="getSayHelloRequest">
<wsdl:part name="parameters" element="tns:sayHelloRequest">
</wsdl:part>
</wsdl:message>
<wsdl:portType name="HelloService">
<wsdl:operation name="sayHello">
<wsdl:input message="tns:getSayHelloRequest">
</wsdl:input>
<wsdl:output message="tns:getSayHelloResponse">
</wsdl:output>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="HelloServiceBinding" type="tns:HelloService">
<SOAP:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="sayHello">
<SOAP:operation/>
<wsdl:input>
<SOAP:body use="literal"/>
</wsdl:input>
<wsdl:output>
<SOAP:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="HelloServiceService">
<wsdl:port name="HelloServicePort" binding="tns:HelloServiceBinding">
<SOAP:address location="http://localhost:8080/SCA-BPEL-13/helloService"/>
</wsdl:port>
</wsdl:service>
<plnk:partnerLinkType name="SayHelloPartnerLinkType">
<plnk:role name="Provider2" portType="tns:HelloService"/><!--
<plnk:role name="you" portType="tns:HelloService"/>
--></plnk:partnerLinkType>
</wsdl:definitions>
Greetings.wsdl
=====================
<?xml version="1.0" encoding="UTF-8"?>
<wsdl:definitions name="greetings"
targetNamespace="http://greetings"
xmlns:tns="http://greetings"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:plnk="http://schemas.xmlsoap.org/ws/2004/03/partner-link/">
<wsdl:types>
<schema elementFormDefault="qualified" targetNamespace="http://greetings"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="getGreetings">
<complexType>
<sequence>
<element name="name" type="xsd:string"/>
</sequence>
</complexType>
</element>
<element name="getGreetingsResponse">
<complexType>
<sequence>
<element name="getGreetingsReturn" type="xsd:string"/>
</sequence>
</complexType>
</element>
</schema>
</wsdl:types>
<wsdl:message name="getGreetingsRequest">
<wsdl:part element="tns:getGreetings" name="parameters"/>
</wsdl:message>
<wsdl:message name="getGreetingsResponse">
<wsdl:part element="tns:getGreetingsResponse" name="parameters"/>
</wsdl:message>
<wsdl:portType name="Greetings">
<wsdl:operation name="getGreetings">
<wsdl:input message="tns:getGreetingsRequest" name="getGreetingsRequest"/>
<wsdl:output message="tns:getGreetingsResponse"
name="getGreetingsResponse"/>
</wsdl:operation>
</wsdl:portType>
<wsdl:binding name="GreetingsSoapBinding" type="tns:Greetings">
<wsdlsoap:binding style="document"
transport="http://schemas.xmlsoap.org/soap/http"/>
<wsdl:operation name="getGreetings">
<wsdlsoap:operation soapAction=""/>
<wsdl:input name="getGreetingsRequest">
<wsdlsoap:body use="literal"/>
</wsdl:input>
<wsdl:output name="getGreetingsResponse">
<wsdlsoap:body use="literal"/>
</wsdl:output>
</wsdl:operation>
</wsdl:binding>
<wsdl:service name="GreetingsService">
<wsdl:port name="GreetingsSoapPort" binding="tns:GreetingsSoapBinding">
<wsdlsoap:address
location="http://localhost:8080/LocalBpel/greetingsService"/>
</wsdl:port>
</wsdl:service>
<plnk:partnerLinkType name="GreetingsPartnerLinkType">
<plnk:role name="Provider" portType="tns:Greetings"/>
</plnk:partnerLinkType>
</wsdl:definitions>
Best Regards,
Santhosh TR.
Re: Re: Re: Tuscany with BPEL
Posted by lu...@gmail.com.
Hi Greetings,
This post is related to my previous post, which occurred during the
invocation of a BPEL component. My simple BPEL tries to invoke 2 other
partners in a series.
<process name="HelloWorld"
targetNamespace="http://helloworld"
xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:tns="http://helloworld"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:helloworld="http://helloworld"
xmlns:greetings="http://greetings"
xmlns:tax="http://tax.tcc.com/tax"
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
<import location="helloworld.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"
namespace="http://helloworld"/>
<import location="../greetings/greetings.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"
namespace="http://greetings"/>
<import location="../tax/proftax.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"
namespace="http://tax.tcc.com/tax"/>
<partnerLinks>
<partnerLink name="helloPartnerLink"
partnerLinkType="helloworld:HelloPartnerLinkType" myRole="me" />
<partnerLink name="greetingsPartnerLink"
partnerLinkType="greetings:GreetingsPartnerLinkType" partnerRole="Provider"
initializePartnerRole="yes" />
<partnerLink name="taxPartnerLink" partnerLinkType="tax:TaxPartnerLinkType"
partnerRole="Provider2" initializePartnerRole="yes" />
</partnerLinks>
<variables>
<variable name="helloMessage" messageType="helloworld:HelloMessage"/>
<variable name="helloResponse" messageType="helloworld:HelloMessage"/>
<variable name="greetingsRequest"
messageType="greetings:getGreetingsRequest"/>
<variable name="greetingsResponse"
messageType="greetings:getGreetingsResponse"/>
<variable name="taxRequest" messageType="tax:getTaxRequest"/>
<variable name="taxResponse" messageType="tax:getTaxResponse"/>
</variables>
<sequence>
<receive
name="start"
createInstance="yes"
operation="hello"
variable="helloMessage"
partnerLink="helloPartnerLink"
portType="helloworld:HelloWorld" />
<assign name="assignToGreetingsRequest">
<copy>
<from>$helloMessage.TestPart</from>
<to>$greetingsRequest.parameters</to>
</copy>
</assign>
<invoke name="invokeGreetings"
operation="getGreetings"
inputVariable="greetingsRequest"
outputVariable="greetingsResponse"
partnerLink="greetingsPartnerLink"
portType="greetings:Greetings" />
<assign name="assignToTaxRequest">
<copy>
<from>$greetingsResponse.parameters/greetings:getGreetingsReturn</from>
<to>$taxRequest.parameters</to>
</copy>
</assign>
<invoke name="invokeTax"
operation="getTax"
inputVariable="taxRequest"
outputVariable="taxResponse"
partnerLink="taxPartnerLink"
portType="tax:Tax" />
<assign name="assignToHelloResponse">
<copy>
<from>$taxResponse.parameters/tax:getTaxReturn</from>
<to>$helloResponse.TestPart</to>
</copy>
</assign>
<reply name="end"
operation="hello"
partnerLink="helloPartnerLink"
portType="helloworld:HelloWorld"
variable="helloResponse"/>
</sequence>
</process>
Each of this invocations from BPEL will work fine separately, but if try to
invoke them in a series, as shown in the figure i'm getting some exception
in the console.
org.apache.ode.bpel.iapi.ContextException: Unable to register synchronizer.
at
org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:206)
at
org.apache.ode.scheduler.simple.SimpleScheduler.addTodoOnCommit(SimpleScheduler.java:364)
at
org.apache.ode.scheduler.simple.SimpleScheduler.schedulePersistedJob(SimpleScheduler.java:232)
at
org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.continueAsync(PartnerRoleMessageExchangeImpl.java:126)
at
org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.replyWithFailure(PartnerRoleMessageExchangeImpl.java:97)
at
org.apache.tuscany.sca.implementation.bpel.ode.ODEExternalService$1$1.call(ODEExternalService.java:166)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
DuCaused by: java.lang.NullPointerException
at
org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:194)
... 10 more
During googling, I came across a post which describes a similar situation,
http://mail-archives.apache.org/mod_mbox/tuscany-dev/200811.mbox/%3Cc0c051b50811260800x34123c37hfe1e1b6109f14119@mail.gmail.com%3E
but I'm not able to resolve this issue, Is there any fix available to this
issue?
Best regards,
Santhosh
On Jun 26, 2009 11:11pm, lukkose.rosbin@gmail.com wrote:
> Hi simon,
> Thanks for the reply, I could find some errors in my BPEL, still I'm
> facing some issues. Now my eclipse console looks like
> org.apache.ode.bpel.iapi.ContextException: Unable to register
> synchronizer.
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:206)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.addTodoOnCommit(SimpleScheduler.java:364)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.schedulePersistedJob(SimpleScheduler.java:232)
> at
> org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.continueAsync(PartnerRoleMessageExchangeImpl.java:126)
> at
> org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.replyWithFailure(PartnerRoleMessageExchangeImpl.java:97)
> at
> org.apache.tuscany.sca.implementation.bpel.ode.ODEExternalService$1$1.call(ODEExternalService.java:166)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:194)
> ... 10 more
> Can you please give me some clue to solve this error?
> Best regards,
> Santhosh
> On Jun 23, 2009 1:55pm, Simon Laws simonslaws@googlemail.com> wrote:
> > Hi Santhosh
> >
> >
> >
> > This kind of error usually means that the service that the BPEL is
> >
> > calling has returned an error of some kind. The error handling in
> >
> > impl.bpel is not very good at the moment and needs improvement hence
> >
> > this rather opaque output.
> >
> >
> >
> > It seems to be going wrong on the call out to the sayHelloPartnerLink.
> >
> > Can you check that that is properly wired in the SCA composite. If it
> >
> > is are you able to look at the HTTP requests going between the BPEL
> >
> > and this partner? That should give you a clue about what is going on.
> >
> >
> >
> > Regards
> >
> >
> >
> > Simon
> >
Re: Re: Re: Tuscany with BPEL
Posted by lu...@gmail.com.
Hi Greetings,
This post is related to my previous post, which occurred during the
invocation of a BPEL component. My simple BPEL tries to invoke 2 other
partners in a series.
<process name="HelloWorld"
targetNamespace="http://helloworld"
xmlns="http://schemas.xmlsoap.org/ws/2004/03/business-process/"
xmlns:bpws="http://docs.oasis-open.org/wsbpel/2.0/process/executable"
xmlns:tns="http://helloworld"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:helloworld="http://helloworld"
xmlns:greetings="http://greetings"
xmlns:tax="http://tax.tcc.com/tax"
queryLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0"
expressionLanguage="urn:oasis:names:tc:wsbpel:2.0:sublang:xpath2.0">
<import location="helloworld.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"
namespace="http://helloworld"/>
<import location="../greetings/greetings.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"
namespace="http://greetings"/>
<import location="../tax/proftax.wsdl"
importType="http://schemas.xmlsoap.org/wsdl/"
namespace="http://tax.tcc.com/tax"/>
<partnerLinks>
<partnerLink name="helloPartnerLink"
partnerLinkType="helloworld:HelloPartnerLinkType" myRole="me" />
<partnerLink name="greetingsPartnerLink"
partnerLinkType="greetings:GreetingsPartnerLinkType" partnerRole="Provider"
initializePartnerRole="yes" />
<partnerLink name="taxPartnerLink" partnerLinkType="tax:TaxPartnerLinkType"
partnerRole="Provider2" initializePartnerRole="yes" />
</partnerLinks>
<variables>
<variable name="helloMessage" messageType="helloworld:HelloMessage"/>
<variable name="helloResponse" messageType="helloworld:HelloMessage"/>
<variable name="greetingsRequest"
messageType="greetings:getGreetingsRequest"/>
<variable name="greetingsResponse"
messageType="greetings:getGreetingsResponse"/>
<variable name="taxRequest" messageType="tax:getTaxRequest"/>
<variable name="taxResponse" messageType="tax:getTaxResponse"/>
</variables>
<sequence>
<receive
name="start"
createInstance="yes"
operation="hello"
variable="helloMessage"
partnerLink="helloPartnerLink"
portType="helloworld:HelloWorld" />
<assign name="assignToGreetingsRequest">
<copy>
<from>$helloMessage.TestPart</from>
<to>$greetingsRequest.parameters</to>
</copy>
</assign>
<invoke name="invokeGreetings"
operation="getGreetings"
inputVariable="greetingsRequest"
outputVariable="greetingsResponse"
partnerLink="greetingsPartnerLink"
portType="greetings:Greetings" />
<assign name="assignToTaxRequest">
<copy>
<from>$greetingsResponse.parameters/greetings:getGreetingsReturn</from>
<to>$taxRequest.parameters</to>
</copy>
</assign>
<invoke name="invokeTax"
operation="getTax"
inputVariable="taxRequest"
outputVariable="taxResponse"
partnerLink="taxPartnerLink"
portType="tax:Tax" />
<assign name="assignToHelloResponse">
<copy>
<from>$taxResponse.parameters/tax:getTaxReturn</from>
<to>$helloResponse.TestPart</to>
</copy>
</assign>
<reply name="end"
operation="hello"
partnerLink="helloPartnerLink"
portType="helloworld:HelloWorld"
variable="helloResponse"/>
</sequence>
</process>
Each of this invocations from BPEL will work fine separately, but if try to
invoke them in a series, as shown in the figure i'm getting some exception
in the console.
org.apache.ode.bpel.iapi.ContextException: Unable to register synchronizer.
at
org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:206)
at
org.apache.ode.scheduler.simple.SimpleScheduler.addTodoOnCommit(SimpleScheduler.java:364)
at
org.apache.ode.scheduler.simple.SimpleScheduler.schedulePersistedJob(SimpleScheduler.java:232)
at
org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.continueAsync(PartnerRoleMessageExchangeImpl.java:126)
at
org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.replyWithFailure(PartnerRoleMessageExchangeImpl.java:97)
at
org.apache.tuscany.sca.implementation.bpel.ode.ODEExternalService$1$1.call(ODEExternalService.java:166)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
DuCaused by: java.lang.NullPointerException
at
org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:194)
... 10 more
During googling, I came across a post which describes a similar situation,
http://mail-archives.apache.org/mod_mbox/tuscany-dev/200811.mbox/%3Cc0c051b50811260800x34123c37hfe1e1b6109f14119@mail.gmail.com%3E
but I'm not able to resolve this issue, Is there any fix available to this
issue?
Best regards,
Santhosh
On Jun 26, 2009 11:11pm, lukkose.rosbin@gmail.com wrote:
> Hi simon,
> Thanks for the reply, I could find some errors in my BPEL, still I'm
> facing some issues. Now my eclipse console looks like
> org.apache.ode.bpel.iapi.ContextException: Unable to register
> synchronizer.
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:206)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.addTodoOnCommit(SimpleScheduler.java:364)
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.schedulePersistedJob(SimpleScheduler.java:232)
> at
> org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.continueAsync(PartnerRoleMessageExchangeImpl.java:126)
> at
> org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.replyWithFailure(PartnerRoleMessageExchangeImpl.java:97)
> at
> org.apache.tuscany.sca.implementation.bpel.ode.ODEExternalService$1$1.call(ODEExternalService.java:166)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
> at java.util.concurrent.FutureTask.run(FutureTask.java:123)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
> at java.lang.Thread.run(Thread.java:595)
> Caused by: java.lang.NullPointerException
> at
> org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:194)
> ... 10 more
> Can you please give me some clue to solve this error?
> Best regards,
> Santhosh
> On Jun 23, 2009 1:55pm, Simon Laws simonslaws@googlemail.com> wrote:
> > Hi Santhosh
> >
> >
> >
> > This kind of error usually means that the service that the BPEL is
> >
> > calling has returned an error of some kind. The error handling in
> >
> > impl.bpel is not very good at the moment and needs improvement hence
> >
> > this rather opaque output.
> >
> >
> >
> > It seems to be going wrong on the call out to the sayHelloPartnerLink.
> >
> > Can you check that that is properly wired in the SCA composite. If it
> >
> > is are you able to look at the HTTP requests going between the BPEL
> >
> > and this partner? That should give you a clue about what is going on.
> >
> >
> >
> > Regards
> >
> >
> >
> > Simon
> >
Re: Re: Tuscany with BPEL
Posted by lu...@gmail.com.
Hi simon,
Thanks for the reply, I could find some errors in my BPEL, still I'm facing
some issues. Now my eclipse console looks like
org.apache.ode.bpel.iapi.ContextException: Unable to register synchronizer.
at
org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:206)
at
org.apache.ode.scheduler.simple.SimpleScheduler.addTodoOnCommit(SimpleScheduler.java:364)
at
org.apache.ode.scheduler.simple.SimpleScheduler.schedulePersistedJob(SimpleScheduler.java:232)
at
org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.continueAsync(PartnerRoleMessageExchangeImpl.java:126)
at
org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.replyWithFailure(PartnerRoleMessageExchangeImpl.java:97)
at
org.apache.tuscany.sca.implementation.bpel.ode.ODEExternalService$1$1.call(ODEExternalService.java:166)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at
org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:194)
... 10 more
Can you please give me some clue to solve this error?
Best regards,
Santhosh
On Jun 23, 2009 1:55pm, Simon Laws <si...@googlemail.com> wrote:
> Hi Santhosh
> This kind of error usually means that the service that the BPEL is
> calling has returned an error of some kind. The error handling in
> impl.bpel is not very good at the moment and needs improvement hence
> this rather opaque output.
> It seems to be going wrong on the call out to the sayHelloPartnerLink.
> Can you check that that is properly wired in the SCA composite. If it
> is are you able to look at the HTTP requests going between the BPEL
> and this partner? That should give you a clue about what is going on.
> Regards
> Simon
Re: Re: Tuscany with BPEL
Posted by lu...@gmail.com.
Hi simon,
Thanks for the reply, I could find some errors in my BPEL, still I'm facing
some issues. Now my eclipse console looks like
org.apache.ode.bpel.iapi.ContextException: Unable to register synchronizer.
at
org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:206)
at
org.apache.ode.scheduler.simple.SimpleScheduler.addTodoOnCommit(SimpleScheduler.java:364)
at
org.apache.ode.scheduler.simple.SimpleScheduler.schedulePersistedJob(SimpleScheduler.java:232)
at
org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.continueAsync(PartnerRoleMessageExchangeImpl.java:126)
at
org.apache.ode.bpel.engine.PartnerRoleMessageExchangeImpl.replyWithFailure(PartnerRoleMessageExchangeImpl.java:97)
at
org.apache.tuscany.sca.implementation.bpel.ode.ODEExternalService$1$1.call(ODEExternalService.java:166)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269)
at java.util.concurrent.FutureTask.run(FutureTask.java:123)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
Caused by: java.lang.NullPointerException
at
org.apache.ode.scheduler.simple.SimpleScheduler.registerSynchronizer(SimpleScheduler.java:194)
... 10 more
Can you please give me some clue to solve this error?
Best regards,
Santhosh
On Jun 23, 2009 1:55pm, Simon Laws <si...@googlemail.com> wrote:
> Hi Santhosh
> This kind of error usually means that the service that the BPEL is
> calling has returned an error of some kind. The error handling in
> impl.bpel is not very good at the moment and needs improvement hence
> this rather opaque output.
> It seems to be going wrong on the call out to the sayHelloPartnerLink.
> Can you check that that is properly wired in the SCA composite. If it
> is are you able to look at the HTTP requests going between the BPEL
> and this partner? That should give you a clue about what is going on.
> Regards
> Simon
Re: Tuscany with BPEL
Posted by Simon Laws <si...@googlemail.com>.
Hi Santhosh
This kind of error usually means that the service that the BPEL is
calling has returned an error of some kind. The error handling in
impl.bpel is not very good at the moment and needs improvement hence
this rather opaque output.
It seems to be going wrong on the call out to the sayHelloPartnerLink.
Can you check that that is properly wired in the SCA composite. If it
is are you able to look at the HTTP requests going between the BPEL
and this partner? That should give you a clue about what is going on.
Regards
Simon