File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes JDBC ResultSet Applet issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "JDBC ResultSet Applet issue" Watch "JDBC ResultSet Applet issue" New topic

JDBC ResultSet Applet issue

Monty Zuma

Joined: Oct 23, 2002
Posts: 1
Hello All,
Applet newbie.
I'm trying to set up my GUI with specific drop down boxes depending on login information. I already have this information in a SQL table so my plan is to have my applet query the database on init so that the appropriate choices are added.
The db connection is fine and the applet works with hard coded values, but whenever I try to set it up with the query I get a "applet notinited" with a java.lang.NullPointerException. This error is browser independent.
I can pull values out of a regular java application and manipulate them so I am wondering if this is an applet specific issue.
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
hi monty would be better if u could post u'r init() method out here so that we could debug the thing in a better manner . By the way have u tried using the same code in start()?
I agree. Here's the link:
subject: JDBC ResultSet Applet issue
jQuery in Action, 3rd edition