activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Borja" <adbo...@gmail.com>
Subject Problems with amq and log4j ...
Date Wed, 14 Feb 2007 01:03:05 GMT
Hi activemq devs!!

I'm having a problem with activemq and log4j ...

this is my log4j.properties :

log4j.appender.A1=org.apache.log4j.net.JMSAppender
log4j.appender.A1.InitialContextFactoryName=org.apache.activemq.jndi.ActiveMQInitialContextFactory
log4j.appender.A1.ProviderURL=tcp://dllo-aborja:61616
log4j.appender.A1.TopicBindingName=jms/log.queue
log4j.appender.A1.TopicConnectionFactoryBindingName=ConnectionFactory

log4j.appender.A1.layout=lineai.base.jms.util.log4j.XMLLayout

When i try to send log message, the following exception is thrown:

log4j:ERROR Error while activating options for appender named [A1].
javax.jms.JMSException: Wire format negociation timeout: peer did not send
his wire format.
    at org.apache.activemq.util.JMSExceptionSupport.create(
JMSExceptionSupport.java:58)
    at org.apache.activemq.ActiveMQConnection.syncSendPacket(
ActiveMQConnection.java:1181)
    at org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent (
ActiveMQConnection.java:1259)
    at org.apache.activemq.ActiveMQConnection.createSession(
ActiveMQConnection.java:274)
    at org.apache.activemq.ActiveMQConnection.createTopicSession(
ActiveMQConnection.java:960)
    at org.apache.log4j.net.JMSAppender.activateOptions (Unknown Source)
    at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java
:256)
    at org.apache.log4j.config.PropertySetter.setProperties(
PropertySetter.java:132)
    at org.apache.log4j.config.PropertySetter.setProperties(
PropertySetter.java :96)
    at org.apache.log4j.PropertyConfigurator.parseAppender(
PropertyConfigurator.java:654)
    at org.apache.log4j.PropertyConfigurator.parseCategory(
PropertyConfigurator.java:612)
    at org.apache.log4j.PropertyConfigurator.configureRootCategory (
PropertyConfigurator.java:509)
    at org.apache.log4j.PropertyConfigurator.doConfigure(
PropertyConfigurator.java:415)
    at org.apache.log4j.PropertyConfigurator.doConfigure(
PropertyConfigurator.java:441)
    at org.apache.log4j.PropertyConfigurator.configure (
PropertyConfigurator.java:336)
    at lineai.base.jms.util.log4j.LogTest.test(LogTest.java:12)
    at lineai.base.jms.util.log4j.LogTest.main(LogTest.java:24)
Caused by: java.io.IOException: Wire format negociation timeout: peer did
not send his wire format.
    at org.apache.activemq.transport.WireFormatNegotiator.oneway(
WireFormatNegotiator.java:88)
    at org.apache.activemq.transport.MutexTransport.oneway(
MutexTransport.java:43)
    at org.apache.activemq.transport.ResponseCorrelator.asyncRequest (
ResponseCorrelator.java:69)
    at org.apache.activemq.transport.ResponseCorrelator.request(
ResponseCorrelator.java:74)
    at org.apache.activemq.ActiveMQConnection.syncSendPacket(
ActiveMQConnection.java:1171)
    ... 15 more

Any ideas??

Thnx ...

David

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message