qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Godfrey (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Updated: (QPID-233) IllegalMonitorStateException in ConcurrentSelectorDeliveryManager
Date Mon, 01 Jan 2007 23:01:27 GMT

     [ http://issues.apache.org/jira/browse/QPID-233?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Rob Godfrey updated QPID-233:
-----------------------------

    Attachment: QPID-233.patch

> 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
>            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

        

Mime
View raw message