[jboss-jira] [JBoss JIRA] (JGRP-1942) MessageDispatcher obtaining log using getClass() causes issues with subclassing
Tristan Tarrant (JIRA)
issues at jboss.org
Wed Jul 22 03:59:02 EDT 2015
Tristan Tarrant created JGRP-1942:
-------------------------------------
Summary: MessageDispatcher obtaining log using getClass() causes issues with subclassing
Key: JGRP-1942
URL: https://issues.jboss.org/browse/JGRP-1942
Project: JGroups
Issue Type: Bug
Affects Versions: 3.6.4
Reporter: Tristan Tarrant
Assignee: Tristan Tarrant
Fix For: 3.6.5
When subclasses of MessageDispatcher obtain their own log, log4j 2.x wanrs of conflicting message factories because MessageDispatcher uses getClass() to obtain a log instance which may have been initialized elsewhere. The solution is for MessageDispatcher to obtain a log using its own class.
2015-07-21 19:58:45,981 WARN The Logger org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher was created with the message factory org.apache.logging.log4j.message.ParameterizedMessageFactory at 18fb808d and is now requested with the message factory org.apache.logging.log4j.message.StringFormatterMessageFactory at 6f84895e, which may create log events with unexpected formatting.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
More information about the jboss-jira
mailing list