You should make sure you use matching versions of the ActiveMQ client and server jars. The error indicates that the client connected but did not receive the expected response from the JMS server. Are you sure you connected to the right port and there are no firewall rules that would cause problems?
On Jan 4, 2008 1:27 PM, Tom Johnson <[EMAIL PROTECTED]> wrote: > > I get the following error when attempting to use the JMSAdapter of Log4j to > write the messages to ActiveMQ: > > 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:1183) > at > org.apache.activemq.ActiveMQConnection.ensureConnectionInfoSent(ActiveMQConnection.java:1262) > at > org.apache.activemq.ActiveMQConnection.createSession(ActiveMQConnection.java:292) > at > org.apache.activemq.ActiveMQConnection.createTopicSession(ActiveMQConnection.java:978) > 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:334) > at > org.apache.log4j.PropertyConfigurator.configure(PropertyConfigurator.java:342) > at abandongui.aliDialog1.<init>(aliDialog1.java:46) > at abandongui.Frame1.jbInit(Frame1.java:119) > at abandongui.Frame1.<init>(Frame1.java:106) > at abandongui.mainApp.<init>(mainApp.java:43) > at abandongui.mainApp$1.run(mainApp.java:107) > at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:461) > at > java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242) > at > java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163) > at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157) > at > java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) > 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:85) > at > org.apache.activemq.transport.MutexTransport.oneway(MutexTransport.java:40) > at > org.apache.activemq.transport.ResponseCorrelator.asyncRequest(ResponseCorrelator.java:70) > at > org.apache.activemq.transport.ResponseCorrelator.request(ResponseCorrelator.java:75) > at > org.apache.activemq.ActiveMQConnection.syncSendPacket(ActiveMQConnection.java:1172) > ... 25 more > > Here is the appender declaration from the log4j.properties: > 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=AbandonGUI > log4j.appender.S1.topicConnectionFactoryBindingName=ConnectionFactory > log4j.appender.S1.LocationInfo=true > log4j.appender.S1.Threshold=DEBUG > > Use the GeronimoJMS library that came with ActiveMQ and the > activemq-all-5.0.0.jar in addition to log4j and commons logging. > > The machine is a Windows XP machine. Should I downgrade to a previous > version or am I missing something? > > > -- > View this message in context: > http://www.nabble.com/ActiveMQ-5-and-Log4j-JMSAppender-error-tp14622389s2354p14622389.html > Sent from the ActiveMQ - User mailing list archive at Nabble.com. > > -- Regards, Hiram Blog: http://hiramchirino.com Open Source SOA http://open.iona.com