function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
kchurchkchurch 

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)

EnderEnder
Hmm, that's a weird error. Which version of axis are you using? How did you generate your stubs?
kchurchkchurch
I'm using version 1.2 of axis.  I'm carrying out the development in Eclipse so I'm using the wsdl2java plugin provided for Eclipse.  I've never had any problems with the plugin.  What's weird is I was able to access custom fields/objects using the api before the sforce upgrade. This is the first time I've got this error....
kchurchkchurch
Sorry, I made a mistake in my last post.  I'm not actually trying the query custom fields/objects - I'm just trying to query default salesforce objects like Account, Contact or Opportunity.  I've carried out a number of tests and I'm able to successfully execute queries that access string, date, datetime or ID field types.  The error is thrown when I try to query double, int or boolean field types....
darozdaroz
I remember getting some weird errors with Axis 1.2 when I started...

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.
kchurchkchurch

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 : )