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] Created: (QPID-233) IllegalMonitorStateException in ConcurrentSelectorDeliveryManager
Date Mon, 01 Jan 2007 22:56:27 GMT
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


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