Re: Inaccurate active session count in JavaMonitor (Solved)
Subject : Re: Inaccurate active session count in JavaMonitor (Solved)
From: "Cheong Hee (Gmail)" <email@hidden >
Date: Tue, 21 Jul 2009 17:44:19 +0800
Delivered-to: email@hidden
Delivered-to: email@hidden
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to:cc :references:subject:date:mime-version:content-type :content-transfer-encoding:x-priority:x-msmail-priority:x-mailer :x-mimeole; bh=hmzmGDNbQpFYax8nIi4Gd/b7e1FVVTf9mXpLLHc+KZo=; b=SGgcMMATkOnGglcQkNA99+Q6gooZWeACJd+rWmiZkwCSuD0iqPnUMIqU5/2u1nwYU9 B89KR6Iwv8zsodrqAsR4icyPY8Q3hccueyGx3JC/kaxbXFjJ4Q0K5qUvyNuWAoa70T3E j4iRX9kZ3uC+bJ3caIFSrwauwMBxspcd7B9YQ=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:cc:references:subject:date:mime-version :content-type:content-transfer-encoding:x-priority:x-msmail-priority :x-mailer:x-mimeole; b=AsoGOT+5D3OQr8b7N1i8RIdeZLuU2bKkWWi4mT+/Ly2+Yydl3+4sv2rr7Zx/Ff2otP Rf1GaZPbC8XJim2rFicFoR06GAbuuIqQvVaOh5zRWf8fbZkbNGK4moSPm2WlWLyNqQ8q YH8+Y++adeelb+jUDvHgddy5s22Sr3CElBe8U=
Yeap, exception found.
lockManager.unlock() throws IllegalStateException when lock count is zero.
When the lock count is > 1, MultiEC lock manager is happier to unlock all
ECs, but not when lock count=0. Try to relate why the lock count=0 is
handled by exception. Is it acting like an insurance to alert the users
that probably error occur when multi-ECs has registered (and assumed
locked), but when no lock is found when called unlock(). Should it or not
throwing exception when lock count = 0?
Great thanks, Chuck and it clears doubt on my bad coding.
Cheers
Cheong Hee
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/email@hidden
This email sent to email@hidden
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE
Contact Apple | Terms of Use | Privacy Policy
Copyright © 2007 Apple Inc. All rights reserved.