|
From: Ross M. <ro...@at...> - 2004-03-16 22:38:56
|
Hi Cameron, What exception are you getting? We were getting a circular reference=20 exception... FWIW We found that we did have a circular reference in our=20 applicationContext but Spring didn't complain about it until we had had=20 reached a certain bean threshold. Once we removed the CR the problem=20 never occurred again. Cheers, Ross Cameron Braid wrote: > I have run into a similar problem - a very strange one at that. >=20 > It is somehow linked to the > org.springframework.aop.framework.autoproxy.BeanNameAutoProxyCreator an= d the > org.springframework.transaction.interceptor.TransactionInterceptor and = the > number of beans in the context. >=20 > Though for me, it wasn't anything like 96 ! >=20 > I have attached a dummy test with supporting dummy hibernate classes an= d > mapping. >=20 > All you should need is the hibernate and spring dependencies to run thi= s > test. >=20 > There are 3 test methods. >=20 > testDummy which passes >=20 > testExtraDummy which fails=20 > - all it does is add an extra dummy service bean to the end of the co= ntext >=20 > testEvenMoreDummiesWithoutAutoProxyCreator which passes > - it removed the auto proxy creator and adds some more dummies to the= end >=20 > I am not sure what conclusion you can draw from this test.. But it seem= s > like incorrect behaviour to me. >=20 > And - it is stopping one of my applications from working. >=20 > Thanks >=20 > Cameron >=20 >=20 >>-----Original Message----- >>From: spr...@li...=20 >>[mailto:spr...@li...] >> On Behalf Of j=FCrgen h=F6ller [werk3AT] >>Sent: Saturday, 7 February 2004 3:41 AM >>To: spr...@li... >>Subject: RE: [Springframework-developer] Container Bean threshold? >> >>Ross, >> >>Any news on this front? I can't find anything that could=20 >>cause such behavior. A stacktrace would be helpful, I guess :-) >> >>Juergen >> >> >>-----Original Message----- >>From: spr...@li... >>[mailto:spr...@li...] >>On Behalf Of Ross Mason >>Sent: Wednesday, February 04, 2004 3:44 AM >>To: spr...@li... >>Subject: [Springframework-developer] Container Bean threshold? >> >> >>Hi guys, >> >>I've just found some interesting behaviour in the spring=20 >>container. If we have 96 beans in the container everything=20 >>works fine, but if we add one more bean, say bean97, the=20 >>container complains that there may be a circular reference=20 >>even though I'm sure there isn't. But if we remove a=20 >>different (and totally unrelated) bean and add our bean97=20 >>bean it works fine. It seems the container has a bean=20 >>threshold of 96?! >> >>Basically, we cannot add any than 96 beans to the container. >> >>Have you seen this behaviour before? >> >>-- >>Cheers, >> >>Ross >>http://blog.rossmason.com >> >> >> >> >> >> >>------------------------------------------------------- >>The SF.Net email is sponsored by EclipseCon 2004 Premiere=20 >>Conference on Open Tools Development and Integration See the=20 >>breadth of Eclipse activity. February 3-5 in Anaheim, CA. >>http://www.eclipsecon.org/osdn >>_______________________________________________ >>Springframework-developer mailing list >>Spr...@li... >>https://lists.sourceforge.net/lists/listinfo/springframework-developer >> >> >>------------------------------------------------------- >>The SF.Net email is sponsored by EclipseCon 2004 Premiere=20 >>Conference on Open Tools Development and Integration See the=20 >>breadth of Eclipse activity. February 3-5 in Anaheim, CA. >>http://www.eclipsecon.org/osdn >>_______________________________________________ >>Springframework-developer mailing list >>Spr...@li... >>https://lists.sourceforge.net/lists/listinfo/springframework-developer >=20 >=20 |