activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Frank Enders <end...@averbis.de>
Subject Log4j JMS appender: Channel was inactive for too long
Date Fri, 07 Oct 2011 10:05:32 GMT
Dear all,

I am trying to use the Log4j JMS appender as described here:
http://activemq.apache.org/how-do-i-use-log4j-jms-appender-with-activemq.html
Unfortunately I run into an error while creating the TopicSession, which
leads to an "javax.jms.JMSException: Channel was inactive for too
(>30000) long" exception.

I am using AMQ 5.4.1, so Issue AMQ-2495 probably doesn't apply in my
case although the symptom seems to be the same.
Logs of org.apache.activemq are redirected to stdout as requested in the
manual.
Disabling inactivity monitoring as proposed here:
http://activemq.2283324.n4.nabble.com/Channel-was-inactive-for-too-long-td2344381.html#a2344384
did not have any effect neither.

Here is the full console output:

log4j: Using URL [****/log4j_jms.properties] for automatic log4j
configuration.
log4j: Reading configuration from URL file:****/log4j_jms.properties
log4j: Parsing for [root] with value=[INFO, stdout, jms].
log4j: Level token is [INFO].
log4j: Category root set to INFO
log4j: Parsing appender named "stdout".
log4j: Parsing layout options for "stdout".
log4j: Setting property [conversionPattern] to [%d %p %C %M %L >> %m%n].
log4j: End of parsing for "stdout".
log4j: Parsed "stdout" options.
log4j: Parsing appender named "jms".
log4j: Setting property [initialContextFactoryName] to
[org.apache.activemq.jndi.ActiveMQInitialContextFactory].
log4j: Setting property [topicBindingName] to [logTopic].
log4j: Setting property [topicConnectionFactoryBindingName] to
[ConnectionFactory].
log4j: Setting property [providerURL] to [tcp://localhost:61616].
log4j: Getting initial context.
log4j: Looking up [ConnectionFactory]
log4j: About to create TopicConnection.
log4j: Creating TopicSession, non-transactional, in AUTO_ACKNOWLEDGE mode.
log4j:ERROR Error while activating options for appender named [jms].
javax.jms.JMSException: Channel was inactive for too (>30000) long:
localhost/127.0.0.1:61616
        at
org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:49)
        at
org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1287)
        at
org.apache.activemq.AdvisoryConsumer.<init>(AdvisoryConsumer.java:50)
        at
org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1391)
        at
org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:309)
        at
org.apache.activemq.ActiveMQConnection.createTopicSession(ActiveMQConnection.java:1079)
        at
org.apache.log4j.net.JMSAppender.activateOptions(JMSAppender.java:217)
        at
org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)
        at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:133)
        at
org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:97)
        at
org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:689)
        at
org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:647)
        at
org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:544)
        at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:440)
        at
org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:476)
        at
org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:471)
        at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)
        at org.apache.log4j.Logger.getLogger(Logger.java:118)
        at
de.averbis.extraction.core.as.DeployASApplication.<clinit>(DeployASApplication.java:27)
Caused by: org.apache.activemq.transport.InactivityIOException: Channel
was inactive for too (>30000) long: localhost/127.0.0.1:61616
        at
org.apache.activemq.transport.InactivityMonitor$4.run(InactivityMonitor.java:186)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
log4j: Parsed "jms" options.
log4j: Parsing for [org.apache.activemq] with value=[INFO, stdout].
log4j: Level token is [INFO].
log4j: Category org.apache.activemq set to INFO
log4j: Parsing appender named "stdout".
log4j: Appender "stdout" was already parsed.
log4j: Handling log4j.additivity.org.apache.activemq=[null]
log4j: Parsing for [de.averbis] with value=[INFO, jms].
log4j: Level token is [INFO].
log4j: Category de.averbis set to INFO
log4j: Parsing appender named "jms".
log4j: Appender "jms" was already parsed.
log4j: Handling log4j.additivity.de.averbis=[null]
log4j: Finished configuring.

Any help is appreciated! Thanks and all the best!
Frank

Mime
View raw message