activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <tabish...@gmail.com>
Subject Re: peer did not "send his wire format."
Date Wed, 13 Aug 2008 13:03:19 GMT
The code looks ok, so I'd do the following:

1. verify that you can reach the given address with ping.
2. verify that you don't have a firewall in between the client and
broker.
3. verify that the broker is configured to use an Openwire connection on
port 7001 as this is none standard configuration.

On Wed, 2008-08-13 at 05:54 -0700, crazy4venu wrote:
> Hi Tim,
> 
> i am sending this snippet of code which i am using to connect. 
> 
> kindly verify whether i am doing it right ?
> 
> 
> ActiveMQConnectionFactory* connectionFactory = new
> ActiveMQConnectionFactory("tcp://exchange.marketcetera.com:7001?wireFormat=openwire&transport.useAsyncSend=false");
> 
> 
> 
> 		// Create a Connection
> 		connection = connectionFactory->createConnection();
> 		
> 		connection->start();
> 
> 		// Create a Session
> 		session = connection->createSession( Session::AUTO_ACKNOWLEDGE );
> 
> 		destination = session->createQueue("testbed1");
> 
> 		// Create a MessageProducer from the Session to the Topic or Queue
> 		producer = session->createProducer( destination );
> 		producer->setDeliveryMode( DeliveryMode::NON_PERSISTENT );
> 
> 
> Note: still i am getting same error.
> 
> Regards
> Tinnu
> 
> 
> Timothy Bish wrote:
> > 
> > Do you have a broker running?  If so are is the IP Address and port you
> > are using correct for your broker?
> > 
> > 
> > 
> > On Wed, 2008-08-13 at 04:15 -0700, crazy4venu wrote:
> >> Hi Tim,
> >> 
> >> When i am trying to execute the sample Activemq example but i get strange
> >> message showing 
> >> 
> >> peer did not  "send his wire format."
> >> 
> >> 
> >> 
> >> =====================================================
> >> Starting the example:
> >> -----------------------------------------------------
> >> OpenWireFormatNegotiator::requestWire format negotiation timeout: peer
> >> did
> >> not s
> >> end his wire format.
> >>         FILE:
> >> ..\src\main\activemq\connector\openwire\OpenWireFormatNegotiator.c
> >> pp, LINE: 97
> >>         FILE:
> >> ..\src\main\activemq\connector\openwire\OpenWireFormatNegotiator.c
> >> pp, LINE: 106
> >>         FILE:
> >> ..\src\main\activemq\connector\openwire\OpenWireConnector.cpp,
> >> LIN
> >> E: 1454
> >>         FILE:
> >> ..\src\main\activemq\connector\openwire\OpenWireConnector.cpp,
> >> LIN
> >> E: 223
> >>         FILE:
> >> ..\src\main\activemq\connector\openwire\OpenWireConnector.cpp,
> >> LIN
> >> E: 157
> >>         FILE: ..\src\main\activemq\core\ActiveMQConnectionFactory.cpp,
> >> LINE:
> >> 174
> >> 
> >> -----------------------------------------------------
> >> Finished
> >> =====================================================
> >> 
> > 
> > 
> > 
> 


Mime
View raw message