You need to sign in to do that
Don't have an account?
Deserializer Error
Hi all,
I receive the error below when I try to execute a Query that returns a Field with a Double value. Basically I'm trying to access the 'Amount' field from the object 'Opportunity'. I am able to successfully access the ID or Name associated with an Opportunity object but not the Amount. Any ideas/suggestions? I noticed on some other related threads that the issue may be related to the namespace. I'm using the Enterprise WSDL and the endpoint address is: https://www.salesforce.com/services/Soap/c/6.0
I'd really appreciate any help you can provide.
Thanks,
Karen
AxisFault
faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString: org.xml.sax.SAXException: No deserializer for {http://schemas.xmlsoap.org/soap/encoding/}double
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace:org.xml.sax.SAXException: No deserializer for {http://schemas.xmlsoap.org/soap/encoding/}double
at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:290)
at org.apache.axis.encoding.DeserializationContextImpl.startElement(DeserializationContextImpl.java:1040)
at org.apache.axis.message.SAX2EventRecorder.replay(SAX2EventRecorder.java:198)
at org.apache.axis.message.MessageElement.publishToHandler(MessageElement.java:856)
at org.apache.axis.message.RPCElement.deserialize(RPCElement.java:235)
at org.apache.axis.message.RPCElement.getParams(RPCElement.java:349)
at org.apache.axis.client.Call.invoke(Call.java:2379)
at org.apache.axis.client.Call.invoke(Call.java:2278)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at com.sforce.soap.enterprise.SoapBindingStub.query(SoapBindingStub.java:1717)
at src.data.AutoSummarizer.getData(AutoSummarizer.java:83)
at src.data.AutoSummarizer.<init>(AutoSummarizer.java:35)
at src.data.AutoSummarizer.main(AutoSummarizer.java:149)
Make sure your WSDL2Java run with the 'all' switch (I think it was '-a' but don't quote me). I found that for some reason the Axis 1.2 WSDL2Java would leave out some classes, which was my problem.
Thanks for the reply.
It looks like the problem was with the version of Axis I was using. I was using Axis 1.2 but the WSDL2Java Plugin for Eclipse requires Axis 1.1. I downloaded Axis 1.1 and everything seems to run smoothly now : )