ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vo, Khanh" <...@systechnologies.com>
Subject RE: How to create a new BPEL pocess?
Date Thu, 16 Nov 2006 02:40:18 GMT
Hi Alex,

Thanks again for the link below.  I now use am using NetBeans 5.5 and
the bpel plugin to create my process now.  I seems friendlier then the
Oracle editor.  
I'm staring from scratch again and am trying to create simple bpel
process that takes in a string and returns the string.  I was able to
deploy the process onto ode, but when I execute, I am getting the
following errors.  Below are outputs from Tomcat and from the
HttpSoapSender.  

Any help is appreciated!
Thanks
Khanh

>From Tomcat:
DEBUG - ODEAxisDispatcher.findOperation(71) | Checking for Operation
using SOAP message body's fir
st child's local name : operation1
DEBUG - ODEAxisDispatcher.findOperation(75) | Found operation
org.apache.axis2.description.InOutAx
isOperation@200d0c
DEBUG - ODEMessageReceiver.receive(47) | Received message for
SynchronousSample.operation1
DEBUG - BpelEngineImpl.route(218) | Routed: svcQname
{http://localhost/SynchronousSample/Synchrono
usSample}service1 -->
BpelProcess[{http://enterprise.netbeans.org/bpel/SynchronousSample/Synch
rono
usSample_1}SynchronousSample in {DeploymentUnit src}]
DEBUG - MessageExchangeImpl.setPortOp(171) |
Mex[655360].setPortOp(PortType: name={http://localhos
t/SynchronousSample/SynchronousSample}portType1
Operation: name=operation1
style=REQUEST_RESPONSE,1
Input: name=input1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}requestMessag
e
Part: name=inputType
typeName={http://www.w3.org/2001/XMLSchema}string
Output: name=output1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}responseMessa
ge
Part: name=resultType
typeName={http://www.w3.org/2001/XMLSchema}string,Operation:
name=operation1
style=REQUEST_RESPONSE,1
Input: name=input1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}requestMessag
e
Part: name=inputType
typeName={http://www.w3.org/2001/XMLSchema}string
Output: name=output1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}responseMessa
ge
Part: name=resultType
typeName={http://www.w3.org/2001/XMLSchema}string)
DEBUG - ODEService.onAxisMessageExchange(100) | ODE routed to operation
Operation: name=operation1

style=REQUEST_RESPONSE,1
Input: name=input1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}requestMessag
e
Part: name=inputType
typeName={http://www.w3.org/2001/XMLSchema}string
Output: name=output1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}responseMessa
ge
Part: name=resultType
typeName={http://www.w3.org/2001/XMLSchema}string from service
{http://localhost/SynchronousSample
/SynchronousSample}service1
DEBUG - ODEService.onAxisMessageExchange(117) | Invoking ODE using MEX
{MyRoleMex#655360 [Client 1
ffd0v3uxfvoprlacxct8f] calling
{http://localhost/SynchronousSample/SynchronousSample}service1.oper
ation1(...)}
DEBUG - ODEService.onAxisMessageExchange(118) | Message content:  <?xml
version="1.0" encoding="UT
F-8"?>
<message><inputType><m:operation1
xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns
:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:m="http://localhost/SynchronousSample/
SynchronousSample" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/
XMLSchema-instance">
                        <inputType>Hello khanh</inputType>
                </m:operation1></inputType></message>
DEBUG - BpelEngineImpl.route(218) | Routed: svcQname
{http://localhost/SynchronousSample/Synchrono
usSample}service1 -->
BpelProcess[{http://enterprise.netbeans.org/bpel/SynchronousSample/Synch
rono
usSample_1}SynchronousSample in {DeploymentUnit src}]
DEBUG - MyRoleMessageExchangeImpl.invoke(104) | invoke() EPR= null ==>
BpelProcess[{http://enterpr
ise.netbeans.org/bpel/SynchronousSample/SynchronousSample_1}SynchronousS
ample in {DeploymentUnit s
rc}]
DEBUG - MessageExchangeImpl.setProcess(153) |
Mex[655360].setProcess(OProcess#0)
DEBUG - BpelProcess$PartnerLinkMyRoleImpl.invokeMyRole(384) | >>
{PartnerLinkRole-SynchronousSampl
e.partnerlinktyperole1 on
{http://localhost/SynchronousSample/SynchronousSample}service1:port1}:in
putMsgRcvd(messageExchange={MyRoleMex#655360 [Client
1ffd0v3uxfvoprlacxct8f] calling {http://local
host/SynchronousSample/SynchronousSample}service1.operation1(...)})
DEBUG - MessageExchangeImpl.setPortOp(171) |
Mex[655360].setPortOp(PortType: name={http://localhos
t/SynchronousSample/SynchronousSample}portType1
Operation: name=operation1
style=REQUEST_RESPONSE,1
Input: name=input1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}requestMessag
e
Part: name=inputType
typeName={http://www.w3.org/2001/XMLSchema}string
Output: name=output1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}responseMessa
ge
Part: name=resultType
typeName={http://www.w3.org/2001/XMLSchema}string,Operation:
name=operation1
style=REQUEST_RESPONSE,1
Input: name=input1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}requestMessag
e
Part: name=inputType
typeName={http://www.w3.org/2001/XMLSchema}string
Output: name=output1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}responseMessa
ge
Part: name=resultType
typeName={http://www.w3.org/2001/XMLSchema}string)
DEBUG - MessageExchangeImpl.setPattern(164) |
Mex[655360].setPattern(REQUEST_RESPONSE)
DEBUG - MessageExchangeImpl.getProperty(235) | GET MEX property
org.apache.ode.bpel.myRoleSessionI
d = null
DEBUG - MessageExchangeImpl.getProperty(235) | GET MEX property
org.apache.ode.bpel.myRoleSessionI
d = null
DEBUG - MessageExchangeImpl.getProperty(235) | GET MEX property
org.apache.ode.bpel.partnerRoleSes
sionId = null
DEBUG - BpelProcess$PartnerLinkMyRoleImpl.invokeMyRole(429) | INPUTMSG:
11.operation1: MSG RCVD ke
ys=[] mySessionId=null partnerSessionId=null
DEBUG - BpelProcess$PartnerLinkMyRoleImpl.invokeMyRole(455) | INPUTMSG:
11.operation1: routing fai
led, CREATING NEW INSTANCE
DEBUG - BpelRuntimeContextImpl.<init>(139) | BpelRuntimeContextImpl
created. INDEXED STATE={}
DEBUG - BpelRuntimeContextImpl.createScopeInstance(226) | >>
createScopeInstance(parentScopeId=<nu
ll>,scope={OScope '__PROCESS_SCOPE:SynchronousSample' id=3})
DEBUG - BpelRuntimeContextImpl.initializePartnerLinks(243) | >>
initializeEndpointReferences(paren
tScopeId=819200,partnerLinks=[OPartnerLink#11])
DEBUG - BpelRuntimeContextImpl.select(263) | >>
select(pickResponseChannel=PickResponseChannel#9,t
imeout=<null>,createInstance=true,selectors=[Lorg.apache.ode.bpel.runtim
e.Selector;@1a8a9e7)
DEBUG - BpelRuntimeContextImpl.select(287) | SELECT:
PickResponseChannel#9: USING CORRELATOR 11.op
eration1
DEBUG - OutstandingRequestManager.findConflict(46) | >>
findConflict(selectors=[Lorg.apache.ode.bp
el.runtime.Selector;@1a8a9e7)
DEBUG - OutstandingRequestManager.register(65) | >>
register(pickResponseChannel=9,selectors=[Lorg
.apache.ode.bpel.runtime.Selector;@1a8a9e7)
DEBUG - BpelRuntimeContextImpl.select(304) | SELECT:
PickResponseChannel#9: CHECKING for NEW INSTA
NCE match
DEBUG - BpelRuntimeContextImpl.inputMsgMatch(797) | INPUTMSGMATCH:
Changing process instance state
 from ready to active
DEBUG - OutstandingRequestManager.associate(109) | >>
associate(pickResponseChannel=9,mexRef=65536
0)
DEBUG - BpelRuntimeContextImpl.select(311) | SELECT:
PickResponseChannel#9: FOUND match for NEW in
stance mexRef={MyRoleMex#655360 [Client 1ffd0v3uxfvoprlacxct8f] calling
{http://localhost/Synchron
ousSample/SynchronousSample}service1.operation1(...)}
ERROR - REPLY.run(72) | org.apache.ode.bpel.common.FaultException
DEBUG - BpelRuntimeContextImpl.createScopeInstance(226) | >>
createScopeInstance(parentScopeId=819
200,scope={OCatch faultName=null, faultVariable=null})
DEBUG - BpelRuntimeContextImpl.initializePartnerLinks(243) | >>
initializeEndpointReferences(paren
tScopeId=819201,partnerLinks=[])
DEBUG - BpelRuntimeContextImpl.completedFault(180) | ProcessImpl
completed with fault '{http://sch
emas.xmlsoap.org/ws/2004/03/business-process/}uninitializedVariable'
DEBUG - OutstandingRequestManager.releaseAll(153) | >> releaseAll()
DEBUG - MessageExchangeImpl.setPortOp(171) |
Mex[655360].setPortOp(PortType: name={http://localhos
t/SynchronousSample/SynchronousSample}portType1
Operation: name=operation1
style=REQUEST_RESPONSE,1
Input: name=input1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}requestMessag
e
Part: name=inputType
typeName={http://www.w3.org/2001/XMLSchema}string
Output: name=output1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}responseMessa
ge
Part: name=resultType
typeName={http://www.w3.org/2001/XMLSchema}string,Operation:
name=operation1
style=REQUEST_RESPONSE,1
Input: name=input1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}requestMessag
e
Part: name=inputType
typeName={http://www.w3.org/2001/XMLSchema}string
Output: name=output1
Message:
name={http://localhost/SynchronousSample/SynchronousSample}responseMessa
ge
Part: name=resultType
typeName={http://www.w3.org/2001/XMLSchema}string)
DEBUG - MessageExchangeContextImpl.onAsyncReply(57) | Processing an
async reply from service {http
://localhost/SynchronousSample/SynchronousSample}service1
DEBUG - ODEService.onAxisMessageExchange(131) | Commiting ODE MEX
{MyRoleMex#655360 [Client 1ffd0v
3uxfvoprlacxct8f] calling
{http://localhost/SynchronousSample/SynchronousSample}service1.operation
1(...)}
DEBUG - ODEService.onAxisMessageExchange(167) | Handling response for
MEX {MyRoleMex#655360 [Clien
t 1ffd0v3uxfvoprlacxct8f] calling
{http://localhost/SynchronousSample/SynchronousSample}service1.o
peration1(...)}

=================================================================

And here is the Soap response from the HttpSoapSender:

<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Heade
r /><soapenv:Body><soapenv:Fault
xmlns:axis2="http://schemas.xmlsoap.org/ws/2004/03/business-process/"><f
aultcode>axis2:uninitializedVariable</faultcode><faultstring>unknown</fa
ultstring><detail><Exception>org.apache.axis2.AxisFault&#13;
        at
org.apache.ode.axis2.ODEService.onResponse(ODEService.java:230)&#13;
        at
org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java:17
9)&#13;
        at
org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMes
sageReceiver.java:78)&#13;
        at
org.apache.ode.axis2.hooks.ODEMessageReceiver.receive(ODEMessageReceiver
.java:53)&#13;
        at
org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:454)&#13;
        at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReques
t(HTTPTransportUtils.java:284)&#13;
        at
org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:136)
&#13;
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)&#13;
        at
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)&#13;
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
tionFilterChain.java:237)&#13;
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:157)&#13;
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValv
e.java:214)&#13;
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)&#13;
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)&#13;
        at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardCon
textValve.java:198)&#13;
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValv
e.java:152)&#13;
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)&#13;
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)&#13;
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java
:137)&#13;
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)&#13;
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java
:118)&#13;
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:102)&#13;
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)&#13;
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.
java:109)&#13;
        at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveCo
