Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-365

StackOverflowError SharedPoolDataSource.getPooledConnectionAndInfo() Postgresql

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 1.4
    • None
    • Windows XP 64-bit multi-threaded

    Description

      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();

      Attachments

        Activity

          People

            Unassigned Unassigned
            dj_axl Axl
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: