尝试发布 Java 对象时出现以下异常。任何指示表示赞赏。
2015-12-26 23:06:32,876 | WARN | stackref=151df5b0a0f
java.lang.NullPointerException
at org.apache.activemq.apollo.broker.QueueEntry$Swapped.swapped_in(QueueEntry.scala:809)
at org.apache.activemq.apollo.broker.QueueEntry$Swapped$$anonfun$swap_in$1$$anonfun$apply$2.apply$mcV$sp(QueueEntry.scala:764)
at org.apache.activemq.apollo.util.DeferringDispatched$$anon$1.run(Dispatched.scala:38)
at org.apache.activemq.apollo.util.DeferringDispatched$$anonfun$dispatch_queue_task_source$1$$anonfun$apply$mcV$sp$1.apply(Dispatched.scala:45)
at org.apache.activemq.apollo.util.DeferringDispatched$$anonfun$dispatch_queue_task_source$1$$anonfun$apply$mcV$sp$1.apply(Dispatched.scala:45)
at scala.collection.immutable.List.foreach(List.scala:309)
at scala.collection.generic.TraversableForwarder$class.foreach(TraversableForwarder.scala:32)
at scala.collection.mutable.ListBuffer.foreach(ListBuffer.scala:45)
at org.apache.activemq.apollo.util.DeferringDispatched$$anonfun$dispatch_queue_task_source$1.apply$mcV$sp(Dispatched.scala:45)
at org.fusesource.hawtdispatch.package$$anon$4.run(hawtdispatch.scala:357)
at org.fusesource.hawtdispatch.internal.HawtCustomDispatchSource$1.run(HawtCustomDispatchSource.java:127)
at org.fusesource.hawtdispatch.internal.SerialDispatchQueue.run(SerialDispatchQueue.java:100)
at org.fusesource.hawtdispatch.internal.pool.SimpleThread.run(SimpleThread.java:77)
ActiveMQ Apollo 在相当长的一段时间内几乎没有任何进展,并且怀疑是否还会有任何进展。您应该使用 ActiveMQ 5 或尝试 ActiveMQ Artemis 看看是否满足您的需求。