ode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jiang Liu" <S3075...@student.rmit.edu.au>
Subject Re: [Ode]Missing Schema types and failure of invocation
Date Mon, 05 Feb 2007 14:32:30 GMT
Hi, i just want to add a extra question here: i have tried the given HelloWorld2 bpel service,
and, well, it does not work. Is this example only for demo or it should works fine but my
problem?

Here is the exceptions at client side:
E:\...\client\build\classes>java -Dja
va.ext.dirs=c:\Jar_lib ode.bpel.unit_test_wsdl.Client
java.lang.NullPointerException
        at com.ctc.wstx.sw.BaseNsStreamWriter.doWriteDefaultNs(BaseNsStreamWriter
.java:528)
        at com.ctc.wstx.sw.SimpleNsStreamWriter.writeDefaultNamespace(SimpleNsStr
eamWriter.java:111)
        at com.ctc.wstx.sw.SimpleNsStreamWriter.writeNamespace(SimpleNsStreamWrit
er.java:119)
        at org.apache.axiom.om.impl.MTOMXMLStreamWriter.writeNamespace(MTOMXMLStr
eamWriter.java:146)
        at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeElem
ent(StreamingOMSerializer.java:243)
        at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serializeNode
(StreamingOMSerializer.java:76)
        at org.apache.axiom.om.impl.serialize.StreamingOMSerializer.serialize(Str
eamingOMSerializer.java:59)
        at org.apache.axiom.om.impl.util.OMSerializerUtil.serializeByPullStream(O
MSerializerUtil.java:473)
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElemen
tImpl.java:823)
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsum
e(OMElementImpl.java:848)
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerialize(OMElemen
tImpl.java:819)
        at org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl.internalSerialize(SOA
PEnvelopeImpl.java:180)
        at org.apache.axiom.om.impl.llom.OMElementImpl.internalSerializeAndConsum
e(OMElementImpl.java:848)
        at org.apache.axiom.om.impl.llom.OMNodeImpl.serializeAndConsume(OMNodeImp
l.java:419)
        at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEnti
ty.handleOMOutput(SOAPOverHTTPSender.java:190)
        at org.apache.axis2.transport.http.SOAPOverHTTPSender$AxisSOAPRequestEnti
ty.writeRequest(SOAPOverHTTPSender.java:232)
        at org.apache.commons.httpclient.methods.EntityEnclosingMethod.writeReque
stBody(EntityEnclosingMethod.java:495)
        at org.apache.commons.httpclient.HttpMethodBase.writeRequest(HttpMethodBa
se.java:1973)
        at org.apache.commons.httpclient.HttpMethodBase.execute(HttpMethodBase.ja
va:993)
        at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(Http
MethodDirector.java:397)
        at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMet
hodDirector.java:170)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java
:396)
        at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java
:346)
        at org.apache.axis2.transport.http.AbstractHTTPSender.executeMethod(Abstr
actHTTPSender.java:541)
        at org.apache.axis2.transport.http.SOAPOverHTTPSender.send(SOAPOverHTTPSe
nder.java:119)
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.writeMessag
eWithCommons(CommonsHTTPTransportSender.java:335)
        at org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(Comm
onsHTTPTransportSender.java:204)
        at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:674)
        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOp
eration.java:237)
        at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxi
sOperation.java:202)
        at ode.bpel.unit_test_wsdl.HelloWorldStub.hello(HelloWorldStub.java:144)
        at ode.bpel.unit_test_wsdl.Client.main(Client.java:16)
------------------------------------------------------------
Also i found when deploying a bpel on Ode, it will change BPEL's wsdl to rpc binding style
(orginal doc style), does anyone have same problem?


-----Original Message-----
From: "Jiang Liu" <S3075163@student.rmit.edu.au>
To: ode-dev@incubator.apache.org
Date: Sat, 03 Feb 2007 17:28:43 +1100
Subject: [Ode]Missing Schema types and failure of invocation

Hi all
i have following files:
Weather.wsdl (outside service include partner link "partner role" defined)
Process.wsdl (BPEL process' wsdl include partner link "my role" defined)
Process.bpel (import both wsdls)
deploy.xml

I have my message schema types defined in Process.wsdl. The process deployment is successful
but when i display the exposed service's WSDL, the schema types are missed. Its like:

...
<wsdl:types/>
...

I have tried to mix the schema definition and generate client by WSDL2Java, but the client
side exception is:

===================
...
E:\Weather_process_client\client\build\classes>java -Djava.
ext.dirs=c:\Jar_lib weatherprocess.org.Client
org.apache.axis2.AxisFault: An exception occured when invoking ODE.
        at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOp
eration.java:271)
        at org.apache.axis2.description.OutInAxisOperationClient.execute(OutInAxi
sOperation.java:202)
        at weatherprocess.org.Weather_ProcessStub.getResult(Weather_ProcessStub.j
ava:144)
        at weatherprocess.org.Client.main(Client.java:16)

At Tomcat server side, there is a NullPointerException:
...
2421452  TRACE  [http-8080-Processor25] openjpa.jdbc.JDBC - <t 3453776, conn 1518
9709> [0 ms] close
java.lang.NullPointerException
        at org.apache.ode.bpel.engine.BpelProcess$PartnerLinkMyRoleImpl.invokeMyR
ole(BpelProcess.java:429)
        at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(BpelProcess.java:
201)
        at org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl.invoke(MyRoleMess
ageExchangeImpl.java:114)
        at org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java:
118)
        at org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEM
essageReceiver.java:78)
        at org.apache.ode.axis2.hooks.ODEMessageReceiver.receive(ODEMessageReceiv
er.java:53)
        at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
        at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequ
est(HTTPTransportUtils.java:319)
        at org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:24
7)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
cationFilterChain.java:252)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFi
lterChain.java:173)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperVa
lve.java:213)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextVa
lve.java:178)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.ja
va:126)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.ja
va:105)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValv
e.java:107)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java
:148)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:
869)
        at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.pr
ocessConnection(Http11BaseProtocol.java:664)
        at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoi
nt.java:527)
        at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFoll
owerWorkerThread.java:80)
        at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPo
ol.java:684)
        at java.lang.Thread.run(Thread.java:595)
ERROR - ODEService.onAxisMessageExchange(137) | Rolling back ODE MEX {MyRoleMex#-
8tg008o6aoxocprvr9k9xw [Client -8tg008o6aoxocprvr9k9xx] calling {http://org.weath
erprocess}WeatherProcess.getResult(...)}
DEBUG - ODEService.onAxisMessageExchange(164) | Handling response for MEX {MyRole
Mex#-8tg008o6aoxocprvr9k9xw [Client -8tg008o6aoxocprvr9k9xx] calling {http://org.
weatherprocess}WeatherProcess.getResult(...)}
WARN - ODEService.onResponse(242) | Received ODE message exchange in unexpected s
tate: REQUEST


Could anyone tell me that the failure of the process invocation is because the missing schema
type definitions? And what modification i have to make? provide an extra xsd file?

Cheers!! 
------------------------------
------------------------------
Jiang Liu
Student Number: 3075163
CS/Yallara Name: ljiang
RMIT, Melbourne

Mime
View raw message