由于近期调整及抵消模板的公式字段长度不够,就修改了元数据的字符长度,结果导致修改保存后保存,报错如下(如果大家有什么好的解决方案,欢迎评论留言一起探讨学习):
错误日志:
11:19:40 [AWT-EventQueue-0] ERROR - 找不到对应的权限资源对象
nc.vo.pub.BusinessException: 找不到对应的权限资源对象
at nc.impl.pubitf.rbac.DataPermissionPubServiceImpl.findResourceVO(DataPermissionPubServiceImpl.java:363)
at nc.impl.pubitf.rbac.DataPermissionPubServiceImpl.queryDataPermConfigInner(DataPermissionPubServiceImpl.java:380)
at nc.impl.pubitf.rbac.DataPermissionPubServiceImpl.queryDataPermConfig(DataPermissionPubServiceImpl.java:189)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.aop.rt.MethodProceedingJoinpoint$3.invoke(MethodProceedingJoinpoint.java:74)
at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:184)
at nc.bs.framework.server.SecurityAspect.aroundMethod1(SecurityAspect.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:182)
at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129)
at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135)
at nc.bs.framework.aop.rt.AspectedProxy.invoke(AspectedProxy.java:59)
at com.sun.proxy.$Proxy264.queryDataPermConfig(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.ejb.CMTProxyImpl.delegate(CMTProxyImpl.java:22)
at nc.itf.framework.ejb.CMTProxyEjbBean.delegate(CMTProxyEjbBean.java:44)
at nc.itf.framework.ejb.CMTProxy_Local.delegate(CMTProxy_Local.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:57)
at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:36)
at com.sun.proxy.$Proxy37.delegate(Unknown Source)
at nc.bs.framework.ejb.CMTEJBServiceHandler.invoke(CMTEJBServiceHandler.java:32)
at com.sun.proxy.$Proxy265.queryDataPermConfig(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.rmi.server.RMIHandlerImpl.invokeBeanMethod(RMIHandlerImpl.java:433)
at nc.bs.framework.rmi.server.RMIHandlerImpl.doHandle(RMIHandlerImpl.java:203)
at nc.bs.framework.rmi.server.RMIHandlerImpl.handle(RMIHandlerImpl.java:103)
at nc.bs.framework.comn.serv.CommonServletDispatcher.doPost(CommonServletDispatcher.java:45)
11:19:41 [AWT-EventQueue-0] ERROR - 实例化访问器出错!请检查访问器里的类是否正确!主表VO:nc.vo.hbbb.dxrelation.AggDXRelationHeadVO,子表VO:nc.vo.hbbb.dxrelation.DXRelationHeadVOnc.vo.hbbb.dxrelation.AggDXRelationHeadVO
java.lang.ClassNotFoundException: nc.vo.hbbb.dxrelation.AggDXRelationHeadVO
at nc.bs.framework.provision.ProvisionClassLoader.findClass(ProvisionClassLoader.java:334)
at nc.bs.framework.provision.ProvisionClassLoader.loadClass(ProvisionClassLoader.java:294)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at nc.md.model.access.javamap.AggVOStyle.newInstance(AggVOStyle.java:37)
at nc.md.data.access.NCObject.<init>(NCObject.java:118)
at nc.md.data.access.NCObject.newInstance(NCObject.java:176)
at nc.md.data.access.NCObjectImp.newInstanceWithKeyValues(NCObjectImp.java:59)
at nc.md.data.access.NCObject.newInstanceWithKeyValues(NCObject.java:212)
at nc.md.data.access.DASFacade.newInstanceWithKeyValues(DASFacade.java:130)
at nc.ui.pub.bill.BillData.getChangeBillObjectByMetaData(BillData.java:1599)
at nc.ui.uif2.editor.value.BillCardPanelMetaDataValueAdapter.getValue(BillCardPanelMetaDataValueAdapter.java:35)
at nc.ui.uif2.editor.BillForm.getValue(BillForm.java:260)
at nc.ui.hbbb.dxrelation.view.DXEditorForm.getValue(DXEditorForm.java:354)
at nc.ui.hbbb.dxrelation.action.DXSaveAction.doAction(DXSaveAction.java:23)
at nc.ui.uif2.NCAction.actionPerformed(NCAction.java:85)
at nc.funcnode.ui.action.ActionDelegate.actionPerformed(ActionDelegate.java:296)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
11:19:41 [AWT-EventQueue-0] ERROR - 未知的错误
nc.md.model.MetaDataRuntimeException: Error to init aggVOStyle,Please check the back log
at nc.md.model.access.javamap.AggVOStyle.newInstance(AggVOStyle.java:53)
at nc.md.data.access.NCObject.<init>(NCObject.java:118)
at nc.md.data.access.NCObject.newInstance(NCObject.java:176)
at nc.md.data.access.NCObjectImp.newInstanceWithKeyValues(NCObjectImp.java:59)
at nc.md.data.access.NCObject.newInstanceWithKeyValues(NCObject.java:212)
at nc.md.data.access.DASFacade.newInstanceWithKeyValues(DASFacade.java:130)
at nc.ui.pub.bill.BillData.getChangeBillObjectByMetaData(BillData.java:1599)
at nc.ui.uif2.editor.value.BillCardPanelMetaDataValueAdapter.getValue(BillCardPanelMetaDataValueAdapter.java:35)
at nc.ui.uif2.editor.BillForm.getValue(BillForm.java:260)
at nc.ui.hbbb.dxrelation.view.DXEditorForm.getValue(DXEditorForm.java:354)
at nc.ui.hbbb.dxrelation.action.DXSaveAction.doAction(DXSaveAction.java:23)
at nc.ui.uif2.NCAction.actionPerformed(NCAction.java:85)
at nc.funcnode.ui.action.ActionDelegate.actionPerformed(ActionDelegate.java:296)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: nc.md.model.MetaDataRuntimeException: Error to init aggVOStyle,Please check the back log
at nc.ui.uif2.NCAction.actionPerformed(NCAction.java:101)
at nc.funcnode.ui.action.ActionDelegate.actionPerformed(ActionDelegate.java:296)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: nc.md.model.MetaDataRuntimeException: Error to init aggVOStyle,Please check the back log
at nc.md.model.access.javamap.AggVOStyle.newInstance(AggVOStyle.java:53)
at nc.md.data.access.NCObject.<init>(NCObject.java:118)
at nc.md.data.access.NCObject.newInstance(NCObject.java:176)
at nc.md.data.access.NCObjectImp.newInstanceWithKeyValues(NCObjectImp.java:59)
at nc.md.data.access.NCObject.newInstanceWithKeyValues(NCObject.java:212)
at nc.md.data.access.DASFacade.newInstanceWithKeyValues(DASFacade.java:130)
at nc.ui.pub.bill.BillData.getChangeBillObjectByMetaData(BillData.java:1599)
at nc.ui.uif2.editor.value.BillCardPanelMetaDataValueAdapter.getValue(BillCardPanelMetaDataValueAdapter.java:35)
at nc.ui.uif2.editor.BillForm.getValue(BillForm.java:260)
at nc.ui.hbbb.dxrelation.view.DXEditorForm.getValue(DXEditorForm.java:354)
at nc.ui.hbbb.dxrelation.action.DXSaveAction.doAction(DXSaveAction.java:23)
at nc.ui.uif2.NCAction.actionPerformed(NCAction.java:85)
... 38 more
11:19:52 [AWT-EventQueue-0] ERROR - 找不到对应的权限资源对象
nc.vo.pub.BusinessException: 找不到对应的权限资源对象
at nc.impl.pubitf.rbac.DataPermissionPubServiceImpl.findResourceVO(DataPermissionPubServiceImpl.java:363)
at nc.impl.pubitf.rbac.DataPermissionPubServiceImpl.queryDataPermConfigInner(DataPermissionPubServiceImpl.java:380)
at nc.impl.pubitf.rbac.DataPermissionPubServiceImpl.queryDataPermConfig(DataPermissionPubServiceImpl.java:189)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.aop.rt.MethodProceedingJoinpoint$3.invoke(MethodProceedingJoinpoint.java:74)
at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:184)
at nc.bs.framework.server.SecurityAspect.aroundMethod1(SecurityAspect.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:182)
at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129)
at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135)
at nc.bs.framework.aop.rt.AspectedProxy.invoke(AspectedProxy.java:59)
at com.sun.proxy.$Proxy264.queryDataPermConfig(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.ejb.CMTProxyImpl.delegate(CMTProxyImpl.java:22)
at nc.itf.framework.ejb.CMTProxyEjbBean.delegate(CMTProxyEjbBean.java:44)
at nc.itf.framework.ejb.CMTProxy_Local.delegate(CMTProxy_Local.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:57)
at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:36)
at com.sun.proxy.$Proxy37.delegate(Unknown Source)
at nc.bs.framework.ejb.CMTEJBServiceHandler.invoke(CMTEJBServiceHandler.java:32)
at com.sun.proxy.$Proxy265.queryDataPermConfig(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.rmi.server.RMIHandlerImpl.invokeBeanMethod(RMIHandlerImpl.java:433)
at nc.bs.framework.rmi.server.RMIHandlerImpl.doHandle(RMIHandlerImpl.java:203)
at nc.bs.framework.rmi.server.RMIHandlerImpl.handle(RMIHandlerImpl.java:103)
at nc.bs.framework.comn.serv.CommonServletDispatcher.doPost(CommonServletDispatcher.java:45)
11:23:07 [AWT-EventQueue-0] ERROR - 找不到对应的权限资源对象
nc.vo.pub.BusinessException: 找不到对应的权限资源对象
at nc.impl.pubitf.rbac.DataPermissionPubServiceImpl.findResourceVO(DataPermissionPubServiceImpl.java:363)
at nc.impl.pubitf.rbac.DataPermissionPubServiceImpl.queryDataPermConfigInner(DataPermissionPubServiceImpl.java:380)
at nc.impl.pubitf.rbac.DataPermissionPubServiceImpl.queryDataPermConfig(DataPermissionPubServiceImpl.java:189)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.aop.rt.MethodProceedingJoinpoint$3.invoke(MethodProceedingJoinpoint.java:74)
at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:184)
at nc.bs.framework.server.SecurityAspect.aroundMethod1(SecurityAspect.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.aop.rt.AdviceHolder.invoke(AdviceHolder.java:182)
at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:129)
at nc.bs.framework.aop.rt.MethodProceedingJoinpoint.proceed(MethodProceedingJoinpoint.java:135)
at nc.bs.framework.aop.rt.AspectedProxy.invoke(AspectedProxy.java:59)
at com.sun.proxy.$Proxy264.queryDataPermConfig(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.ejb.CMTProxyImpl.delegate(CMTProxyImpl.java:22)
at nc.itf.framework.ejb.CMTProxyEjbBean.delegate(CMTProxyEjbBean.java:44)
at nc.itf.framework.ejb.CMTProxy_Local.delegate(CMTProxy_Local.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:57)
at nc.bs.framework.ejb.AbstractEJBServiceHandler.invoke(AbstractEJBServiceHandler.java:36)
at com.sun.proxy.$Proxy37.delegate(Unknown Source)
at nc.bs.framework.ejb.CMTEJBServiceHandler.invoke(CMTEJBServiceHandler.java:32)
at com.sun.proxy.$Proxy265.queryDataPermConfig(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:88)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:55)
at java.lang.reflect.Method.invoke(Method.java:613)
at nc.bs.framework.rmi.server.RMIHandlerImpl.invokeBeanMethod(RMIHandlerImpl.java:433)
at nc.bs.framework.rmi.server.RMIHandlerImpl.doHandle(RMIHandlerImpl.java:203)
at nc.bs.framework.rmi.server.RMIHandlerImpl.handle(RMIHandlerImpl.java:103)
at nc.bs.framework.comn.serv.CommonServletDispatcher.doPost(CommonServletDispatcher.java:45)
11:23:08 [AWT-EventQueue-0] ERROR - 实例化访问器出错!请检查访问器里的类是否正确!主表VO:nc.vo.hbbb.dxrelation.AggDXRelationHeadVO,子表VO:nc.vo.hbbb.dxrelation.DXRelationHeadVOnc.vo.hbbb.dxrelation.AggDXRelationHeadVO
java.lang.ClassNotFoundException: nc.vo.hbbb.dxrelation.AggDXRelationHeadVO
at nc.bs.framework.provision.ProvisionClassLoader.loadClass(ProvisionClassLoader.java:261)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Unknown Source)
at nc.md.model.access.javamap.AggVOStyle.newInstance(AggVOStyle.java:37)
at nc.md.data.access.NCObject.<init>(NCObject.java:118)
at nc.md.data.access.NCObject.newInstance(NCObject.java:176)
at nc.md.data.access.NCObjectImp.newInstanceWithKeyValues(NCObjectImp.java:59)
at nc.md.data.access.NCObject.newInstanceWithKeyValues(NCObject.java:212)
at nc.md.data.access.DASFacade.newInstanceWithKeyValues(DASFacade.java:130)
at nc.ui.pub.bill.BillData.getChangeBillObjectByMetaData(BillData.java:1599)
at nc.ui.uif2.editor.value.BillCardPanelMetaDataValueAdapter.getValue(BillCardPanelMetaDataValueAdapter.java:35)
at nc.ui.uif2.editor.BillForm.getValue(BillForm.java:260)
at nc.ui.hbbb.dxrelation.view.DXEditorForm.getValue(DXEditorForm.java:354)
at nc.ui.hbbb.dxrelation.action.DXSaveAction.doAction(DXSaveAction.java:23)
at nc.ui.uif2.NCAction.actionPerformed(NCAction.java:85)
at nc.funcnode.ui.action.ActionDelegate.actionPerformed(ActionDelegate.java:296)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: nc.vo.hbbb.dxrelation.AggDXRelationHeadVO
at nc.bs.framework.provision.ProvisionClassLoader.findClass(ProvisionClassLoader.java:334)
at nc.bs.framework.provision.ProvisionClassLoader.loadClass(ProvisionClassLoader.java:294)
... 53 more
11:23:08 [AWT-EventQueue-0] ERROR - 未知的错误
nc.md.model.MetaDataRuntimeException: Error to init aggVOStyle,Please check the back log
at nc.md.model.access.javamap.AggVOStyle.newInstance(AggVOStyle.java:53)
at nc.md.data.access.NCObject.<init>(NCObject.java:118)
at nc.md.data.access.NCObject.newInstance(NCObject.java:176)
at nc.md.data.access.NCObjectImp.newInstanceWithKeyValues(NCObjectImp.java:59)
at nc.md.data.access.NCObject.newInstanceWithKeyValues(NCObject.java:212)
at nc.md.data.access.DASFacade.newInstanceWithKeyValues(DASFacade.java:130)
at nc.ui.pub.bill.BillData.getChangeBillObjectByMetaData(BillData.java:1599)
at nc.ui.uif2.editor.value.BillCardPanelMetaDataValueAdapter.getValue(BillCardPanelMetaDataValueAdapter.java:35)
at nc.ui.uif2.editor.BillForm.getValue(BillForm.java:260)
at nc.ui.hbbb.dxrelation.view.DXEditorForm.getValue(DXEditorForm.java:354)
at nc.ui.hbbb.dxrelation.action.DXSaveAction.doAction(DXSaveAction.java:23)
at nc.ui.uif2.NCAction.actionPerformed(NCAction.java:85)
at nc.funcnode.ui.action.ActionDelegate.actionPerformed(ActionDelegate.java:296)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: nc.md.model.MetaDataRuntimeException: Error to init aggVOStyle,Please check the back log
at nc.ui.uif2.NCAction.actionPerformed(NCAction.java:101)
at nc.funcnode.ui.action.ActionDelegate.actionPerformed(ActionDelegate.java:296)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$200(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.awt.EventQueue$3.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.awt.EventQueue$4.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: nc.md.model.MetaDataRuntimeException: Error to init aggVOStyle,Please check the back log
at nc.md.model.access.javamap.AggVOStyle.newInstance(AggVOStyle.java:53)
at nc.md.data.access.NCObject.<init>(NCObject.java:118)
at nc.md.data.access.NCObject.newInstance(NCObject.java:176)
at nc.md.data.access.NCObjectImp.newInstanceWithKeyValues(NCObjectImp.java:59)
at nc.md.data.access.NCObject.newInstanceWithKeyValues(NCObject.java:212)
at nc.md.data.access.DASFacade.newInstanceWithKeyValues(DASFacade.java:130)
at nc.ui.pub.bill.BillData.getChangeBillObjectByMetaData(BillData.java:1599)
at nc.ui.uif2.editor.value.BillCardPanelMetaDataValueAdapter.getValue(BillCardPanelMetaDataValueAdapter.java:35)
at nc.ui.uif2.editor.BillForm.getValue(BillForm.java:260)
at nc.ui.hbbb.dxrelation.view.DXEditorForm.getValue(DXEditorForm.java:354)
at nc.ui.hbbb.dxrelation.action.DXSaveAction.doAction(DXSaveAction.java:23)
at nc.ui.uif2.NCAction.actionPerformed(NCAction.java:85)
... 38 more
出错原因:元数据丢失
解决方案:
重新发布元数据后再重启服务。我这里是把恢复回原本的元数据(正式环境先升级元数据再发布。不过发现开发工具修改了元数据后,版本号会自增,所以可以在记事本、eclipse或notepad++中直接修改version字段,修改为大于当前的版本就可以了
)
-- 修改元数据版本号(如果原版本号是197,则这里需要修改为196,升级发布后就是197了)
update md_component set version = 196 where id = '78895263-63e6-4088-b580-b1a3580238e3' and industry = '0' and versiontype = '0';
以下内容是出自于:https://blog.csdn.net/qq_42994789/article/details/126122189
一、NC元数据提示升级成功但实际却没有生效
实际开发中经常遇到这个问题,没有使用标准的扩展开发,而是直接更改了元数据,在前台“元数据管理”节点中升级后,明明提示了升级成功但是却没有生效,下面给出两种解决办法。
1.1 修改版本字段
跟踪代码后,我发现这算是一个bug,在源码的PublishServiceImpl.publishMetaDataForUpgrade方法中,发布元数据时,会校验元数据版本,若版本小于等于当前元数据,会发布失败,但前台提示还是“元数据升级成功”,这算是一个坑。
解决方法很简单,在eclipse或notepad++中直接修改version字段,修改为大于当前的版本就可以了。
怎么确定是否真的大于呢?
用这条sql可以查询当前数据库中的元数据版本:
select * from md_component where id = '54895263-63e6-4088-b580-b1a3580230e3' and industry = '0' and versiontype = '0'
1.2 通过SQL解决
如果你发现修改元数据后,版本号刷新了,但是你的元数据依然没有生效,那么就可以直接通过SQL脚本来解决这个问题(当然我没有遇到过这个问题,这只是假设)。
这个办法的前提是你有一个测试环境,你可以在测试环境中用eclipse的发布元数据功能,这样测试环境的元数据就是你想要的状态了,然后再对比测试与生产的md_property、md_component、md_class、md_enumValue、md_accessorPara、md_bizItfMap、md_association、md_table、md_column、md_ORMap、md_db_relation这些表,手动导出不同的部分,然后会形成一个sql脚本,将这个脚本在生产执行就有解决问题的可能了。