Re: Applet using the Informix JDBC-driver
Posted in 1998
This is a multi-part message in MIME format. --------------F69373A11A33523B1BF9E20B Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit One thing is to check the driver settings. It seems as though the applet "Main Model" is being passed a bad parameter, Null; hence, the NullPointerException. I'm pretty sure that the problem lies with the driver settings (calling fucntion parameters). Christoph Borowski wrote: > Hi, > > I have a little problem using the Informix JDBC driver (type 4) > together with an applet. Simply the applet won't start. > Error message delivered by the browser is: > > Applet MainModel can't start: ERROR > > When disable the driver and everything, which uses it in the code, > the applet starts. So, what happens? Is the problem the driver > or the browser (I am using the Netscape 4). > Do I have to configure the browsers in a special way? > When I start the applet with the appletviewer, all works fine. > I have to mention, that the database (Inf. Dynamic Server 7.2) > is on the same machine (UNIX/Solaris). > Using another appletviewer on a different machine (NT4) with > the same database as above (UNIX/Solaris) gives me the following > error message: > > SQLException in openDB(): Attempt to connect to database server (%s) > failed. > Error Code: -908 > java.lang.NullPointerException > at Database.readEntitiesSeminarFromDB(Compiled Code) > at Database.get(Database.java:27) > at MainModel.init(MainModel.java:142) > at sun.applet.AppletPanel.run(Compiled Code) > at java.lang.Thread.run(Thread.java:479) > > Needless to say, that the applet don't start within the browser > (here it is the IE4). But when I start the applet in the > application version it works normal on the second machine (NT4). > > So, what to hell is it? If somebody can help me ...I would be very > thankful. > > ciao Christoph > borowski@uni-paderborn.de > cb@ordix.de --------------F69373A11A33523B1BF9E20B Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf" Content-Transfer-Encoding: 7bit Content-Description: Card for Mark Roach Content-Disposition: attachment; filename="vcard.vcf" begin: vcard fn: Mark Roach n: Roach;Mark org: Bob Jones University email;internet: mroach@bju.IT5_PO title: Informix Programmer x-mozilla-cpt: ;0 x-mozilla-html: FALSE version: 2.1 end: vcard --------------F69373A11A33523B1BF9E20B--