Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 64671 invoked from network); 12 Sep 2007 04:09:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Sep 2007 04:09:04 -0000 Received: (qmail 15975 invoked by uid 500); 12 Sep 2007 04:08:57 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 15944 invoked by uid 500); 12 Sep 2007 04:08:57 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 15935 invoked by uid 99); 12 Sep 2007 04:08:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Sep 2007 21:08:57 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of rajdavies@gmail.com designates 64.233.182.191 as permitted sender) Received: from [64.233.182.191] (HELO nf-out-0910.google.com) (64.233.182.191) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Sep 2007 04:08:53 +0000 Received: by nf-out-0910.google.com with SMTP id b21so65580nfd for ; Tue, 11 Sep 2007 21:08:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; bh=5gpCoO/5iHQvsoWHW0SEAxpT7tFvUfVb8WyKohIXKXk=; b=Lw0RjJ+RBovKQrD6POezyiMoeLAsd8RVWloPUD7AZS/vQt5+0UurQDGsMr5AdxsqaT3F7KAhfF7Z49teMMr3hhZWh6AknUzETWDaW+IE2zjiqLbJB4oyT47shREtWe23C3yaXaAG5bnbjs49n9m5onYTFx+yn0N5BBgWpAykwJk= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:mime-version:in-reply-to:references:content-type:message-id:from:subject:date:to:x-mailer; b=tTMXS0TdgoGn3sQQi64GegvjRijY5LOSZrzYMVGI19VPOxGrAWNtD4ifzdDalUCEheRTNTaLWV6plITe+OxIJcl9mQUXH8Rv3p32D95bj0m0M07PO8k+zgv3mPPN7DQB8EonMVOFl5c67aQ7J7VblBxa5QGJc5WwszUveANn6+A= Received: by 10.86.93.17 with SMTP id q17mr5083390fgb.1189570111656; Tue, 11 Sep 2007 21:08:31 -0700 (PDT) Received: from ?192.168.1.69? ( [86.133.83.206]) by mx.google.com with ESMTPS id 5sm6304987nfv.2007.09.11.21.08.29 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Sep 2007 21:08:30 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <46E71667.2040304@comware.com.au> References: <46E71667.2040304@comware.com.au> Content-Type: multipart/alternative; boundary=Apple-Mail-5-809513805 Message-Id: <6A7B295F-F16D-4817-8DC3-ED6F147B56F3@gmail.com> From: Rob Davies Subject: Re: deadlock while publishing a message. Date: Wed, 12 Sep 2007 05:08:31 +0100 To: users@activemq.apache.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-5-809513805 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed the client is waiting for a response from the broker - what's the broker doing whilst you are doing this ? cheers, Rob 'Go Get Integrated - ride the Camel! - http://activemq.apache.org/ camel/' http://rajdavies.blogspot.com/ On Sep 11, 2007, at 11:27 PM, Jim Alateras wrote: > I am using activemq 5.0-SNAPSHOT with a current project and have > just come across a situation where a thread blocks indefinitely > trying to publish a message. It happens during the session commit > > The method ActiveMQDispatcherClient.dispatch is synchronized. > > Here is the stack trace. > > Thread [pool-5-thread-1] (Suspended) > Unsafe.park(boolean, long) line: not available [native method] > LockSupport.park() line: 118 > AbstractQueuedSynchronizer$ConditionObject.await() line: 1767 > ArrayBlockingQueue.take() line: 341 > FutureResponse.getResult() line: 40 > ResponseCorrelator.request(Object) line: 76 > ActiveMQConnection.syncSendPacket(Command) line: 1168 > TransactionContext.commit() line: 259 > ActiveMQSession.commit() line: 491 > DefaultEnqueueStrategy.dispatch(Session, MessageProducer, > DispatcherQueue, List) line: 83 > ActiveMQDispatcherClient.dispatch(List) line: 195 > Hub.dispatchObservations(List) line: 1004 > ZoneFacadeImpl.observationsMade(List) line: 785 > DeviceFieldObservationVendorImpl.vendObservations(List) line: 183 > DeviceFieldObservationVendorImpl$StatusEventHandler.notifyEvent > (DeviceEvent) line: 687 > EventManager$EventDeliverer.run() line: 174 > Executors$RunnableAdapter.call() line: 442 > ScheduledThreadPoolExecutor$ScheduledFutureTask(FutureTask).run() > line: 176 > ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301 > (ScheduledThreadPoolExecutor$ScheduledFutureTask) line: 102 > ScheduledThreadPoolExecutor$ScheduledFutureTask.run() line: 215 > ThreadPoolExecutor$Worker.runTask(Runnable) line: 665 > ThreadPoolExecutor$Worker.run() line: 690 > Thread.run() line: 613 > > > cheers > --Apple-Mail-5-809513805--