Ok, in generating the test cases I found that it actually worked how I
wanted it to. So I went back through my program and FINALLY(!) found the
"stupid loop" I was in. I was using the wrong many-key name in one of the
mappings, but my thought is this should come up with an error.

I was basically loading obja, going to load objb, but because the many-key
name wasn't right it would try to re-load obja, which would again reload
objb. :(

I'm not sure if you could test for this or not, but I think you might be
able to tell that if the many-key name (and object) in obja doesn't match
the correct sql name (and object type) in objb you should spit back an
error, just a thought.

In my case, I had obja mapping its reliance to objb on objb's unique
identifier, and not the foreign key back to obja.

I can still give a good example of what NOT to do if someone would like to
take a look to see if its an avoidable problem.

Thanks for all your suggestions and for putting up with me. :)
-Nick

-----Original Message-----
From: Bruce Snyder [mailto:[EMAIL PROTECTED] 
Sent: Thursday, October 16, 2003 8:27 PM
To: [EMAIL PROTECTED]
Subject: Re: [castor-dev] Nested objects....

This one time, at band camp, Nick Stuart said:

NS>Ok, if someone else can reproduce this I'm going to file a bug report.
This
NS>is referring to my previous posts about the StackOverFlow exception. It
NS>turns out that simply by nesting several related items makes it going
into
NS>recursion hell. I first thought it was because I didn't have the objects
as
NS>collections, but I changed that and it is still doing the same thing.
Also,
NS>included below is the relevant part of the mapping file and a snip of the
NS>stack trace.

Nick, 

The best method to prove this is to build a self-contained test that
is run via ant. Scale down the number of objects, mappings, etc. to a
bare minimum needed to reproduce the problem. Then create an Ant build
descriptor that will compile and run the code to demonstrate the problem.
If you're unclear on how to approch this, send me your classes, mappings,
libs that I may need, etc. and I'll help to put this together and use
it to troubleshoot the problem.

Bruce
-- 
perl -e 'print
unpack("u30","<0G)[EMAIL PROTECTED]&5R\"F9E<G)E=\$\!F<FEI+F-O;0\`\`");'

The Castor Project 
http://www.castor.org/

Apache Geronimo 
http://incubator.apache.org/projects/geronimo.html

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

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

Reply via email to