Hi Barry,

> P.S. Notsure whether this is the right place to raise issues - pls
> advise if not. 

This is probably the best place... welcome!

On 25 Aug 2011 at 2:15, Barry Woods wrote:

> We recently initiated amove to the SQL object store so we can get
> multi-user operating. We have implemented this using Oracle XE DB. 
> 
> We now have an issue with infinite recursionoccuring in the
> AbtractAutoMapper.setupFullMapping method for a domain class that
> implements a hierarchy i.e. it contains a collection ofthesame
> class. It ultimately crashes with stack overflow. I have attached a
> log extract. 

The initial SQL Objectstore (SQL OS) development was done (I think) 
by Robert Matthews. I more or less took over from him and have been 
extending it for the last year or so.

Having said this - a lot of the SQL OS is a bit black-box to me - I've 
worked on the bits that I've wanted to extend, and taken for granted 
that the rest works!

I can fully believe that what you describe happens as you describe it - 
I'm not aware of there being any logic in place to halt the automatic 
introspection.

> This same structureworks fine using the XML persistor. This issue
> has brought our SQL implementationto a halt as the class involved is
> a core class in our model (murphy's law again !) 

Hmm. I have to rely on input from Dan or Robert to understand what is 
happening in the XML OS vs the SQL OS.
 
> I really don't understand this part of the frameworksufficiently to
> debug this. Any pointers or assistance you can provide would be
> greatly appreciated. 

Let me sleep on this. I should have some time tomorrow night (and 
following) to try and reproduce your problem and see what I can come 
up with.

My immediate suggestion is to consider a bit of jiggery: can you make 
your class implement an (empty) interface, and have your collection be 
a collection of the interface instead of the full class? This ought to 
prevent the infinite recursion, but I'm not sure what else it'll break.

In the mean time, maybe someone else (Rob? Dan?) can provide 
some hints.

Regards,
Kevin



Reply via email to