Exception while trying to download result using BatchJobService

52 views
Skip to first unread message

siddhar...@sokrati.com

unread,
Jun 13, 2016, 2:06:23 AM6/13/16
to AdWords API Forum
I'm getting exception while trying to download the batch job response. 

On using this url in the browser, the xml file is downloaded. But, I'm unable to download the response via code. 

Following is the exception : 
Exception in thread "main" com.google.api.ads.adwords.lib.utils.BatchJobException: Failed to download batch job mutate response from URL: https://batch-job-download-prod-.....
at com.google.api.ads.adwords.axis.utils.v201605.batchjob.BatchJobHelperImpl.downloadBatchJobMutateResponse(BatchJobHelperImpl.java:108)
at com.google.api.ads.adwords.axis.utils.v201605.batchjob.BatchJobHelperImpl.downloadBatchJobMutateResponse(BatchJobHelperImpl.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.google.api.ads.common.lib.utils.AdsUtilityInvocationHandler.handleInvocation(AdsUtilityInvocationHandler.java:46)
at com.google.common.reflect.AbstractInvocationHandler.invoke(AbstractInvocationHandler.java:87)
at $Proxy29.downloadBatchJobMutateResponse(Unknown Source)
at com.google.api.ads.adwords.axis.utils.v201605.batchjob.BatchJobHelper.downloadBatchJobMutateResponse(BatchJobHelper.java:72)
at BatchJobTest.downloadResult(BatchJobTest.java:100)
at BatchJobTest.main(BatchJobTest.java:90)
Caused by: org.xml.sax.SAXException: No deserializer for {https://adwords.google.com/api/adwords/cm/v201605}ErrorList
at org.apache.axis.encoding.ser.BeanDeserializer.onStartChild(BeanDeserializer.java:314)
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.MessageElement.getValueAsType(MessageElement.java:917)
at com.google.api.ads.adwords.axis.utils.AxisDeserializer.deserializeBatchJobMutateResults(AxisDeserializer.java:112)
at com.google.api.ads.adwords.axis.utils.v201605.batchjob.BatchJobHelperImpl.downloadBatchJobMutateResponse(BatchJobHelperImpl.java:104)
... 11 more

Any clue would help.

Peter Oliquino

unread,
Jun 13, 2016, 3:24:34 AM6/13/16
to AdWords API Forum
Hello,

Could you please provide me the 
SOAP request and response logs for this Batch operation along with the BatchJob ID? Just click Reply privately to author in the forum when responding.

Thanks,
Peter
AdWords API Team

Josh Radcliff (AdWords API Team)

unread,
Jun 17, 2016, 2:34:28 PM6/17/16
to AdWords API Forum
Hi,

In case anyone else encounters the same issue and see this post, please upgrade to version 2.16.0 of the Java client library and retry your request. That release includes a fix to work around some inconsistent behavior between older HotSpot JVMs and OpenJDK JVMs. The details are included in github issue #89.

Thanks,
Josh, AdWords API Team
Reply all
Reply to author
Forward
0 new messages