axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Subrahmanya, Noida" <subrahma...@noida.hcltech.com>
Subject SimpleDeserializer encountered a child element, which is NOT expe cted...
Date Fri, 06 Jun 2003 05:21:35 GMT

>> hi ,
>>  i m creating a simple web service which uses an 
>org.w3c.dom.Element type
>> object as a Argument in the Web Method.
>>  Web service was created with style "DOCUMENT".
>>  there was no problem in creating a WSDL, client files and 
>deploying the
>> web service but when the client was run to invoke the web method with
>> argument type  org.w3c.dom.Element object, following 
>Exception was thrown
>> by the tomcat server and also on client window.
>> i m using Tomcat 4.1 and axis 1.0 version. and java version 1.4.0
>> and used axis utitlities Java2WSDL and WSDL2Java for 
>creating WSDL and web
>> service client files.
>> ================================================================
>> Exception
>> ================================================================
>> - Exception:
>> AxisFault
>>  faultCode: {http://xml.apache.org/axis/}Server.userException
>>  faultString: org.xml.sax.SAXException: SimpleDeserializer 
>encountered a
>> child element, which
>> is NOT expected, in something it was trying to deserialize.
>>  faultActor: null
>>  faultDetail:
>>         stackTrace: org.xml.sax.SAXException: SimpleDeserializer
>> encountered a child element,
>> which is NOT expected, in something it was trying to deserialize.
>>         at
>> 
>org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(Si
>mpleDeseria
>> lizer.jav
>> a:188)
>>         at
>> 
>org.apache.axis.encoding.DeserializationContextImpl.startElemen
>t(Deseriali
>> zationCon
>> textImpl.java:893)
>>         at
>> 
>org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecor
>der.java:20
>> 0)
>>         at
>> 
>org.apache.axis.message.MessageElement.publishToHandler(Message
>Element.jav
>> a:684)
>>         at
>> org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
>>         at
>> org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
>>         at
>> 
>org.apache.axis.providers.java.RPCProvider.processMessage(RPCPr
>ovider.java
>> :190)
>>         at
>> 
>org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider
>.java:276)
>>         at
>> 
>org.apache.axis.strategies.InvocationStrategy.visit(InvocationS
>trategy.jav
>> a:71)
>>         at 
>org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
>>         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
>>         at
>> 
>org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:437)
>>         at 
>org.apache.axis.server.AxisServer.invoke(AxisServer.java:316)
>>         at
>> 
>org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:701)
>>         at 
>javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>>         at
>> 
>org.apache.axis.transport.http.AxisServletBase.service(AxisServ
>letBase.jav
>> a:335)
>>         at 
>javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>         at
>> 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilte
>r(Applicati
>> onFilterC
>> hain.java:247)
>>         at
>> 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(Applic
>ationFilter
>> Chain.jav
>> a:193)
>>         at
>> 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWr
>apperValve.
>> java:260)
>> 
>>         at
>> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValve
>Context.inv
>> okeNext(S
>> tandardPipeline.java:643)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeli
>ne.java:480
>> )
>>         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>         at
>> 
>org.apache.catalina.core.StandardContextValve.invoke(StandardCo
>ntextValve.
>> java:191)
>> 
>>         at
>> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValve
>Context.inv
>> okeNext(S
>> tandardPipeline.java:643)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeli
>ne.java:480
>> )
>>         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>         at
>> 
>org.apache.catalina.core.StandardContext.invoke(StandardContext
>.java:2415)
>>         at
>> 
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostV
>alve.java:1
>> 80)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValve
>Context.inv
>> okeNext(S
>> tandardPipeline.java:643)
>>         at
>> 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDis
>patcherValv
>> e.java:17
>> 0)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValve
>Context.inv
>> okeNext(S
>> tandardPipeline.java:641)
>>         at
>> 
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportV
>alve.java:1
>> 72)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValve
>Context.inv
>> okeNext(S
>> tandardPipeline.java:641)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeli
>ne.java:480
>> )
>>         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>         at
>> 
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEng
>ineValve.ja
>> va:174)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValve
>Context.inv
>> okeNext(S
>> tandardPipeline.java:643)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeli
>ne.java:480
>> )
>>         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>         at
>> 
>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>>         at
>> 
>org.apache.coyote.http11.Http11Processor.process(Http11Processo
>r.java:432)
>>         at
>> 
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler
>.processCon
>> nection(H
>> ttp11Protocol.java:386)
>>         at
>> 
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoin
>t.java:534)
>>         at
>> 
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(T
>hreadPool.j
>> ava:530)
>>         at java.lang.Thread.run(Thread.java:536)
>> 
>> 
>> org.xml.sax.SAXException: SimpleDeserializer encountered a 
>child element,
>> which is NOT expecte
>> d, in something it was trying to deserialize.
>>         at org.apache.axis.AxisFault.makeFault(AxisFault.java:120)
>>         at
>> 
>org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider
>.java:280)
>>         at
>> 
>org.apache.axis.strategies.InvocationStrategy.visit(InvocationS
>trategy.jav
>> a:71)
>>         at 
>org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:156)
>>         at org.apache.axis.SimpleChain.invoke(SimpleChain.java:126)
>>         at
>> 
>org.apache.axis.handlers.soap.SOAPService.invoke(SOAPService.java:437)
>>         at 
>org.apache.axis.server.AxisServer.invoke(AxisServer.java:316)
>>         at
>> 
>org.apache.axis.transport.http.AxisServlet.doPost(AxisServlet.java:701)
>>         at 
>javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
>>         at
>> 
>org.apache.axis.transport.http.AxisServletBase.service(AxisServ
>letBase.jav
>> a:335)
>>         at 
>javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
>>         at
>> 
>org.apache.catalina.core.ApplicationFilterChain.internalDoFilte
>r(Applicati
>> onFilterC
>> hain.java:247)
>>         at
>> 
>org.apache.catalina.core.ApplicationFilterChain.doFilter(Applic
>ationFilter
>> Chain.jav
>> a:193)
>>         at
>> 
>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWr
>apperValve.
>> java:260)
>> 
>>         at
>> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValve
>Context.inv
>> okeNext(S
>> tandardPipeline.java:643)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeli
>ne.java:480
>> )
>>         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>         at
>> 
>org.apache.catalina.core.StandardContextValve.invoke(StandardCo
>ntextValve.
>> java:191)
>> 
>>         at
>> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValve
>Context.inv
>> okeNext(S
>> tandardPipeline.java:643)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeli
>ne.java:480
>> )
>>         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>         at
>> 
>org.apache.catalina.core.StandardContext.invoke(StandardContext
>.java:2415)
>>         at
>> 
>org.apache.catalina.core.StandardHostValve.invoke(StandardHostV
>alve.java:1
>> 80)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValve
>Context.inv
>> okeNext(S
>> tandardPipeline.java:643)
>>         at
>> 
>org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDis
>patcherValv
>> e.java:17
>> 0)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValve
>Context.inv
>> okeNext(S
>> tandardPipeline.java:641)
>>         at
>> 
>org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportV
>alve.java:1
>> 72)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValve
>Context.inv
>> okeNext(S
>> tandardPipeline.java:641)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeli
>ne.java:480
>> )
>>         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>         at
>> 
>org.apache.catalina.core.StandardEngineValve.invoke(StandardEng
>ineValve.ja
>> va:174)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline$StandardPipelineValve
>Context.inv
>> okeNext(S
>> tandardPipeline.java:643)
>>         at
>> 
>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeli
>ne.java:480
>> )
>>         at
>> org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:995)
>>         at
>> 
>org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
>>         at
>> 
>org.apache.coyote.http11.Http11Processor.process(Http11Processo
>r.java:432)
>>         at
>> 
>org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler
>.processCon
>> nection(H
>> ttp11Protocol.java:386)
>>         at
>> 
>org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoin
>t.java:534)
>>         at
>> 
>org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(T
>hreadPool.j
>> ava:530)
>>         at java.lang.Thread.run(Thread.java:536)
>> Caused by: org.xml.sax.SAXException: SimpleDeserializer encountered a
>> child element, which is
>> NOT expected, in something it was trying to deserialize.
>>         at
>> 
>org.apache.axis.encoding.ser.SimpleDeserializer.onStartChild(Si
>mpleDeseria
>> lizer.jav
>> a:188)
>>         at
>> 
>org.apache.axis.encoding.DeserializationContextImpl.startElemen
>t(Deseriali
>> zationCon
>> textImpl.java:893)
>>         at
>> 
>org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecor
>der.java:20
>> 0)
>>         at
>> 
>org.apache.axis.message.MessageElement.publishToHandler(Message
>Element.jav
>> a:684)
>>         at
>> org.apache.axis.message.RPCElement.deserialize(RPCElement.java:241)
>>         at
>> org.apache.axis.message.RPCElement.getParams(RPCElement.java:265)
>>         at
>> 
>org.apache.axis.providers.java.RPCProvider.processMessage(RPCPr
>ovider.java
>> :190)
>>         at
>> 
>org.apache.axis.providers.java.JavaProvider.invoke(JavaProvider
>.java:276)
>>         ... 38 more
>> 
>> 
>> 
>> Ghanshyam Prajapat,
>> HCL Technologies Ltd.
>> A-11, Sector-16, Noida (U.P.)
>> Tel: 0120-2510701,702,813 extn 3028 
>> ----------------------------------------------------------
>> **********Smile...It increases your face value**********
>> ----------------------------------------------------------
>> 
>

Mime
View raw message