付款单保存时报错
金蝶云社区-云社区用户1X984738
云社区用户1X984738
0人赞赏了该文章 1,086次浏览 未经作者许可,禁止转载编辑于2015年09月28日 19:04:44

付款单保存时报错,报错信息如下:

错误信息:Plugin script execute error, please check whether script is right.
方案动态web平台元数据中的脚本存在问题。脚本如下:
if (pluginCtx.getKDTextField("txtDescription").getText().equals("") ||
pluginCtx.getKDTextField("txtUsage").getText().equals(""))
{
com.kingdee.eas.util.client.MsgBox.showConfirm2("摘要或用途不能为空!");
com.kingdee.eas.util.SysUtil.abort();
}
if (pluginCtx.getKDBizPromptBox("prmtAdminOrgUnit").getText().equals("") ||
pluginCtx.getKDBizPromptBox("prmtFpItem").getText().equals(""))
{
com.kingdee.eas.util.client.MsgBox.showConfirm2("部门或流出计划项目不能为空!");
com.kingdee.eas.util.SysUtil.abort();
}
if (pluginCtx.getKDBizPromptBox("prmtcoslingshan").getText().equals(""))
{
com.kingdee.eas.util.client.MsgBox.showConfirm2("成本中心不能为空!");
com.kingdee.eas.util.SysUtil.abort();
}

Caused exception message is: 19567
错误详细堆栈信息:com.kingdee.eas.ep.plugin.ScriptExecuteException: Plugin script execute error, please check whether script is right.
方案动态web平台元数据中的脚本存在问题。脚本如下:
if (pluginCtx.getKDTextField("txtDescription").getText().equals("") ||
pluginCtx.getKDTextField("txtUsage").getText().equals(""))
{
com.kingdee.eas.util.client.MsgBox.showConfirm2("摘要或用途不能为空!");
com.kingdee.eas.util.SysUtil.abort();
}
if (pluginCtx.getKDBizPromptBox("prmtAdminOrgUnit").getText().equals("") ||
pluginCtx.getKDBizPromptBox("prmtFpItem").getText().equals(""))
{
com.kingdee.eas.util.client.MsgBox.showConfirm2("部门或流出计划项目不能为空!");
com.kingdee.eas.util.SysUtil.abort();
}
if (pluginCtx.getKDBizPromptBox("prmtcoslingshan").getText().equals(""))
{
com.kingdee.eas.util.client.MsgBox.showConfirm2("成本中心不能为空!");
com.kingdee.eas.util.SysUtil.abort();
}

