[AMQ-6788] Explain how to fix the problem in the exception

(cherry picked from commit 8646bb1010d2632f5d405fe1761c2b9c99a0a139)


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/d5dfadd8
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/d5dfadd8
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/d5dfadd8

Branch: refs/heads/activemq-5.15.x
Commit: d5dfadd8d0280027bc4aee137870995f7f6b449c
Parents: 3b6ba77
Author: Christian Schneider <ch...@die-schneider.net>
Authored: Tue Aug 8 20:55:44 2017 +0200
Committer: Timothy Bish <tabish...@gmail.com>
Committed: Thu Sep 7 12:13:55 2017 -0400

----------------------------------------------------------------------
 .../src/main/java/org/apache/activemq/broker/BrokerService.java    | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/d5dfadd8/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java
----------------------------------------------------------------------
diff --git 
a/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java 
b/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java
index c177b76..f9cd50f 100644
--- 
a/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java
+++ 
b/activemq-broker/src/main/java/org/apache/activemq/broker/BrokerService.java
@@ -1787,6 +1787,8 @@ public class BrokerService implements Service {
                 this.tempDataStore = (PListStore) 
getClass().getClassLoader().loadClass(clazz).newInstance();
                 this.tempDataStore.setDirectory(getTmpDataDirectory());
                 configureService(tempDataStore);
+            } catch (ClassNotFoundException e) {
+                throw new RuntimeException("Kahadb class PListStoreImpl not 
found. Add activemq-kahadb jar or set persistent to false on BrokerService.", 
e);
             } catch (Exception e) {
                 throw new RuntimeException(e);
             }

Reply via email to