activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BigSam72 <>
Subject receive() coredumps ...
Date Thu, 13 Jul 2006 08:45:39 GMT

Hi, i coded plugin into our system and have serious trouble with receive()
method of consumer. I am using openwire.  

my code, initialization look like this 
 factory = new ConnectionFactory( this->uri );
 connection = factory->createConnection();
 rec_session = connection->createSession(ClientAckMode);
 rec_queue = rec_session->getQueue( this->szRecQueue );
 consumer = rec_session->createConsumer( rec_queue );

then i create thread which calls 
  p<IMessage> message = consumer->receive(10); 

when i start my program, everything looks ok. I sucessfuly connect to Broker
and in thread i call consumer->receive(10). After 10seconds when receive
should returns, process generates core file.

#0  0x00a8bb51 in apache::activemq::MessageConsumer::autoAcknowledge () from
#1  0x00a8c118 in apache::activemq::MessageConsumer::receive () from
#2  0x00a2a1e1 in
(this=0x91d2828) at IOPActiveMQ.cpp:115
#3  0x00a2c75e in
(this=0x91d23e0, lpParams=0xb5fb2410) at IOPActiveMQ.cpp:423
#4  0x00a2c2e3 in phoenix::EventHandler::plugins::WrapperFunction
(lpParams=0x91d23e0) at IOPActiveMQ.cpp:385
#5  0x0016371d in StartThreadFunction (lpParams=0x91bb480) at unix.cpp:1802
#6  0x00197371 in start_thread () from /lib/tls/
#7  0x007999be in clone () from /lib/tls/

Any idea ?  


View this message in context:
Sent from the ActiveMQ - User forum at

View raw message