Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with the pervasive jdbc driver

Status
Not open for further replies.

ab2002

IS-IT--Management
Feb 3, 2002
11
CA
Hi

I have an problem with the pervasive jdbc driver in a applet. I get this error on runtime

java.security.AccessControlException: access denied (java.util.PropertyPermission file.encoding read)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)

at java.lang.System.getProperty(Unknown Source)

at com.pervasive.jdbc.common.Encoding.getSystemEncoding(Unknown Source)

at com.pervasive.jdbc.common.Encoding.setNewEncoding(Unknown Source)

at com.pervasive.jdbc.common.Encoding.<init>(Unknown Source)

at com.pervasive.jdbc.lna.LNAObject.setEncoding(Unknown Source)

at com.pervasive.jdbc.v2.Connection.<init>(Unknown Source)

at com.pervasive.jdbc.v2.Driver.connect(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

at TrivialApplet.init(TrivialApplet.java)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

java.security.AccessControlException: access denied (java.util.PropertyPermission file.encoding read)

at java.security.AccessControlContext.checkPermission(Unknown Source)

at java.security.AccessController.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPermission(Unknown Source)

at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)

at java.lang.System.getProperty(Unknown Source)

at com.pervasive.jdbc.common.Encoding.getSystemEncoding(Unknown Source)

at com.pervasive.jdbc.common.Encoding.setNewEncoding(Unknown Source)

at com.pervasive.jdbc.common.Encoding.<init>(Unknown Source)

at com.pervasive.jdbc.lna.LNAObject.setEncoding(Unknown Source)

at com.pervasive.jdbc.v2.Connection.<init>(Unknown Source)

at com.pervasive.jdbc.v2.Driver.connect(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

at java.sql.DriverManager.getConnection(Unknown Source)

at TrivialApplet.init(TrivialApplet.java)

at sun.applet.AppletPanel.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)


Can anybody give me a push in the right direction

Cheers

Ab2002
 
If your applet is running in a browser you won't be able to touch files even on your local machine. Unless you are trying to communicate over a network to a remote database.

Good Luck
 
hi, u cant use jdbc with an applet as it accesses ur hard disk (which is no permitted). servelets should b a good choice. bu i've seen a way to read the secure files in the hard disk using a method called 'digital signature'. read 'bout this in some book (java unleashed is useful). u can actually sign ur class files digitally, so after it is approved by the system, ur class can read the secure files like autoexec.bat. i dunno if its the same 4 databases.

luv
Karthik.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top