hi,

I have an object objA with an attribute objB and objB has
a reference back to objA. When I want to marshall objA to XML string 
I get a stackoverflow cause of an endless loop.

java.lang.StackOverflowError
        at java.lang.reflect.Method.invoke(Method.java:310)
        at 
org.exolab.castor.mapping.loader.FieldHandlerImpl.getValue(FieldHandlerImpl.java:375)
        at 
org.exolab.castor.xml.handlers.DateFieldHandler.getValue(DateFieldHandler.java:150)
        at org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:190)
        at 
org.exolab.castor.xml.util.XMLClassDescriptorImpl.validate(XMLClassDescriptorImpl.java:885)
        at org.exolab.castor.xml.Validator.validate(Validator.java:122)
        at org.exolab.castor.xml.FieldValidator.validate(FieldValidator.java:250)

Is this a bug in castor ?

I can workaround this problem if I use a mapping file and remove
the field objA in objB, but is there another solution ?


Bertram Karch

----------------------------------------------------------- 
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
        unsubscribe castor-dev

Reply via email to