0 Replies Latest reply on Nov 18, 2013 6:21 AM by Duran Harris

    Seam 2.3.1 - Can't inject previously outjected value

    Duran Harris Newbie



      I am having a problem whereby I outject a 'User' entity in my authenticate-method but trying to subsequently inject the 'User' entity in a different component results in the error :

      javax.ejb.EJBTransactionRolledbackException: @In attribute requires non-null value.


      This is where the 'User' entity is outjected :





      public class AuthenticatorBean implements Authenticator {


          private Log logger = Logging.getLog(AuthenticatorBean.class);



          Identity identity;



          Credentials credentials;


          @In(value = "authorisationManager", create = true)

          AuthorisationManager authManager;


          @Out(value = "user", scope = ScopeType.SESSION, required = true)

          User user;


      And this is how I inject it :






      public class VehicleListActionBean implements VehicleListAction {



          private Log logger;


          @In(value="user", scope=ScopeType.SESSION, required=true)

          private User user;




      Can anyone advise what I am doing wrong?