I'm running up against this error message:
java.util.NoSuchElementException
at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(Generic KeyedObjectPool.java:770)
at org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPer sistenceBroker(Unknown Source)
at org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.defaultPe rsistenceBroker(Unknown Source)
at org.apache.ojb.broker.PersistenceBrokerFactory.defaultPersistenceBroker( Unknown Source)
at com.digitalphenom.common.ServiceLocator.findBroker(ServiceLocator.java: 33)
...
I found the previous posts regarding this in the following article: http://www.mail-archive.com/[EMAIL PROTECTED]/msg05670.html
As the article predicts, I am using ConnectionFactoryPooledImpl and whenExhaustedAction=0 in my OJB.properties file.
I also call broker.close() in the finally clause of every try/catch block of my data access objects. Should I be calling broker.close() right after the transaction in the try clause instead of the finally clause?
I'm using Oracle 8i and only see one active connection to the database, so the max number of connections are not being exceeded.
Is there anyway to log how many PersistenceBrokers are in the pool and if they are being released properly?
If it helps, every time I reload my webapp, the memory usage goes up and never gets reclaimed. If I get close to the maximum heap, the program will run out of memory.
Thus, I believe that connections are not being released properly.
Thanks,
-Anthony Carlos
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
