Hello,
I have trawled the mailing list and found people having the same problem but
cannot find a solution.
I am getting a response from the server for null values like this
<Value xsi:nil="1"/> - I assume 1 and true are the same?????
and then in my client code I receive an error message
java.lang.NullPointerException
at
org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:304)
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.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.esri.www.schemas.ArcGIS._9_0.MapServerBindingStub.queryFeatureData(MapServerBindingStub.java:1833)
at marks.search.SurveyMark.performQuery(SurveyMark.java:77)
I am using Axis 1.2.1. I have generated the client stubs using Axis 1.2.1
WSDL2Java.
When I set the query such that no null fields are returned then the client
processes the SOAP packet ok, but ofcourse this is not a viable option as I
dont know what data field will be null.
Any help much appreciated and sorry if this has already been answered elsewhere.
Regards
Simon Reynolds
***************************************************************
This message is intended for the addressee named and
may contain confidential information. If you are not the
intended recipient, please delete it and notify the sender.
Views expressed in this message are those of the
individual sender, and are not necessarily the views of
the Department of Lands.
This email message has been swept by MIMEsweeper
for the presence of computer viruses.
***************************************************************