In my application, I serialize nested maps with mixed Clojure/Java objects and send them over the network. The receiving application must then de-serialize the whole nested structure.
There is a problem, however, when the code sending the message, probably by mistake, includes a Java class that is not in the classpath of the JVM on the receiving end. The call to thaw returns an exception and I can't recover anything of the message.
Is there a way I can partially recover the thawed object? This would allow me to do some error handling on the receiving end, because I cannot rely on the sending application not including any unkown Java class and crashing the system.
To clarify, I would like to send the following structure:
In my application, I serialize nested maps with mixed Clojure/Java objects and send them over the network. The receiving application must then de-serialize the whole nested structure.
There is a problem, however, when the code sending the message, probably by mistake, includes a Java class that is not in the classpath of the JVM on the receiving end. The call to
thaw
returns an exception and I can't recover anything of the message.Is there a way I can partially recover the thawed object? This would allow me to do some error handling on the receiving end, because I cannot rely on the sending application not including any unkown Java class and crashing the system.
To clarify, I would like to send the following structure:
and at least recover something like:
Thanks!