org.moqui.entity.EntityException: Cannot set field [successiveFailedLogins], this entity value is not mutable (it is read-only)

Stack Overflow | Al Byers | 8 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    loginUser stopped working with immutable as cause

    Stack Overflow | 8 months ago | Al Byers
    org.moqui.entity.EntityException: Cannot set field [successiveFailedLogins], this entity value is not mutable (it is read-only)

    Root Cause Analysis

    1. org.moqui.entity.EntityException

      Cannot set field [successiveFailedLogins], this entity value is not mutable (it is read-only)

      at org.moqui.impl.entity.EntityValueBase.putNoCheck()
    2. org.moqui.impl
      MoquiShiroRealm.getAuthenticationInfo
      1. org.moqui.impl.entity.EntityValueBase.putNoCheck(EntityValueBase.groovy:1000)[moqui-framework-2.0.0.jar:2.0.0]
      2. org.moqui.impl.entity.EntityValueBase.put(EntityValueBase.groovy:996)[moqui-framework-2.0.0.jar:2.0.0]
      3. org.moqui.impl.entity.EntityValueBase.set(EntityValueBase.groovy:358)[moqui-framework-2.0.0.jar:2.0.0]
      4. org.moqui.impl.util.MoquiShiroRealm.loginPostPassword(MoquiShiroRealm.groovy:124)[moqui-framework-2.0.0.jar:2.0.0]
      5. org.moqui.impl.util.MoquiShiroRealm.getAuthenticationInfo(MoquiShiroRealm.groovy:205)[moqui-framework-2.0.0.jar:2.0.0]
      5 frames
    3. Shiro
      DelegatingSubject.login
      1. org.apache.shiro.authc.pam.ModularRealmAuthenticator.doSingleRealmAuthentication(ModularRealmAuthenticator.java:180)[shiro-core-1.3.0.jar:1.3.0]
      2. org.apache.shiro.authc.pam.ModularRealmAuthenticator.doAuthenticate(ModularRealmAuthenticator.java:267)[shiro-core-1.3.0.jar:1.3.0]
      3. org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:198)[shiro-core-1.3.0.jar:1.3.0]
      4. org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106)[shiro-core-1.3.0.jar:1.3.0]
      5. org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:270)[shiro-core-1.3.0.jar:1.3.0]
      6. org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:256)[shiro-core-1.3.0.jar:1.3.0]
      6 frames
    4. org.moqui.impl
      UserFacadeImpl.loginUser
      1. org.moqui.impl.context.UserFacadeImpl.loginUser(UserFacadeImpl.groovy:447)[moqui-framework-2.0.0.jar:2.0.0]
      1 frame