Thread 2 (Thread -1208419440 (LWP 17894)): #0 0x00a26410 in __kernel_vsyscall () #1 0x00604656 in epoll_wait () from /lib/libc.so.6 #2 0x00ecf6a3 in qpid::sys::Poller::wait () from /usr/lib/libqpidcommon.so.0 #3 0x00f1a445 in qpid::sys::Dispatcher::run () #4 0x00943e63 in qpid::client::TCPConnector::run () #5 0x00ec6511 in qpid::sys::(anonymous namespace)::runRunnable () #6 0x006ac43b in start_thread () from /lib/libpthread.so.0 #7 0x00603fde in clone () from /lib/libc.so.6 Thread 1 (Thread -1208415936 (LWP 17893)): #0 0x00a26410 in __kernel_vsyscall () #1 0x006b0236 in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libpthread.so.0 #2 0x0061069d in pthread_cond_wait@@GLIBC_2.3.2 () from /lib/libc.so.6 #3 0x00976791 in qpid::client::SessionImpl::waitForCompletionImpl () #4 0x00976857 in qpid::client::SessionImpl::waitForCompletion () #5 0x0096277f in qpid::client::Future::wait () #6 0x0091e8df in qpid::client::no_keyword::Session_0_10::exchangeDeclare () #7 0x08051d47 in qpid::client::Session_0_10::exchangeDeclare_with_named_params<boost::parameter::aux::arg_list<boost::parameter::aux::tagged_argument<qpid::client::arg::keyword_tags::exchange, char const [11]>, boost::parameter::aux::empty_arg_list> > () #8 0x08051e90 in qpid::client::Session_0_10::exchangeDeclare<boost::parameter::aux::tagged_argument<qpid::client::arg::keyword_tags::exchange, char const [11]> > () #9 0x0804ec3e in main () #0 0x00a26410 in __kernel_vsyscall () this is my pstack output ------------------ 何文辉
------------------ Original ------------------ From: "Gordon Sim (via Nabble)"<[email protected]>; Date: 2009年4月15日(星期三) 晚上10:37 To: "doublefox1981"<[email protected]>; Subject: Re: Exchange not found: amq.failover doublefox1981 wrote: > const char* host = argc>1 ? argv[1] : "127.0.0.1"; > int port = argc>2 ? atoi(argv[2]) : 5672; > Connection connection; > > try { > connection.open(host, port); > Session session = connection.newSession(); > string request_queue = "request"; > > // Use the name of the request queue as the routing key > session.queueDeclare(arg::queue=request_queue); > session.exchangeBind(arg::exchange="amq.direct", > arg::queue=request_queue, arg::bindingKey=request_queue); > > > the broker's exception , it does't mather, but my client block at > session.queueDeclare call. Can you send pstack output for the client and broker processes? --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:dev-subscr...@... This email is a reply to your post @ http://n2.nabble.com/Exchange-not-found%3A-amq.failover-tp2638317p2639182.html You can reply by email or by visting the link above. -- View this message in context: http://n2.nabble.com/Exchange-not-found%3A-amq.failover-tp2638317p2641531.html Sent from the Apache Qpid developers mailing list archive at Nabble.com.
