[
https://issues.jboss.org/browse/ISPN-917?page=com.atlassian.jira.plugin.s...
]
Galder Zamarreño commented on ISPN-917:
---------------------------------------
Octavian, the code that you refer to has changed since CR1 and I can't seem to
replicate your issue. Could you try with 4.2.1-SNAPSHOT and see if the issue is still
present? The snapshot is already up, so you should be able to just update your pom.xml
Otherwise, could you please attach a test case for the issue?
ComponentsJMXRegistration.registerMBeans() throws when logging is
enabled and a bean ws already registered
----------------------------------------------------------------------------------------------------------
Key: ISPN-917
URL:
https://issues.jboss.org/browse/ISPN-917
Project: Infinispan
Issue Type: Bug
Components: Core API
Affects Versions: 4.2.1.CR1
Reporter: Octavian Florescu
Assignee: Galder Zamarreño
Line 99 throws, as String.format is NOT passed the objectName:
public void registerMBeans() throws CacheException {
try {
List<ResourceDMBean> resourceDMBeans =
getResourceDMBeansFromComponents();
boolean trace = log.isTraceEnabled();
for (ResourceDMBean resource : resourceDMBeans) {
ObjectName objectName = getObjectName(resource);
if (!mBeanServer.isRegistered(objectName)) {
try {
mBeanServer.registerMBean(resource, objectName);
if (trace) log.trace(String.format("Registered %s under %s",
resource, objectName));
} catch (InstanceAlreadyExistsException e) {
//this might happen if multiple instances are trying to concurrently
register same objectName
log.info("Could not register object with name:" + objectName
+ "(" + e.getMessage() + ")");
}
} else {
if (log.isDebugEnabled())
line 99: log.debug(String.format("Object name %s already
registered"), objectName);
}
}
}
catch (Exception e) {
throw new CacheException("Failure while registering mbeans", e);
}
}
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira