|
@@ -743,13 +743,21 @@ public abstract class AbstractProviderModule implements ProviderModule, Resource
|
|
}
|
|
}
|
|
|
|
|
|
} catch (Exception e) {
|
|
} catch (Exception e) {
|
|
- LOG.error("Exception while detecting JMX protocol for component: " +
|
|
|
|
- componentName, e);
|
|
|
|
- LOG.error("Defaulting to HTTP protocol for component: " +
|
|
|
|
|
|
+ LOG.error("Exception while detecting JMX protocol for clusterName = " + clusterName +
|
|
|
|
+ ", componentName = " + componentName, e);
|
|
|
|
+ LOG.error("Defaulting JMX to HTTP protocol for for clusterName = " + clusterName +
|
|
|
|
+ ", componentName = " + componentName +
|
|
|
|
+ componentName);
|
|
|
|
+ jmxProtocolString = "http";
|
|
|
|
+ }
|
|
|
|
+ if (jmxProtocolString == null) {
|
|
|
|
+ LOG.error("Detected JMX protocol is null for clusterName = " + clusterName +
|
|
|
|
+ ", componentName = " + componentName);
|
|
|
|
+ LOG.error("Defaulting JMX to HTTP protocol for for clusterName = " + clusterName +
|
|
|
|
+ ", componentName = " + componentName +
|
|
componentName);
|
|
componentName);
|
|
jmxProtocolString = "http";
|
|
jmxProtocolString = "http";
|
|
}
|
|
}
|
|
-
|
|
|
|
if (LOG.isDebugEnabled()) {
|
|
if (LOG.isDebugEnabled()) {
|
|
LOG.debug("JMXProtocol = " + jmxProtocolString + ", for clusterName=" + clusterName +
|
|
LOG.debug("JMXProtocol = " + jmxProtocolString + ", for clusterName=" + clusterName +
|
|
", componentName = " + componentName);
|
|
", componentName = " + componentName);
|