Closed p4535992 closed 7 months ago
For anyone interested solved with this workaround: https://github.com/nmorel/gwt-jackson/issues/23
You have a RPC service using a java.io.Serializable. As a consequence, GWT creates serializer/deserializer for the class that implements java.io.Serializable and fails when reaching ObjectIdGenerators.Base. As a workaround, you can blacklist the class from RPC in your *.gwt.xml
<extend-configuration-property name="rpc.blacklist" value="com.fasterxml.*"/>
@p4535992 can you confirm that this is only true if your RPC types are either using raw generics, or have a field of type Serializable that is reachable from your RPC types?
RPC definitely does not create serializer/deserializers for all types that implement Serializable, only the reachable ones - and using raw generics or referencing Serializable will end up greatly increasing the size of your TypeSerializer, because all the various unused, unrelated types (see for example GWT's Style.Unit and other enums, ListEditorWrapper in editors, etc). The presence of those types will make your compile take longer, and will produce larger JS output, it is better to give more accurate types/generics to avoid them.
I'm not sure about anything... but I haven't found another way to avoid this error. If you can point me to some reference project I can try to investigate otherwise I don't know
I Keep getting this error "Tracing compile failure path for type 'com.fasterxml.jackson.annotation.ObjectIdGenerators_Base_FieldSerializer'" but i canont understand why...
I'm using a older version 1.0.1 (because i'm still using gwt 2.9.0) maybe is that ?
if i add a jackson depednnecy to the pom.xml the error change to this:
did you know any work around for this ?
Here the full pom.xml