Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.6.3 LoginUser.java 缺了个 String parentId; #6031

Closed
dahailiu123 opened this issue Mar 22, 2024 · 4 comments
Closed

3.6.3 LoginUser.java 缺了个 String parentId; #6031

dahailiu123 opened this issue Mar 22, 2024 · 4 comments

Comments

@dahailiu123
Copy link

版本号:

3.6.3

前端版本:vue3版?还是 vue2版?

vue3

问题描述:

登录报错,加上这句就好了。

截图&代码:

友情提示(为了提高issue处理效率):

  • 未按格式要求发帖,会被直接删掉;
  • 描述过于简单或模糊,导致无法处理的,会被直接删掉;
  • 请自己初判问题描述是否清楚,是否方便我们调查处理;
  • 针对问题请说明是Online在线功能(需说明用的主题模板),还是生成的代码功能;
@zhangdaiscott
Copy link
Member

为什么需要这个字段

@dahailiu123
Copy link
Author

dahailiu123 commented Mar 22, 2024

Authentication failed for token submission [org.jeecg.config.shiro.JwtToken@6ea4d277]. Possible unexpected error? (Typical or expected login exceptions should extend from AuthenticationException).
org.springframework.data.redis.serializer.SerializationException: Could not read JSON: Unrecognized field "parentId" (class org.jeecg.common.system.vo.LoginUser), not marked as ignorable (20 known properties: "post", "departIds", "sex", "realname", "phone", "orgCode", "status", "relTenantIds", "username", "delFlag", "avatar", "activitiSync", "id", "email", "birthday", "telephone", "clientId", "createTime", "password", "userIdentity"])
at [Source: (byte[])"["org.jeecg.common.system.vo.LoginUser",{"parentId":null,"id":"IeYObuSa00K741IFwOv28hJ0HmTTuJxHVNAypLbgTR0=","username":"grXDeTwZNGStnSu4yQuIQA==","realname":"UTQuOhZCZXJmP76PKkcB/A==","password":"5rx/KR6H3hQbbyTyxBatug==","orgCode":"2YV59E0XuKPpqylnhN/dHQ==","avatar":"n3Az9sOX5rFM4QgP2NqTkKDy9/Y2VtVsWeNjppqR2e85qniV4TkidKJd7XdJn0dNcItdoAW4ySO8m9SgUCfPZg==","birthday":["java.util.Date","2018-12-05"],"sex":1,"email":"f28NhDpxZuAdWRLU7uWS8w==","phone":"5nve2G2QIL/+BASLYhjl0g==","status":1,"delFlag"[truncated 185 bytes]; line: 1, column: 57] (through reference chain: org.jeecg.common.system.vo.LoginUser["parentId"]); nested exception is com.fasterxml.jackson.databind.exc.UnrecognizedPropertyException: Unrecognized field "parentId" (class org.jeecg.common.system.vo.LoginUser), not marked as ignorable (20 known properties: "post", "departIds", "sex", "realname", "phone", "orgCode", "status", "relTenantIds", "username", "delFlag", "avatar", "activitiSync", "id", "email", "birthday", "telephone", "clientId", "createTime", "password", "userIdentity"])
at [Source: (byte[])"["org.jeecg.common.system.vo.LoginUser",{"parentId":null,"id":"IeYObuSa00K741IFwOv28hJ0HmTTuJxHVNAypLbgTR0=","username":"grXDeTwZNGStnSu4yQuIQA==","realname":"UTQuOhZCZXJmP76PKkcB/A==","password":"5rx/KR6H3hQbbyTyxBatug==","orgCode":"2YV59E0XuKPpqylnhN/dHQ==","avatar":"n3Az9sOX5rFM4QgP2NqTkKDy9/Y2VtVsWeNjppqR2e85qniV4TkidKJd7XdJn0dNcItdoAW4ySO8m9SgUCfPZg==","birthday":["java.util.Date","2018-12-05"],"sex":1,"email":"f28NhDpxZuAdWRLU7uWS8w==","phone":"5nve2G2QIL/+BASLYhjl0g==","status":1,"delFlag"[truncated 185 bytes]; line: 1, column: 57] (through reference chain: org.jeecg.common.system.vo.LoginUser["parentId"])
我根据错误提示加的,加上后就不报错了。

@dahailiu123
Copy link
Author

dahailiu123 commented Mar 22, 2024

不对,是我本地环境的问题。redis里有之前的登录信息,清空redis后正常

@zhangdaiscott
Copy link
Member

老的数据为什么会有parentId呢?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants