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

CI查询报错Type definition error #569

Closed
jordanzhangsz opened this issue Dec 24, 2019 · 2 comments
Closed

CI查询报错Type definition error #569

jordanzhangsz opened this issue Dec 24, 2019 · 2 comments
Assignees
Labels
bug Something isn't working

Comments

@jordanzhangsz
Copy link
Collaborator

描述您遇到的bug
查询单元这个CI的时候,报如下错误:
Type definition error: [simple type, class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor]; nested exception is com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.hibernate.proxy.pojo.bytebuddy.ByteBuddyInterceptor and no properties discovered to create BeanSerializer (to avoid exception, disable SerializationFeature.FAIL_ON_EMPTY_BEANS) (through reference chain: com.webank.cmdb.dto.ResponseDto["data"]->com.webank.cmdb.dto.QueryResponse["contents"]->java.util.LinkedList[0]->com.webank.cmdb.dto.CiData["data"]->java.util.HashMap["resource_set"]->java.util.LinkedList[0]->dynamic.entity.resource_set$HibernateProxy$sOOvnq9n["hibernateLazyInitializer"])

如何重现
作为wecube插件运行:设计->CI数据管理->单元,查询时:
image

预期行为

截图

附加

@jordanzhangsz jordanzhangsz added the bug Something isn't working label Dec 24, 2019
@jordanzhangsz jordanzhangsz self-assigned this Dec 24, 2019
@jordanzhangsz
Copy link
Collaborator Author

定位为使用问题

原因是手动直接操作数据库引起,"attrId":870这个属性被删除导致。为保证数据完整性,建议使用UI或API进行操作

@jordanzhangsz
Copy link
Collaborator Author

经查,问题仍然存在,需要进一步确定原因及解决。

@jordanzhangsz jordanzhangsz reopened this Dec 25, 2019
jordanzhangsz added a commit that referenced this issue Dec 26, 2019
#569 fetch domain object for multi reference value instead of hibernate proxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants