Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-10147

DataSource returns null jdbc connection

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 3.0.6
    • Fix Version/s: None
    • Component/s: Data:JDBC
    • Labels:
    • Last commented by a User:
      true

      Description

      When all the connections in connection-pool become active and another thread tries to fetch new connection and finally not able to get the connection dataSource returns null jdbc connection rather than throwing not able to get the connection.

      Simple steps to reproduce.
      Set max connection pool size to 0 and min size to 0. And try to get connection. It will return null instead of throwing exception.

        Attachments

          Activity

            People

            Assignee:
            cbeams Chris Beams
            Reporter:
            shiva.n404 Shivakumar N
            Last updater:
            Spring Issues Spring Issues
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Days since last comment:
              3 years, 29 weeks, 6 days ago