Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-8884

Possible leak of unclosed Statement in DatabaseTimerPersistence

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.0.DR13
    • 7.1.0.DR12
    • EJB
    • None

      https://github.com/jbossas/jboss-eap7/blob/EAP_7.1.0.DR12-dev-2/ejb3/src/main/java/org/jboss/as/ejb3/timerservice/persistence/database/DatabaseTimerPersistence.java#L457

      On line 445, a Statement is obtained, but on line 457 the reference to it can be overwritten, in which case the finally block on line 496 won't close the previous Statement.

            sdouglas1@redhat.com Stuart Douglas
            jmartisk@redhat.com Jan Martiska
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: