You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@aries.apache.org by "Mark Nuttall (JIRA)" <ji...@apache.org> on 2013/07/02 11:51:22 UTC

[jira] [Resolved] (ARIES-1085) Rare NPE in jndi ContextHelper.getInitialContextUsingBuilder()

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

Mark Nuttall resolved ARIES-1085.
---------------------------------

    Resolution: Fixed
    
> Rare NPE in jndi ContextHelper.getInitialContextUsingBuilder()
> --------------------------------------------------------------
>
>                 Key: ARIES-1085
>                 URL: https://issues.apache.org/jira/browse/ARIES-1085
>             Project: Aries
>          Issue Type: Bug
>          Components: JNDI
>            Reporter: Mark Nuttall
>            Assignee: Mark Nuttall
>             Fix For: 0.4
>
>
> We're seeing occasional NullPointerExceptions coming out of ContextHelper.getInitialContextUsingBuilder at the line, 
>   factory = builder.createInitialContextFactory(environment);
> This implies that builder can sometimes end up null. This might be because context or ref were somehow null, or possibly because context and ref were valid but the OSGi service registry somehow still returned null from  Utils.getServicePrivileged(). Adding some small, non-intrusive extra diagnostics. 

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira