 |
BorlandTalk.com Borland discussion newsgroups
|
| View previous topic :: View next topic |
| Author |
Message |
Kaloian Dantchev Guest
|
Posted: Mon Sep 13, 2004 12:13 pm Post subject: StackOverflowError when navigating between rows in JDBTable |
|
|
Hi, all
Asume that we have data structure consists of two QueryDataSets with
master-detail relationship.
QDS1 QueryDataSet is master, and QDS2 is detail QueryDataSet.
Lets say that we have JDBTable for QDS2 with multiple rows and start
changing data by navigating to the desired row by mouse and writing data by
keyboard, and repeat these two actions fast (go to some row by mouse click
and write something in the cell). The Exception rises only when you navigate
to cell in different row after entering data, not when change the cell in
same row.
I am using JBuilder X Developer.
Here is the stack trace:
java.lang.StackOverflowError
at
javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:11
6)
at
javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEdit
or.java:329)
at
javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:214)
at com.borland.dbswing.JdbTable.postRow(JdbTable.java:3006)
at com.borland.dx.dataset.DataChangeEvent.exceptionDispatch(Unknown Source)
at com.borland.jb.util.EventMulticaster.exceptionDispatch(Unknown Source)
at com.borland.dx.dataset.DataSet.f(Unknown Source)
at com.borland.dx.dataset.DataSet.b(Unknown Source)
at com.borland.dx.dataset.DataSet.goToRow(Unknown Source)
at com.borland.dbswing.DBTableModel.setValueAt(DBTableModel.java:376)
at javax.swing.JTable.setValueAt(JTable.java:1794)
at javax.swing.JTable.editingStopped(JTable.java:3167)
at
javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:12
4)
at
javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEdit
or.java:329)
at
javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:214)
at com.borland.dbswing.JdbTable.postRow(JdbTable.java:3006)
at com.borland.dx.dataset.DataChangeEvent.exceptionDispatch(Unknown Source)
at com.borland.jb.util.EventMulticaster.exceptionDispatch(Unknown Source)
at com.borland.dx.dataset.DataSet.f(Unknown Source)
at com.borland.dx.dataset.DataSet.b(Unknown Source)
at com.borland.dx.dataset.DataSet.goToRow(Unknown Source)
at com.borland.dbswing.DBTableModel.setValueAt(DBTableModel.java:376)
at javax.swing.JTable.setValueAt(JTable.java:1794)
at javax.swing.JTable.editingStopped(JTable.java:3167)
at
javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:12
4)
at
javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEdit
or.java:329)
at
javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:214)
at com.borland.dbswing.JdbTable.postRow(JdbTable.java:3006)
at com.borland.dx.dataset.DataChangeEvent.exceptionDispatch(Unknown Source)
at com.borland.jb.util.EventMulticaster.exceptionDispatch(Unknown Source)
at com.borland.dx.dataset.DataSet.f(Unknown Source)
at com.borland.dx.dataset.DataSet.b(Unknown Source)
at com.borland.dx.dataset.DataSet.goToRow(Unknown Source)
at com.borland.dbswing.DBTableModel.setValueAt(DBTableModel.java:376)
at javax.swing.JTable.setValueAt(JTable.java:1794)
at javax.swing.JTable.editingStopped(JTable.java:3167)
at
javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:12
4)
at
javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEdit
or.java:329)
at
javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:214)
..........
// End of stack trace
Any suggestions and help are appreciated.
Thanks in advance.
Kaloiand Dantchev
Software Developer
ICYGEN
|
|
| Back to top |
|
 |
Martin Frey Guest
|
Posted: Wed Sep 15, 2004 7:31 am Post subject: Re: StackOverflowError when navigating between rows in JDBTa |
|
|
Hi Kaloian,
did you wrote your own CellEditor? If it is so, you need to set the
setClickCountToStart(2). I had the same Problem when i used the
AbstractCellEditor. Use the DefaultCellEditor and call the method in the
constructor.
greets
Martin
"Kaloian Dantchev" <kdantchev (AT) icygen (DOT) com> wrote
| Quote: | Hi, all
Asume that we have data structure consists of two QueryDataSets with
master-detail relationship.
QDS1 QueryDataSet is master, and QDS2 is detail QueryDataSet.
Lets say that we have JDBTable for QDS2 with multiple rows and start
changing data by navigating to the desired row by mouse and writing data
by
keyboard, and repeat these two actions fast (go to some row by mouse click
and write something in the cell). The Exception rises only when you
navigate
to cell in different row after entering data, not when change the cell in
same row.
I am using JBuilder X Developer.
Here is the stack trace:
java.lang.StackOverflowError
at
javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:11
6)
at
javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEdit
or.java:329)
at
javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:214)
at com.borland.dbswing.JdbTable.postRow(JdbTable.java:3006)
at com.borland.dx.dataset.DataChangeEvent.exceptionDispatch(Unknown
Source)
at com.borland.jb.util.EventMulticaster.exceptionDispatch(Unknown Source)
at com.borland.dx.dataset.DataSet.f(Unknown Source)
at com.borland.dx.dataset.DataSet.b(Unknown Source)
at com.borland.dx.dataset.DataSet.goToRow(Unknown Source)
at com.borland.dbswing.DBTableModel.setValueAt(DBTableModel.java:376)
at javax.swing.JTable.setValueAt(JTable.java:1794)
at javax.swing.JTable.editingStopped(JTable.java:3167)
at
javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:12
4)
at
javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEdit
or.java:329)
at
javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:214)
at com.borland.dbswing.JdbTable.postRow(JdbTable.java:3006)
at com.borland.dx.dataset.DataChangeEvent.exceptionDispatch(Unknown
Source)
at com.borland.jb.util.EventMulticaster.exceptionDispatch(Unknown Source)
at com.borland.dx.dataset.DataSet.f(Unknown Source)
at com.borland.dx.dataset.DataSet.b(Unknown Source)
at com.borland.dx.dataset.DataSet.goToRow(Unknown Source)
at com.borland.dbswing.DBTableModel.setValueAt(DBTableModel.java:376)
at javax.swing.JTable.setValueAt(JTable.java:1794)
at javax.swing.JTable.editingStopped(JTable.java:3167)
at
javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:12
4)
at
javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEdit
or.java:329)
at
javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:214)
at com.borland.dbswing.JdbTable.postRow(JdbTable.java:3006)
at com.borland.dx.dataset.DataChangeEvent.exceptionDispatch(Unknown
Source)
at com.borland.jb.util.EventMulticaster.exceptionDispatch(Unknown Source)
at com.borland.dx.dataset.DataSet.f(Unknown Source)
at com.borland.dx.dataset.DataSet.b(Unknown Source)
at com.borland.dx.dataset.DataSet.goToRow(Unknown Source)
at com.borland.dbswing.DBTableModel.setValueAt(DBTableModel.java:376)
at javax.swing.JTable.setValueAt(JTable.java:1794)
at javax.swing.JTable.editingStopped(JTable.java:3167)
at
javax.swing.AbstractCellEditor.fireEditingStopped(AbstractCellEditor.java:12
4)
at
javax.swing.DefaultCellEditor$EditorDelegate.stopCellEditing(DefaultCellEdit
or.java:329)
at
javax.swing.DefaultCellEditor.stopCellEditing(DefaultCellEditor.java:214)
.........
// End of stack trace
Any suggestions and help are appreciated.
Thanks in advance.
Kaloiand Dantchev
Software Developer
ICYGEN
|
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|