[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-user
Subject:    Re: [DBCP] - Informix and DBCP 1.1 compatibility...
From:       Dirk Verbeeck <dirk.verbeeck () pandora ! be>
Date:       2004-02-29 20:42:24
Message-ID: 40424EB0.1020605 () pandora ! be
[Download RAW message or body]

Andrew,

I have fixed your issue:
http://issues.apache.org/bugzilla/show_bug.cgi?id=27320

The call to the setReadOnly is now optional. If you don't call 
setDefaultReadOnly on the PoolableConnectionFactory then the 
setReadOnly method will not be called on the connection.

Normally this should fix your problem with the Informix driver.
Please test the next nightly build again.

-- Dirk


AndrewPeirson@cabs.co.zw wrote:
> Hi Dirk,
> 
> Thanks for getting back to me...  I have just downloaded the latest 
> nightly builds for DBCP and pool and have recompiled and rerun the 
> ManualPoolingDataSourceExample.java.  I still get the exception...but it 
> now looks like this....
> 
> 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
> 
> Looks like you may be right and the Informix driver does not support the 
> setReadOnly method.  Anyway around this....  I'm fairly new to working 
> with Databases and Java, so any help would be much appreciated.
> 
> Thanks again for the swift response,
> 
> Andrew Peirson.
> 
> 



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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic