I think the pool feeder logic was thrown together a bit too hastily and with not enough pre-thought and design... but that is just my opinion.
Why would I want to feed a pool at a constant rate anyways. It would be better if there were hooks into the pool which a controller could use to size the pool based on heuristics... --jason > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:jboss- > [EMAIL PROTECTED]] On Behalf Of Ole Husgaard > Sent: Friday, July 12, 2002 2:50 PM > To: [EMAIL PROTECTED] > Subject: Re: [JBoss-dev] TimedInstancePoolFeeder is whack > > Hi, > > I have seen this too in the CVS HEAD. > It seems to be provoked by a failed deployment. > > For example, I just got this: > 1) > 2002-07-12 23:36:00,990 ERROR [org.jboss.ejb.EntityContainer] Starting > failed > org.jboss.deployment.DeploymentException: Error: can't find data source: > java:/FireBirdDS; - nested throwable: (javax.naming.NameNotFoundException: > FireBirdDS not bound) > at > org.jboss.ejb.plugins.cmp.jdbc.bridge.JDBCEntityBridge.<init>(JDBCEntity Br > idge.java:99) > > 2) > 2002-07-12 23:36:02,235 ERROR [org.jboss.ejb.plugins.LogInterceptor] > TransactionRolledbackException, causedBy: > java.lang.NullPointerException > at > org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.createBeanClassInstance( JD > BCStoreManager.java:513) > > 3) > 2002-07-12 23:36:02,330 ERROR [org.jboss.ejb.plugins.EntityInstancePool] > Destroying failed > java.lang.IllegalStateException: Instance pool destroyed before stopped > at > org.jboss.ejb.plugins.AbstractInstancePool.destroyService(AbstractInstan ce > Pool.java:120) > at > org.jboss.system.ServiceMBeanSupport.destroy(ServiceMBeanSupport.java:26 4) > at > org.jboss.ejb.EntityContainer.destroyService(EntityContainer.java:451) > at > org.jboss.system.ServiceMBeanSupport.destroy(ServiceMBeanSupport.java:26 4) > at org.jboss.ejb.Container.invoke(Container.java:731) > > 4) Every second: > 2002-07-12 23:36:02,756 ERROR > [org.jboss.ejb.plugins.TimedInstancePoolFeeder] Unexpcted failure; > ignoring > java.lang.IllegalStateException: Attempt to add an instance to a destroyed > pool > at > org.jboss.ejb.plugins.AbstractInstancePool.add(AbstractInstancePool.java :1 > 46) > at > org.jboss.ejb.plugins.TimedInstancePoolFeeder.run(TimedInstancePoolFeede r. > java:61) > at java.util.TimerThread.mainLoop(Timer.java:430) > at java.util.TimerThread.run(Timer.java:380) > > (I know how to create my missing datasource here) > > Looks like the pool is not shut down properly. > > Best Regards, > > Ole Husgaard. > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Gadgets, caffeine, t-shirts, fun stuff. > http://thinkgeek.com/sf > _______________________________________________ > Jboss-development mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-development ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Gadgets, caffeine, t-shirts, fun stuff. http://thinkgeek.com/sf _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development
