南
南极虾米
Unregistered / Unconfirmed
GUEST, unregistred user!
程序在JBuilderX中运行正常,在JBuilder2005中运行出错!
情况如下:
1、设置过程:
procedureDataSet1.setProcedure(new com.borland.dx.sql.dataset.ProcedureDescriptor(database1, "select * from WARE_SUBINFO FUBASE_BASEID) ", myview_baseinfo, true, Load.ALL));
2、设置JdbTable:
jdbTable1.setDataSet(procedureDataSet1);
3、运行--->出错!
在myview_baseinfo中增加一新记录,然后刷新procedureDataSet1,运行出错。
错误信息:
java.lang.IllegalArgumentException: Row index out of range
at javax.swing.JTable.boundRow(JTable.java:1347)
at javax.swing.JTable.setRowSelectionInterval(JTable.java:1370)
at com.borland.dbswing.JdbTable.accessChange(JdbTable.java:2959)
at com.borland.dx.dataset.AccessEvent.dispatch(Unknown Source)
at com.borland.jb.util.EventMulticaster.dispatch(Unknown Source)
at com.borland.dx.dataset.DataSet.a(Unknown Source)
at com.borland.dx.dataset.DataSet.a(Unknown Source)
at com.borland.dx.dataset.DataSet.a(Unknown Source)
at com.borland.dx.dataset.DataSet.open(Unknown Source)
at com.borland.dx.dataset.StorageDataSet.refresh(Unknown Source)
at com.borland.dx.sql.dataset.ProcedureDataSet.refresh(Unknown source)
at zhmrp.appware.Wareindent_baseinfo.aaa_refresh_dbQUERY(Wareindent_baseinfo.java:2018)
经过检查,问题来源于 JTable.setRowSelectionInterval()调用之JTable.boundRow().
private int boundRow(int row) throws IllegalArgumentException
{
if (row <
0 || row >= getRowCount()) {
throw new IllegalArgumentException("Row index out of range");
}
return row;
}
难道JdbTable不支持空记录?
极怀疑是JBuilder2005的新BUG?!
请各位大佬帮帮我。
情况如下:
1、设置过程:
procedureDataSet1.setProcedure(new com.borland.dx.sql.dataset.ProcedureDescriptor(database1, "select * from WARE_SUBINFO FUBASE_BASEID) ", myview_baseinfo, true, Load.ALL));
2、设置JdbTable:
jdbTable1.setDataSet(procedureDataSet1);
3、运行--->出错!
在myview_baseinfo中增加一新记录,然后刷新procedureDataSet1,运行出错。
错误信息:
java.lang.IllegalArgumentException: Row index out of range
at javax.swing.JTable.boundRow(JTable.java:1347)
at javax.swing.JTable.setRowSelectionInterval(JTable.java:1370)
at com.borland.dbswing.JdbTable.accessChange(JdbTable.java:2959)
at com.borland.dx.dataset.AccessEvent.dispatch(Unknown Source)
at com.borland.jb.util.EventMulticaster.dispatch(Unknown Source)
at com.borland.dx.dataset.DataSet.a(Unknown Source)
at com.borland.dx.dataset.DataSet.a(Unknown Source)
at com.borland.dx.dataset.DataSet.a(Unknown Source)
at com.borland.dx.dataset.DataSet.open(Unknown Source)
at com.borland.dx.dataset.StorageDataSet.refresh(Unknown Source)
at com.borland.dx.sql.dataset.ProcedureDataSet.refresh(Unknown source)
at zhmrp.appware.Wareindent_baseinfo.aaa_refresh_dbQUERY(Wareindent_baseinfo.java:2018)
经过检查,问题来源于 JTable.setRowSelectionInterval()调用之JTable.boundRow().
private int boundRow(int row) throws IllegalArgumentException
{
if (row <
0 || row >= getRowCount()) {
throw new IllegalArgumentException("Row index out of range");
}
return row;
}
难道JdbTable不支持空记录?
极怀疑是JBuilder2005的新BUG?!
请各位大佬帮帮我。