Strange exception when applet tries to make a connection to the DB
March 20th, 2009
Applies to:
NA
Description:
Occurs while connecting to a database using JDBC.
Cause:
You have tried to make a connection to the DB in applet.
Applets are restricted in what they are allowed to do; that’s a security precaution. The applet needs to be digitally signed, or the local security policy adjusted to get around this.
You should note that you can connect unsigned Applets to a database server provided that database server is the same server that the Applet came from.
However signed or unsigned it is not considered good practice to connect your Applet directly with a database of any kind. Doing so means opening your database to connections from the internet in general and is a highly unsafe practice.