6 Replies Latest reply on May 19, 2010 10:46 PM by kem

    The @In attribute requires non-null value fix?

    Dan Acuff Newbie

      Please excuse me I am very new. But in preparing for load-testing we got the following error:



      Caused by: javax.el.ELException: /store/shop/layout/template.xhtml @62,52 value="#{coreMetrics.buildCoreMetricsString()}": org.jboss.seam.RequiredException: @In attribute requires non-null value: coreMetrics.customerSession



      This next part of the error message tells me what page it occurs on:




      2010-05-12 15:05:06,292 ERROR [facelets.viewhandler] Error Rendering View[/store/shop/checkout1.xhtml]
      
      javax.faces.FacesException: javax.el.ELException: /store/shop/layout/template.xhtml @62,52 value="#{coreMetrics.buildCoreMetricsString()}": org.jboss.seam.RequiredException: @In attribute requires non-null value: coreMetrics.customerSession




      Is the best fix for this to make sure the customerSession bean is active by setting @In (create equal true)?




              @In(create=true) 
              private ICustomerSession customerSession;