Uploaded image for project: 'logback'
  1. logback
  2. LOGBACK-376

DBAppender: Connection obtained was never closed

    XMLWordPrintable

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 1.1.0
    • 0.9.29
    • logback-classic
    • None
    • Windows 7, Java 6, Spring 3.1 Snapshot, slf4j 1.6.1, logback 0.9.29, bonecp 0.7.1

    Description

      I use BoneCP together with logback. BoneCP complains about a connection that is never closed in the DBAppender

      The problem is in the method discoverConnnectionProperties in ConnectionSourceBase. This method does not close the database connection

      19:48:56.896 [BoneCP-connection-watch-thread] ERROR com.jolbox.bonecp.CloseThreadMonitor - Connection obtained from thread [Thread-4] was never closed.
      Stack trace of location where connection was obtained follows:
      java.lang.Thread.getStackTrace(Thread.java:1479)
      com.jolbox.bonecp.BoneCP.captureStackTrace(BoneCP.java:543)
      com.jolbox.bonecp.BoneCP.watchConnection(BoneCP.java:532)
      com.jolbox.bonecp.BoneCP.getConnection(BoneCP.java:518)
      com.jolbox.bonecp.BoneCPDataSource.getConnection(BoneCPDataSource.java:114)
      ch.qos.logback.core.db.DataSourceConnectionSource.getConnection(DataSourceConnectionSource.java:72)
      ch.qos.logback.core.db.ConnectionSourceBase.discoverConnnectionProperties(ConnectionSourceBase.java:47)
      ch.qos.logback.core.db.DataSourceConnectionSource.start(DataSourceConnectionSource.java:52)

      Attachments

        Activity

          People

            tony19 Tony Trinh
            ralscha Ralph Schaer
            Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: