2.2.1 Upgrade issue with Synchronous GPTask

699
4
06-22-2012 11:28 AM
AaronFischer
New Contributor
I had a Synchronous GP Task that has worked for months on IOS SDK 2.1. I upgraded to 2.2.1 and upon execution I get the error "Illegal Start of token [<]" almost immediately as a response via the didFailExecuteWithError.
The rest of the app works fine after the upgrade so I know I performed the installation and upgrade of the SDK correctly.
Any ideas on how to figure this out or determine if this is a bug in the API?
The SynchronousGPSample does run fine from my machine though.
Any published changes to the input parameters with the new API?
No security is involved in this scenario, service is wide open.
0 Kudos
4 Replies
NimeshJarecha
Esri Regular Contributor
Try running your GP task in browser (REST end point). Does it returning an error in HTML?

Regards,
Nimesh
0 Kudos
AaronFischer
New Contributor
No, it runs fine and also works from all of the IOS devices that use the 2.1 SDK(exact same code).
My code is nearly identical to the GPSync sample too, just passing a single point as a feature set and a linear unit.
Only difference is the new SDK is 2.2.1

Any code snippets for me to inspect all of the input parameters as JSON(how can I see the entire request as JSON)? the error appears to be a JSON string issue?
0 Kudos
AaronFischer
New Contributor
OK, I figured I would try to deploy to my device and it works!
Apparently this error with the 2.2.1 SDK is only created when running the app in the simulator.
Any ideas about that one?
0 Kudos
NimeshJarecha
Esri Regular Contributor
No idea why it's not working for you in simulator.

Regards,
Nimesh
0 Kudos