Author: orudyy
Date: Tue May 12 16:09:39 2015
New Revision: 1678993

URL: http://svn.apache.org/r1678993
Log:
QPID-6539: Force loading of RepParams class before EnvironmentFacade creation 
in order to avoid throwing of CME on Environment creation
           when BDB HA VHN is activated at the same time causing loading of 
RepParams class and modification of EnvironmentParams.SUPPORTED_PARAMS

Modified:
    
qpid/java/trunk/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/StandardEnvironmentFacadeFactory.java

Modified: 
qpid/java/trunk/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/StandardEnvironmentFacadeFactory.java
URL: 
http://svn.apache.org/viewvc/qpid/java/trunk/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/StandardEnvironmentFacadeFactory.java?rev=1678993&r1=1678992&r2=1678993&view=diff
==============================================================================
--- 
qpid/java/trunk/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/StandardEnvironmentFacadeFactory.java
 (original)
+++ 
qpid/java/trunk/bdbstore/src/main/java/org/apache/qpid/server/store/berkeleydb/StandardEnvironmentFacadeFactory.java
 Tue May 12 16:09:39 2015
@@ -22,11 +22,22 @@ package org.apache.qpid.server.store.ber
 
 import java.util.Map;
 
+import com.sleepycat.je.rep.impl.RepParams;
 import org.apache.qpid.server.model.ConfiguredObject;
 import org.apache.qpid.server.store.FileBasedSettings;
 
 public class StandardEnvironmentFacadeFactory implements 
EnvironmentFacadeFactory
 {
+
+    static
+    {
+        // Force loading of RepParams class and adding its ConfigParam objects 
into EnvironmentParams.SUPPORTED_PARAMS
+        // It is needed to avoid CME thrown from Iterator of 
EnvironmentParams.SUPPORTED_PARAMS on creation of Environment
+        // when BDB HA VHN instance is activated at the same time causing 
loading of RepParams class and modification of
+        // EnvironmentParams.SUPPORTED_PARAMS
+        RepParams.GROUP_NAME.getName();
+    }
+
     @SuppressWarnings("unchecked")
     @Override
     public EnvironmentFacade createEnvironmentFacade(final ConfiguredObject<?> 
parent)



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to