java.util.NoSuchElementException after stesstest

2006-08-03 Thread Dennis Bekkering
Hello, After and while running a stresstest with a tool i get the following error. My code stops at PersistenceBrokerFactory.defaultPersistenceBroker(). I know it is imposible to see what is happening from the trace and that it happens in apache - commons code but maybe somebody has seen this

Re: java.util.NoSuchElementException after stesstest

2006-08-03 Thread Armin Waibel
Hi Dennis, Dennis Bekkering wrote: Hello, After and while running a stresstest with a tool i get the following error. My code stops at PersistenceBrokerFactory.defaultPersistenceBroker(). I know it is imposible to see what is happening from the trace and that it happens in apache - commons

Re: java.util.NoSuchElementException after stesstest

2006-08-03 Thread Dennis Bekkering
Hello Armin, If you run stress tests on OJB please make sure that the maximal active PB instances setting and the maximal active connections setting in ConnectionFactory (see repository file connection-pool http://db.apache.org/ojb/docu/guides/repository.html#connection-pool-N10251 ) is

Re: java.util.NoSuchElementException after stesstest

2006-08-03 Thread Armin Waibel
Dennis Bekkering wrote: Hello Armin, If you run stress tests on OJB please make sure that the maximal active PB instances setting and the maximal active connections setting in ConnectionFactory (see repository file connection-pool

Re: java.util.NoSuchElementException after stesstest

2006-08-03 Thread Dennis Bekkering
Armin, You are right. I run a test with latest from SVN (OJB_1_0_RELEASE branch) with whenExhaustedAction=2 and it works as expected. Wrong OJB.properties file in your classpath? regards, Armin I actually dont use OJB.properties but repository-database.xml for pool settings. The

Re: java.util.NoSuchElementException after stesstest

2006-08-03 Thread Armin Waibel
Dennis Bekkering wrote: Armin, You are right. I run a test with latest from SVN (OJB_1_0_RELEASE branch) with whenExhaustedAction=2 and it works as expected. Wrong OJB.properties file in your classpath? regards, Armin I actually dont use OJB.properties but repository-database.xml for pool

Re: java.util.NoSuchElementException after stesstest

2006-08-03 Thread Dennis Bekkering
Within the connection-pool element you set the size of the connection-pool, in the OJB.properties file you set the size of the PB-pool (this is not the same). Thus you need both settings. It's obvious that the PB-pool size should always greater or equals to the connection-pool size. regards,