directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Lecharny (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (DIRSERVER-1627) NullPointerException in GroupCache.getGroups
Date Tue, 21 Jun 2011 23:52:47 GMT

     [ https://issues.apache.org/jira/browse/DIRSERVER-1627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Emmanuel Lecharny resolved DIRSERVER-1627.
------------------------------------------

    Resolution: Fixed

Fixed.

> NullPointerException in GroupCache.getGroups
> --------------------------------------------
>
>                 Key: DIRSERVER-1627
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1627
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.5.7
>            Reporter: Mike Adamson
>             Fix For: 2.0.0-M1
>
>
> I am getting an intermittent NPE in GroupCache.getGroups at the following location:
>         for ( Object obj : ehCache.getKeys() )
>         {
>             String group = ( String ) obj;
> >>>      Set<String> members = ( Set<String> ) ehCache.get( group
).getValue();
>             if ( members == null )
>             {
>                 continue;
>             }
> This happens after leaving the environment for longer than the default group cache expiry
time. I think the default behaviour of ehCache is to remove the value from the cache but not
the key until it is accessed.

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

        

Mime
View raw message