Article View: borland.public.jbuilder.database
Article #346Re: weird erorr in querydataset
From: Zvonko
Date: Tue, 12 Sep 2006 05:56
Date: Tue, 12 Sep 2006 05:56
92 lines
5220 bytes
5220 bytes
"Kevin Dean [TeamB]" <NkOdSePaAnM@datadevelopment.com> wrote in message
news:xn0er3b4p14e80000-kdean@www.teamb.com...
> Please post the stack trace so we can take a look.
>
> Also, why are you disposing of the data set as opposed to closing it?
>
> --
OK, to explain. I hav a JdesktopPane with JMenuBar. When a user clicks
something in a JMenu, jInternalFrame is opening with two jdbTables in which
are data returned from two queryDataSets who are in master/detail
relationship.
So, when user clicks the menuItem code is like this:
<code>public void jMenuItem2_actionPerformed(ActionEvent e) {
try {
sifknj = 60;
Dokumenti_Frame fr = new Dokumenti_Frame();
} catch (Exception ex) {
JOptionPane.showMessageDialog(this, "Gre�ka: " +
String.valueOf(ex),
"Gre�ka", 0);
}
}</code>
Then in Dokumenti_Frame the query is generated on the base of sifknj
variable and qeryDataSets are refreshed.
Now when I called
if (queryDataSet1.isOpen)
queryDataSet1.close();
after clicking on jMenuItem, I got the same erorr: Failure notifying
dependent components of a DataSet reopen.
Then I added DBDisposeMonitor and the result is ok the first two times I
click on JMenuItem, but the third time same erorr.
Here is the stack trace:
See com.borland.dx.dataset.DataSetException error code: BASE+61
com.borland.dx.dataset.DataSetException: Failure notifying dependent
components of a DataSet reopen.
at com.borland.dx.dataset.DataSetException.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.a(Unknown Source)
at com.borland.dx.dataset.DataSet.open(Unknown Source)
at com.borland.dbswing.JdbTable.bindDataSet(JdbTable.java:2773)
at com.borland.dbswing.JdbTable.setDataSet(JdbTable.java:818)
at prodaja.Dokumenti_Frame.jbInit(Dokumenti_Frame.java:303)
at prodaja.Dokumenti_Frame.<init>(Dokumenti_Frame.java:26)
at prodaja.MainForm.jMenuItem8_actionPerformed(MainForm.java:318)
at
prodaja.MainForm_jMenuItem8_actionAdapter.actionPerformed(MainForm.java:519)
at
javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1786)
at
javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1839)
at
javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
at
javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
at javax.swing.AbstractButton.doClick(AbstractButton.java:289)
at
javax.swing.plaf.basic.BasicMenuItemUI.doClick(BasicMenuItemUI.java:1113)
at
javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:943)
at java.awt.Component.processMouseEvent(Component.java:5100)
at java.awt.Component.processEvent(Component.java:4897)
at java.awt.Container.processEvent(Container.java:1569)
at java.awt.Component.dispatchEventImpl(Component.java:3615)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:3483)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3198)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3128)
at java.awt.Container.dispatchEventImpl(Container.java:1613)
at java.awt.Window.dispatchEventImpl(Window.java:1606)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:201)
at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
Thanks,
Zvonko
Technical Details
Message-ID:
<45064c26@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mailReferences:
<45050424@newsgroups.borland.com> <xn0er3b4p14e80000-kdean@www.teamb.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 1073da,f947989fc05ae347 X-Google-Attributes: gid1073da,public X-Google-Language: ENGLISH,ASCII From: "Zvonko" <zvonko_NOSPAM_@velkat.net> Newsgroups: borland.public.jbuilder.database References: <45050424@newsgroups.borland.com> <xn0er3b4p14e80000-kdean@www.teamb.com> Subject: Re: weird erorr in querydataset Date: Tue, 12 Sep 2006 07:56:18 +0200 Lines: 94 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Response NNTP-Posting-Host: 86.61.93.243 Message-ID: <45064c26@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1158040614 86.61.93.243 (11 Sep 2006 22:56:54 -0700) Path: arc1-ca.pugleaf.net!g2news2.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!203.109.252.33.MISMATCH!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail