Axis 1.2.1 : How to avoid SAXException: Invalid element ...
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anjan_Bacchu
Posted On:   Friday, December 8, 2006 01:38 AM

Hi All, Using Axis 1.2.1 on Tomcat 5.5 on Windows XP. Thanks for any clues. I have searched the net and axis forums for any relevant answers but so far not making headway. We have a java (axis) appserver on tomcat. We have a java (axis 1.2.1) based client. The client stub was generated using wsdl2java like follows java org.apache.axis.wsdl.WSDL2Java -o . -p com.summitsite.wsclient.clientproxy homebanking.wsdl The client calls a webservices method which takes a Javabean called AccountHistoryInfo. In the beginning, everything worked fine. Recently, on the serverside, we added a new property "status" to the JavaBean. Sinc   More>>

Hi All,



Using Axis 1.2.1 on Tomcat 5.5 on Windows XP.



Thanks for any clues. I have searched the net and axis forums for any relevant answers but so far not making headway.



We have a java (axis) appserver on tomcat. We have a java (axis 1.2.1) based client.
The client stub was generated using wsdl2java like follows
java org.apache.axis.wsdl.WSDL2Java -o . -p com.summitsite.wsclient.clientproxy homebanking.wsdl



The client calls a webservices method which takes a Javabean
called AccountHistoryInfo. In the beginning, everything worked fine.



Recently, on the serverside, we added a new property "status" to the JavaBean. Since then, our client (which was not recompiled) stopped working giving throwing the following exception.



Is there a way to tell the client NOT to bother about a newly added property(we don't need to use the new property in this old client) ? From the beginning, the JavaBean has a property serialVersionUID(as is the general practice for Serializable Classes).



Pls. find the stacktrace below. Pls let me know if you need any further info.



Thanks for any pointers,



BR,

~A



AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: Invalid element in com.summitsite.wsclient.clientproxy.AccountHistoryInfo - status
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: Invalid element in com.summitsite.wsclient.clientproxy.AccountHistoryInfo - status

at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java :1035)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.encoding.DeserializerImpl.startElement(DeserializerImpl.java:369)
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.summitsite.wsclient.clientproxy.HomeBankingSoapBindingStub.getAccountHistory(HomeBankingSoapBindingStub.java :688)
at HomeBankingClient.getAccountHistory(HomeBankingClient.java:124)
at HomeBankingClient.main(HomeBankingClient.java:360)

{ http://xml.apache.org/axis/}hostname:xp-xxxxxx

org.xml.sax.SAXException: Invalid element in com.summitsite.wsclient.clientproxy.AccountHistoryInfo - status
at org.apache.axis.AxisFault.makeFault (AxisFault.java:101)
at org.apache.axis.client.Call.invoke(Call.java:2451)
at org.apache.axis.client.Call.invoke(Call.java:2347)
at org.apache.axis.client.Call.invoke (Call.java:1804)
at com.summitsite.wsclient.clientproxy.HomeBankingSoapBindingStub.getAccountHistory(HomeBankingSoapBindingStub.java:688)
at HomeBankingClient.getAccountHistory(HomeBankingClient.java :124)
at HomeBankingClient.main(HomeBankingClient.java:360)
Caused by: org.xml.sax.SAXException: Invalid element in com.summitsite.wsclient.clientproxy.AccountHistoryInfo - status
at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:258)
at org.apache.axis.encoding.DeserializationContext.startElement(DeserializationContext.java:1035)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:165)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:1141)
at org.apache.axis.encoding.DeserializerImpl.startElement (DeserializerImpl.java:369)
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)
... 5 more

   <<Less
About | Sitemap | Contact