🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #66

Error Accessing the database...

#66
From: John Papadomichelakis
Date: Sat, 08 Nov 1997 00:00
101 lines
3940 bytes
This is a multi-part message in MIME format.
--------------5B5EBCA6F102020C03B8DBBA
Content-Type: text/plain; charset=iso-8859-7
Content-Transfer-Encoding: 7bit

Hi...

I try to create an application, in which, from a main window the user
will be able
to open several windows and play with the database.

I create an application using the application wizard. I added
QueryDataSet and Database
components in the main window and a Grid to control the data.

Everything OK. The program runs with no problems.

So.. I created a new frame window that will be used as a child window.
I added the database and the QueryDataSet components and also the Grid
control.

I place the same query in the QueryDataSet and then I try to open in
using the following code:

  Frame1 l_Frame1 = new Frame1();
  l_Frame1.validate();
  l_Frame1.setVisible(true);

OK, it opens.

But I am getting the message:
borland.jbcl.dataset.DataSetException: Execution of query failed.
 at
borland.jbcl.dataset.DataSetException.throwException(DataSetException.java:562)

 at borland.jbcl.dataset.JdbcProvider.executeQuery(Compiled Code)
 at borland.jbcl.dataset.JdbcProvider.executeQuery(Compiled Code)
 at borland.jbcl.dataset.QueryDataSet.openStorage(Compiled Code)
 at borland.jbcl.dataset.DataSet.open(Compiled Code)
 at borland.jbcl.dataset.DataSet.open(Compiled Code)
 at borland.jbcl.control.GridControl.openDataSet(Compiled Code)
 at borland.jbcl.control.GridControl.addNotify(Compiled Code)
 at java.awt.Container.addNotify(Compiled Code)
 at java.awt.Window.addNotify(Compiled Code)
 at java.awt.Frame.addNotify(Compiled Code)
 at java.awt.Window.show(Compiled Code)
 at java.awt.Component.show(Compiled Code)
 at java.awt.Component.setVisible(Compiled Code)
 at JavaAIMMSManager.JAIMMSMan.m_Apoth_Equipment(JAIMMSMan.java:120)
 at
JavaAIMMSManager.JAIMMSMan_mEquipment_actionAdapter.actionPerformed(JAIMMSMan.java:251)

 at java.awt.MenuItem.processActionEvent(MenuItem.java:336)
 at java.awt.MenuItem.processEvent(MenuItem.java:307)
 at java.awt.MenuComponent.dispatchEventImpl(Compiled Code)
 at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:138)
 at java.awt.EventDispatchThread.run(EventDispatchThread.java:65)
Chained exception:
java.lang.NullPointerException

But in the designer, it works OK.


I noticed that in the exception occurs after the JbInit.
So, if everything in JBInit are OK, (the debuger show me nothing)
why is this happening?

What I am missing?


--

Papadomichelakis John
"Unite for Java! - http://www.javalobby.org"
__________________________________________________
email : michelos@freemail.gr
URL   : http://users.spark.net.gr:8080/~michelos/
TEL   : 30 31 758 429,       30 31 709 796
__________________________________________________


--------------5B5EBCA6F102020C03B8DBBA
Content-Type: text/x-vcard; charset=iso-8859-7; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for John Papadomichelakis
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             John Papadomichelakis
n:              Papadomichelakis;John
org:            BIA
adr:            9 Filippou;;Euosmos;Thessaloniki;;56224;Greece
email;internet: michelos@freemail.gr
x-mozilla-cpt:  ;0
x-mozilla-html: TRUE
version:        2.1
end:            vcard


--------------5B5EBCA6F102020C03B8DBBA--
Technical Details
Message-ID: <34649489.8081772A@freemail.gr>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1073da,e6588f8161a2acde,start
X-Google-Attributes: gid1073da,public
X-Google-Thread: f74b3,e6588f8161a2acde,start
X-Google-Attributes: gidf74b3,public
From: John Papadomichelakis <michelos@freemail.gr>
Subject: Error Accessing the database...
Date: 1997/11/08
Message-ID: <34649489.8081772A@freemail.gr>
X-Deja-AN: 287900218
Organization: None
Newsgroups: borland.public.jbuilder.java.language,borland.public.jbuilder.database