Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-542

Broker with LevelDB (JNI driver) Could not load any of the index factory classes:leveldbjni.JniDBFactory on Windows

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • JBoss A-MQ 6.1
    • None
    • None
    • None
    • Hide

      1. set the LevelDb persistent adapter in activemq.xml with JNI driver:

      <levelDB directory="${data}/leveldb" indexFactory="org.fusesource.leveldbjni.JniDBFactory"/></persistenceAdapter>
      

      2 Start Jboss Fuse

      Show
      1. set the LevelDb persistent adapter in activemq.xml with JNI driver: <levelDB directory= "${data}/leveldb" indexFactory= "org.fusesource.leveldbjni.JniDBFactory" /></persistenceAdapter> 2 Start Jboss Fuse

    Description

      Broker with LevelDB (JNI driver) could not load any of the index factory classes:leveldbjni.JniDBFactory on Windows 2012 R2.

      Exception:

      02:14:36,038 | INFO  | MQ Broker-1: amq | ActiveMQServiceFactory           | 139 - org.jboss.amq.mq-fabric - 6.1.0.redhat-328 | Broker amq failed to start.  Will try again in 10 seconds
      02:14:36,038 | ERROR | MQ Broker-1: amq | ActiveMQServiceFactory           | 139 - org.jboss.amq.mq-fabric - 6.1.0.redhat-328 | Exception on start: java.lang.Exception: Could not load any of the index factory classes: org.fusesource.leveldbjni.JniDBFactory
      java.lang.Exception: Could not load any of the index factory classes: org.fusesource.leveldbjni.JniDBFactory
      	at org.apache.activemq.leveldb.LevelDBClient$$anonfun$init$4.apply(LevelDBClient.scala:604)[128:org.apache.activemq.activemq-osgi:5.9.0.redhat-610328]
      	at org.apache.activemq.leveldb.LevelDBClient$$anonfun$init$4.apply(LevelDBClient.scala:604)[128:org.apache.activemq.activemq-osgi:5.9.0.redhat-610328]
      	at scala.Option.getOrElse(Option.scala:108)[60:scala-library:2.9.1]
      	at org.apache.activemq.leveldb.LevelDBClient.init(LevelDBClient.scala:604)[128:org.apache.activemq.activemq-osgi:5.9.0.redhat-610328]
      	at org.apache.activemq.leveldb.LevelDBClient.start(LevelDBClient.scala:557)[128:org.apache.activemq.activemq-osgi:5.9.0.redhat-610328]
      	at org.apache.activemq.leveldb.DBManager.start(DBManager.scala:626)[128:org.apache.activemq.activemq-osgi:5.9.0.redhat-610328]
      	at org.apache.activemq.leveldb.LevelDBStore.doStart(LevelDBStore.scala:236)[128:org.apache.activemq.activemq-osgi:5.9.0.redhat-610328]
      	at org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)[128:org.apache.activemq.activemq-osgi:5.9.0.redhat-610328]
      	at org.apache.activemq.broker.BrokerService.doStartPersistenceAdapter(BrokerService.java:613)[128:org.apache.activemq.activemq-osgi:5.9.0.redhat-610328]
      	at org.apache.activemq.broker.BrokerService.startPersistenceAdapter(BrokerService.java:602)[128:org.apache.activemq.activemq-osgi:5.9.0.redhat-610328]
      	at org.apache.activemq.broker.BrokerService.start(BrokerService.java:567)[128:org.apache.activemq.activemq-osgi:5.9.0.redhat-610328]
      	at org.fusesource.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration.org$fusesource$mq$fabric$ActiveMQServiceFactory$ClusteredConfiguration$$doStart(ActiveMQServiceFactory.scala:422)[139:org.jboss.amq.mq-fabric:6.1.0.redhat-328]
      	at org.fusesource.mq.fabric.ActiveMQServiceFactory$ClusteredConfiguration$$anon$4.run(ActiveMQServiceFactory.scala:366)[139:org.jboss.amq.mq-fabric:6.1.0.redhat-328]

      Attachments

        Activity

          People

            Unassigned Unassigned
            mmelko@redhat.com Matej Melko
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: