各位: 这个问题是关于EAS数据备份还原DEP失效的
客户服务器由于补丁原因,需要重新部署服务器,并还原数据库,然后我们从ORACLE的备份文件还原数据库至新服务器(EAS重新安装过),结果发现所有DEP开发的内容,增加的字段都看不到了(编辑界面和实体里都不见了),但是数据库中这些字段都是存在并有值的,有些序时簿以前需要展现自己加的字段,现在全部会报错,错误信息如下
错误信息:Plugin script execute error, please check whether script is right.
方案DeviceSolution中的脚本存在问题。脚本如下:
//领料出库单序时薄onload
var easNames = JavaImporter();
easNames.importPackage(Packages.com.kingdee.bos.ctrl.extendcontrols);
easNames.importPackage(Packages.com.kingdee.bos);
easNames.importPackage(Packages.com.kingdee.bos.util);
easNames.importPackage(Packages.com.kingdee.bos.metadata);
easNames.importPackage(Packages.com.kingdee.eas.util.client);
easNames.importPackage(Packages.com.kingdee.bos.framework);
easNames.importPackage(Packages.com.kingdee.eas.eqm.archives);
with(easNames){
//修改菜单,按钮图标和快捷键
var btnEQM=pluginCtx.getKDWorkButton("btnGeneEqm");
var menuEQM=pluginCtx.getKDMenuItem("menuItemGeneEqm");
var geneLocal = com.kingdee.eas.common.client.SysContext.getSysContext().getLocale();
var icon = com.kingdee.eas.util.EASCommonResource.getIcon("com.kingdee.eas.basedata.common.EASImageResource","imgTbtn_seeicdeviceaccessory",geneLocal);
menuEQM.setIcon(icon);
btnEQM.setIcon(icon);
menuEQM.setMnemonic(69);
menuEQM.setText("生成设备档案(E)");
}
Caused exception message is: TypeError: Cannot call method "setIcon" of null (unnamed script#16)
错误详细堆栈信息:com.kingdee.eas.ep.plugin.ScriptExecuteException: Plugin script execute error, please check whether script is right.
方案DeviceSolution中的脚本存在问题。脚本如下:
//领料出库单序时薄onload
var easNames = JavaImporter();
easNames.importPackage(Packages.com.kingdee.bos.ctrl.extendcontrols);
easNames.importPackage(Packages.com.kingdee.bos);
easNames.importPackage(Packages.com.kingdee.bos.util);
easNames.importPackage(Packages.com.kingdee.bos.metadata);
easNames.importPackage(Packages.com.kingdee.eas.util.client);
easNames.importPackage(Packages.com.kingdee.bos.framework);
easNames.importPackage(Packages.com.kingdee.eas.eqm.archives);
with(easNames){
//修改菜单,按钮图标和快捷键
var btnEQM=pluginCtx.getKDWorkButton("btnGeneEqm");
var menuEQM=pluginCtx.getKDMenuItem("menuItemGeneEqm");
var geneLocal = com.kingdee.eas.common.client.SysContext.getSysContext().getLocale();
var icon = com.kingdee.eas.util.EASCommonResource.getIcon("com.kingdee.eas.basedata.common.EASImageResource","imgTbtn_seeicdeviceaccessory",geneLocal);
menuEQM.setIcon(icon);
btnEQM.setIcon(icon);
menuEQM.setMnemonic(69);
menuEQM.setText("生成设备档案(E)");
}
Caused exception message is: TypeError: Cannot call method "setIcon" of null (unnamed script#16)
at com.kingdee.eas.ep.plugin.PluginUtils.getScriptExecuteException(PluginUtils.java:104)
at com.kingdee.eas.ep.plugin.PluginUtils.handleScriptException(PluginUtils.java:69)
at com.kingdee.eas.ep.client.ScriptExecutor.execute(ScriptExecutor.java:52)
at com.kingdee.eas.ep.client.ExtendMethodInterceptor.executeScript(ExtendMethodInterceptor.java:135)
at com.kingdee.eas.ep.client.ExtendMethodInterceptor.intercept(ExtendMethodInterceptor.java:108)
at com.kingdee.eas.scm.im.inv.client.MaterialReqBillListUI$$EnhancerByCGLIB$$5a0c5553.onLoad(
at com.kingdee.eas.base.uiframe.client.UIFactoryHelper.initUIObject(UIFactoryHelper.java:296)
at com.kingdee.eas.base.uiframe.client.UINewTabFactory.create(UINewTabFactory.java:110)
at com.kingdee.eas.base.uiframe.client.UIShowHelper.innerCreateUI(UIShowHelper.java:119)
at com.kingdee.eas.base.uiframe.client.UIShowHelper.passCreateUI(UIShowHelper.java:91)
at com.kingdee.eas.base.uiframe.client.UIShowHelper.createUI(UIShowHelper.java:71)
at com.kingdee.eas.base.uiframe.client.UIShowHelper.showUI(UIShowHelper.java:46)
at com.kingdee.eas.base.uiframe.client.UIShowHelper.showUI(UIShowHelper.java:24)
at com.kingdee.eas.base.uiframe.client.LeafMenuCellPane.performDblclick(LeafMenuCellPane.java:220)
at com.kingdee.eas.base.uiframe.client.LeafMenuCellPane.access$500(LeafMenuCellPane.java:37)
at com.kingdee.eas.base.uiframe.client.LeafMenuCellPane$TopLabelMouseAdapter.mouseClicked(LeafMenuCellPane.java:89)
at java.awt.Component.processMouseEvent(Component.java:6291)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6053)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4651)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:616)
at java.awt.EventQueue$2.run(EventQueue.java:614)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
at com.kingdee.bos.invokecounter.RPCLogEventQueue.dispatchEvent(RPCLogEventQueue.java:176)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.kingdee.eas.client.recorder.UserInputEventQueue.myDispatchEvent(UserInputEventQueue.java:126)
at com.kingdee.eas.client.recorder.UserInputEventQueue.dispatchEvent(UserInputEventQueue.java:59)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
Caused by: org.mozilla.javascript.EcmaError: TypeError: Cannot call method "setIcon" of null (unnamed script#16)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3753)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3731)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3759)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3778)
at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3797)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
at org.mozilla.javascript.gen.unnamed_script_12._c_script_0(unnamed script:16)
at org.mozilla.javascript.gen.unnamed_script_12.call(unnamed script)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157)
at org.mozilla.javascript.gen.unnamed_script_12.call(unnamed script)
at org.mozilla.javascript.gen.unnamed_script_12.exec(unnamed script)
at org.mozilla.javascript.Context.evaluateString(Context.java:1111)
at com.kingdee.eas.ep.client.ScriptExecutor.execute(ScriptExecutor.java:50)
... 50 more
Caused by: org.mozilla.javascript.EcmaError
org.mozilla.javascript.EcmaError: TypeError: Cannot call method "setIcon" of null (unnamed script#16)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3753)
at org.mozilla.javascript.ScriptRuntime.constructError(ScriptRuntime.java:3731)
at org.mozilla.javascript.ScriptRuntime.typeError(ScriptRuntime.java:3759)
at org.mozilla.javascript.ScriptRuntime.typeError2(ScriptRuntime.java:3778)
at org.mozilla.javascript.ScriptRuntime.undefCallError(ScriptRuntime.java:3797)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThisHelper(ScriptRuntime.java:2317)
at org.mozilla.javascript.ScriptRuntime.getPropFunctionAndThis(ScriptRuntime.java:2310)
at org.mozilla.javascript.gen.unnamed_script_12._c_script_0(unnamed script:16)
at org.mozilla.javascript.gen.unnamed_script_12.call(unnamed script)
at org.mozilla.javascript.ContextFactory.doTopCall(ContextFactory.java:426)
at org.mozilla.javascript.ScriptRuntime.doTopCall(ScriptRuntime.java:3157)
at org.mozilla.javascript.gen.unnamed_script_12.call(unnamed script)
at org.mozilla.javascript.gen.unnamed_script_12.exec(unnamed script)
at org.mozilla.javascript.Context.evaluateString(Context.java:1111)
at com.kingdee.eas.ep.client.ScriptExecutor.execute(ScriptExecutor.java:50)
at com.kingdee.eas.ep.client.ExtendMethodInterceptor.executeScript(ExtendMethodInterceptor.java:135)
at com.kingdee.eas.ep.client.ExtendMethodInterceptor.intercept(ExtendMethodInterceptor.java:108)
at com.kingdee.eas.scm.im.inv.client.MaterialReqBillListUI$$EnhancerByCGLIB$$5a0c5553.onLoad(
at com.kingdee.eas.base.uiframe.client.UIFactoryHelper.initUIObject(UIFactoryHelper.java:296)
at com.kingdee.eas.base.uiframe.client.UINewTabFactory.create(UINewTabFactory.java:110)
at com.kingdee.eas.base.uiframe.client.UIShowHelper.innerCreateUI(UIShowHelper.java:119)
at com.kingdee.eas.base.uiframe.client.UIShowHelper.passCreateUI(UIShowHelper.java:91)
at com.kingdee.eas.base.uiframe.client.UIShowHelper.createUI(UIShowHelper.java:71)
at com.kingdee.eas.base.uiframe.client.UIShowHelper.showUI(UIShowHelper.java:46)
at com.kingdee.eas.base.uiframe.client.UIShowHelper.showUI(UIShowHelper.java:24)
at com.kingdee.eas.base.uiframe.client.LeafMenuCellPane.performDblclick(LeafMenuCellPane.java:220)
at com.kingdee.eas.base.uiframe.client.LeafMenuCellPane.access$500(LeafMenuCellPane.java:37)
at com.kingdee.eas.base.uiframe.client.LeafMenuCellPane$TopLabelMouseAdapter.mouseClicked(LeafMenuCellPane.java:89)
at java.awt.Component.processMouseEvent(Component.java:6291)
at javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at java.awt.Component.processEvent(Component.java:6053)
at java.awt.Container.processEvent(Container.java:2041)
at java.awt.Component.dispatchEventImpl(Component.java:4651)
at java.awt.Container.dispatchEventImpl(Container.java:2099)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4247)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4168)
at java.awt.Container.dispatchEventImpl(Container.java:2085)
at java.awt.Window.dispatchEventImpl(Window.java:2478)
at java.awt.Component.dispatchEvent(Component.java:4481)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:643)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
at java.awt.EventQueue$2.run(EventQueue.java:616)
at java.awt.EventQueue$2.run(EventQueue.java:614)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:613)
at com.kingdee.bos.invokecounter.RPCLogEventQueue.dispatchEvent(RPCLogEventQueue.java:176)
at sun.reflect.GeneratedMethodAccessor13.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.kingdee.eas.client.recorder.UserInputEventQueue.myDispatchEvent(UserInputEventQueue.java:126)
at com.kingdee.eas.client.recorder.UserInputEventQueue.dispatchEvent(UserInputEventQueue.java:59)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
请教各位,这个问题是不是还原出问题了,该如何解决,急
推荐阅读