core icon indicating copy to clipboard operation
core copied to clipboard

Is class WicketChildListSerializer really needed?

Open reiern70 opened this issue 11 years ago • 5 comments

Hi,

If I remove class

https://github.com/wicketstuff/core/blob/master/jdk-1.6-parent/serializer-kryo2/src/main/java/org/wicketstuff/pageserializer/kryo/WicketChildListSerializer.java

Test seems to pass and my application seem to work the same. Looking at the source code of Kryo it is not clear why this is need (private inner classes should works). Does anyone knows why this class is "needed"?

Regards,

Ernesto

reiern70 avatar Oct 22 '12 09:10 reiern70

It has been needed when I first played with Kryo. I think I've borrowed it from Magro's kryo-serializers project.

Maybe it is no more needed with the new Kryo version. If you can (de)serialize a page with at least several components without this serializer then you can drop it.

Ping @michaelmosmann .

martin-g avatar Oct 22 '12 10:10 martin-g

Martin,

Tanks for your answer. I'm still not sure if this class is needed or not. The parts of hour applications than I can test seem to work without it.

On the other hand we are having problems with certain nested classes that Kryo is not able to deserialize (see https://groups.google.com/forum/?fromgroups=#!topic/kryo-users/UxF7X7PTt-U). It seems Kryo is "swallowing" InvocationTargetException that cause it. This happens on parts of the application I don't have full access to. So the only thing I'm able to get are the stack traces and the code of failing classes. But the failing cases look similar to the problem WicketChildListSerializer.java seems to be solving

reiern70 avatar Oct 22 '12 10:10 reiern70

Today i have got some exceptions while deserializing. I will write some more tests to get such cases and make sure, that anything will work... (btw: It's not merged to master or core-1.5.x so dont expect changes there.)

michaelmosmann avatar Oct 22 '12 12:10 michaelmosmann

Michael,

Please let me know if I can be of some help

Regards,

Ernesto

reiern70 avatar Oct 22 '12 12:10 reiern70

I will look at it the next days..

michaelmosmann avatar Mar 14 '13 07:03 michaelmosmann

i think this issue is outdated somehow

michaelmosmann avatar Mar 20 '23 20:03 michaelmosmann