activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BigSam72 <radek.sed...@physter.com>
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
/home/sedmak/deploy/lib/libIOPAMQPlugin.so
#1  0x00a8c118 in apache::activemq::MessageConsumer::receive () from
/home/sedmak/deploy/lib/libIOPAMQPlugin.so
#2  0x00a2a1e1 in
phoenix::EventHandler::plugins::PhoenixActiveMQ::waitForMessage
(this=0x91d2828) at IOPActiveMQ.cpp:115
#3  0x00a2c75e in
phoenix::EventHandler::plugins::IOPActiveMQ::HandleNewRequest
(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/libpthread.so.0
#7  0x007999be in clone () from /lib/tls/libc.so.6

Any idea ?  

 
 

-- 
View this message in context: http://www.nabble.com/receive%28%29-coredumps-...-tf1935939.html#a5304272
Sent from the ActiveMQ - User forum at Nabble.com.


Mime
View raw message