WeBankPartners / we-cmdb

CMDB from WeBank
Apache License 2.0
813 stars 192 forks source link

CI查询报错Type definition error #569

Closed jordanzhangsz closed 4 years ago

jordanzhangsz commented 4 years ago

描述您遇到的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 commented 4 years ago

定位为使用问题

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

jordanzhangsz commented 4 years ago

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