activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jesse Bowes (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-4318) activemq-broker throws KahaDB error
Date Thu, 14 Feb 2013 17:08:13 GMT

    [ https://issues.apache.org/jira/browse/AMQ-4318?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13578496#comment-13578496
] 

Jesse Bowes commented on AMQ-4318:
----------------------------------

Thanks, that worked.  I would therefore propose activemq-kahadb-store be a maven dependency
of broker.
                
> 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

Mime
View raw message