You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by crazy4venu <cr...@gmail.com> on 2008/08/13 13:15:59 UTC
peer did not "send his wire format."
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
=====================================================
--
View this message in context: http://www.nabble.com/peer-did-not--%22send-his-wire-format.%22-tp18961130p18961130.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: peer did not "send his wire format."
Posted by Timothy Bish <ta...@gmail.com>.
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
> >> =====================================================
> >>
> >
> >
> >
>
Re: peer did not "send his wire format."
Posted by crazy4venu <cr...@gmail.com>.
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
>> =====================================================
>>
>
>
>
--
View this message in context: http://www.nabble.com/peer-did-not--%22send-his-wire-format.%22-tp18961130p18962453.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.
Re: peer did not "send his wire format."
Posted by Timothy Bish <ta...@gmail.com>.
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
> =====================================================
>