java.io.IOException: Invalid location: 965:1286, : java.lang.NegativeArraySizeException

Apache's JIRA Issue Tracker | Loc Truong | 6 years ago
  1. 0

    With the error messages below, Consumers cannot consume any message until clearing the data folder then restart ActiveMQ, assuming old messages are lost. ERROR | Failed to fill batch java.lang.RuntimeException: java.io.IOException: Invalid location: 1711:34233, : java.lang.NegativeArraySizeException at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:265) at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:110) at org.apache.activemq.broker.region.cursors.StoreQueueCursor.reset(StoreQueueCursor.java:157) at org.apache.activemq.broker.region.Queue.doPageIn(Queue.java:1678) at org.apache.activemq.broker.region.Queue.pageInMessages(Queue.java:1898) at org.apache.activemq.broker.region.Queue.iterate(Queue.java:1425) at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98) at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36) Caused by: java.io.IOException: Invalid location: 1711:34233, : java.lang.NegativeArraySizeException at org.apache.kahadb.journal.DataFileAccessor.readRecord(DataFileAccessor.java:94) at org.apache.kahadb.journal.Journal.read(Journal.java:596) at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:786) at org.apache.activemq.store.kahadb.KahaDBStore.loadMessage(KahaDBStore.java:956) at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore$5.execute(KahaDBStore.java:494) at org.apache.kahadb.page.Transaction.execute(Transaction.java:728) at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.recoverNextMessages(KahaDBStore.java:485) at org.apache.activemq.store.ProxyMessageStore.recoverNextMessages(ProxyMessageStore.java:88) at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.doFillBatch(QueueStorePrefetch.java:97) at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:262) ... 7 more ERROR | Failed to page in more queue messages java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: Invalid location: 1711:34233, : java.lang.NegativeArraySizeException at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:113) at org.apache.activemq.broker.region.cursors.StoreQueueCursor.reset(StoreQueueCursor.java:157) at org.apache.activemq.broker.region.Queue.doPageIn(Queue.java:1678) at org.apache.activemq.broker.region.Queue.pageInMessages(Queue.java:1898) at org.apache.activemq.broker.region.Queue.iterate(Queue.java:1425) at org.apache.activemq.thread.DedicatedTaskRunner.runTask(DedicatedTaskRunner.java:98) at org.apache.activemq.thread.DedicatedTaskRunner$1.run(DedicatedTaskRunner.java:36) Caused by: java.lang.RuntimeException: java.io.IOException: Invalid location: 1711:34233, : java.lang.NegativeArraySizeException at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:265) at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:110) ... 6 more Caused by: java.io.IOException: Invalid location: 1711:34233, : java.lang.NegativeArraySizeException at org.apache.kahadb.journal.DataFileAccessor.readRecord(DataFileAccessor.java:94) at org.apache.kahadb.journal.Journal.read(Journal.java:596) at org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:786) at org.apache.activemq.store.kahadb.KahaDBStore.loadMessage(KahaDBStore.java:956) at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore$5.execute(KahaDBStore.java:494) at org.apache.kahadb.page.Transaction.execute(Transaction.java:728) at org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.recoverNextMessages(KahaDBStore.java:485) at org.apache.activemq.store.ProxyMessageStore.recoverNextMessages(ProxyMessageStore.java:88) at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.doFillBatch(QueueStorePrefetch.java:97) at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:262) ... 7 more

    Apache's JIRA Issue Tracker | 6 years ago | Loc Truong
    java.io.IOException: Invalid location: 965:1286, : java.lang.NegativeArraySizeException
  2. 0

    ActiveMQ JMS Development list

    gmane.org | 1 year ago
    java.lang.RuntimeException: java.io.IOException: Invalid location: 1711:34233, : java.lang.NegativeArraySizeException
  3. 0

    ActiveMQ - User - KahaDB error: "Could not locate data file"

    nabble.com | 1 year ago
    java.io.IOException: Could not locate data file >> > /usr/local/embedded/activemq-data/localhost/KahaDB/db-28098.log >> >        at org.apache.kahadb.journal.Journal.getDataFile(Journal.java:345)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ActiveMQ - User - Scheduler exception java.io.IOException: Could not locate data file

    nabble.com | 1 year ago
    java.io.IOException: Could not locate data file <correct-file-path>\db-2.log
  6. 0

    Bug #19066: kahadb corruption prevents queue processing - PuppetDB - Puppet Labs

    puppetlabs.com | 3 months ago
    java.lang.RuntimeException: java.lang.RuntimeException: java.io.IOException: Invalid location: 122:30605869, : java.lang.NegativeArraySizeException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.io.IOException

      Invalid location: 965:1286, : java.lang.NegativeArraySizeException

      at org.apache.kahadb.journal.DataFileAccessor.readRecord()
    2. ActiveMQ :: KahaDB
      Journal.read
      1. org.apache.kahadb.journal.DataFileAccessor.readRecord(DataFileAccessor.java:92)
      2. org.apache.kahadb.journal.Journal.read(Journal.java:604)
      2 frames
    3. ActiveMQ :: KahaDB Store
      KahaDBStore$KahaDBMessageStore$4.execute
      1. org.apache.activemq.store.kahadb.MessageDatabase.load(MessageDatabase.java:879)
      2. org.apache.activemq.store.kahadb.KahaDBStore.loadMessage(KahaDBStore.java:1030)
      3. org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore$4.execute(KahaDBStore.java:558)
      3 frames
    4. ActiveMQ :: KahaDB
      Transaction.execute
      1. org.apache.kahadb.page.Transaction.execute(Transaction.java:769)
      1 frame
    5. ActiveMQ :: KahaDB Store
      KahaDBStore$KahaDBMessageStore.recoverNextMessages
      1. org.apache.activemq.store.kahadb.KahaDBStore$KahaDBMessageStore.recoverNextMessages(KahaDBStore.java:547)
      1 frame
    6. ActiveMQ :: Broker
      Queue.iterate
      1. org.apache.activemq.store.ProxyMessageStore.recoverNextMessages(ProxyMessageStore.java:106)
      2. org.apache.activemq.broker.region.cursors.QueueStorePrefetch.doFillBatch(QueueStorePrefetch.java:97)
      3. org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:274)
      4. org.apache.activemq.broker.region.cursors.AbstractStoreCursor.reset(AbstractStoreCursor.java:110)
      5. org.apache.activemq.broker.region.cursors.StoreQueueCursor.reset(StoreQueueCursor.java:157)
      6. org.apache.activemq.broker.region.Queue.doPageInForDispatch(Queue.java:1765)
      7. org.apache.activemq.broker.region.Queue.pageInMessages(Queue.java:1993)
      8. org.apache.activemq.broker.region.Queue.iterate(Queue.java:1486)
      8 frames
    7. ActiveMQ :: Core
      PooledTaskRunner$1.run
      1. org.apache.activemq.thread.PooledTaskRunner.runTask(PooledTaskRunner.java:129)
      2. org.apache.activemq.thread.PooledTaskRunner$1.run(PooledTaskRunner.java:47)
      2 frames
    8. Java RT
      Thread.run
      1. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      2. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      3. java.lang.Thread.run(Thread.java:662)
      3 frames