JSON Illegal token error

2011-06-07 Thread Kathiravan Tamilvanan
When i try to use requestfactory to retrieve a POJO from server side, i get 
this error. How do we debug this? The json returned from the server is the 
following 


{O:[
{P:
{primaryKey:2000,
ampliconLength:94,
assayNumber:1,
dnStrmSnpCapturePrimerTag:ACGTTGGATG,
downStreamSnpCapturePrimer:ACGTTGGATGTTAATCTCACTCACCAGAGC,
extendDir:R,
percentGc:52.9,
strand:1,
tm:50.1,
uep:TCACCAGAGCACCACTA,
uepConfidenceScore:97.3,
uepLen:17,
uepMass:5108.4,
uniplexAmpliconDesignScore:90.6,
upStreamSnpCapturePrimer:ACGTTGGATGGAACATAACTGGTTTGAGAC,
upStreamSnpCaptureTag:ACGTTGGATG},
O:UPDATE,T:com.sequenom.assaydesigner.client.request.AssayProxy,S:IjIwMDAi,V:IjAi}],
I:[[{T:com.sequenom.assaydesigner.client.request.AssayProxy,S:IjIwMDAi}]],S:[true]}


java.lang.IllegalArgumentException: Error parsing JSON: SyntaxError: 
Unexpected token ILLEGAL
at 
com.google.gwt.core.client.JsonUtils.throwIllegalArgumentException(JsonUtils.java:120)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.JsonUtils.safeEval(JsonUtils.java)
at 
com.google.gwt.autobean.shared.impl.StringQuoter.split(StringQuoter.java:36)
at 
com.google.gwt.autobean.shared.AutoBeanCodex.decode(AutoBeanCodex.java:520)
at 
com.google.gwt.requestfactory.shared.impl.AbstractRequestContext$4.onTransportSuccess(AbstractRequestContext.java:613)
at 
com.google.gwt.requestfactory.client.DefaultRequestTransport$1.onResponseReceived(DefaultRequestTransport.java:136)
at 
com.google.gwt.http.client.Request.fireOnResponseReceived(Request.java:287)
at 
com.google.gwt.http.client.RequestBuilder$1.onReadyStateChange(RequestBuilder.java:395)
at sun.reflect.GeneratedMethodAccessor199.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103)
at 
com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71)
at 
com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:157)
at 
com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326)
at 
com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207)
at 
com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:129)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561)
at 
com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269)
at 
com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91)
at com.google.gwt.core.client.impl.Impl.apply(Impl.java)
at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214)

-- 
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/-/a1lJN0p3VWI2SDBK.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.



Re: JSON Illegal token error

2011-06-07 Thread Kathiravan Tamilvanan
The problem is occuring due to the pojo field extendDir which is a char. 
And the value in the json array is extendDir:R. Isnt this supposed to be a 
single character string like extendDir:R. Is this a Bug?
Any ideas? 

-- 
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/-/ZDNHQWtleHp1QTBK.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.