you are right!!. i commented out shutdown library and I dont get that exception anymore. But now I get segmentation fault..:((
Program received signal SIGSEGV, Segmentation fault. [Switching to Thread -188941408 (LWP 28796)] 0xf7d7e255 in decaf::util::concurrent::Lock::lock (this=0xf4bcf0c0) at decaf/util/concurrent/Lock.cpp:54 54 decaf/util/concurrent/Lock.cpp: No such file or directory. in decaf/util/concurrent/Lock.cpp Current language: auto; currently c++ (gdb) backtrace #0 0xf7d7e255 in decaf::util::concurrent::Lock::lock (this=0xf4bcf0c0) at decaf/util/concurrent/Lock.cpp:54 #1 0xf7d7e4db in Lock (this=0x313a, object=0xf40021b0, intiallyLocked=true) at decaf/util/concurrent/Lock.cpp:32 #2 0xf794dfeb in activemq::core::ActiveMQConsumer::clearMessagesInProgress (this=0xf4002178) at activemq/core/ActiveMQConsumer.cpp:1112 #3 0xf795ad7e in activemq::core::ActiveMQConsumer::dispatch (this=0xf4002178, dispatch=@0xf4bcf240) at activemq/core/ActiveMQConsumer.cpp:991 #4 0xf79832cd in activemq::core::ActiveMQSessionExecutor::dispatch (this=0xf4001f08, dispatch=@0xf4bcf240) at activemq/core/ActiveMQSessionExecutor.cpp:129 #5 0xf79835d0 in activemq::core::ActiveMQSessionExecutor::iterate (this=0xf4001f08) at activemq/core/ActiveMQSessionExecutor.cpp:166 #6 0xf79dcc75 in activemq::threads::DedicatedTaskRunner::run (this=0x86b1558) at activemq/threads/DedicatedTaskRunner.cpp:111 #7 0xf7d35392 in (anonymous namespace)::threadWorker (arg=0x87e9138) at decaf/lang/Thread.cpp:135 #8 0x008f53cc in start_thread () from /lib/tls/libpthread.so.0 #9 0x0080af0e in clone () from /lib/tls/libc.so.6 now how can i resolve this? -- View this message in context: http://activemq.2283324.n4.nabble.com/The-Decaf-Threading-API-is-in-a-Shutdown-State-Exception-tp4077689p4077794.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.