s-HR Cloud 视图可视化加载字段报错

栏目:s-hr cloud知识作者:金蝶来源:金蝶云社区发布:2024-09-16浏览:1

s-HR Cloud 视图可视化加载字段报错

现象:

image.webp

报错日志:

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.webp


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


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


打开视图发现

image.webp



然后进行手工调整视图

image.webp


视图可视化界面正常

s-HR Cloud 视图可视化加载字段报错

现象:报错日志:java.lang.IllegalArgumentException: MetaDataPK2 URI[query实体名!baqu] invalid!at com.kingdee.bos.dao.xml.impl.MetaD...
点击下载文档
确认删除?
回到顶部
客服QQ
  • 客服QQ点击这里给我发消息