[Dev] [Java] StackOverflowError when serializing a deeply nested object

2015-07-30 Thread Ramindu De Silva
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

Re: [Dev] [Java] StackOverflowError when serializing a deeply nested object

2015-07-30 Thread Sajith Ariyarathna
Hi Ramindu, I think you are talking about this [1] StreamEvent class. StackOverflowError can happen when serializing large linked-list type objects. This [2] answer may shed some light on your problem. In the last part of the answer, quote ... But serialization is vulnerable to stack overflow fo

Re: [Dev] [Java] StackOverflowError when serializing a deeply nested object

2015-08-02 Thread Ramindu De Silva
Hi Sajith, Thanks for the suggestion. Will try to implement the serialization in such a way with writeObject() which prevents the recursive manner . Best Regards, On Fri, Jul 31, 2015 at 6:43 AM, Sajith Ariyarathna wrote: > Hi Ramindu, > > I think you are talking about this [1] StreamEvent cla