ntext.java:104)&#13;
        at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:5
20)&#13;
        at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)&#1
3;
        at
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)&
#13;
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:79
9)&#13;
        at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:705)&#13;
        at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:57
7)&#13;
        at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:683)&#13;
        at java.lang.Thread.run(Thread.java:595)&#13;
</Exception></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
[WARN] HttpMethodBase - Going to buffer response body of large or
unknown size. Using getResponseBodyAsStream instead is recommended.




-----Original Message-----
From: Alex Boisvert [mailto:boisvert@intalio.com] 
Sent: Saturday, November 04, 2006 7:07 AM
To: Vo, Khanh
Cc: ode-dev@incubator.apache.org; ode-user@incubator.apache.org
Subject: Re: How to create a new BPEL pocess?

Vo, Khanh wrote:
> Vo, Khanh wrote:
>   
>> I've done that and am still getting errors deploying my BPEL process.
I
>> hope I did it correctly. Do you think I can send you my files?  It is
a
>> very small test.
>>
>>     


Hi Khanh,

There are several little issues with your process.

1) the process should start with a <receive> activity to match the 
<reply> activity at the end

2) the namespace in the following import of BPELProcess1.bpel:

  <import location="Version.wsdl"
namespace="http://ode/bpel/unit-test.wsdl"
          importType="http://schemas.xmlsoap.org/wsdl/"/>

   does not match the namespace specified in Version.wsdl 
("http://localhost:8080/axis/services/Version")

3) in deploy.xml, the service namespace prefix "wns" should be bound to 
"http://localhost:8080/axis/services/Version" as well

4) i'm not sure exactly what is your intent, but it seems you need 
another partnerlink to represent the interaction between the client of 
the process (versus the interaction between the process and the version 
service).

If you're looking for additional material to learn BPEL, you might want 
to refer to  [1], part 2 of the series specifically reviews partnerLinks

and partnerLinkTypes.

regards,
alex

[1] 
http://developers.sun.com/prodtech/javatools/jsenterprise/nb_enterprise_
pack/reference/techart/bpel.html


Mime
View raw message