Wednesday, August 26, 2020

Re: EMF with GWT and serialize problems

HI Jens,

Thanks for your help. I don't understand this sentence " Also if you do not transfer RequirementImpl directly but instead an interface that RequirementImpl implements, then GWT Compiler needs to see the class+source of RequirementImpl so it can treat RequirementImpl as a possible concrete type that might be transferred. " What do you understand?
I had also read stuff on whiteList but I don't understand what means this WhiteList? Do you know this?

Regards
Antonio

Le mercredi 26 août 2020 à 09:29:33 UTC+2, Jens a écrit :
RequirementImpl must implement serializable, needs to have a default constructor (visibility does not matter), no final fields and there must be at least one serializable type found for each field that can be assigned to that field (which must meet the same requirements). Also if you do not transfer RequirementImpl directly but instead an interface that RequirementImpl implements, then GWT Compiler needs to see the class+source of RequirementImpl so it can treat RequirementImpl as a possible concrete type that might be transferred. 

Have you double checked these requirements? 

-- J.


Am Dienstag, 25. August 2020 17:11:53 UTC+2 schrieb Guillen Antonio:
HI all,

I use GWT 2.81 and EMF (Eclipse Modeling Framework) when i want send from the server to the client an object of my model, I obtain this final error:
com.google.gwt.user.client.rpc.SerializationException: Type 'com.lacen.organisation.impl.RequirementImpl' 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 = com.lacen.organisation.impl.RequirementImpl@2fa144e7 (name: Fkygrdphgf)

I have tried to understand how to use serializationWhitelist but I have no clear example.  The class RequirementImpl contains List, so I tried to create ArrayList with the good type, but same pb.

Can you help me, at least give me where found a claer explanation.

Tanks a lot
Antonio Guillen

--
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 view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit/11cc2432-8e51-4921-84c6-af035a12c17dn%40googlegroups.com.

No comments:

Post a Comment