activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Chirita <Andi.Chir...@ignitionone.com>
Subject org.apache.activemq.leveldb.LevelDBClient java.lang.NullPointerException
Date Wed, 20 Mar 2013 13:18:18 GMT
Hi Guys,

I encountered this error on ActiveMQ start.log

       at org.apache.activemq.leveldb.LevelDBClient$$anonfun$queueCursor$1.apply(LevelDBClient.scala:941)
        at org.apache.activemq.leveldb.LevelDBClient$$anonfun$queueCursor$1.apply(LevelDBClient.scala:937)
        at org.apache.activemq.leveldb.LevelDBClient$$anonfun$collectionCursor$1$$anonfun$apply$mcV$sp$9.apply(LevelDBClient.scala:987)
        at org.apache.activemq.leveldb.LevelDBClient$$anonfun$collectionCursor$1$$anonfun$apply$mcV$sp$9.apply(LevelDBClient.scala:986)
        at org.apache.activemq.leveldb.LevelDBClient$RichDB.check$4(LevelDBClient.scala:293)
        at org.apache.activemq.leveldb.LevelDBClient$RichDB.cursorRange(LevelDBClient.scala:295)
        at org.apache.activemq.leveldb.LevelDBClient$$anonfun$collectionCursor$1.apply$mcV$sp(LevelDBClient.scala:986)
        at org.apache.activemq.leveldb.LevelDBClient$$anonfun$collectionCursor$1.apply(LevelDBClient.scala:986)
        at org.apache.activemq.leveldb.LevelDBClient$$anonfun$collectionCursor$1.apply(LevelDBClient.scala:986)
        at org.apache.activemq.leveldb.LevelDBClient.usingIndex(LevelDBClient.scala:735)
        at org.apache.activemq.leveldb.LevelDBClient$$anonfun$retryUsingIndex$1.apply(LevelDBClient.scala:741)
        at org.apache.activemq.leveldb.util.RetrySupport$.retry(RetrySupport.scala:38)
        at org.apache.activemq.leveldb.LevelDBClient.retry(LevelDBClient.scala:437)
        at org.apache.activemq.leveldb.LevelDBClient.retryUsingIndex(LevelDBClient.scala:741)
        at org.apache.activemq.leveldb.LevelDBClient.collectionCursor(LevelDBClient.scala:985)
        at org.apache.activemq.leveldb.LevelDBClient.queueCursor(LevelDBClient.scala:937)
        at org.apache.activemq.leveldb.DBManager.cursorMessages(DBManager.scala:617)
        at org.apache.activemq.leveldb.LevelDBStore$LevelDBMessageStore.recoverNextMessages(LevelDBStore.scala:467)
        at org.apache.activemq.broker.region.cursors.QueueStorePrefetch.doFillBatch(QueueStorePrefetch.java:97)
        at org.apache.activemq.broker.region.cursors.AbstractStoreCursor.fillBatch(AbstractStoreCursor.java:274)
        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.doBrowse(Queue.java:1066)
        at org.apache.activemq.broker.region.Queue.expireMessages(Queue.java:832)
        at org.apache.activemq.broker.region.Queue.access$100(Queue.java:98)
        at org.apache.activemq.broker.region.Queue$2.run(Queue.java:138)
        at org.apache.activemq.thread.SchedulerTimerTask.run(SchedulerTimerTask.java:33)
        at java.util.TimerThread.mainLoop(Timer.java:534)
        at java.util.TimerThread.run(Timer.java:484)
java.lang.NullPointerException

And this error in activemq.log
2013-03-19 17:16:27,444 [host] Scheduler] - WARN  LevelDBClient                  -       
                                    - DB operation failed. (entering recovery mode)

After this I can't stop the broker(without a kill) and it's not able to start.

Version :
5.7.0.fuse-71-047/<http://repo.fusesource.com/nexus/content/repositories/releases/org/apache/activemq/apache-activemq/5.7.0.fuse-71-047/>
      Fri Dec 21 13:26:31 UTC 2012
Java Runtime: Sun Microsystems Inc. 1.6.0_18
JVM Arguments: -Xms512M -Xmx512M
OS : Debian

Setting in activemq.xml :

<persistenceAdapter>
<levelDB directory="${activemq.base}/data/leveldb" logSize="1073741820"/>
</persistenceAdapter>
        <systemUsage>
            <systemUsage>
                <memoryUsage>
                    <memoryUsage limit="200 mb"/>
                </memoryUsage>
                <storeUsage>
                    <storeUsage limit="1 gb"/>
                </storeUsage>
                <tempUsage>
                    <tempUsage limit="100 mb"/>
                </tempUsage>
            </systemUsage>
        </systemUsage>


Any Idea why I got this exception and how can I fix it?

Thanks a lot,

Andi



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message