We just reproduced this exact problem. Have you discovered the solution to this?
regards. javadevel wrote: > > We are trying to create a distributed logging service using Log4J and JMS > appender to an ActiveMQ topic. However, we keep getting an error "Wire > format negotiation timeout: peer did not send his wire format" and the > message never gets delivered to the topic. Is there a bug with the > ActiveMQ connection factory or are we missing something. I have attached > the log4j.properties file below. > > Any help will be greatly appreciated. > > Config File > log4j.rootCategory=, S1 > > log4j.appender.S1=org.apache.log4j.net.JMSAppender > log4j.appender.S1.ProviderURL=tcp://localhost:61616 > log4j.appender.S1.InitialContextFactoryName=org.apache.activemq.jndi.ActiveMQInitialContextFactory > log4j.appender.S1.topicBindingName=esb.globalerrtopic > log4j.appender.S1.topicConnectionFactoryBindingName=ConnectionFactory > > Error Message > > log4j:ERROR Error while activating options for appender named [S1]. > javax.jms.JMSException: Wire format negotiation timeout: peer did not send > his wire format. > at > org.apache.activemq.util.JMSExceptionSupport.create(JMSExceptionSupport.java:62) > at > org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1206) > at > org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1289) > at > org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:295) > at > org.apache.activemq.ActiveMQConnection.createTopicSession(ActiveMQConnection.java:998) > 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 > examples.lf5.InitUsingLog4JProperties.InitUsingLog4JProperties.<clinit>(InitUsingLog4JProperties.java:14) > Caused by: java.io.IOException: Wire format negotiation timeout: peer did > not send his wire format. > at > org.apache.activemq.transport.WireFormatNegotiator.oneway(WireFormatNegotiator.java:94) > at > org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40) > at > org.apache.activemq.transport.ResponseCorrelator.asyncRequest(ResponseCorrelator.java:74) > at > org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:79) > at > org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1195) > > -- View this message in context: http://www.nabble.com/Log4J-ActiveMQ-JMS-Appender-tp18840199p19616076.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.