Exception while dispatching incoming RPC call com.google.gwt.user.client.rpc.SerializationException: Type 'com.google.gson.internal.LinkedTreeMap' was not assignable to 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field

202 views
Skip to first unread message

Ashi Dev

unread,
Mar 23, 2020, 1:05:43 PM3/23/20
to GWT Users
Exception while dispatching incoming RPC call
com.google.gwt.user.client.rpc.SerializationException: Type 'com.google.gson.internal.LinkedTreeMap' was not assignable to
 'com.google.gwt.user.client.rpc.IsSerializable' and did not have a custom field serializer.For security purposes, this type will not be serialized.: 
 instance = {}
at com.google.gwt.user.server.rpc.impl.ServerSerializationStreamWriter.serialize(ServerSerializationStreamWriter.java:696) ~[gwt-servlet.jar:na]

Using GWT 2.8.2, Java 11, compliance level 1.8,  gson.jar version 2.8.6  On linux.

However, on windows same set up works with gson jar 2.2.2 but not with 2.8.6.

Can you help?

This email is sent on behalf of Northgate Public Services (UK) Limited and its associated companies including Rave Technologies (India) Pvt Limited (together "Northgate Public Services") and is strictly confidential and intended solely for the addressee(s). 
If you are not the intended recipient of this email you must: (i) not disclose, copy or distribute its contents to any other person nor use its contents in any way or you may be acting unlawfully;  (ii) contact Northgate Public Services immediately on +44(0)1442 768445 quoting the name of the sender and the addressee then delete it from your system.
Northgate Public Services has taken reasonable precautions to ensure that no viruses are contained in this email, but does not accept any responsibility once this email has been transmitted.  You should scan attachments (if any) for viruses.

Northgate Public Services (UK) Limited, registered in England and Wales under number 00968498 with a registered address of Peoplebuilding 2, Peoplebuilding Estate, Maylands Avenue, Hemel Hempstead, Hertfordshire, HP2 4NW.  Rave Technologies (India) Pvt Limited, registered in India under number U31900MH1998PTC117068 with a registered address of PLOT CS 445, 3 rd Floor, A-wing Madhu Corporate Park Ltd, Pandurang Budhkar Marg, Mumbai -400013

José Reis

unread,
Mar 25, 2020, 12:11:53 PM3/25/20
to GWT Users
Try using jdk, jre directly 1.8. Some of my issues disapeared after I switch from java13 to java8.
Reply all
Reply to author
Forward
0 new messages