Hi,

I serialize one of my beans with AutoBeanCodex.encode(bean).getPayload();

But when I'm trying to import and decode the same string, I do not want the 
AutoBean Proxy Object. I just want to have the JSONObject itself.

The following will still give me the AB Proxy. How can I get the "real" 
object?
MyBeanInterface bean = AutoBeanCodex.decode(factory, MyBeanInterface.class, 
jsonString).unwrap();

java.lang.IllegalStateException
    at 
com.google.web.bindery.autobean.shared.impl.AbstractAutoBean.unwrap(AbstractAutoBean.java:173)
    at My.deserialize(My.java:40)

Why am I getting a exception if I'm decoding a Autobean the "same" way as 
I'm serializing it?

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to