February 25th, 2000, 01:34 PM
Hello,
I recently made a java application which goes into a database using jdbc.odbc.JdbcOdbcDriver. When I converted the app. into an applet I got the following error
Starting!!!
java.security.AccessControlException: access denied (java.lang.RuntimePermission
accessClassInPackage.sun.jdbc.odbc )
at java.security.AccessControlContext.checkPermission(Compiled Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPackageAccess(Compiled Code)
at sun.applet.AppletSecurity.checkPackageAccess(AppletSecurity.java:172)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:237)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Compiled Code)
at DisplayAlarms01.connectDb(DisplayAlarms01.java:69)
at DisplayAlarms01.start(DisplayAlarms01.java:45)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)
As far as I can tell the applet does not have permission to access the database object...If this is so how can I grant access to the applet to do this.
If not...then any help would be appreciated
Thanks Joe
P.S.
It would be great if you replied to joem236@mediaone.net instead of the board. I just check my email more often.
I recently made a java application which goes into a database using jdbc.odbc.JdbcOdbcDriver. When I converted the app. into an applet I got the following error
Starting!!!
java.security.AccessControlException: access denied (java.lang.RuntimePermission
accessClassInPackage.sun.jdbc.odbc )
at java.security.AccessControlContext.checkPermission(Compiled Code)
at java.security.AccessController.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPermission(Compiled Code)
at java.lang.SecurityManager.checkPackageAccess(Compiled Code)
at sun.applet.AppletSecurity.checkPackageAccess(AppletSecurity.java:172)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:107)
at java.lang.ClassLoader.loadClass(ClassLoader.java:237)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Compiled Code)
at DisplayAlarms01.connectDb(DisplayAlarms01.java:69)
at DisplayAlarms01.start(DisplayAlarms01.java:45)
at sun.applet.AppletPanel.run(Compiled Code)
at java.lang.Thread.run(Thread.java:479)
As far as I can tell the applet does not have permission to access the database object...If this is so how can I grant access to the applet to do this.
If not...then any help would be appreciated
Thanks Joe
P.S.
It would be great if you replied to joem236@mediaone.net instead of the board. I just check my email more often.