db-ojb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Charles Anthony (JIRA)" <j...@apache.org>
Subject [jira] Commented: (OJB-46) Error message: Borrow broker from pool failed
Date Mon, 06 Jun 2005 06:27:40 GMT
    [ http://issues.apache.org/jira/browse/OJB-46?page=comments#action_12312718 ] 

Charles Anthony commented on OJB-46:
------------------------------------

The cause of the problem can be found at the very bottom of the stacktrace :

Caused by: java.util.NoSuchElementException 
        at org.apache.commons.pool.impl.GenericKeyedObjectPool.borrowObject(Unknown Source)

        at org.apache.ojb.broker.core.PersistenceBrokerFactoryDefaultImpl.createPersistenceBroker

Basically, I believe this means that broker pool has been exhausted - there are no brokers
left to borrow.

The broker pool is configured in OJB.properties, and has a default maximum of 100 active brokers.

I suspect the real problem is that you are not returning brokers to the pool (by invoking
PB.close)

> Error message: Borrow broker from pool failed
> ---------------------------------------------
>
>          Key: OJB-46
>          URL: http://issues.apache.org/jira/browse/OJB-46
>      Project: OJB
>         Type: Bug
>   Components: PB-API
>     Versions: 1.0.3
>  Environment: SuSe Linux, WebSphere Application Server 5.0.2.26, Oracle 9i.
>     Reporter: Ed van Leeuwen

>
> During operation of our application, we get the following message:
> javax.servlet.ServletException: Borrow broker from pool failed, using PBKey org.apache.ojb.broker.PBKey:
jcdAlias=default, user=null, password=null
> Please help us with this.
> Best regards,
> Ed

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: ojb-dev-unsubscribe@db.apache.org
For additional commands, e-mail: ojb-dev-help@db.apache.org


Mime
View raw message