glassfish
  1. glassfish
  2. GLASSFISH-16750

IllegalArgumentException when JDBC statement leak detection is enabled for an app-scoped JDBC connection pool

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      An app-scoped JDBC connection pool with the following parameters:

      connection-leak-timeout-in-seconds="10"
      statement-leak-timeout-in-seconds="2"
      statement-timeout-in-seconds="6"

      should enable JDBC statement leak detection. But it throws the following error in the console:

      WARNING: RAR8012: Exception while scheduling timer : Timer already cancelled.
      INFO: Recreating Timer and scheduling at fixed rate
      SEVERE: Exception in thread "connector-timer-proxy"
      SEVERE: java.lang.IllegalArgumentException: can't parse argument number PoolInfo : (name=java:app/myConnectionPool)
      at java.text.MessageFormat.makeFormat(MessageFormat.java:1339)
      at java.text.MessageFormat.applyPattern(MessageFormat.java:458)
      at java.text.MessageFormat.<init>(MessageFormat.java:350)
      at com.sun.enterprise.util.i18n.StringManagerBase.getStringWithDefault(StringManagerBase.java:206)
      at com.sun.enterprise.resource.pool.ConnectionLeakDetector.printConnectionLeakTrace(ConnectionLeakDetector.java:177)
      at com.sun.enterprise.resource.pool.ConnectionLeakDetector.potentialConnectionLeakFound(ConnectionLeakDetector.java:157)
      at com.sun.enterprise.resource.pool.ConnectionLeakDetector.access$000(ConnectionLeakDetector.java:60)
      at com.sun.enterprise.resource.pool.ConnectionLeakDetector$ConnectionLeakTask.run(ConnectionLeakDetector.java:222)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)

      The same parameters work fine if these parameters are used on the pre-created JDBC connection pool of jdbc/__default.

        Activity

        arungupta created issue -
        Jagadish made changes -
        Field Original Value New Value
        Assignee tware [ tware ] naman_mehta [ naman_mehta ]
        Component/s logging [ 10608 ]
        Component/s entity-persistence [ 10624 ]
        naman_mehta made changes -
        Tags 3_1_1-scrubbed 3_1_1-next
        naman_mehta made changes -
        Attachment MessageFormatTest.java [ 46842 ]
        naman_mehta made changes -
        Assignee naman_mehta [ naman_mehta ] Jagadish [ jr158900 ]
        Component/s logging [ 10608 ]

          People

          • Assignee:
            Jagadish
            Reporter:
            arungupta
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated: