activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Strachan" <james.strac...@gmail.com>
Subject Re: Problems with amq and log4j ...
Date Wed, 14 Feb 2007 10:30:08 GMT
Which version are you using? Also what appears in the broker's log
file - it seems the broker side is not responding properly

On 2/14/07, David Borja <adborja@gmail.com> wrote:
> 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
>


-- 

James
-------
http://radio.weblogs.com/0112098/

Mime
View raw message