Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.2-incubating
-
None
Description
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)
...