You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@deltaspike.apache.org by "Mark Struberg (JIRA)" <ji...@apache.org> on 2012/08/06 03:40:02 UTC
[jira] [Reopened] (DELTASPIKE-206) NPE in
OpenWebBeansContainerControl#getBeanManager
[ https://issues.apache.org/jira/browse/DELTASPIKE-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mark Struberg reopened DELTASPIKE-206:
--------------------------------------
wrong solution. We shall do this for all containers the same way.
> NPE in OpenWebBeansContainerControl#getBeanManager
> --------------------------------------------------
>
> Key: DELTASPIKE-206
> URL: https://issues.apache.org/jira/browse/DELTASPIKE-206
> Project: DeltaSpike
> Issue Type: Bug
> Components: CdiControl
> Affects Versions: 0.2-incubating
> Reporter: Gerhard Petracek
> Assignee: Mark Struberg
> Fix For: 0.3-incubating
>
>
> if owb is started at the beginning of an application or via
> CdiContainerLoader.getCdiContainer().boot();
> and e.g. for a batch a call like
> CdiContainerLoader.getCdiContainer().getContextControl().startContext(RequestScoped.class);
> is needed, a NPE is the result:
> Exception in thread "main" java.lang.NullPointerException
> at org.apache.deltaspike.cdise.owb.OpenWebBeansContainerControl.getBeanManager(OpenWebBeansContainerControl.java:46)
> at org.apache.deltaspike.cdise.owb.OpenWebBeansContainerControl.getContextControl(OpenWebBeansContainerControl.java:75)
> ...
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira