You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by "Mike Adamson (JIRA)" <ji...@apache.org> on 2011/06/21 19:59:47 UTC

[jira] [Created] (DIRSERVER-1627) NullPointerException in GroupCache.getGroups

NullPointerException in GroupCache.getGroups
--------------------------------------------

                 Key: DIRSERVER-1627
                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1627
             Project: Directory ApacheDS
          Issue Type: Bug
          Components: core
            Reporter: Mike Adamson


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

        

[jira] [Updated] (DIRSERVER-1627) NullPointerException in GroupCache.getGroups

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/DIRSERVER-1627?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Lecharny updated DIRSERVER-1627:
-----------------------------------------

    Affects Version/s: 1.5.7
        Fix Version/s: 2.0.0-M1

> 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

        

[jira] [Commented] (DIRSERVER-1627) NullPointerException in GroupCache.getGroups

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052946#comment-13052946 ] 

Emmanuel Lecharny commented on DIRSERVER-1627:
----------------------------------------------

I think it will be fixed with http://svn.apache.org/viewvc?rev=1138250&view=rev


> 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

        

[jira] [Resolved] (DIRSERVER-1627) NullPointerException in GroupCache.getGroups

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
     [ 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

        

[jira] [Commented] (DIRSERVER-1627) NullPointerException in GroupCache.getGroups

Posted by "Emmanuel Lecharny (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/DIRSERVER-1627?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13052944#comment-13052944 ] 

Emmanuel Lecharny commented on DIRSERVER-1627:
----------------------------------------------

Very good catch.

The cache should be made eternal. We won't have millions of entries in it.

> NullPointerException in GroupCache.getGroups
> --------------------------------------------
>
>                 Key: DIRSERVER-1627
>                 URL: https://issues.apache.org/jira/browse/DIRSERVER-1627
>             Project: Directory ApacheDS
>          Issue Type: Bug
>          Components: core
>            Reporter: Mike Adamson
>
> 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