Caused exception message is: 19567
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.PluginService.executeScript(PluginService.java:189)
at com.kingdee.eas.ep.client.PluginService.beforeActionPerformed(PluginService.java:127)
at com.kingdee.bos.appframework.client.servicebinding.ActionProxy.beforeAction(ActionProxy.java:237)
at com.kingdee.bos.appframework.client.servicebinding.ActionProxy.actionPerformedInvoke(ActionProxy.java:168)
at com.kingdee.bos.appframework.client.servicebinding.ActionProxy.actionPerformed(ActionProxy.java:101)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at com.kingdee.bos.ctrl.swing.KDWorkButton.fireActionPerformed(KDWorkButton.java:567)
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.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 com.kingdee.bos.ctrl.swing.KDWorkButton.processMouseEvent(KDWorkButton.java:861)
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.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$400(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 com.kingdee.bos.invokecounter.RPCLogEventQueue.dispatchEvent(RPCLogEventQueue.java:83)
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.ArrayIndexOutOfBoundsException: 19567
at org.mozilla.javascript.net.sf.retrotranslator.runtime.asm.ClassReader.accept(ClassReader.java:342)
at org.mozilla.javascript.net.sf.retrotranslator.runtime.asm.ClassReader.accept(ClassReader.java:300)
at org.mozilla.javascript.net.sf.retrotranslator.runtime.impl.ClassDescriptor.(ClassDescriptor.java:67)
at org.mozilla.javascript.net.sf.retrotranslator.runtime.impl.ClassDescriptor.getInstance(ClassDescriptor.java:82)
at org.mozilla.javascript.net.sf.retrotranslator.runtime.impl.MethodDescriptor.getInstance(MethodDescriptor.java:120)
at org.mozilla.javascript.net.sf.retrotranslator.runtime.java.lang.reflect._Method.isVarArgs(_Method.java:96)
at org.mozilla.javascript.jdk15.VMBridge_jdk15.isVarArgs(VMBridge_jdk15.java:64)
at org.mozilla.javascript.MemberBox.init(MemberBox.java:79)
at org.mozilla.javascript.MemberBox.(MemberBox.java:67)
at org.mozilla.javascript.JavaMembers.reflect(JavaMembers.java:487)
at org.mozilla.javascript.JavaMembers.(JavaMembers.java:76)
at org.mozilla.javascript.JavaMembers.lookupClass(JavaMembers.java:837)
at org.mozilla.javascript.NativeJavaObject.initMembers(NativeJavaObject.java:90)
at org.mozilla.javascript.NativeJavaObject.(NativeJavaObject.java:80)
at org.mozilla.javascript.NativeJavaObject.(NativeJavaObject.java:70)
at org.mozilla.javascript.WrapFactory.wrapAsJavaObject(WrapFactory.java:149)
at org.mozilla.javascript.WrapFactory.wrap(WrapFactory.java:105)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:258)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119)
at org.mozilla.javascript.gen.unnamed_script_44._c_script_0(unnamed script:0)
at org.mozilla.javascript.gen.unnamed_script_44.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_44.call(unnamed script)
at org.mozilla.javascript.gen.unnamed_script_44.exec(unnamed script)
at org.mozilla.javascript.Context.evaluateString(Context.java:1111)
at com.kingdee.eas.ep.client.ScriptExecutor.execute(ScriptExecutor.java:50)
... 48 more
Caused by: java.lang.ArrayIndexOutOfBoundsException
java.lang.ArrayIndexOutOfBoundsException: 19567
at org.mozilla.javascript.net.sf.retrotranslator.runtime.asm.ClassReader.accept(ClassReader.java:342)
at org.mozilla.javascript.net.sf.retrotranslator.runtime.asm.ClassReader.accept(ClassReader.java:300)
at org.mozilla.javascript.net.sf.retrotranslator.runtime.impl.ClassDescriptor.(ClassDescriptor.java:67)
at org.mozilla.javascript.net.sf.retrotranslator.runtime.impl.ClassDescriptor.getInstance(ClassDescriptor.java:82)
at org.mozilla.javascript.net.sf.retrotranslator.runtime.impl.MethodDescriptor.getInstance(MethodDescriptor.java:120)
at org.mozilla.javascript.net.sf.retrotranslator.runtime.java.lang.reflect._Method.isVarArgs(_Method.java:96)
at org.mozilla.javascript.jdk15.VMBridge_jdk15.isVarArgs(VMBridge_jdk15.java:64)
at org.mozilla.javascript.MemberBox.init(MemberBox.java:79)
at org.mozilla.javascript.MemberBox.(MemberBox.java:67)
at org.mozilla.javascript.JavaMembers.reflect(JavaMembers.java:487)
at org.mozilla.javascript.JavaMembers.(JavaMembers.java:76)
at org.mozilla.javascript.JavaMembers.lookupClass(JavaMembers.java:837)
at org.mozilla.javascript.NativeJavaObject.initMembers(NativeJavaObject.java:90)
at org.mozilla.javascript.NativeJavaObject.(NativeJavaObject.java:80)
at org.mozilla.javascript.NativeJavaObject.(NativeJavaObject.java:70)
at org.mozilla.javascript.WrapFactory.wrapAsJavaObject(WrapFactory.java:149)
at org.mozilla.javascript.WrapFactory.wrap(WrapFactory.java:105)
at org.mozilla.javascript.NativeJavaMethod.call(NativeJavaMethod.java:258)
at org.mozilla.javascript.optimizer.OptRuntime.callProp0(OptRuntime.java:119)
at org.mozilla.javascript.gen.unnamed_script_44._c_script_0(unnamed script:0)
at org.mozilla.javascript.gen.unnamed_script_44.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_44.call(unnamed script)
at org.mozilla.javascript.gen.unnamed_script_44.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.PluginService.executeScript(PluginService.java:189)
at com.kingdee.eas.ep.client.PluginService.beforeActionPerformed(PluginService.java:127)
at com.kingdee.bos.appframework.client.servicebinding.ActionProxy.beforeAction(ActionProxy.java:237)
at com.kingdee.bos.appframework.client.servicebinding.ActionProxy.actionPerformedInvoke(ActionProxy.java:168)
at com.kingdee.bos.appframework.client.servicebinding.ActionProxy.actionPerformed(ActionProxy.java:101)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at com.kingdee.bos.ctrl.swing.KDWorkButton.fireActionPerformed(KDWorkButton.java:567)
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.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 com.kingdee.bos.ctrl.swing.KDWorkButton.processMouseEvent(KDWorkButton.java:861)
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.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$400(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 com.kingdee.bos.invokecounter.RPCLogEventQueue.dispatchEvent(RPCLogEventQueue.java:83)
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)