s-HR Cloud 视图可视化加载字段报错原创
金蝶云社区-杨天罡
杨天罡
0人赞赏了该文章 181次浏览 未经作者许可,禁止转载编辑于2023年07月28日 11:43:17

现象:

image.png

报错日志:

java.lang.IllegalArgumentException: MetaDataPK2 URI[query实体名!baqu] invalid!
at com.kingdee.bos.dao.xml.impl.MetaDataPK2.setURI(MetaDataPK2.java:72)
at com.kingdee.bos.dao.xml.impl.MetaDataPK2.<init>(MetaDataPK2.java:62)
at com.kingdee.bos.dao.xml.impl.MetaDataPK2.createPK2(MetaDataPK2.java:237)
at com.kingdee.bos.metadata.MetaDataLazyLoadCache.loadMD(MetaDataLazyLoadCache.java:74)
at com.kingdee.bos.metadata.MetaDataLazyLoadCache.get(MetaDataLazyLoadCache.java:42)
at com.kingdee.bos.metadata.AbstractMetaDataCache.getQuery(AbstractMetaDataCache.java:283)
at com.kingdee.shr.base.syssetting.component.commonquery.CommonQueryHelper.getPropertyRefInfo(CommonQueryHelper.java:372)
at com.kingdee.shr.base.syssetting.web.dynamic.view.converter.CoreUIViewConverter.assembleFieldInfo(CoreUIViewConverter.java:562)
at com.kingdee.shr.base.syssetting.web.dynamic.view.converter.ListUIViewConverter.assembleFieldInfo(ListUIViewConverter.java:410)
at com.kingdee.shr.base.syssetting.web.dynamic.view.converter.CoreUIViewConverter.getFields(CoreUIViewConverter.java:529)
at com.kingdee.shr.base.syssetting.web.dynamic.view.converter.CoreUIViewConverter.assembleViewInfo(CoreUIViewConverter.java:109)
at com.kingdee.shr.base.syssetting.web.dynamic.view.converter.ListUIViewConverter.assembleViewInfo(ListUIViewConverter.java:48)
at com.kingdee.shr.base.syssetting.web.dynamic.view.converter.CoreUIViewConverter.convertViewInfo(CoreUIViewConverter.java:81)
at com.kingdee.shr.base.syssetting.web.dynamic.view.converter.AbstractUIViewConverter.exec(AbstractUIViewConverter.java:33)
at com.kingdee.shr.base.syssetting.web.dynamic.util.UIViewUtil.generateUIView(UIViewUtil.java:224)
at com.kingdee.shr.base.syssetting.web.dynamic.util.UIViewUtil.getUIViewInfoByUIPK(UIViewUtil.java:164)
at com.kingdee.shr.base.syssetting.web.dynamic.util.UIViewUtil.getUIViewInfoByUIPK(UIViewUtil.java:138)
at com.kingdee.shr.base.syssetting.uiviewconfig.UIViewTranslatorUtil.getDefaultF7UIPK(UIViewTranslatorUtil.java:1169)
at com.kingdee.shr.base.syssetting.uiviewconfig.UIViewTranslatorUtil.getEntityProperties(UIViewTranslatorUtil.java:1069)
at com.kingdee.shr.base.syssetting.uiviewconfig.UIViewTranslatorUtil.getEntityProperties(UIViewTranslatorUtil.java:1066)
at com.kingdee.shr.base.syssetting.uiviewconfig.UIViewTranslatorUtil.getEntityProperties(UIViewTranslatorUtil.java:1066)
at com.kingdee.shr.base.syssetting.web.handler.UIViewVisualConfigHandler.getEntityPropertiesAction(UIViewVisualConfigHandler.java:141)

分析:

从日志上分析是query元数据找不到,可能怀疑是dep对应方案未启用,检查所有方案都有启用 -排出

接着往下分析,根据程序栈是获取实体的关联属性,并且获取关联属性的F7视图,那么就怀疑某个视图配置有问题

然后检查实体,发现实体的关联属性20多个,一个一个排查太耗时


此时借助arthas工具进行定位

watch com.kingdee.shr.base.syssetting.uiviewconfig.UIViewTranslatorUtil getDefaultF7UIPK "{params,returnObj}" -x 2 -e

对此方法抛出异常进行观察

image.png


发现是com.kingdee.eas.basedata.org.app.JobCategory这个实体抛出错误


检查视图发现客户扩展配置了F7:com.kingdee.eas.basedata.org.app.JobCategory.F7视图


打开视图发现

image.png



然后进行手工调整视图

image.png


视图可视化界面正常

图标赞 0
0人点赞
还没有人点赞,快来当第一个点赞的人吧!
图标打赏
0人打赏
还没有人打赏,快来当第一个打赏的人吧!