You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Robert Greig (JIRA)" <qp...@incubator.apache.org> on 2007/01/02 00:03:27 UTC
[jira] Assigned: (QPID-233) IllegalMonitorStateException in
ConcurrentSelectorDeliveryManager
[ http://issues.apache.org/jira/browse/QPID-233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Robert Greig reassigned QPID-233:
---------------------------------
Assignee: Robert Greig
> IllegalMonitorStateException in ConcurrentSelectorDeliveryManager
> -----------------------------------------------------------------
>
> Key: QPID-233
> URL: http://issues.apache.org/jira/browse/QPID-233
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Reporter: Rob Godfrey
> Assigned To: Robert Greig
> Priority: Minor
> Attachments: QPID-233.patch
>
>
> An IllegalMonitorStateException is being thrown occaisionally in the deliver() method of the ConcurrentSelectorDeliveryManager.
> This is due to the following code:
> finally
> {
> //ensure lock is released
> if (_lock.isLocked())
> {
> _lock.unlock();
> }
> }
> _lock.isLocked() will report true if the lock is being held by a different thread. The unlock will then throw an IllegalMonitorStateException.
> The correct check should be if(_lock.isHeldByCurrentThread())
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira