activemq应用,运行报错,但是不知道原因,烦请各位看一下,谢谢了
例子是网上的http://www.blogjava.net/kinkding/archive/2009/05/01.html,但是我按照步骤来却报错
报错内容如下:
运行JmsReceiver时报错:
session: ActiveMQSession {id=ID:PC-200906231247-3949-1312278614922-0:1:1,started=true}
destination: queue://testQueue
Exception in thread "main"
java.lang.AbstractMethodError: org.slf4j.impl.Log4jMDCAdapter.getCopyOfContextMap()Ljava/util/Map;
at org.slf4j.MDC.getCopyOfContextMap(MDC.java:176)
at org.apache.activemq.util.MDCHelper.getCopyOfContextMap(MDCHelper.java:30)
at org.apache.activemq.thread.PooledTaskRunner.<init>(PooledTaskRunner.java:42)
at org.apache.activemq.thread.TaskRunnerFactory.createTaskRunner(TaskRunnerFactory.java:80)
at org.apache.activemq.ActiveMQSessionExecutor.wakeup(ActiveMQSessionExecutor.java:101)
at org.apache.activemq.ActiveMQMessageConsumer.start(ActiveMQMessageConsumer.java:1339)
at org.apache.activemq.ActiveMQMessageConsumer.<init>(ActiveMQMessageConsumer.java:261)
at org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:1116)
at org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:1060)
at org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:973)
at org.apache.activemq.ActiveMQSession.createConsumer(ActiveMQSession.java:946)
at JmsReceiver.main(JmsReceiver.java:23)
activemq服务启动正常
------解决方案--------------------
老兄换的哪个版本的,我现在也遇见这个问题了。