You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's pretty hard to debug as it's not always reproductible.
I've got a server which use heavily FST in a testing environment.
In 99.99% of cases everything is fine, but sometimes FST deserializes my object badly.
In my observation :
Object are well written, if a relaunch the Thread or i copy the object to inspect it, FST will read the object without issues ...
The ClassCastException occurs in some class. In my case i've got : java.lang.ClassCastException: class java.lang.String cannot be cast to class java.util.Map (java.lang.String and java.util.Map are in module java.base of loader 'bootstrap')
My object is a Map<ZonedDateTime, Set> and FST deserialize it as a ... simple String ?!
Also, in the past, i caught another class occuring :
Exptected result was : MyDto(name='ABC',technicalName=null, rank= null).
FST was trying to cast my object to the String 'ABC'.
My workaround was to fit MyDto with not null fields ... very strange.
In my Map case, i've no workaround to play with so i'm trying to reach some help.
Here is my read code, quite simple :
It's pretty hard to debug as it's not always reproductible.
I've got a server which use heavily FST in a testing environment.
In 99.99% of cases everything is fine, but sometimes FST deserializes my object badly.
In my observation :
java.lang.ClassCastException: class java.lang.String cannot be cast to class java.util.Map (java.lang.String and java.util.Map are in module java.base of loader 'bootstrap')
My object is a Map<ZonedDateTime, Set> and FST deserialize it as a ... simple String ?!
Also, in the past, i caught another class occuring :
Exptected result was : MyDto(name='ABC',technicalName=null, rank= null).
FST was trying to cast my object to the String 'ABC'.
My workaround was to fit MyDto with not null fields ... very strange.
In my Map case, i've no workaround to play with so i'm trying to reach some help.
Here is my read code, quite simple :
FSTConfiguration config = FSTConfiguration.getDefaultConfiguration(); byte data[] = config.asByteArray(obj);
I'm working in a multithreaded environment ( Java thread ).
It's not a memory issue ( mem tested and fine ).
Have you experimented similar situations ?
I'm not able to update FST version, i'm stuck with OpenJdk 11.
The text was updated successfully, but these errors were encountered: