Uploaded image for project: 'DeltaSpike'
  1. DeltaSpike
  2. DELTASPIKE-206

NPE in OpenWebBeansContainerControl#getBeanManager

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.2-incubating
    • 0.3-incubating
    • CdiControl
    • 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)
      ...

      Attachments

        Activity

          People

            struberg Mark Struberg
            gpetracek Gerhard Petracek
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: