You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Mark Thomas (JIRA)" <ji...@apache.org> on 2014/01/30 17:50:10 UTC

[jira] [Resolved] (DBCP-365) StackOverflowError SharedPoolDataSource.getPooledConnectionAndInfo() Postgresql

     [ https://issues.apache.org/jira/browse/DBCP-365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mark Thomas resolved DBCP-365.
------------------------------

    Resolution: Won't Fix

I'm struggling to see how a file permission error can lead to stack overflow. Either the Postgresql JAR is readable (in which case it works) or it isn't (in which case you get a single CNFE).

I'm happy to take another look at this if some steps are provided to re-create the stack overflow.

> StackOverflowError SharedPoolDataSource.getPooledConnectionAndInfo() Postgresql
> -------------------------------------------------------------------------------
>
>                 Key: DBCP-365
>                 URL: https://issues.apache.org/jira/browse/DBCP-365
>             Project: Commons Dbcp
>          Issue Type: Bug
>    Affects Versions: 1.4
>         Environment: Windows XP 64-bit multi-threaded
>            Reporter: Axl
>              Labels: JDBC, postgresql
>
> This might be a problem with the JDBC driver for PostgreSQL 9.1 but it also shows up here. Since this is a StackOverflowError there isn't much information about what specifically is causing this. I'm guessing it's a Class.forName() for one of the org.postgresql.* classes but not sure which one. The Class.forName() goes into a loop which throws the StackOverflowError.
> SharedPoolDataSource.getPooledConnectionAndInfo(String, String) line: 174	
> SharedPoolDataSource(InstanceKeyDataSource).getConnection(String, String) line: 701	
> SharedPoolDataSource(InstanceKeyDataSource).getConnection() line: 676	
> 			spds = new org.apache.commons.dbcp.datasources.SharedPoolDataSource();
> 			cpds = new org.apache.commons.dbcp.cpdsadapter.DriverAdapterCPDS();
> 			cpds.setDriver("org.postgresql.Driver");
> 			cpds.setUrl("jdbc:postgresql://localhost:1234/mydatabasename");
> 			cpds.setUser("myuser");
> 			cpds.setPassword("mypass");
> 			spds.setConnectionPoolDataSource(cpds);
> 			spds.setMaxActive(30);
> 			spds.setMaxWait(50);
> 				
> 			conn = spds.getConnection();



--
This message was sent by Atlassian JIRA
(v6.1.5#6160)