GWT 2.4.0
Eclipse Juno
Ubuntu
I am using a GWT Form. In the form.addSubmitCompleteHandler() I do the following:
try {
Info = JSONParser.parseStrict(event.getResults()).isObject();
} catch (NullPointerException e) {
RootPanel.get("list").clear();
RootPanel.get("list").add(new HTML("<p><NullPointerException: "
+ e.getMessage() + "<br/><kbd>"
+ event.getResults() + "</kbd></p>"));
return;
} catch (IllegalArgumentException e) {
RootPanel.get("list").clear();
RootPanel.get("list").add(new HTML("<p>IllegalArgumentException: "
+ e.getMessage() + "<br/><kbd>"
+ event.getResults() + "</kbd></p>"));
return;
} catch (Exception e) {
RootPanel.get("list").clear();
RootPanel.get("list").add(new HTML("<p>Exception: " + e.getMessage()
+ "<br/>Cause: " + e.getCause()
+ "<br/><kbd>"
+ event.getResults() + "</kbd></p>"));
return;
}
It is trying to parse:
{"table":{"MOLINE.EWR.UIND.EDU":{"SONGS":[["07/04/2012 12:23:37","07/04/2012 12:51:16",0.4608,""]]}}}
The "catch (Exception e)" case reports: "Exception: Error parsing JSON: SyntaxError: Unexpected token <Cause: null"
There are no "<"s, or tabs in there. What gives? This is actually part of a MUCH larger parse string but it fails no matter how many records it sees.
I am doing the same or similar things with older GWT projects without issues.
thanks,
seven
-- You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/78F9wNjmAtEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
No comments:
Post a Comment