You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Karl Pauls (JIRA)" <ji...@apache.org> on 2008/10/14 13:19:44 UTC

[jira] Created: (FELIX-766) NullPointerException in SecureAction.invoke when running with SecurityManager

NullPointerException in SecureAction.invoke when running with SecurityManager
-----------------------------------------------------------------------------

                 Key: FELIX-766
                 URL: https://issues.apache.org/jira/browse/FELIX-766
             Project: Felix
          Issue Type: Bug
    Affects Versions: felix-1.2.1

            Reporter: Karl Pauls
            Assignee: Karl Pauls


It is possible that a NullPointerException happens when running with SecurityManager. The issue is that starting with Felix-1.2.1 it is possible that we have a recursive call to SecureAction within the same thread. That wasn't the case before but now it might happen. This will reset the members of the actions object to null which will cause the exception. The fix is to keep references to the member on the local stack. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FELIX-766) NullPointerException in SecureAction.invoke when running with SecurityManager

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall closed FELIX-766.
---------------------------------


Closing, since the release is now being voted on.

> NullPointerException in SecureAction.invoke when running with SecurityManager
> -----------------------------------------------------------------------------
>
>                 Key: FELIX-766
>                 URL: https://issues.apache.org/jira/browse/FELIX-766
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.2.1

>            Reporter: Karl Pauls
>            Assignee: Karl Pauls
>             Fix For: felix-1.2.2
>
>
> It is possible that a NullPointerException happens when running with SecurityManager. The issue is that starting with Felix-1.2.1 it is possible that we have a recursive call to SecureAction within the same thread. That wasn't the case before but now it might happen. This will reset the members of the actions object to null which will cause the exception. The fix is to keep references to the member on the local stack. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-766) NullPointerException in SecureAction.invoke when running with SecurityManager

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

Karl Pauls resolved FELIX-766.
------------------------------

       Resolution: Fixed
    Fix Version/s: felix-1.2.2

Fixed in trunk as of revision 704475.

> NullPointerException in SecureAction.invoke when running with SecurityManager
> -----------------------------------------------------------------------------
>
>                 Key: FELIX-766
>                 URL: https://issues.apache.org/jira/browse/FELIX-766
>             Project: Felix
>          Issue Type: Bug
>    Affects Versions: felix-1.2.1

>            Reporter: Karl Pauls
>            Assignee: Karl Pauls
>             Fix For: felix-1.2.2
>
>
> It is possible that a NullPointerException happens when running with SecurityManager. The issue is that starting with Felix-1.2.1 it is possible that we have a recursive call to SecureAction within the same thread. That wasn't the case before but now it might happen. This will reset the members of the actions object to null which will cause the exception. The fix is to keep references to the member on the local stack. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-766) NullPointerException in SecureAction.invoke when running with SecurityManager

Posted by "Richard S. Hall (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard S. Hall updated FELIX-766:
----------------------------------

    Component/s: Framework

> NullPointerException in SecureAction.invoke when running with SecurityManager
> -----------------------------------------------------------------------------
>
>                 Key: FELIX-766
>                 URL: https://issues.apache.org/jira/browse/FELIX-766
>             Project: Felix
>          Issue Type: Bug
>          Components: Framework
>    Affects Versions: felix-1.2.1

>            Reporter: Karl Pauls
>            Assignee: Karl Pauls
>             Fix For: felix-1.2.2
>
>
> It is possible that a NullPointerException happens when running with SecurityManager. The issue is that starting with Felix-1.2.1 it is possible that we have a recursive call to SecureAction within the same thread. That wasn't the case before but now it might happen. This will reset the members of the actions object to null which will cause the exception. The fix is to keep references to the member on the local stack. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.