FAQ
Hi all,


I'm getting this exception when starting ActiveMQ with following persistence
configuration.
Currently, an instance is elected as a master, but in that moment, i get
this exception:

java.io.IOException:
com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
         at
org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:39)
         at
org.apache.activemq.leveldb.LevelDBClient.might_fail(LevelDBClient.scala:552)
         at
org.apache.activemq.leveldb.LevelDBClient.replay_init(LevelDBClient.scala:657)
         at
org.apache.activemq.leveldb.LevelDBClient.start(LevelDBClient.scala:558)
         at org.apache.activemq.leveldb.DBManager.start(DBManager.scala:648)
         at
org.apache.activemq.leveldb.LevelDBStore.doStart(LevelDBStore.scala:235)
         at
org.apache.activemq.leveldb.replicated.MasterLevelDBStore.doStart(MasterLevelDBStore.scala:110)
         at
org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
         at
org.apache.activemq.leveldb.replicated.ElectingLevelDBStore$$anonfun$start_master$1.apply$mcV$sp(ElectingLevelDBStore.scala:226)
         at
org.fusesource.hawtdispatch.package$$anon$4.run(hawtdispatch.scala:330)
         at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
         at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
         at java.lang.Thread.run(Thread.java:701)
Caused by: java.lang.NoSuchMethodError:
com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
         at org.iq80.leveldb.impl.MMapLogWriter.close(MMapLogWriter.java:83)
         at
org.iq80.leveldb.impl.VersionSet.initializeIfNeeded(VersionSet.java:111)
         at org.iq80.leveldb.impl.VersionSet.(DbImpl.java:178)
         at org.iq80.leveldb.impl.Iq80DBFactory.open(Iq80DBFactory.java:59)
         at
org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_init$2.apply$mcV$sp(LevelDBClient.scala:661)
         at
org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_init$2.apply(LevelDBClient.scala:657)
         at
org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_init$2.apply(LevelDBClient.scala:657)
         at
org.apache.activemq.leveldb.LevelDBClient.might_fail(LevelDBClient.scala:549)
         ... 11 more

Persistence configuration:
         <persistenceAdapter>

                 <replicatedLevelDB
                       directory="activemq-data"
                       replicas="3"
                       bind="tcp://0.0.0.0:8888"
                       zkAddress="172.0.3.25:2181"
                       zkPassword=""
                         securityToken="abcd"
                       zkPath="/activemq/leveldb-stores"
               />

         </persistenceAdapter>



