axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Martin Gainty" <mgai...@hotmail.com>
Subject Re: InvocationTargetException - Error in deserialization of response of web service
Date Mon, 25 Sep 2006 14:36:14 GMT
It seems to be this statement is causing this error:

                    dSer.onStartElement(namespace, localName, prefix,
                                        attributes, context);

the problem could be determined by looking at  the wsdl ..so can we see the wsdl?

M-
*********************************************************************
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.



----- Original Message ----- 
From: "Jose Manuel Valladares Pernas" <mavallad@yahoo.es>
To: <axis-user@ws.apache.org>
Sent: Monday, September 25, 2006 9:25 AM
Subject: InvocationTargetException - Error in deserialization of response of web service


> Hello,
> I have a web service client code that creates a hotel
> reservation in a online reseravation system.
> 
> The java classes were generated with wsdl2java from a
> wsdl file with several schema files.
> 
> The call to the webservice works fine (I see the
> traffic exchange with tcpdump) but when the response
> soap message has to be converted to java objects it
> throws an InvocationTargetException.
> 
> java.lang.reflect.InvocationTargetException
>        at
> org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
>        at
> org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
>        at
> org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
>        at
> org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
>        at
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
>        at
> org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
>        at
> org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
>        at
> org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>        at
> org.apache.axis.client.Call.invoke(Call.java:2448)
>        at
> org.apache.axis.client.Call.invoke(Call.java:2347)
>        at
> org.apache.axis.client.Call.invoke(Call.java:1804)
>        at
> com.oracle.xmlns.OTA_HotelRes.OTA_HotelResBindingStub.process(OTA_HotelResBindingStub.java:6269)
>        at
> ota_client.nh.NHHotelWSCaller$NHHotelReservationWS.doHotelReservationQuote(NHHotelWSCaller.java:853)
>        at
> ota_client.nh.NHHotelWSCaller.doHotelReservationQuote(NHHotelWSCaller.java:157)
>        at
> controllers.HotelReservationController.preReserveRooms(HotelReservationController.java:121)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at
> java.lang.reflect.Method.invoke(Method.java:585)
>        at
> org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
>        at
> org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
>        at
> javax.faces.component.UICommand.broadcast(UICommand.java:106)
>        at
> javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
>        at
> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
>        at
> org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
>        at
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
>        at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>        at
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>        at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
>        at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
>        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.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.processConnection(Http11BaseProtocol.java:664)
>        at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>        at
> org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
>        at java.lang.Thread.run(Thread.java:595)
> 11:18:30,060 ERROR [STDERR] AxisFault
> faultCode:
> {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
> faultSubcode:
> faultString:
> java.lang.reflect.InvocationTargetException
> faultActor:
> faultNode:
> faultDetail:
>       
> {http://xml.apache.org/axis/}stackTrace:java.lang.reflect.InvocationTargetException
>        at
> org.apache.axis.encoding.ser.BeanDeserializer.onStartElement(BeanDeserializer.java:462)
>        at
> org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:393)
>        at
> org.apache.axis.encoding.ser.BeanDeserializer.startElement(BeanDeserializer.java:154)
>        at
> org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1048)
>        at
> org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
>        at
> org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
>        at
> org.apache.axis.message.RPCElement.deserialize(RPCElement.java:236)
>        at
> org.apache.axis.message.RPCElement.getParams(RPCElement.java:384)
>        at
> org.apache.axis.client.Call.invoke(Call.java:2448)
>        at
> org.apache.axis.client.Call.invoke(Call.java:2347)
>        at
> org.apache.axis.client.Call.invoke(Call.java:1804)
>        at
> com.oracle.xmlns.OTA_HotelRes.OTA_HotelResBindingStub.process(OTA_HotelResBindingStub.java:6269)
>        at
> ota_client.nh.NHHotelWSCaller$NHHotelReservationWS.doHotelReservationQuote(NHHotelWSCaller.java:853)
>        at
> ota_client.nh.NHHotelWSCaller.doHotelReservationQuote(NHHotelWSCaller.java:157)
>        at
> controllers.HotelReservationController.preReserveRooms(HotelReservationController.java:121)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke0(Native
> Method)
>        at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>        at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>        at
> java.lang.reflect.Method.invoke(Method.java:585)
>        at
> org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
>        at
> org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
>        at
> javax.faces.component.UICommand.broadcast(UICommand.java:106)
>        at
> javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
>        at
> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
>        at
> org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
>        at
> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
>        at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>        at
> org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
>        at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
>        at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
>        at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
>        at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
>        at
> org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:175)
>        at
> org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:74)
>        at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
>        at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
>        at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.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.processConnection(Http11BaseProtocol.java:664)
>        at
> org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
>        at
> org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
>        at java.lang.Thread.run(Thread.java:595)
> 
>        {http://xml.apache.org/axis/}hostname:jmanuel
> 
> 
> Have you seen this error before?
> 
> If you want I can provide you with the files involved.
> 
> Any help will be greatly appreciated.
> 
> Regards,
>             Manuel Valladares
> 
> ---------------------------------------------
> - Jose Manuel Valladares Pernas
> - mavallad@yahoo.es
> - mavalla@wanadoo.es
> ---------------------------------------------
> 
> __________________________________________________
> Do You Yahoo!?
> Tired of spam?  Yahoo! Mail has the best spam protection around 
> http://mail.yahoo.com 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
> For additional commands, e-mail: axis-user-help@ws.apache.org
> 
>
Mime
View raw message