You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by "Kimberly Baer (JIRA)" <ji...@apache.org> on 2007/01/03 21:05:27 UTC

[jira] Created: (DBCP-207) DBCP 1.2.1 incompatible with Informix (driver doesn't support setReadOnly(...))

DBCP 1.2.1 incompatible with Informix (driver doesn't support setReadOnly(...))
-------------------------------------------------------------------------------

                 Key: DBCP-207
                 URL: https://issues.apache.org/jira/browse/DBCP-207
             Project: Commons Dbcp
          Issue Type: Bug
    Affects Versions: 1.2.1
         Environment: using the pooling driver component with an informix driver
            Reporter: Kimberly Baer


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 in bug ID DBCP-127 (version 1.1), but it appears this bug still has an impact in the 1.2.1 version. If anyone has any other suggestions, they would be greatly appreciated. 

-- 
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


[jira] Updated: (DBCP-207) DBCP 1.2.1 incompatible with Informix (driver doesn't support setReadOnly(...))

Posted by "Dain Sundstrom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DBCP-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dain Sundstrom updated DBCP-207:
--------------------------------

    Attachment: DBCP-207.patch

Already fixed for PoolingDataSource, but PerUserDataSource and SharedPoolDataSource still always set this value.  These data sources use a primitives for the read only,  transaction isolation and auto commit default values so there is not way to see if the value was not set.  This patch checks if the read-only and auto-commit values are already set before changing them which should setReadOnly from being called. 

> DBCP 1.2.1 incompatible with Informix (driver doesn't support setReadOnly(...))
> -------------------------------------------------------------------------------
>
>                 Key: DBCP-207
>                 URL: https://issues.apache.org/jira/browse/DBCP-207
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>         Environment: using the pooling driver component with an informix driver
>            Reporter: Kimberly Baer
>             Fix For: 1.3
>
>         Attachments: DBCP-207.patch
>
>
> 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 in bug ID DBCP-127 (version 1.1), but it appears this bug still has an impact in the 1.2.1 version. If anyone has any other suggestions, they would be greatly appreciated. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (DBCP-207) DBCP 1.2.1 incompatible with Informix (driver doesn't support setReadOnly(...))

Posted by "Dain Sundstrom (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DBCP-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Dain Sundstrom resolved DBCP-207.
---------------------------------

    Resolution: Fixed

Committed a fix for this specific problem, and created a JIRA for converting all default values to non-primitive types.  This way only configured default values will be set.

Sending        src/java/org/apache/commons/dbcp/datasources/PerUserPoolDataSource.java
Sending        src/java/org/apache/commons/dbcp/datasources/SharedPoolDataSource.java
Transmitting file data ..
Committed revision 558850.


> DBCP 1.2.1 incompatible with Informix (driver doesn't support setReadOnly(...))
> -------------------------------------------------------------------------------
>
>                 Key: DBCP-207
>                 URL: https://issues.apache.org/jira/browse/DBCP-207
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>         Environment: using the pooling driver component with an informix driver
>            Reporter: Kimberly Baer
>            Assignee: Dain Sundstrom
>             Fix For: 1.3
>
>         Attachments: DBCP-207.patch
>
>
> 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 in bug ID DBCP-127 (version 1.1), but it appears this bug still has an impact in the 1.2.1 version. If anyone has any other suggestions, they would be greatly appreciated. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Updated: (DBCP-207) DBCP 1.2.1 incompatible with Informix (driver doesn't support setReadOnly(...))

Posted by "Phil Steitz (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DBCP-207?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Phil Steitz updated DBCP-207:
-----------------------------

    Fix Version/s: 1.3

> DBCP 1.2.1 incompatible with Informix (driver doesn't support setReadOnly(...))
> -------------------------------------------------------------------------------
>
>                 Key: DBCP-207
>                 URL: https://issues.apache.org/jira/browse/DBCP-207
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>         Environment: using the pooling driver component with an informix driver
>            Reporter: Kimberly Baer
>             Fix For: 1.3
>
>
> 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 in bug ID DBCP-127 (version 1.1), but it appears this bug still has an impact in the 1.2.1 version. If anyone has any other suggestions, they would be greatly appreciated. 

-- 
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