Hi All,
Currently we are using StreamEvents of the following structure in Siddhi
when processing events within a Window.
StreamEvent{
StreamEvent next
Object[] beforeWindowData
Object[] onAfterWindowData
etc.
}
Each event is linked to the next event by the attribute 'next' so that a
chain of events is available for doing complex operations on the set of
events within a window. However, because of this, as the window size grows,
a very large nested object is created similar to a LinkedList.
This causes StackOverflowErrors when serializing this particular deeply
nested object. (Serializing of this object is needed for synching state
between CEP servers, persisting/saving state etc.) This seems to be
occurring because Java ObjectOutputStream serializes nested objects in a
recursive manner by using the Java stack.
Is there a way to serialize a deeply nested object, while preserving the
chain of objects?
Any suggestion resolving this issue will be greatly appreciated.
Best Regards,
--
*Ramindu De Silva*
Software Engineer
WSO2 Inc.: http://wso2.com
lean.enterprise.middleware
email: [email protected] <[email protected]>
mob: +94 772339350
mob: +94 782731766
_______________________________________________
Dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/dev