> Anyway, in this case it seems clear that you are experiencing the effects
of
> a limitation of the implementation. The BeanSerializer does not maintain
a
> record of instances that have been serialized to allow it to href them in
> later serializations. Therefore, any cyclic graph should, I believe,
cause
> infinite recursion.
hi,
i think that it is exactly the problem: there was an Employee A that
references
manager M which keeps list of managed employed in array that includes
reference to A.
therefore there is a circular graph A->M->A->M... and when serialized by
BeanSerializer it is trying to create indefinite nested serialization.
long-term solution is to add multi-ref support to BeanSerializer or short
term solution
is to detect when object is recursively serialized to prevent stack overflow
(and throw
meaningful exception instead of stack overflow...).
alek.