By setting the send timeout you are making the client more susceptible to failing because the broker is using flow control. Also a one second timeout is pretty short depending on how many client are using your broker and what the overall network load is, I'd recommend something a good deal higher, the error you are seeing comes from the fact the the client sent a message and was excepting a response from the broker that it never received.
Regards Tim. On Wed, 2009-01-28 at 03:15 -0800, Sebastien SOILEN wrote: > Hello, > > We are at the moment using ActiveMQ 5.2.0 with amq-cpp 2.2.3 through > pyactivemq. > The connection to the broker is done with these parameters: > tcp://127.0.0.1:61616?connection.closeTimeout=1000&connection.sendTimeout=1000 > > After a few hours working, we get this exception in some of our processes > when sending messages: > > CMSException: No valid response received for command: Begin Class = > ActiveMQTextMessage > Begin Class = ActiveMQMessageBase > Value of ackHandler = 0 > Value of redeliveryCount = 0 > Value of properties = Begin Class PrimitiveMap: > End Class PrimitiveMap: > > Begin Class = Message > Value of Message::ID_MESSAGE = 0 > Value of ProducerId is Below: > Begin Class = ProducerId > Value of ProducerId::ID_PRODUCERID = 123 > Value of ConnectionId = 4a44599a-452c-8c1a-87fa-d52c1a74e68c > Value of Value = 3279 > Value of SessionId = 0 > No Data for Class BaseDataStructure > End Class = ProducerId > > Value of Destination is Below: > Begin Class = ActiveMQTopic > Begin Class = ActiveMQDestination > Value of exclusive = false > Value of ordered = false > Value of advisory = false > Value of orderedTarget = coordinator > Value of physicalName = ccss.interceptions > Value of options = Begin Class activemq::util::Properties: > End Class activemq::util::Properties: > > No Data for Class BaseDataStructure > End Class = ActiveMQDestination > End Class = ActiveMQTopic > > Value of TransactionId is Below: > Object is NULL > Value of OriginalDestination is Below: > Object is NULL > Value of MessageId is Below: > Begin Class = MessageId > Value of MessageId::ID_MESSAGEID = 110 > Value of ProducerId is Below: > Begin Class = ProducerId > Value of ProducerId::ID_PRODUCERID = 123 > Value of ConnectionId = 4a44599a-452c-8c1a-87fa-d52c1a74e68c > Value of Value = 3279 > Value of SessionId = 0 > No Data for Class BaseDataStructure > End Class = ProducerId > > Value of ProducerSequenceId = 3279 > Value of BrokerSequenceId = 0 > No Data for Class BaseDataStructure > End Class = MessageId > > Value of OriginalTransactionId is Below: > Object is NULL > Value of GroupID = > Value of GroupSequence = 0 > Value of CorrelationId = > Value of Persistent = 0 > Value of Expiration = 0 > Value of Priority = 4 > Value of ReplyTo is Below: > Object is NULL > Value of Timestamp = 1232633698063 > Value of Type = > Value of Content[0] = , check broker. > FILE: activemq/transport/filters/ResponseCorrelator.cpp, LINE: 170 > FILE: activemq/transport/filters/ResponseCorrelator.cpp, LINE: 178 > FILE: activemq/connector/openwire/OpenWireFormatNegotiator.cpp, > LINE: 136 > FILE: activemq/connector/openwire/OpenWireConnector.cpp, LINE: 1499 > FILE: activemq/connector/openwire/OpenWireConnector.cpp, LINE: 815 > FILE: activemq/core/ActiveMQSession.cpp, LINE: 638 > FILE: activemq/core/ActiveMQProducer.cpp, LINE: 190 > FILE: activemq/core/ActiveMQProducer.cpp, LINE: 145 > FILE: activemq/core/ActiveMQProducer.cpp, LINE: 105 > > > I can't figure out if this is a connection loss (less probable), a bug, a > misuse or a wrong configuration (more probable), > especially due to the random occurrences of the exception. > Any clue? > More infos needed? > > Regards, > > Sebastien SOILEN > > > -- Tim Bish http://fusesource.com http://timbish.blogspot.com/