johvargas / sfdc-wsc

Automatically exported from code.google.com/p/sfdc-wsc
0 stars 0 forks source link

Query for custom DateTime field yields response parse error #27

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Generate enterprise.jar and add to build bath
2. Make a query that includes a custom DateTime field (select id, 
my_date_time__c from Account)

What is the expected output? What do you see instead?
Successful query is the expected output.  Instead I'm getting an error:

"com.sforce.ws.ConnectionException: unable to find end tag at:  START_TAG seen 
...</sf:IsActiveCustomer__c><sf:Last_Run__c>... @1:474"

at com.sforce.ws.bind.TypeMapper.consumeEndTag(TypeMapper.java:382)
    at com.sforce.soap.enterprise.sobject.Account.load(Account.java:3004)
    at com.sforce.ws.bind.TypeMapper.readSingle(TypeMapper.java:607)
    at com.sforce.ws.bind.TypeMapper.readArray(TypeMapper.java:507)
    at com.sforce.ws.bind.TypeMapper.readObject(TypeMapper.java:485)
    at com.sforce.soap.enterprise.QueryResult.loadFields(QueryResult.java:151)
    at com.sforce.soap.enterprise.QueryResult.load(QueryResult.java:134)

What version of the product are you using? On what operating system?
Running wsc on Google App Engine with the enterprise wsdl

Please provide any additional information below.

Original issue reported on code.google.com by ferraro....@gmail.com on 2 Sep 2010 at 8:04

GoogleCodeExporter commented 8 years ago
Make sure the endpoint version, the version of wsc and the version of WSDL, are 
all the same. This error happens when the endpoint and wsdl are out of sync.

Original comment by manoj.ch...@gmail.com on 2 Sep 2010 at 8:34

GoogleCodeExporter commented 8 years ago
Hm, what's odd is that I'm using the latest version of the org's enterprise 
wsdl and I'm only having an issue with DateTime fields.  Any other kind of 
custom field yields a successful query.  Only when I add a DateTime custom 
field is there an issue.

Original comment by ferraro....@gmail.com on 2 Sep 2010 at 8:38

GoogleCodeExporter commented 8 years ago
stub.getConfig().setTraceMessage(true) will display the XML response. 

XML response should give some idea on what is going wrong.

Original comment by manoj.ch...@gmail.com on 2 Sep 2010 at 9:17

GoogleCodeExporter commented 8 years ago
Tried stub.getConfig().setTraceMessage(true) but I can't seem to get the XML 
response in console.

Original comment by ferraro....@gmail.com on 3 Sep 2010 at 4:16

GoogleCodeExporter commented 8 years ago
Update: seems like this was an issue with a bad project in Eclipse.  I rebuilt 
the project from scratch and everything seems to be working now.  Thanks Manoj!

Original comment by ferraro....@gmail.com on 8 Sep 2010 at 2:01

GoogleCodeExporter commented 8 years ago

Original comment by manoj.ch...@gmail.com on 29 Sep 2010 at 6:34

GoogleCodeExporter commented 8 years ago
I have the same problem. I update to wsc-22, but the problem is alwasys there...
I try many things but nothing works...

Here is my errors : 
com.sforce.ws.ConnectionException: unable to find end tag at:  START_TAG seen 
...</code></status><images xmlns="" xsi:type="tns:LTUImageArray">... @1:515
    at com.sforce.ws.bind.TypeMapper.consumeEndTag(TypeMapper.java:399)
        ...

Original comment by julien.l...@gmail.com on 27 Jul 2011 at 10:23

GoogleCodeExporter commented 8 years ago
I get the same problem. I build Android application use enterprise.wsdl and 
custom wsdl. All proccess running as well, only 1 proccess when I will get the 
contact I get the error
Here is my errors :
com.sforce.ws.ConnectionException: unable to find end tag at:  START_TAG seen 
...</CompanyName><ContactID xsi:nil="true"/>... @1:363

can you help me?

Original comment by deni.kur...@naitconsulting.com on 24 Apr 2015 at 2:35