--
You received this message because you are subscribed to the Google Groups "XStream User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xstream-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xstream-user/2682052.JkK7atc5sO%40floh.
To view this discussion on the web visit https://groups.google.com/d/msgid/xstream-user/5415719.e0kSNy7j67%40floh.
--
You received this message because you are subscribed to the Google Groups "XStream User" group.
To unsubscribe from this group and stop receiving emails from it, send an email to xstream-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/xstream-user/2177830.MoNKp5zXxS%40floh.
Hi,
I am using XStream over JAXB and have been succesfully for a while, however I recently discovered an exception that was being gobbled.
I am doing with Redis.
Normally, I would serializeToBytes myself, and then I can
deserializeFromBytes eventually.
However, in this particular instance, I can also receive bytes
from Redis that I myself have not serialized with XStream.
This is causing issues, particularly this:
The logic used:
My XStream instance setup:
XStream seems to only be able to deserialize objects from byte[]
that itself have generated which is fine most of the time.
But here, it is the the event bus, which at times, I may push
messages on to, and I might also get events from Redis which are
plain Strings as byte[].
Is there a way to have XStream return the right object
when it detects that is not its own object, and in this case a
byte[] representing a String or a primitive?
I know it might be asking for too much, but Ideally this type of
exception could be handled if configurable to do so?
// Elias
More particularly, the code that is not (!!!) overridable is in Token.Java: