Shiro abnormal authentication: Authentication failed for token submission

Abnormal details:

DoGetAuthenticationInfo in the implementation of the method of the custom realm, with NullPointerException exception information

Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - zhangsan, 
rememberMe=false]. Possible unexpected error?
(Typical or expected login exceptions should extend from AuthenticationException).

the reason:

Many emergence of this unusual reason, certainly not because of wrong password, the password is wrong because it will not throw an exception at this point.

I encountered this entity because UserModel model class does not implement the serialization interface, the Serializable; implement this interface after the problem is solved.

 

Guess you like

Origin www.cnblogs.com/dubhlinn/p/12201142.html