Return-Path: X-Original-To: apmail-activemq-dev-archive@www.apache.org Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 874CFD819 for ; Wed, 20 Feb 2013 17:09:13 +0000 (UTC) Received: (qmail 37487 invoked by uid 500); 20 Feb 2013 17:09:13 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 37398 invoked by uid 500); 20 Feb 2013 17:09:13 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 37389 invoked by uid 99); 20 Feb 2013 17:09:13 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 20 Feb 2013 17:09:13 +0000 Date: Wed, 20 Feb 2013 17:09:13 +0000 (UTC) From: "Timothy Bish (JIRA)" To: dev@activemq.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Closed] (AMQ-4318) activemq-broker throws KahaDB error MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMQ-4318?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Timothy Bish closed AMQ-4318. ----------------------------- Resolution: Not A Problem If not using activemq-all you need to add the activemq-kahadb-store dependency to you project as that's where the KahaDB persistence adapter is located. > activemq-broker throws KahaDB error > ----------------------------------- > > Key: AMQ-4318 > URL: https://issues.apache.org/jira/browse/AMQ-4318 > Project: ActiveMQ > Issue Type: Bug > Components: Broker > Affects Versions: 5.8.0 > Reporter: Jesse Bowes > > I just tried updating to 2.8.0 using the new activemq-broker and activemq-client modules instead of the previous activemq-core and get a KahaDB exception (see below). Using activemq-all works. Just naively trying add the latest kahadb to my pom didn't correct the issue. > I'm making the following calls: > ActiveMQConnectionFactory connectionFactory = new ActiveMQConnectionFactory("vm://localhost"); > connection = connectionFactory.createConnection(); > connection.start(); > session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE); > 364 [main] ERROR org.apache.activemq.broker.BrokerService - Failed to start Apache ActiveMQ (localhost, null). Reason: > ava.io.IOException: org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter > java.io.IOException: org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter > at org.apache.activemq.util.IOExceptionSupport.create(IOExceptionSupport.java:39) > at org.apache.activemq.broker.BrokerService.createPersistenceAdapter(BrokerService.java:2215) > at org.apache.activemq.broker.BrokerService.getPersistenceAdapter(BrokerService.java:1111) > at org.apache.activemq.broker.BrokerService.doStartPersistenceAdapter(BrokerService.java:592) > at org.apache.activemq.broker.BrokerService.startPersistenceAdapter(BrokerService.java:587) > at org.apache.activemq.broker.BrokerService.start(BrokerService.java:552) > at org.apache.activemq.transport.vm.VMTransportFactory.doCompositeConnect(VMTransportFactory.java:124) > at org.apache.activemq.transport.vm.VMTransportFactory.doConnect(VMTransportFactory.java:54) > at org.apache.activemq.transport.TransportFactory.connect(TransportFactory.java:64) > at org.apache.activemq.ActiveMQConnectionFactory.createTransport(ActiveMQConnectionFactory.java:250) > at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:265) > at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection(ActiveMQConnectionFactory.java:238) > at org.apache.activemq.ActiveMQConnectionFactory.createConnection(ActiveMQConnectionFactory.java:184) > at com.boeing.uclass.mcs.comm.UclassJMSCommManager.start(UclassJMSCommManager.java:100) > at com.boeing.uclass.uclass.inttest.CommListenerTest.SenderListenerTest(CommListenerTest.java:28) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47) > at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) > at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44) > at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) > at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26) > at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271) > at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70) > at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) > at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238) > at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63) > at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236) > at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53) > at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229) > at org.junit.runners.ParentRunner.run(ParentRunner.java:309) > at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) > at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:123) > at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:104) > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) > at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.lang.reflect.Method.invoke(Method.java:601) > at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:164) > at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:110) > at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:175) > at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcessWhenForked(SurefireStarter.java:107) > at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:68) > Caused by: java.lang.ClassNotFoundException: org.apache.activemq.store.kahadb.KahaDBPersistenceAdapter > at java.net.URLClassLoader$1.run(URLClassLoader.java:366) > at java.net.URLClassLoader$1.run(URLClassLoader.java:355) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:354) > at java.lang.ClassLoader.loadClass(ClassLoader.java:423) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) > at java.lang.ClassLoader.loadClass(ClassLoader.java:356) > at org.apache.activemq.broker.BrokerService.createPersistenceAdapter(BrokerService.java:2210) > ... 43 more > 373 [main] INFO org.apache.activemq.broker.BrokerService - Apache ActiveMQ 5.8.0 (localhost, null) is shutting down > 379 [JMX connector] INFO org.apache.activemq.broker.jmx.ManagementContext - JMX consoles can connect to service:jmx:rm > ///jndi/rmi://localhost:1099/jmxrmi > 383 [main] INFO org.apache.activemq.broker.BrokerService - Apache ActiveMQ 5.8.0 (localhost, null) uptime 0.153 second > 383 [main] INFO org.apache.activemq.broker.BrokerService - Apache ActiveMQ 5.8.0 (localhost, null) is shutdown -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira