Monday, August 1, 2011

Serialization failure with java.util.Integer, java.util.Date, java.math.BigDecimal

Hi,

I have Serialization failures :
com.google.gwt.user.client.rpc.SerializationException: Type 'java.util.Date' was not included in the set of types which can be serialized by this SerializationPolicy or its Class object could not be loaded. For security purposes, this type will not be serialized.:

I encounter this with java.util.Date, java.util.Integer, java.math.BigDecimal if I put this types in HashMap<String, Object>, but no problem with java.util.String

My code is
                                if(value!=null &&
                                        (
                                            (value instanceof String)  ||
                                            (value instanceof Date) ||
                                            (value instanceof BigDecimal)
                                        )
                                  )
                                    line.put(champModel.getId(), value);

I use GWT 2.3

Any idea ?

Thanks in advance,
Christophe

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
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