--
View this message in context: http://activemq.2283324.n4.nabble.com/Replicated-LevelDB-store-issues-tp4685793.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Search Discussions

  • Kevin Burton at Sep 23, 2014 at 4:29 pm
    Look at the cause … see below.

    It’s a NoSuchMethodError…

    You have the wrong version of guava sitting around… or one of the .jars
    you’re using is newer and compiled for a newer version of guava :-(

    I know.. not fun. I think this is an issue regarding 17 removing this
    method but 15 having it and a LOT of libraries use this version.

    But if you have a newer jar using 17 you would have to regress...
    Caused by: java.lang.NoSuchMethodError:
    com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
             at org.iq80.leveldb.impl.MMapLogWriter.close(MMapLogWriter.java:83)
             at
    org.iq80.leveldb.impl.VersionSet.initializeIfNeeded(VersionSet.java:111)
             at org.iq80.leveldb.impl.VersionSet.(DbImpl.java:178)
             at org.iq80.leveldb.impl.Iq80DBFactory.open(Iq80DBFactory.java:59)
             at
    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_
    init$2.apply$mcV$sp(LevelDBClient.scala:661)
             at
    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_
    init$2.apply(LevelDBClient.scala:657)
             at
    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_
    init$2.apply(LevelDBClient.scala:657)
             at
    org.apache.activemq.leveldb.LevelDBClient.might_fail(
    LevelDBClient.scala:549)
             ... 11 more
    On Tue, Sep 23, 2014 at 2:29 AM, davidvg77 wrote:

    Hi all,


    I'm getting this exception when starting ActiveMQ with following
    persistence
    configuration.
    Currently, an instance is elected as a master, but in that moment, i get
    this exception:

    java.io.IOException:
    com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
    at

    org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:39)
    at

    org.apache.activemq.leveldb.LevelDBClient.might_fail(LevelDBClient.scala:552)
    at

    org.apache.activemq.leveldb.LevelDBClient.replay_init(LevelDBClient.scala:657)
    at
    org.apache.activemq.leveldb.LevelDBClient.start(LevelDBClient.scala:558)
    at org.apache.activemq.leveldb.DBManager.start(DBManager.scala:648)
    at
    org.apache.activemq.leveldb.LevelDBStore.doStart(LevelDBStore.scala:235)
    at

    org.apache.activemq.leveldb.replicated.MasterLevelDBStore.doStart(MasterLevelDBStore.scala:110)
    at
    org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
    at

    org.apache.activemq.leveldb.replicated.ElectingLevelDBStore$$anonfun$start_master$1.apply$mcV$sp(ElectingLevelDBStore.scala:226)
    at
    org.fusesource.hawtdispatch.package$$anon$4.run(hawtdispatch.scala:330)
    at

    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
    at

    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:701)
    Caused by: java.lang.NoSuchMethodError:
    com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
    at org.iq80.leveldb.impl.MMapLogWriter.close(MMapLogWriter.java:83)
    at
    org.iq80.leveldb.impl.VersionSet.initializeIfNeeded(VersionSet.java:111)
    at org.iq80.leveldb.impl.VersionSet.<init>(VersionSet.java:91)
    at org.iq80.leveldb.impl.DbImpl.<init>(DbImpl.java:178)
    at org.iq80.leveldb.impl.Iq80DBFactory.open(Iq80DBFactory.java:59)
    at

    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_init$2.apply$mcV$sp(LevelDBClient.scala:661)
    at

    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_init$2.apply(LevelDBClient.scala:657)
    at

    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_init$2.apply(LevelDBClient.scala:657)
    at

    org.apache.activemq.leveldb.LevelDBClient.might_fail(LevelDBClient.scala:549)
    ... 11 more

    Persistence configuration:
    <persistenceAdapter>

    <replicatedLevelDB
    directory="activemq-data"
    replicas="3"
    bind="tcp://0.0.0.0:8888"
    zkAddress="172.0.3.25:2181"
    zkPassword=""
    securityToken="abcd"
    zkPath="/activemq/leveldb-stores"
    />

    </persistenceAdapter>



    --
    View this message in context:
    http://activemq.2283324.n4.nabble.com/Replicated-LevelDB-store-issues-tp4685793.html
    Sent from the ActiveMQ - User mailing list archive at Nabble.com.


    --

    Founder/CEO Spinn3r.com
    Location: *San Francisco, CA*
    blog: http://burtonator.wordpress.com
    … or check out my Google+ profile
    <https://plus.google.com/102718274791889610666/posts>
    <http://spinn3r.com>
  • Kevin Burton at Sep 23, 2014 at 4:31 pm
    … and I seem to recall that I fixed this and had to rm a jar or move it to
    a specific directory. But I’ve long forgotten which one :-( ….

    So to help you resolve this here are all the .jars in my activemq 5.10
    install… you can just diff your .jars and probably figure out what’s wrong.


    ./bin/wrapper.jar

    ./bin/activemq.jar

    ./activemq-all-5.10.0.jar

    ./lib/activemq-web-5.10.0.jar

    ./lib/activemq-kahadb-store-5.10.0.jar

    ./lib/slf4j-api-1.7.5.jar

    ./lib/activemq-openwire-legacy-5.10.0.jar

    ./lib/activemq-console-5.10.0.jar

    ./lib/jcl-over-slf4j-1.7.5.jar

    ./lib/hawtbuf-1.10.jar

    ./lib/insight-log-core-7.2.0.redhat-024.jar

    ./lib/geronimo-jms_1.1_spec-1.1.1.jar

    ./lib/activemq-protobuf-1.1.jar

    ./lib/extra/mqtt-client-1.10.jar

    ./lib/optional/jaxb2-basics-runtime-0.6.4.jar

    ./lib/optional/spring-jms-3.2.8.RELEASE.jar

    ./lib/optional/jasypt-1.9.1.jar

    ./lib/optional/xbean-spring-3.16.jar

    ./lib/optional/guava-12.0.jar

    ./lib/optional/commons-beanutils-1.8.3.jar

    ./lib/optional/activemq-shiro-5.10.0.jar

    ./lib/optional/activemq-log4j-appender-5.10.0.jar

    ./lib/optional/jackson-mapper-asl-1.9.12.jar

    ./lib/optional/spring-aop-3.2.8.RELEASE.jar

    ./lib/optional/leveldb-0.6.jar

    ./lib/optional/org.apache.servicemix.bundles.josql-1.5_5.jar

    ./lib/optional/hawtjni-runtime-1.9.jar

    ./lib/optional/spring-core-3.2.8.RELEASE.jar

    ./lib/optional/hawtdispatch-transport-1.21.jar

    ./lib/optional/org.linkedin.util-core-1.4.0.jar

    ./lib/optional/activemq-runtime-config-5.10.0.jar

    ./lib/optional/proton-jms-0.7.jar

    ./lib/optional/activeio-core-3.1.4.jar

    ./lib/optional/slf4j-log4j12-1.7.5.jar

    ./lib/optional/shiro-core-1.2.2.jar

    ./lib/optional/jackson-core-asl-1.9.12.jar

    ./lib/optional/leveldbjni-1.8.jar

    ./lib/optional/jmdns-3.4.1.jar

    ./lib/optional/hawtdispatch-1.21.jar

    ./lib/optional/spring-beans-3.2.8.RELEASE.jar

    ./lib/optional/activemq-amqp-5.10.0.jar

    ./lib/optional/activemq-jms-pool-5.10.0.jar

    ./lib/optional/zookeeper-3.4.5.jar

    ./lib/optional/commons-net-3.3.jar

    ./lib/optional/jettison-1.3.5.jar

    ./lib/optional/velocity-1.7.jar

    ./lib/optional/activemq-leveldb-store-5.10.0.jar

    ./lib/optional/activemq-mqtt-5.10.0.jar

    ./lib/optional/hawtdispatch-scala-2.11-1.21.jar

    ./lib/optional/commons-dbcp-1.4.jar

    ./lib/optional/scala-library-2.11.0.jar

    ./lib/optional/activemq-http-5.10.0.jar

    ./lib/optional/commons-pool-1.6.jar

    ./lib/optional/snappy-java-1.1.0.1.jar

    ./lib/optional/log4j-1.2.17.jar

    ./lib/optional/spring-expression-3.2.8.RELEASE.jar

    ./lib/optional/snappy-0.2.jar

    ./lib/optional/activemq-stomp-5.10.0.jar

    ./lib/optional/activemq-partition-5.10.0.jar

    ./lib/optional/activemq-jdbc-store-5.10.0.jar

    ./lib/optional/commons-collections-3.2.1.jar

    ./lib/optional/activemq-pool-5.10.0.jar

    ./lib/optional/httpclient-4.2.5.jar

    ./lib/optional/httpcore-4.2.4.jar

    ./lib/optional/xstream-1.4.7.jar

    ./lib/optional/geronimo-j2ee-connector_1.5_spec-2.0.0.jar

    ./lib/optional/org.linkedin.zookeeper-impl-1.4.0.jar

    ./lib/optional/hawtbuf-proto-1.10.jar

    ./lib/optional/proton-j-0.7.jar

    ./lib/optional/jasypt-spring3-1.9.1.jar

    ./lib/optional/spring-tx-3.2.8.RELEASE.jar

    ./lib/optional/shiro-spring-1.2.2.jar

    ./lib/optional/spring-oxm-3.2.8.RELEASE.jar

    ./lib/optional/commons-lang-2.6.jar

    ./lib/optional/leveldb-api-0.6.jar

    ./lib/optional/commons-codec-1.6.jar

    ./lib/optional/spring-context-3.2.8.RELEASE.jar

    ./lib/optional/xpp3-1.1.4c.jar

    ./lib/activemq-spring-5.10.0.jar

    ./lib/geronimo-j2ee-management_1.1_spec-1.0.1.jar

    ./lib/activemq-broker-5.10.0.jar

    ./lib/activemq-client-5.10.0.jar

    ./lib/camel/camel-spring-2.13.1.jar

    ./lib/camel/camel-core-2.13.1.jar

    ./lib/camel/activemq-camel-5.10.0.jar

    ./lib/camel/camel-jms-2.13.1.jar

    ./lib/geronimo-jta_1.0.1B_spec-1.0.1.jar

    ./lib/web/spring-web-3.2.8.RELEASE.jar

    ./lib/web/jdom-1.0.jar

    ./lib/web/jsp-api-2.1-glassfish-2.1.v20100127.jar

    ./lib/web/jetty-all-server-7.6.9.v20130131.jar

    ./lib/web/jsp-2.1-glassfish-2.1.v20100127.jar

    ./lib/web/json-simple-1.1.jar

    ./lib/web/jetty-websocket-7.6.9.v20130131.jar

    ./lib/web/spring-webmvc-3.2.8.RELEASE.jar

    ./lib/web/geronimo-servlet_2.5_spec-1.2.jar

    ./lib/web/core-3.1.1.jar

    ./lib/web/jolokia-core-1.2.1.jar

    ./lib/web/rome-1.0.jar

    ./lib/insight-log4j-7.2.0.redhat-024-patched.jar

    ./lib/activemq-jaas-5.10.0.jar
    On Tue, Sep 23, 2014 at 9:28 AM, Kevin Burton wrote:

    Look at the cause … see below.

    It’s a NoSuchMethodError…

    You have the wrong version of guava sitting around… or one of the .jars
    you’re using is newer and compiled for a newer version of guava :-(

    I know.. not fun. I think this is an issue regarding 17 removing this
    method but 15 having it and a LOT of libraries use this version.

    But if you have a newer jar using 17 you would have to regress...
    Caused by: java.lang.NoSuchMethodError:
    com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
    at org.iq80.leveldb.impl.MMapLogWriter.close(
    MMapLogWriter.java:83)
    at
    org.iq80.leveldb.impl.VersionSet.initializeIfNeeded(VersionSet.java:111)
    at org.iq80.leveldb.impl.VersionSet.<init>(VersionSet.java:91)
    at org.iq80.leveldb.impl.DbImpl.<init>(DbImpl.java:178)
    at org.iq80.leveldb.impl.Iq80DBFactory.open(Iq80DBFactory.java:59)
    at
    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_
    init$2.apply$mcV$sp(LevelDBClient.scala:661)
    at
    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_
    init$2.apply(LevelDBClient.scala:657)
    at
    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_
    init$2.apply(LevelDBClient.scala:657)
    at
    org.apache.activemq.leveldb.LevelDBClient.might_fail(
    LevelDBClient.scala:549)
    ... 11 more
    On Tue, Sep 23, 2014 at 2:29 AM, davidvg77 wrote:

    Hi all,


    I'm getting this exception when starting ActiveMQ with following
    persistence
    configuration.
    Currently, an instance is elected as a master, but in that moment, i get
    this exception:

    java.io.IOException:
    com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
    at

    org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:39)
    at

    org.apache.activemq.leveldb.LevelDBClient.might_fail(LevelDBClient.scala:552)
    at

    org.apache.activemq.leveldb.LevelDBClient.replay_init(LevelDBClient.scala:657)
    at
    org.apache.activemq.leveldb.LevelDBClient.start(LevelDBClient.scala:558)
    at
    org.apache.activemq.leveldb.DBManager.start(DBManager.scala:648)
    at
    org.apache.activemq.leveldb.LevelDBStore.doStart(LevelDBStore.scala:235)
    at

    org.apache.activemq.leveldb.replicated.MasterLevelDBStore.doStart(MasterLevelDBStore.scala:110)
    at
    org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
    at

    org.apache.activemq.leveldb.replicated.ElectingLevelDBStore$$anonfun$start_master$1.apply$mcV$sp(ElectingLevelDBStore.scala:226)
    at
    org.fusesource.hawtdispatch.package$$anon$4.run(hawtdispatch.scala:330)
    at

    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1146)
    at

    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:701)
    Caused by: java.lang.NoSuchMethodError:
    com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
    at
    org.iq80.leveldb.impl.MMapLogWriter.close(MMapLogWriter.java:83)
    at
    org.iq80.leveldb.impl.VersionSet.initializeIfNeeded(VersionSet.java:111)
    at org.iq80.leveldb.impl.VersionSet.<init>(VersionSet.java:91)
    at org.iq80.leveldb.impl.DbImpl.<init>(DbImpl.java:178)
    at org.iq80.leveldb.impl.Iq80DBFactory.open(Iq80DBFactory.java:59)
    at

    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_init$2.apply$mcV$sp(LevelDBClient.scala:661)
    at

    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_init$2.apply(LevelDBClient.scala:657)
    at

    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_init$2.apply(LevelDBClient.scala:657)
    at

    org.apache.activemq.leveldb.LevelDBClient.might_fail(LevelDBClient.scala:549)
    ... 11 more

    Persistence configuration:
    <persistenceAdapter>

    <replicatedLevelDB
    directory="activemq-data"
    replicas="3"
    bind="tcp://0.0.0.0:8888"
    zkAddress="172.0.3.25:2181"
    zkPassword=""
    securityToken="abcd"
    zkPath="/activemq/leveldb-stores"
    />

    </persistenceAdapter>



    --
    View this message in context:
    http://activemq.2283324.n4.nabble.com/Replicated-LevelDB-store-issues-tp4685793.html
    Sent from the ActiveMQ - User mailing list archive at Nabble.com.


    --

    Founder/CEO Spinn3r.com
    Location: *San Francisco, CA*
    blog: http://burtonator.wordpress.com
    … or check out my Google+ profile
    <https://plus.google.com/102718274791889610666/posts>
    <http://spinn3r.com>

    --

    Founder/CEO Spinn3r.com
    Location: *San Francisco, CA*
    blog: http://burtonator.wordpress.com
    … or check out my Google+ profile
    <https://plus.google.com/102718274791889610666/posts>
    <http://spinn3r.com>
  • Justin Reock at Sep 23, 2014 at 5:07 pm
    Remove the ³pax-url-aether-1.5.2.jar² from /lib to resolve this issue.

    Thanks,

    Justin Reock
    OpenLogic
    Www.openlogic.com
    On 9/23/14, 12:31 PM, "Kevin Burton" wrote:

    Š and I seem to recall that I fixed this and had to rm a jar or move it to
    a specific directory. But I¹ve long forgotten which one :-( Š.

    So to help you resolve this here are all the .jars in my activemq 5.10
    installŠ you can just diff your .jars and probably figure out what¹s
    wrong.


    ./bin/wrapper.jar

    ./bin/activemq.jar

    ./activemq-all-5.10.0.jar

    ./lib/activemq-web-5.10.0.jar

    ./lib/activemq-kahadb-store-5.10.0.jar

    ./lib/slf4j-api-1.7.5.jar

    ./lib/activemq-openwire-legacy-5.10.0.jar

    ./lib/activemq-console-5.10.0.jar

    ./lib/jcl-over-slf4j-1.7.5.jar

    ./lib/hawtbuf-1.10.jar

    ./lib/insight-log-core-7.2.0.redhat-024.jar

    ./lib/geronimo-jms_1.1_spec-1.1.1.jar

    ./lib/activemq-protobuf-1.1.jar

    ./lib/extra/mqtt-client-1.10.jar

    ./lib/optional/jaxb2-basics-runtime-0.6.4.jar

    ./lib/optional/spring-jms-3.2.8.RELEASE.jar

    ./lib/optional/jasypt-1.9.1.jar

    ./lib/optional/xbean-spring-3.16.jar

    ./lib/optional/guava-12.0.jar

    ./lib/optional/commons-beanutils-1.8.3.jar

    ./lib/optional/activemq-shiro-5.10.0.jar

    ./lib/optional/activemq-log4j-appender-5.10.0.jar

    ./lib/optional/jackson-mapper-asl-1.9.12.jar

    ./lib/optional/spring-aop-3.2.8.RELEASE.jar

    ./lib/optional/leveldb-0.6.jar

    ./lib/optional/org.apache.servicemix.bundles.josql-1.5_5.jar

    ./lib/optional/hawtjni-runtime-1.9.jar

    ./lib/optional/spring-core-3.2.8.RELEASE.jar

    ./lib/optional/hawtdispatch-transport-1.21.jar

    ./lib/optional/org.linkedin.util-core-1.4.0.jar

    ./lib/optional/activemq-runtime-config-5.10.0.jar

    ./lib/optional/proton-jms-0.7.jar

    ./lib/optional/activeio-core-3.1.4.jar

    ./lib/optional/slf4j-log4j12-1.7.5.jar

    ./lib/optional/shiro-core-1.2.2.jar

    ./lib/optional/jackson-core-asl-1.9.12.jar

    ./lib/optional/leveldbjni-1.8.jar

    ./lib/optional/jmdns-3.4.1.jar

    ./lib/optional/hawtdispatch-1.21.jar

    ./lib/optional/spring-beans-3.2.8.RELEASE.jar

    ./lib/optional/activemq-amqp-5.10.0.jar

    ./lib/optional/activemq-jms-pool-5.10.0.jar

    ./lib/optional/zookeeper-3.4.5.jar

    ./lib/optional/commons-net-3.3.jar

    ./lib/optional/jettison-1.3.5.jar

    ./lib/optional/velocity-1.7.jar

    ./lib/optional/activemq-leveldb-store-5.10.0.jar

    ./lib/optional/activemq-mqtt-5.10.0.jar

    ./lib/optional/hawtdispatch-scala-2.11-1.21.jar

    ./lib/optional/commons-dbcp-1.4.jar

    ./lib/optional/scala-library-2.11.0.jar

    ./lib/optional/activemq-http-5.10.0.jar

    ./lib/optional/commons-pool-1.6.jar

    ./lib/optional/snappy-java-1.1.0.1.jar

    ./lib/optional/log4j-1.2.17.jar

    ./lib/optional/spring-expression-3.2.8.RELEASE.jar

    ./lib/optional/snappy-0.2.jar

    ./lib/optional/activemq-stomp-5.10.0.jar

    ./lib/optional/activemq-partition-5.10.0.jar

    ./lib/optional/activemq-jdbc-store-5.10.0.jar

    ./lib/optional/commons-collections-3.2.1.jar

    ./lib/optional/activemq-pool-5.10.0.jar

    ./lib/optional/httpclient-4.2.5.jar

    ./lib/optional/httpcore-4.2.4.jar

    ./lib/optional/xstream-1.4.7.jar

    ./lib/optional/geronimo-j2ee-connector_1.5_spec-2.0.0.jar

    ./lib/optional/org.linkedin.zookeeper-impl-1.4.0.jar

    ./lib/optional/hawtbuf-proto-1.10.jar

    ./lib/optional/proton-j-0.7.jar

    ./lib/optional/jasypt-spring3-1.9.1.jar

    ./lib/optional/spring-tx-3.2.8.RELEASE.jar

    ./lib/optional/shiro-spring-1.2.2.jar

    ./lib/optional/spring-oxm-3.2.8.RELEASE.jar

    ./lib/optional/commons-lang-2.6.jar

    ./lib/optional/leveldb-api-0.6.jar

    ./lib/optional/commons-codec-1.6.jar

    ./lib/optional/spring-context-3.2.8.RELEASE.jar

    ./lib/optional/xpp3-1.1.4c.jar

    ./lib/activemq-spring-5.10.0.jar

    ./lib/geronimo-j2ee-management_1.1_spec-1.0.1.jar

    ./lib/activemq-broker-5.10.0.jar

    ./lib/activemq-client-5.10.0.jar

    ./lib/camel/camel-spring-2.13.1.jar

    ./lib/camel/camel-core-2.13.1.jar

    ./lib/camel/activemq-camel-5.10.0.jar

    ./lib/camel/camel-jms-2.13.1.jar

    ./lib/geronimo-jta_1.0.1B_spec-1.0.1.jar

    ./lib/web/spring-web-3.2.8.RELEASE.jar

    ./lib/web/jdom-1.0.jar

    ./lib/web/jsp-api-2.1-glassfish-2.1.v20100127.jar

    ./lib/web/jetty-all-server-7.6.9.v20130131.jar

    ./lib/web/jsp-2.1-glassfish-2.1.v20100127.jar

    ./lib/web/json-simple-1.1.jar

    ./lib/web/jetty-websocket-7.6.9.v20130131.jar

    ./lib/web/spring-webmvc-3.2.8.RELEASE.jar

    ./lib/web/geronimo-servlet_2.5_spec-1.2.jar

    ./lib/web/core-3.1.1.jar

    ./lib/web/jolokia-core-1.2.1.jar

    ./lib/web/rome-1.0.jar

    ./lib/insight-log4j-7.2.0.redhat-024-patched.jar

    ./lib/activemq-jaas-5.10.0.jar
    On Tue, Sep 23, 2014 at 9:28 AM, Kevin Burton wrote:

    Look at the cause Š see below.

    It¹s a NoSuchMethodErrorŠ

    You have the wrong version of guava sitting aroundŠ or one of the .jars
    you¹re using is newer and compiled for a newer version of guava :-(

    I know.. not fun. I think this is an issue regarding 17 removing this
    method but 15 having it and a LOT of libraries use this version.

    But if you have a newer jar using 17 you would have to regress...
    Caused by: java.lang.NoSuchMethodError:
    com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
    at org.iq80.leveldb.impl.MMapLogWriter.close(
    MMapLogWriter.java:83)
    at
    org.iq80.leveldb.impl.VersionSet.initializeIfNeeded(VersionSet.java:111)
    at org.iq80.leveldb.impl.VersionSet.<init>(VersionSet.java:91)
    at org.iq80.leveldb.impl.DbImpl.<init>(DbImpl.java:178)
    at
    org.iq80.leveldb.impl.Iq80DBFactory.open(Iq80DBFactory.java:59)
    at
    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_
    init$2.apply$mcV$sp(LevelDBClient.scala:661)
    at
    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_
    init$2.apply(LevelDBClient.scala:657)
    at
    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_
    init$2.apply(LevelDBClient.scala:657)
    at
    org.apache.activemq.leveldb.LevelDBClient.might_fail(
    LevelDBClient.scala:549)
    ... 11 more

    On Tue, Sep 23, 2014 at 2:29 AM, davidvg77 <david.visiedo@gmail.com>
    wrote:
    Hi all,


    I'm getting this exception when starting ActiveMQ with following
    persistence
    configuration.
    Currently, an instance is elected as a master, but in that moment, i
    get
    this exception:

    java.io.IOException:
    com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
    at


    org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.ja
    va:39)
    at


    org.apache.activemq.leveldb.LevelDBClient.might_fail(LevelDBClient.scala
    :552)
    at


    org.apache.activemq.leveldb.LevelDBClient.replay_init(LevelDBClient.scal
    a:657)
    at

    org.apache.activemq.leveldb.LevelDBClient.start(LevelDBClient.scala:558)
    at
    org.apache.activemq.leveldb.DBManager.start(DBManager.scala:648)
    at

    org.apache.activemq.leveldb.LevelDBStore.doStart(LevelDBStore.scala:235)
    at


    org.apache.activemq.leveldb.replicated.MasterLevelDBStore.doStart(Master
    LevelDBStore.scala:110)
    at
    org.apache.activemq.util.ServiceSupport.start(ServiceSupport.java:55)
    at


    org.apache.activemq.leveldb.replicated.ElectingLevelDBStore$$anonfun$sta
    rt_master$1.apply$mcV$sp(ElectingLevelDBStore.scala:226)
    at
    org.fusesource.hawtdispatch.package$$anon$4.run(hawtdispatch.scala:330)
    at


    java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.jav
    a:1146)
    at


    java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.ja
    va:615)
    at java.lang.Thread.run(Thread.java:701)
    Caused by: java.lang.NoSuchMethodError:
    com.google.common.io.Closeables.closeQuietly(Ljava/io/Closeable;)V
    at
    org.iq80.leveldb.impl.MMapLogWriter.close(MMapLogWriter.java:83)
    at

    org.iq80.leveldb.impl.VersionSet.initializeIfNeeded(VersionSet.java:111)
    at org.iq80.leveldb.impl.VersionSet.<init>(VersionSet.java:91)
    at org.iq80.leveldb.impl.DbImpl.<init>(DbImpl.java:178)
    at
    org.iq80.leveldb.impl.Iq80DBFactory.open(Iq80DBFactory.java:59)
    at


    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_init$2.apply$m
    cV$sp(LevelDBClient.scala:661)
    at


    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_init$2.apply(L
    evelDBClient.scala:657)
    at


    org.apache.activemq.leveldb.LevelDBClient$$anonfun$replay_init$2.apply(L
    evelDBClient.scala:657)
    at


    org.apache.activemq.leveldb.LevelDBClient.might_fail(LevelDBClient.scala
    :549)
    ... 11 more

    Persistence configuration:
    <persistenceAdapter>

    <replicatedLevelDB
    directory="activemq-data"
    replicas="3"
    bind="tcp://0.0.0.0:8888"
    zkAddress="172.0.3.25:2181"
    zkPassword=""
    securityToken="abcd"
    zkPath="/activemq/leveldb-stores"
    />

    </persistenceAdapter>



    --
    View this message in context:

    http://activemq.2283324.n4.nabble.com/Replicated-LevelDB-store-issues-tp
    4685793.html
    Sent from the ActiveMQ - User mailing list archive at Nabble.com.


    --

    Founder/CEO Spinn3r.com
    Location: *San Francisco, CA*
    blog: http://burtonator.wordpress.com
    Š or check out my Google+ profile
    <https://plus.google.com/102718274791889610666/posts>
    <http://spinn3r.com>

    --

    Founder/CEO Spinn3r.com
    Location: *San Francisco, CA*
    blog: http://burtonator.wordpress.com
    Š or check out my Google+ profile
    <https://plus.google.com/102718274791889610666/posts>
    <http://spinn3r.com>
  • Davidvg77 at Sep 24, 2014 at 8:54 pm
    Thank you very much for your response.

    I didn't notice but there was a guava-16.jar in my /usr/lib/jvm/..../lib/ext
    directory.

    I solved it deleting guava-16.jar from that directory, and downloading
    guava-15.jar and copying it to activemq/lib directory.



    --
    View this message in context: http://activemq.2283324.n4.nabble.com/Replicated-LevelDB-store-issues-tp4685793p4685838.html
    Sent from the ActiveMQ - User mailing list archive at Nabble.com.
  • Kevin Burton at Sep 25, 2014 at 9:03 pm
    Ah.. yes. That’s super frustrating… This issue with this bug has hit other
    projects I work on. I wonder if someone should file a bug report with
    guava and possible add the method back in but deprecate it.

    I’m not sure of all of the challenges here though.
    On Wed, Sep 24, 2014 at 1:53 PM, davidvg77 wrote:

    Thank you very much for your response.

    I didn't notice but there was a guava-16.jar in my
    /usr/lib/jvm/..../lib/ext
    directory.

    I solved it deleting guava-16.jar from that directory, and downloading
    guava-15.jar and copying it to activemq/lib directory.



    --
    View this message in context:
    http://activemq.2283324.n4.nabble.com/Replicated-LevelDB-store-issues-tp4685793p4685838.html
    Sent from the ActiveMQ - User mailing list archive at Nabble.com.


    --

    Founder/CEO Spinn3r.com
    Location: *San Francisco, CA*
    blog: http://burtonator.wordpress.com
    … or check out my Google+ profile
    <https://plus.google.com/102718274791889610666/posts>
    <http://spinn3r.com>

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupusers @
categoriesactivemq
postedSep 23, '14 at 2:55p
activeSep 25, '14 at 9:03p
posts6
users3
websiteactivemq.apache.org

People

Translate

site design / logo © 2022 Grokbase