You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ode.apache.org by sujoy ray <su...@gmail.com> on 2006/12/18 21:09:32 UTC
Error: First Element must contain the local name.
Hi!! All,
I am developing a service composition scenario and found an error of :
org.apache.axiom.soap.SOAPProcessingException: First Element must contain
the local name, Envelope.
We have two services: One is developed by us, deployed locally in intranet
that is working fine but while I am calling the other remote established
weather service this error occurs. Can anybody give me any hint about this?
I am copying the stacktrace at the end. Can anybody please check the soap
message and the error to tell me possible solution? I checked in the net for
this error but failed to find any suitable solution.[:(]
Thanks in advance for your time and patience.
Best Regards,
Sujoy
DEBUG - SessionOutHandler.invoke(100) | <?xml version='1.0'
encoding='utf-8'?><s
oapenv:Envelope xmlns:soapenv="
http://schemas.xmlsoap.org/soap/envelope/"><soape<http://schemas.xmlsoap.org/soap/envelope/%22%3E%3Csoape>
nv:Header><addr:To xmlns:addr="
http://www.w3.org/2005/08/addressing">http://www<http://www.w3.org/2005/08/addressing%22%3Ehttp://www>
.
weather.gov/mdl/survey/pgb_survey/dev/SOAP_server/ndfdXMLserver.php
</addr:To><ad
dr:Action xmlns:addr="
http://www.w3.org/2005/08/addressing">http://www.weather.g<http://www.w3.org/2005/08/addressing%22%3Ehttp://www.weather.g>
ov/mdl/survey/pgb_survey/dev/DWMLgen/wsdl/ndfdXML.wsdl#NDFDgenByDay</addr:Action
></soapenv:Header><soapenv:Body><NDFDgenByDay><longitude>-80.1617
</longitude><nu
mDays>34.3729
</numDays><startDate>2006-12-14</startDate><latitude>1</latitude><f
ormat>24 hourly</format></NDFDgenByDay></soapenv:Body></soapenv:Envelope>
ERROR - ExternalService.invoke(132) | Error sending message to Axis2 for ODE
mex
{PartnerRoleMex#7503873 [PID {http://trustseer/bpel/test}WeatherForCAATXI]
call
ing org.apache.ode.bpel.epr.WSAEndpoint@1fee2db.NDFDgenByDay(...)}
java.util.concurrent.ExecutionException: org.apache.axis2.AxisFault: First
Eleme
nt must contain the local name, Envelope; nested exception is:
org.apache.axiom.soap.SOAPProcessingException: First Element must
contai
n the local name, Envelope
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java
:205)
at java.util.concurrent.FutureTask.get(FutureTask.java:80)
at org.apache.ode.axis2.ExternalService.invoke(ExternalService.java
:114)
at org.apache.ode.axis2.MessageExchangeContextImpl.invokePartner
(Message
ExchangeContextImpl.java:52)
at org.apache.ode.axis2.P2PMexContextImpl.invokePartner
(P2PMexContextImp
l.java:100)
at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.invoke
(BpelRuntimeC
ontextImpl.java:691)
at org.apache.ode.bpel.runtime.INVOKE.run(INVOKE.java:95)
at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.ode.jacob.vpu.JacobVPU$JacobThreadImpl.run(
JacobVPU.java:4
57)
at org.apache.ode.jacob.vpu.JacobVPU.execute(JacobVPU.java:139)
at org.apache.ode.bpel.engine.BpelRuntimeContextImpl.execute
(BpelRuntime
ContextImpl.java:731)
at
org.apache.ode.bpel.engine.BpelProcess$PartnerLinkMyRoleImpl.invokeMy
Role(BpelProcess.java:484)
at org.apache.ode.bpel.engine.BpelProcess.invokeProcess(
BpelProcess.java
:193)
at org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl.invoke
(MyRoleMes
sageExchangeImpl.java:114)
at org.apache.ode.axis2.ODEService.onAxisMessageExchange(
ODEService.java
:118)
at org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic
(ODE
MessageReceiver.java:78)
at org.apache.ode.axis2.hooks.ODEMessageReceiver.receive
(ODEMessageRecei
ver.java:53)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:493)
at
org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostReq
uest(HTTPTransportUtils.java:319)
at org.apache.axis2.transport.http.AxisServlet.doPost(
AxisServlet.java:2
47)
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
(Appl
icationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter
(ApplicationF
ilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke
(StandardWrapperV
alve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke
(StandardContextV
alve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(
StandardHostValve.j
ava:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(
ErrorReportValve.j
ava:105)
at org.apache.catalina.core.StandardEngineValve.invoke
(StandardEngineVal
ve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(
CoyoteAdapter.jav
a:148)
at org.apache.coyote.http11.Http11Processor.process(
Http11Processor.java
:869)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.p
rocessConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket
(PoolTcpEndpo
int.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt
(LeaderFol
lowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run
(ThreadP
ool.java:684)
at java.lang.Thread.run(Thread.java:595)
Caused by: org.apache.axis2.AxisFault: First Element must contain the local
name
, Envelope; nested exception is:
org.apache.axiom.soap.SOAPProcessingException: First Element must
contai
n the local name, Envelope
at org.apache.axis2.transport.TransportUtils.createSOAPMessage
(Transport
Utils.java:126)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage
(Transport
Utils.java:67)
at org.apache.axis2.description.OutInAxisOperationClient.send
(OutInAxisO
peration.java:381)
at org.apache.axis2.description.OutInAxisOperationClient.execute
(OutInAx
isOperation.java:295)
at org.apache.axis2.client.ServiceClient.sendReceive(
ServiceClient.java:
579)
at org.apache.axis2.client.ServiceClient.sendReceive(
ServiceClient.java:
508)
at org.apache.ode.axis2.ExternalService$1.call(ExternalService.java
:109)
at org.apache.ode.axis2.ExternalService$1.call(ExternalService.java
:108)
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
(ThreadPoolExec
utor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run
(ThreadPoolExecutor
.java:675)
... 1 more
Caused by: org.apache.axiom.soap.SOAPProcessingException: First Element must
con
tain the local name, Envelope
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.constructNode
(StAXSOAPModelBuilder.java:212)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.createOMEleme
nt(StAXSOAPModelBuilder.java:171)
at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(
StAXOMBuilder.jav
a:125)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelo
pe(StAXSOAPModelBuilder.java:155)
at
org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.identifySOAPV
ersion(StAXSOAPModelBuilder.java:131)
at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder
.<init>(StAXSO
APModelBuilder.java:106)
at org.apache.axis2.transport.TransportUtils.createSOAPMessage
(Transport
Utils.java:120)
... 12 more
Here is the part of the BPEL code where I find the error:
<sequence name="Sequence2">
<assign name="assignment2">
<copy>
<from variable="Input" part="weather1"/>
<to variable="WeatherClientInput" part="latitude"/>
</copy>
<copy>
<from variable="Input" part="weather2"/>
<to variable="WeatherClientInput" part="longitude"/>
</copy>
<copy>
<from variable="Input" part="weather3"/>
<to variable="WeatherClientInput" part="startDate"/>
</copy>
<copy>
<from variable="Input" part="weather4"/>
<to variable="WeatherClientInput" part="numDays"/>
</copy>
<copy>
<from variable="Input" part="weather5"/>
<to variable="WeatherClientInput" part="format"/>
</copy>
</assign>
<invoke name="invokeWeather"
partnerLink="WeatherInfo"
portType="weather:ndfdXMLPortType"
operation="NDFDgenByDay"
inputVariable="WeatherClientInput"
outputVariable="WeatherOut">
</invoke>
</sequence>