https://issues.apache.org/bugzilla/show_bug.cgi?id=44649
Summary: JMS Hangs when a Root Appender
Product: Log4j
Version: 1.2
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P2
Component: Appender
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
Trying the JMS example from log4j commercial book, I found that it got this far
and just hung:
log4j: Threshold ="null".
log4j: Retreiving an instance of org.apache.log4j.Logger.
log4j: Setting [chapter3.Foo] additivity to [true].
log4j: Level value for chapter3.Foo is [debug].
log4j: chapter3.Foo level set to DEBUG
log4j: Class name: [org.apache.log4j.net.JMSAppender]
howdy
log4j: Setting property [initialContextFactoryName] to
[org.jnp.interfaces.NamingContextFactory].
log4j: Setting property [providerURL] to [jnp://localhost:1099].
log4j: Setting property [URLPkgPrefixes] to
[org.jboss.naming:org.jnp.interfaces].
log4j: Setting property [topicConnectionFactoryBindingName] to
[ConnectionFactory].
log4j: Setting property [topicBindingName] to [topic/statusLog].
log4j: Setting property [locationInfo] to [true].
log4j: Getting initial context.
log4j: Looking up [ConnectionFactory]
log4j:WARN No appenders could be found for logger
(org.jboss.mq.referenceable.SpyConnectionFactoryObjectFactory).
log4j:WARN Please initialize the log4j system properly.
log4j: About to create TopicConnection.
I solved this problem by getting the JMS logger out of the
"SpyConnectionFactoryObjectFactory" logger tree. Basically, the log was kicking
off JMS, which then tried to log something to JMS and deadlock insues. Very
frustrating.
--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]