Shiro Odd number of characters.
2018-01-02 19:12
295 查看
Authentication failedfortoken submission [org.apache.shiro.authc.UsernamePasswordToken - admin, rememberMe=false]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).
java.lang.IllegalArgumentException: Oddnumberofcharacters. 最近在写用户登录,要用到shiro的身份认证,登录密码需要加密,出现了该问题。网上搜了下,这个问题出现的很多,基本都是说加密这块出了问题。参照网友提供的方法并不能解决问题,自查了一下,出错原因是:需要登录验证的用户id在数据库表里重复存在,并且相同用户id对应的密码不同,违背了shiro principals身份的唯一性。解决办法:删除id重复的用户信息,保留一条即可完美解决。
java.lang.IllegalArgumentException: Oddnumberofcharacters. 最近在写用户登录,要用到shiro的身份认证,登录密码需要加密,出现了该问题。网上搜了下,这个问题出现的很多,基本都是说加密这块出了问题。参照网友提供的方法并不能解决问题,自查了一下,出错原因是:需要登录验证的用户id在数据库表里重复存在,并且相同用户id对应的密码不同,违背了shiro principals身份的唯一性。解决办法:删除id重复的用户信息,保留一条即可完美解决。
相关文章推荐
- Shiro Odd number of characters.
- ICS Return 1 when x contains an odd number of 1s,0 otherwise(判断二进制表示中1的个数是否为奇数)
- 《高性能javascript》 --- in case of odd number of items(奇怪的条目的数量)
- Count the number of alphabets, spaces, digits and other characters in one line character
- Find the Number Occurring Odd Number of Times
- Find the Number Occurring Odd Number of Times
- 1. 找出数组中的单身狗OddOccurrencesInArray Find value that occurs in odd number of elements.
- A string s is LUCKY if and only if the number of different characters in s is a fibonacci number. Gi
- 当x有奇数个1时返回1,retrun 1 when x contains an odd number of 1s
- Microsoft SQL Server 2008 R2 XML处理 One solution is to increase the number of characters retrieved from the server for XML data.
- *Find the Number Occurring Odd Number of Times
- jxl下拉长度的问题,Validation list exceeds maximum number of characters - truncating
- Finding a number that repeats even no of times where all the other numbers repeat odd no of times
- calculate the number of characters-统计文件中的字符数,非空白字符数,字母数,输入到文件和屏幕:
- LeetCode - 200 - Number of Islands
- LeetCode 之 Letter Combinations of a Phone Number
- 【LeetCode算法练习(C++)】Letter Combinations of a Phone Number
- [leedcode 17] Letter Combinations of a Phone Number
- 452. Minimum Number of Arrows to Burst Balloons
- The number of method references in xxx.dex file cannot exceed 64K问题