org.apache.shiro.authc.AuthenticationException: Authentication failed for token submission [com.college.collegesystem.shiro.JWTToken@57d908b7]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException). at org.apache.shiro.authc.AbstractAuthenticator.authenticate(AbstractAuthenticator.java:214) at org.apache.shiro.mgt.AuthenticatingSecurityManager.authenticate(AuthenticatingSecurityManager.java:106) at org.apache.shiro.mgt.DefaultSecurityManager.login(DefaultSecurityManager.java:274) at org.apache.shiro.subject.support.DelegatingSubject.login(DelegatingSubject.java:260)
时间: 2024-04-28 09:23:16 浏览: 11
根据你提供的信息,这是一个 Apache Shiro 身份验证时发生的异常,可能是由于身份验证令牌(com.college.collegesystem.shiro.JWTToken@57d908b7)无效或不匹配导致的。建议检查身份验证令牌是否正确并且有效,或者查看是否有其他异常或错误发生。如果需要更详细的信息,请提供更多上下文或代码。
相关问题
org.apache.shiro.authc.AuthenticationException: Authentication failed for token submission [com.college.collegesystem.shiro.JWTToken@4af10060]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).
这个异常是 Apache Shiro 框架中的身份验证异常,意味着使用给定的令牌进行身份验证失败。通常情况下,它是由于令牌无效或者过期导致的,也可能是由于其他未知的异常引起的。建议检查令牌是否正确,并确保它没有过期。如果问题仍然存在,可能需要检查相关代码以查找其他可能的问题,并确保任何自定义登录异常都应该扩展自 AuthenticationException。
org.apache.shiro.authc.AuthenticationException: Authentication failed for token submission [org.apache.shiro.authc.UsernamePasswordToken - yangwenhao, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).
根据你提供的日志信息,看起来系统正在使用 Shiro 认证框架进行用户身份认证。在这个过程中,Shiro 抛出了一个 AuthenticationException 异常,表示身份验证失败。具体来说,系统尝试使用用户名和密码进行身份验证,但是这个过程失败了。这可能是因为提供的用户名或密码不正确,或者目标系统出现了故障或其他错误。需要进一步检查系统的配置和日志以确定问题的根本原因。