directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mike Adamson <mikeat...@gmail.com>
Subject NullPointerException in GroupCache
Date Tue, 21 Jun 2011 17:56:10 GMT
Hi,

I have been getting an intermittent NullPointerException in
GroupCache.getGroups here:

        for ( Object obj : ehCache.getKeys() )
        {
            String group = ( String ) obj;
>>>      Set<String> members = ( Set<String> ) ehCache.get( group
).getValue();

            if ( members == null )
            {
                continue;
            }

I have used ehCache before and I think that the cache is removing expired
groups but leaving the keys in the cache. I think this needs to check for
the cache entry before getting the value. I'm raising a jira for it. I
haven't checked any of the other caches.

Cheers,

MikeA

Mime
View raw message