title: Can't inject a sessionScoped managedBean into other managedBean
body: <p>I have a sessionScoped Bean which needs to be be injected in other beans.</p>
  
  <pre><code>@SessionScoped
  @ManagedBean(eager = true, name="signBundle")
  public class SignBundleBean implements Serializable{
      private ArrayList&lt;Signing&gt; selectedDownloads;
      private ArrayList&lt;Signing&gt; selectedSignings;
      private ArrayList&lt;Signing&gt; signings = new ArrayList&lt;&gt;();
      private ArrayList&lt;Signing&gt; downloads = new ArrayList&lt;&gt;();
      private ArrayList&lt;String&gt; parameterColumns = new ArrayList&lt;&gt;();
      private int maxParameters = 0;
  </code></pre>
  
  <p>I am trying to inject this bean into other bean.</p>
  
  <pre><code>@ManagedBean
  @SessionScoped
  public class FileUploadView implements Serializable {  
  
      @ManagedProperty(value = "#{signBundle}")
      private SignBundleBean signBundleBean; 
  
      static String codesignRoot = InitialisationHelper.getCodesignRoot();
      transient Map&lt;String, Object&gt; sessionMap;
      ArrayList&lt;Signing&gt; signings = signBundleBean.getSignings();
  </code></pre>
  
  <p>I am getting exception because signBundle is not initialised and is null.</p>
  
  <pre><code>Cant instantiate class: com.oracle.ccss.web.beans.FileUploadView.
  javax.faces.FacesException: Cant instantiate class:    com.oracle.ccss.web.beans.FileUploadView.
  at com.sun.faces.lifecycle.ProcessValidationsPhase.execute(ProcessValidationsPhase.java:84)
  at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:101)
  at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:198)
  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:646)
  ...
  Caused by: com.sun.faces.mgbean.ManagedBeanCreationException: Cant instantiate class: com.oracle.ccss.web.beans.FileUploadView.
  at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:191)
  at com.sun.faces.mgbean.BeanBuilder.build(BeanBuilder.java:100)
  at com.sun.faces.mgbean.BeanManager.createAndPush(BeanManager.java:409)
  ...
  Caused by: java.lang.NullPointerException
  at com.oracle.ccss.web.beans.FileUploadView.&lt;init&gt;(FileUploadView.java:43)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
  at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
  at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
  at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
  at java.lang.Class.newInstance(Class.java:374)
  at com.sun.faces.mgbean.BeanBuilder.newBeanInstance(BeanBuilder.java:186)
  </code></pre>