activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris <chris.jeep...@gmail.com>
Subject ActiveMQ-CPP v3.7.0 : how to close a connection blocked inside a start() when using failover
Date Wed, 05 Jun 2013 21:15:34 GMT
Hi,

I have a situation in which i need to close a client cms::connection block
inside a cms::connection::start(), from a different thread. In this case, no
broker as been started yet and i'm using failover. so the thread is blocked
inside connection.start() (which is expected). However to close and
terminate this connection, i tried calling cms::connection::close() on this
connection (from a different thread) and expecting a cms::Exception, but
this seems to be failing (see stack trace below).

What is the correct way to close a connection that is blocked inside a
connection::start() ?

R6025
- pure virtual function call

06/03/2013 11:59:02 **** STACK TRACE **** called from conntest.cpp line: 39

Thread 0x1cc8  7368
ZwGetContextThread
autopsy \utility.cpp (1078) 19 bytes
Purecall \conntest.cpp (39) 13 bytes
_purecall f:\dd\vctools\crt_bld\self_x86\crt\src\purevirt.c (54) 0 bytes
decaf::util::concurrent::Lock::lock \decaf\util\concurrent\lock.cpp (55) 0
bytes
decaf::util::concurrent::Lock::Lock \decaf\util\concurrent\lock.cpp (34) 0
bytes
`anonymous namespace'::ResponseFinalizer::~ResponseFinalizer
\activemq-cpp-library-3.7.0\src\main\activemq\transport\correlator\responsecorrelator.cpp
(64) 25 bytes
activemq::transport::correlator::ResponseCorrelator::request
\activemq-cpp-library-3.7.0\src\main\activemq\transport\correlator\responsecorrelator.cpp
(228) 51 bytes
activemq::core::ActiveMQConnection::syncRequest
\activemq-cpp-library-3.7.0\src\main\activemq\core\activemqconnection.cpp
(1271) 84 bytes
activemq::core::ActiveMQConnection::ensureConnectionInfoSent
\activemq-cpp-library-3.7.0\src\main\activemq\core\activemqconnection.cpp
(1352) 58 bytes
activemq::core::ActiveMQConnection::start \activemq-cpp- library
3.7.0\src\main\activemq\core\activemqconnection.cpp (857) 0 bytes




--
View this message in context: http://activemq.2283324.n4.nabble.com/ActiveMQ-CPP-v3-7-0-how-to-close-a-connection-blocked-inside-a-start-when-using-failover-tp4667937.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Mime
View raw message