You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I had searched in the issues and found no similar issues.
What happened
org.dinky.data.model.rbac.Tenant#createTime
org.dinky.data.model.rbac.Tenant#updateTime
These two classes lack the @JsonDeserialize and @JsonSerialize annotations, which results in an error when different versions of jackson-datatype-jsr310 are introduced.
Error content:
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type java.time.LocalDateTime not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: org.dinky.data.result.Result["data"]->org.dinky.data.dto.UserDTO["tenantList"]->java.util.LinkedList[0]->org.dinky.data.model.rbac.Tenant["createTime"])
at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77) ~[jackson-databind-2.14.1.jar:2.14.1]
What you expected to happen
Fix this issue and check if other classes are missing the specified serialization-related annotations
Search before asking
What happened
org.dinky.data.model.rbac.Tenant#createTime
org.dinky.data.model.rbac.Tenant#updateTime
These two classes lack the @JsonDeserialize and @JsonSerialize annotations, which results in an error when different versions of jackson-datatype-jsr310 are introduced.
Error content:
Caused by: com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type java.time.LocalDateTime not supported by default: add Module "com.fasterxml.jackson.datatype:jackson-datatype-jsr310" to enable handling (through reference chain: org.dinky.data.result.Result["data"]->org.dinky.data.dto.UserDTO["tenantList"]->java.util.LinkedList[0]->org.dinky.data.model.rbac.Tenant["createTime"])
at com.fasterxml.jackson.databind.exc.InvalidDefinitionException.from(InvalidDefinitionException.java:77) ~[jackson-databind-2.14.1.jar:2.14.1]
What you expected to happen
Fix this issue and check if other classes are missing the specified serialization-related annotations
How to reproduce
Add @JsonDeserialize and @JsonSerialize annotations
Anything else
No response
Version
1.0.1
Are you willing to submit PR?
Code of Conduct
The text was updated successfully, but these errors were encountered: