You are viewing a plain text version of this content. The canonical link for it is here.
Posted to torque-user@db.apache.org by Caoilte O'Connor <me...@caoilte.org> on 2003/01/29 13:06:05 UTC
doSelectJoin causing stack overflow.
Hi,
I want to use the nifty doSelectJoin methods in the BasePeers for my webapp,
but they keep causing a
java.lang.StackOverflowError
They're selecting over some fairly large tables, so I guess that's a possible
reason, except I've tried setting limits in the criteria and adding quite
specific criterias and I always get the same error. It doesn't happen for
smaller tables I have, but nearly always for any function which is
doSelectJoinAllExcept*
That suggests the Peer is getting too many results to handle, but I can't find
out for sure as whenever I stick debugging code in the BasePeer java files it
gets ignored (serialized class files elsewhere getting used instead?).
here's my criteria
crit.add(SportCategoryDetailPeer.LANGUAGE_ID, getLanguageId());
crit.add(SportCategoryPeer.SPORT_CODE_ID, getSportCodeId());
crit.setLimit(20);
List results= SportCategoryDetailPeer.doSelect(crit);
(should generate 10 results - a join on an empty criteria generates 300);
anyone any idea why my app is recursing too deeply?
i'm running jdk1.4.1 and standalone torque3.0
caoilte