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

Prepared transactions not recovering after a rebuild due to serialVersionUID changing.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.0
    • Message Store
    • None

    Description

      I had an ActiveMQ install which I upgraded with new ActiveMQ jars to fix a small bug. When it started up I got the following error:

      10:27:08,625 INFO [JdbmPersistenceAdapter] Creating JDBM based message store in directory: C:\sandbox\geronimo-tck\j2ee\geronimo\var\activemq
      10:27:08,781 INFO [JdbmPreparedTransactionStore] Recovering prepared transactions
      10:27:08,843 ERROR [JdbmPreparedTransactionStore] Failed to recover prepared transactions: java.io.InvalidClassException: org.codehaus.activemq.service.impl.AbstractTransaction; local class incompatible: stream classdesc serialVersionUID = -30595945985666
      java.io.InvalidClassException: org.codehaus.activemq.service.impl.AbstractTransaction; local class incompatible: stream classdesc serialVersionUID = -3059594598566650262, local class serialVersionUID = -8026968802014775398
      at java.io.ObjectStreamClass.initNonProxy(ObjectStreamClass.java:519)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
      at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1546)
      at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1460)
      at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1693)
      at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1299)
      at java.io.ObjectInputStream.readObject(ObjectInputStream.java:339)
      at jdbm.btree.BPage.deserialize(BPage.java:996)
      at jdbm.recman.BaseRecordManager.fetch(BaseRecordManager.java:341)
      at jdbm.recman.CacheRecordManager.fetch(CacheRecordManager.java:264)
      at jdbm.btree.BPage.loadBPage(BPage.java:826)
      at jdbm.btree.BPage.childBPage(BPage.java:816)
      at jdbm.btree.BPage.findFirst(BPage.java:302)

      Attachments

        Activity

          People

            chirino Hiram R. Chirino
            chirino Hiram R. Chirino
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: