You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Rozensky, Ronald S (Ronald)" <ro...@avaya.com> on 2006/02/03 20:10:23 UTC

commons dbcp throws sqlexception when connection is already closed

We recently implemented DBCP in a project and received an sqlexception
from DBCP when closing a connection that was already closed:

java.sql.SQLException: Connection is closed.
 at
org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.che
ckOpen(PoolingDataSource.java:174)
 at
org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.clo
se(PoolingDataSource.java:179)

Is this not a violation of contract with the Connection interface?
Snippet from the java.sql.Connection.close() API:

Calling the method close on a Connection object that is already closed
is a no-op.

Granted there was bug in our code, but shouldn't DBCP's
PoolingDataSource abide by the contract specified in the Connection
interface?

I found this Bugzilla bug when looking into this:
http://issues.apache.org/bugzilla/show_bug.cgi?id=12409

Ronald Rozensky
Avaya, Inc.


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


Re: commons modeler - status?

Posted by brown_k <ke...@air2web.com>.
Thanks.  Bugzilla Bug# 38530

Martin van den Bemt wrote:
> I'll try to remember to fix this, since broken links is kind of bad :)
> I am not a modeler maintainer (or know much about it for that matter).
> If you file an issue, I will be sure to not forget it (prefix with 
> [modeler] and use site somewhere in the title (that will trigger my 
> attention..)


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


Re: commons modeler - status?

Posted by Martin van den Bemt <ml...@mvdb.net>.
I'll try to remember to fix this, since broken links is kind of bad :)
I am not a modeler maintainer (or know much about it for that matter).
If you file an issue, I will be sure to not forget it (prefix with [modeler] and use site somewhere 
in the title (that will trigger my attention..)

Mvgr,
Martin

brown_k wrote:
> Commons Modeler folks,
> 
> What is the status of this project?    I like the xml format used to 
> describe mbeans.
> 
> I came across this project via a spring/jmx tutorial 
> (http://forum.springframework.org/showthread.php?t=20675).  I attempted 
> to modify the Wiki page for Commons Modeler to add this link, but the 
> page is locked (http://wiki.apache.org/jakarta-commons/Modeler) and very 
> incomplete.
> Also the cvs and download links are broken:
> http://jakarta.apache.org/commons/modeler/downloads.html
> 
> I'd figure the status would be on the front page rather than on the list 
> that gets sent out every once in a while with all the projects and status
> 
> - Kevin
> 
>>   
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-dev-help@jakarta.apache.org
> 
> 
> 

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


commons modeler - status?

Posted by brown_k <ke...@air2web.com>.
Commons Modeler folks,

What is the status of this project?    I like the xml format used to 
describe mbeans.

I came across this project via a spring/jmx tutorial 
(http://forum.springframework.org/showthread.php?t=20675).  I attempted 
to modify the Wiki page for Commons Modeler to add this link, but the 
page is locked (http://wiki.apache.org/jakarta-commons/Modeler) and very 
incomplete. 

Also the cvs and download links are broken:
http://jakarta.apache.org/commons/modeler/downloads.html

I'd figure the status would be on the front page rather than on the list 
that gets sent out every once in a while with all the projects and status

- Kevin

>   


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