You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by kal123 <kp...@gmail.com> on 2015/01/14 16:16:52 UTC

using org.fusesource.leveldbjni.JniDBFactory for leveldb giving error

when i use indexFactory="org.fusesource.leveldbjni.JniDBFactory" i am getting
following errors

o.a.a.l.LevelDBClient [Log.scala:112] Could not load factory:
org.fusesource.leveldbjni.JniDBFactory due to:
java.lang.UnsatisfiedLinkError: Could not load library. Reasons: [no
leveldbjni64-1.8 in java.library.path, no leveldbjni-1.8 in
java.library.path, no leveldbjni in java.library.path]


I have the leveldbjni-1.8.jar in the java.library.path location.  Any other
setup I need to do to get this working..


The reason i want to test with jni is b/c when activemq abnormally exits
(power down) the leveldb store is corrupted.
2014-12-19T16:10:07.687+0100 INFO [main] o.a.a.l.LevelDBClient
[Log.scala:93] Using the pure java LevelDB implementation.
2014-12-19T16:10:08.044+0100 INFO [LevelDB IOException handler.]
o.a.a.b.BrokerService [BrokerService.java:2561] No IOExceptionHandler
registered, ignoring IO exception
java.io.IOException: CURRENT file does not end with newline
at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:39)
~[activemq-client-5.9.1.jar:5.9.1]
at
org.apache.activemq.leveldb.LevelDBClient.might_fail(LevelDBClient.scala:552)
~[activemq-leveldb-store-5.9.1.jar:5.9.1]
at
org.apache.activemq.leveldb.LevelDBClient.replay_init(LevelDBClient.scala:657)
~[activemq-leveldb-store-5.9.1.jar:5.9.1]
at org.apache.activemq.leveldb.LevelDBClient.start(LevelDBClient.scala:558)
~[activemq-leveldb-store-5.9.1.jar:5.9.1]
at org.apache.activemq.leveldb.DBManager.start(DBManager.scala:626)
~[activemq-leveldb-store-5.9.1.jar:5.9.1]
at org.apache.activemq.leveldb.LevelDBStore.doStart(LevelDBStore.scala:236)
~[activemq-leveldb-store-5.9.1.jar:5.9.1]
at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
~[activemq-client-






--
View this message in context: http://activemq.2283324.n4.nabble.com/using-org-fusesource-leveldbjni-JniDBFactory-for-leveldb-giving-error-tp4689904.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.