commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kimberly Baer (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DBCP-127) DBCP 1.1 incompatible with Informix (driver doesn't support setReadOnly(...))
Date Wed, 03 Jan 2007 19:48:28 GMT

    [ https://issues.apache.org/jira/browse/DBCP-127?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12462040
] 

Kimberly Baer commented on DBCP-127:
------------------------------------

I recieved an error using commons-dbcp-1.2.1.jar and ifxjdbc.jar for my informix driver:

org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool exhausted
	at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:183)
	at java.sql.DriverManager.getConnection(DriverManager.java:539)
	at java.sql.DriverManager.getConnection(DriverManager.java:211)
	at ConnectionPoolingTest.main(ConnectionPoolingTest.java:105)
Caused by: java.util.NoSuchElementException: Could not create a validated object, cause: Read
only mode not supported
	at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:806)
	at org.apache.commons.dbcp.PoolingDriver.connect(PoolingDriver.java:175)

I will look into the comment provided by Dirk, but it appears this bug still has an impact.
 If anyone has any other suggestions, they would be greatly appreciated.


> DBCP 1.1 incompatible with Informix (driver doesn't support setReadOnly(...))
> -----------------------------------------------------------------------------
>
>                 Key: DBCP-127
>                 URL: https://issues.apache.org/jira/browse/DBCP-127
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.1
>         Environment: Operating System: All
> Platform: All
>            Reporter: Dirk Verbeeck
>
> DBCP 1.1 is more strict about Exceptions thrown by setReadOnly method of the
> database drivers.
> This results in the following issue with the Informix database driver as
> reported by Andrew Peirson.
> For details see commons-user mailing list 24-2-2004.
> =========================================================================
> Creating connection.
> org.apache.commons.dbcp.SQLNestedException: Cannot get a connection, pool 
> exhausted
>         at 
> org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:148)
>         at 
> ManualPoolingDataSourceExample.main(ManualPoolingDataSourceExample.java:169)
> Caused by: java.util.NoSuchElementException: Could not create a validated 
> object, cause: Read only mode not supported
>         at 
> org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:851)
>         at 
> org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:140)
>         ... 1 more

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

        

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


Mime
View raw message