Sunday, August 20, 2017

Re: GWT 2.6.1 BigInteger

W dniu 21.08.2017 o 00:27, Thomas Broyer pisze:
>
> Like in any Java environment, as long as you only use the part of the
> API that's emulated in GWT:
> http://www.gwtproject.org/doc/latest/RefJreEmulation.html#Package_java_math
>
Yes, it just does not work

com.google.gwt.user.client.rpc.SerializationException: Type
'java.math.BigInteger' 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.:
instance = 123
at
com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:667)
at
com.google.gwt.user.client.rpc.impl.AbstractSerializationStreamWriter.writeObject(AbstractSerializationStreamWriter.java:130)
at
com.google.gwt.user.client.rpc.core.java.util.Map_CustomFieldSerializerBase.serialize(Map_CustomFieldSerializerBase.java:53)
at
com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.serialize(HashMap_CustomFieldSerializer.java:39)
at
com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.serializeInstance(HashMap_CustomFieldSerializer.java:51)
at
com.google.gwt.user.client.rpc.core.java.util.HashMap_CustomFieldSerializer.serializeInstance(HashMap_CustomFieldSerializer.java:28)


This error is received during tests.

Please get a small sample of working code.

Regards

--
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment