[
https://issues.apache.org/jira/browse/DELTASPIKE-206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Gerhard Petracek resolved DELTASPIKE-206.
-----------------------------------------
Resolution: Fixed
Fix Version/s: 0.3-incubating
> 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