Uploaded image for project: 'Jetspeed 2 (Retired)'
  1. Jetspeed 2 (Retired)
  2. JS2-404

Hsql db 1.7.1 does not support addBatch

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0-FINAL
    • 2.0-FINAL
    • Persistence and DAO
    • None
    • WinXP, JDK1.4.2_10

    Description

      It seems that hsqldb-1.7.1 does not support addBatch, it always has the following exception:

      java.sql.SQLException: This function is not supported
      at org.hsqldb.Trace.getError(Unknown Source)
      at org.hsqldb.Trace.error(Unknown Source)
      at org.hsqldb.jdbcPreparedStatement.getNotSupported(Unknown Source)
      at org.hsqldb.jdbcPreparedStatement.addBatch(Unknown Source)
      at org.apache.commons.dbcp.DelegatingPreparedStatement.addBatch(DelegatingPreparedStatement.
      java:171)
      at org.apache.jetspeed.statistics.impl.BatchedStatistics.flush(BatchedStatistics.java:166)
      at org.apache.jetspeed.statistics.impl.BatchedStatistics.checkAndDoFlush(BatchedStatistics.j
      ava:81)
      at org.apache.jetspeed.statistics.impl.BatchedStatistics.run(BatchedStatistics.java:127)
      at java.lang.Thread.run(Thread.java:534)

      Upgrade to hsqldb-1.8.0.2 will solved it.

      Attachments

        1. hsqldb-upgrade.diff
          2 kB
          Jian Liao

        Activity

          People

            dlestrat David LeStrat
            norwaywoods Jian Liao
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: