Page 1 of 3

Service returning parse error?

Posted: Tue Jan 28, 2014 6:56 pm
by Nathanael

I am attempting to map a simple service to a simple UI. However, for reasons completely unknown, I am receiving a parse error. I have no idea why this error is occurring, nor where—my JSON response is valid.

JSON.stringify(jqXHR)
{"readyState":4,"responseText":"java.lang.ArrayIndexOutOfBoundsException","status":200,"statusText":"OK"}

textStatus
parsererror

errorThrown
SyntaxError: JSON.parse: unexpected character

Attached are an image of both the service map, and the JSON response. Why might this error be occurring? I have never experienced it before.

Image

Image


Service returning parse error?

Posted: Tue Jan 28, 2014 8:16 pm
by Kateryna Grynko

Hi Nathanael,

Sorry, this is a bug, will be fixed asap.


Service returning parse error?

Posted: Tue Jan 28, 2014 8:37 pm
by ashton.stockman

I'm also experiencing a similar issue with a service that had been working previously. Do you have an estimate on how long you believe it will take to resolve this issue? Thanks.


Service returning parse error?

Posted: Tue Jan 28, 2014 8:53 pm
by Kateryna Grynko

Hi Ashton,

Sorry, no ETA yet, we'll update this topic when it's fixed.


Service returning parse error?

Posted: Wed Jan 29, 2014 3:48 pm
by Nathanael

Have there been any updates on this issue?


Service returning parse error?

Posted: Wed Jan 29, 2014 3:59 pm
by Kateryna Grynko

Hi Nathanael,

Sorry, no news, still working on it. We'll update this topic.


Service returning parse error?

Posted: Thu Jan 30, 2014 3:47 pm
by George Van Wormer5962866

Any updates?


Service returning parse error?

Posted: Thu Jan 30, 2014 4:41 pm
by Kateryna Grynko

Hi George,

Sorry, still is not resolved.


Service returning parse error?

Posted: Thu Jan 30, 2014 7:02 pm
by Nathanael

What is the extent of this problem? Is every service not working for everyone? Is the only issue in the mapping? emAll/em mapping?


Service returning parse error?

Posted: Thu Jan 30, 2014 7:07 pm
by ashton.stockman

Hey, quick update on what's not working for us. We have several projects that are unaffected, and to my knowledge, it's really just one. The mapping isn't necessarily "broken" on these as we've already mapped the responses previously, but the API endpoints when run through Appery and the accompanying proxy (may or may not be related?) are incapable of consuming the response correctly.

I've tested these APIs with Fiddler, all of the GETs in a browser, and with the built-in "Test" functionality on the service definition within appery, and all of those things work. However, as soon as we fire up the app (web or device) something happens and rather than my expected response, we get simply "java.lang.ArrayIndexOutOfBoundsException". Is this in line with what you're experiencing?