tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shawn Jiang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (OPENEJB-1574) Check if a AVAILABLE state entry is in cache before throwing out the IllegalStateException.
Date Fri, 10 Jun 2011 08:04:59 GMT
Check if a AVAILABLE state entry is in cache before throwing out the IllegalStateException.
-------------------------------------------------------------------------------------------

                 Key: OPENEJB-1574
                 URL: https://issues.apache.org/jira/browse/OPENEJB-1574
             Project: OpenEJB
          Issue Type: Bug
          Components: container system
    Affects Versions: (trunk/openejb3)
            Reporter: Shawn Jiang


org.apache.openejb.core.managed.SimpleCache.checkIn(K) {
...

            switch (entry.getState()) {
                case AVAILABLE:
                    throw new IllegalStateException("The entry " + key + " is not checked-out");
..


}

In some mutiple thread  cases,   I noticed that  a checked entry was checked in again by other
thread.   then we will get a invalid illegalStateException. 





--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message