Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-1809

Failure with JDBCPersistenceAdapter

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.1.0
    • 5.2.0
    • Message Store
    • None
    • ActiveMQ 5.1.0, JRE 1.6.0_05, Oracle 10.2.04

    • Patch Available

    Description

      When using jdbcPersistenceAdapter with Oracle using DBCP BasicDataSource and poolPreparedStatements set to true (default ActiveMQ configuration), the DBCP pool does not work corretly and opens lots of new connections instead of reusing old ones. It does so until connection count is so high, that database server starts refusing new connections and an exception is thrown.

      Problem can be avoided by setting poolPreparedStatements to false and fixed by updating commons-dbcp-1.2.jar to version commons-dbcp-1.2.2.jar

      The exception is java.sql.SQLException: Výjimka vstupu/výstupu: Got minus one from a read call
      (Full stack trace is in attached text file)

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--exception.txt
          14 kB
          Jan Wasserbauer
        2. ASF.LICENSE.NOT.GRANTED--commons-dbcp-1.2.2.jar
          119 kB
          Jan Wasserbauer

        Activity

          People

            rajdavies Robert Davies
            vodnik12 Jan Wasserbauer
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: