Had faced an interesting case: There is some "space"(Mq-queue, Kafka-topic, simple folder, whatever). In this space writing Java-Object in serialized form. There is a listener that listens to this space. The question is: How can I, as this listener, get some data from this serialized object, without realization of this class in my listener.
I don't really want to see all the logic of this class. To see object fields is enough(for example as map: someObjectField=>someFieldValue).
Now when I try to deserialize this object, I catch "classNotFoundException
". Is there a possibility to avoid that problem, without rewriting all default Java deserialization logic? (maybe some tools already exist?)