二次开发报表中物料树选中报错
620次浏览
编辑于2015年12月30日 20:26:21
二次开发一个普通报表,包括查询条件录入界面和显示界面,查询界面继承了com.kingdee.eas.framework.report.client.CommRptBaseConditionUI
并在filterUI.java
有如下代码
public *******_FilterUI() throws Exception
{
super();
//物料选择采用树型结构方式
F7ContextManager f7Manager = new F7ContextManager(this, OrgType.Purchase, 1);
f7Manager.registerBizMaterialF7(material, null, null, null, false);
}
material 是一个F7控件,绑定的queryinfo是com.kingdee.eas.basedata.master.material.app.F7MaterialQuery,只能单选,显示、编辑和提交格式都是$number$
运行报表时点击物料控件,弹出物料选择的左树右表选择窗口,选中物资确定后则报错
错误信息:null
错误详细堆栈信息:java.lang.NullPointerException: null
at: com.kingdee.eas.basedata.master.material.client.F7MaterialTreeListUI.tblMain_tableClicked(F7MaterialTreeListUI.java:303)
at: com.kingdee.eas.framework.client.AbstractListUI$1.tableClicked(AbstractListUI.java:321)
at: com.kingdee.bos.ctrl.kdf.table.KDTable.fireTableClick(KDTable.java:1956)
at: com.kingdee.bos.ctrl.kdf.table.KDTView.fireCellClick(KDTView.java:1485)
at: com.kingdee.bos.ctrl.kdf.table.KDTView.mouseClicked(KDTView.java:1217)
at: java.awt.Component.processMouseEvent(Component.java:6270)
at: javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at: java.awt.Component.processEvent(Component.java:6032)
at: java.awt.Container.processEvent(Container.java:2041)
at: java.awt.Component.dispatchEventImpl(Component.java:4630)
at: java.awt.Container.dispatchEventImpl(Container.java:2099)
at: java.awt.Component.dispatchEvent(Component.java:4460)
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:4460)
at: java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at: com.kingdee.bos.invokecounter.RPCLogEventQueue.dispatchEvent(RPCLogEventQueue.java:176)
at: sun.reflect.GeneratedMethodAccessor16.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.pumpEventsForFilter(EventDispatchThread.java:178)
at: java.awt.Dialog$1.run(Dialog.java:1046)
at: java.awt.Dialog$3.run(Dialog.java:1098)
at: java.security.AccessController.doPrivileged(Native Method)
at: java.awt.Dialog.show(Dialog.java:1096)
at: com.kingdee.bos.ctrl.swing.KDDialog.show(KDDialog.java:186)
at: com.kingdee.eas.base.uiframe.client.UIModelDialog.show(UIModelDialog.java:120)
at: com.kingdee.eas.cm.common.client.GeneralKDPromptSelectorAdaptor.show(GeneralKDPromptSelectorAdaptor.java:604)
at: com.kingdee.bos.ctrl.swing.KDPromptBox.popupSelector(KDPromptBox.java:1004)
at: com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox.popupSelector(KDBizPromptBox.java:1367)
at: com.kingdee.bos.ctrl.swing.KDPromptBox.setDataBySelector(KDPromptBox.java:1020)
at: com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox.setDataBySelector(KDBizPromptBox.java:2765)
at: com.kingdee.bos.ctrl.swing.plaf.KingdeePromptBoxUI$PromptBoxListener.actionPerformed(KingdeePromptBoxUI.java:1196)
at: javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at: javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at: javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at: javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at: javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at: java.awt.Component.processMouseEvent(Component.java:6267)
at: javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at: java.awt.Component.processEvent(Component.java:6032)
at: java.awt.Container.processEvent(Container.java:2041)
at: java.awt.Component.dispatchEventImpl(Component.java:4630)
at: java.awt.Container.dispatchEventImpl(Container.java:2099)
at: java.awt.Component.dispatchEvent(Component.java:4460)
at: java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at: java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
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:4460)
at: java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at: com.kingdee.bos.invokecounter.RPCLogEventQueue.dispatchEvent(RPCLogEventQueue.java:176)
at: sun.reflect.GeneratedMethodAccessor16.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.pumpEventsForFilter(EventDispatchThread.java:178)
at: java.awt.Dialog$1.run(Dialog.java:1046)
at: java.awt.Dialog$3.run(Dialog.java:1098)
at: java.security.AccessController.doPrivileged(Native Method)
at: java.awt.Dialog.show(Dialog.java:1096)
at: com.kingdee.bos.ctrl.swing.KDDialog.show(KDDialog.java:186)
at: com.kingdee.eas.base.uiframe.client.UIModelDialog.show(UIModelDialog.java:120)
at: com.kingdee.eas.base.commonquery.client.CommonQueryDialog.show(CommonQueryDialog.java:132)
at: com.kingdee.eas.framework.report.client.CommRptBaseUI.showQueryDialog(CommRptBaseUI.java:973)
at: com.kingdee.eas.framework.report.client.CommRptBaseUI.onLoad(CommRptBaseUI.java:161)
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.NewMainFunctionMenuUI$3.mouseClicked(NewMainFunctionMenuUI.java:155)
at: java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
at: java.awt.Component.processMouseEvent(Component.java:6270)
at: javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at: java.awt.Component.processEvent(Component.java:6032)
at: java.awt.Container.processEvent(Container.java:2041)
at: java.awt.Component.dispatchEventImpl(Component.java:4630)
at: java.awt.Container.dispatchEventImpl(Container.java:2099)
at: java.awt.Component.dispatchEvent(Component.java:4460)
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:4460)
at: java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at: com.kingdee.bos.invokecounter.RPCLogEventQueue.dispatchEvent(RPCLogEventQueue.java:176)
at: sun.reflect.GeneratedMethodAccessor16.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)
请问这个问题要怎么解决
并在filterUI.java
有如下代码
public *******_FilterUI() throws Exception
{
super();
//物料选择采用树型结构方式
F7ContextManager f7Manager = new F7ContextManager(this, OrgType.Purchase, 1);
f7Manager.registerBizMaterialF7(material, null, null, null, false);
}
material 是一个F7控件,绑定的queryinfo是com.kingdee.eas.basedata.master.material.app.F7MaterialQuery,只能单选,显示、编辑和提交格式都是$number$
运行报表时点击物料控件,弹出物料选择的左树右表选择窗口,选中物资确定后则报错
错误信息:null
错误详细堆栈信息:java.lang.NullPointerException: null
at: com.kingdee.eas.basedata.master.material.client.F7MaterialTreeListUI.tblMain_tableClicked(F7MaterialTreeListUI.java:303)
at: com.kingdee.eas.framework.client.AbstractListUI$1.tableClicked(AbstractListUI.java:321)
at: com.kingdee.bos.ctrl.kdf.table.KDTable.fireTableClick(KDTable.java:1956)
at: com.kingdee.bos.ctrl.kdf.table.KDTView.fireCellClick(KDTView.java:1485)
at: com.kingdee.bos.ctrl.kdf.table.KDTView.mouseClicked(KDTView.java:1217)
at: java.awt.Component.processMouseEvent(Component.java:6270)
at: javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at: java.awt.Component.processEvent(Component.java:6032)
at: java.awt.Container.processEvent(Container.java:2041)
at: java.awt.Component.dispatchEventImpl(Component.java:4630)
at: java.awt.Container.dispatchEventImpl(Container.java:2099)
at: java.awt.Component.dispatchEvent(Component.java:4460)
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:4460)
at: java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at: com.kingdee.bos.invokecounter.RPCLogEventQueue.dispatchEvent(RPCLogEventQueue.java:176)
at: sun.reflect.GeneratedMethodAccessor16.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.pumpEventsForFilter(EventDispatchThread.java:178)
at: java.awt.Dialog$1.run(Dialog.java:1046)
at: java.awt.Dialog$3.run(Dialog.java:1098)
at: java.security.AccessController.doPrivileged(Native Method)
at: java.awt.Dialog.show(Dialog.java:1096)
at: com.kingdee.bos.ctrl.swing.KDDialog.show(KDDialog.java:186)
at: com.kingdee.eas.base.uiframe.client.UIModelDialog.show(UIModelDialog.java:120)
at: com.kingdee.eas.cm.common.client.GeneralKDPromptSelectorAdaptor.show(GeneralKDPromptSelectorAdaptor.java:604)
at: com.kingdee.bos.ctrl.swing.KDPromptBox.popupSelector(KDPromptBox.java:1004)
at: com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox.popupSelector(KDBizPromptBox.java:1367)
at: com.kingdee.bos.ctrl.swing.KDPromptBox.setDataBySelector(KDPromptBox.java:1020)
at: com.kingdee.bos.ctrl.extendcontrols.KDBizPromptBox.setDataBySelector(KDBizPromptBox.java:2765)
at: com.kingdee.bos.ctrl.swing.plaf.KingdeePromptBoxUI$PromptBoxListener.actionPerformed(KingdeePromptBoxUI.java:1196)
at: javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
at: javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
at: javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
at: javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
at: javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
at: java.awt.Component.processMouseEvent(Component.java:6267)
at: javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at: java.awt.Component.processEvent(Component.java:6032)
at: java.awt.Container.processEvent(Container.java:2041)
at: java.awt.Component.dispatchEventImpl(Component.java:4630)
at: java.awt.Container.dispatchEventImpl(Container.java:2099)
at: java.awt.Component.dispatchEvent(Component.java:4460)
at: java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4577)
at: java.awt.LightweightDispatcher.processMouseEvent(Container.java:4238)
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:4460)
at: java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at: com.kingdee.bos.invokecounter.RPCLogEventQueue.dispatchEvent(RPCLogEventQueue.java:176)
at: sun.reflect.GeneratedMethodAccessor16.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.pumpEventsForFilter(EventDispatchThread.java:178)
at: java.awt.Dialog$1.run(Dialog.java:1046)
at: java.awt.Dialog$3.run(Dialog.java:1098)
at: java.security.AccessController.doPrivileged(Native Method)
at: java.awt.Dialog.show(Dialog.java:1096)
at: com.kingdee.bos.ctrl.swing.KDDialog.show(KDDialog.java:186)
at: com.kingdee.eas.base.uiframe.client.UIModelDialog.show(UIModelDialog.java:120)
at: com.kingdee.eas.base.commonquery.client.CommonQueryDialog.show(CommonQueryDialog.java:132)
at: com.kingdee.eas.framework.report.client.CommRptBaseUI.showQueryDialog(CommRptBaseUI.java:973)
at: com.kingdee.eas.framework.report.client.CommRptBaseUI.onLoad(CommRptBaseUI.java:161)
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.NewMainFunctionMenuUI$3.mouseClicked(NewMainFunctionMenuUI.java:155)
at: java.awt.AWTEventMulticaster.mouseClicked(AWTEventMulticaster.java:253)
at: java.awt.Component.processMouseEvent(Component.java:6270)
at: javax.swing.JComponent.processMouseEvent(JComponent.java:3267)
at: java.awt.Component.processEvent(Component.java:6032)
at: java.awt.Container.processEvent(Container.java:2041)
at: java.awt.Component.dispatchEventImpl(Component.java:4630)
at: java.awt.Container.dispatchEventImpl(Container.java:2099)
at: java.awt.Component.dispatchEvent(Component.java:4460)
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:4460)
at: java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
at: com.kingdee.bos.invokecounter.RPCLogEventQueue.dispatchEvent(RPCLogEventQueue.java:176)
at: sun.reflect.GeneratedMethodAccessor16.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)
请问这个问题要怎么解决
报表查询报错.bmp(1.08MB)
推荐阅读
您的鼓励与嘉奖将成为创作者们前进的动力,如果觉得本文还不错,可以给予作者创作打赏哦!
请选择打赏金币数 *
10金币20金币30金币40金币50金币60金币
可用金币: 0