Exception in executing applet
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Muhammad_Younas
Posted On:   Wednesday, April 23, 2003 11:17 PM

I have made an applet which is connected to database and have performed some queries. I have made this application on Jbuilder but then I remove all the classes related to jbuilder and try to run on browser or through appletviewer, it is throwing Exceptions but is working correctly on jbuilder.The Exception thrown are............. java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc) at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270) at java.security.AccessController.checkPermission(AccessController.java:401) at java.lang.SecurityManager.checkPermission(SecurityManager.java:542) at java.lang.SecurityManager.checkPackageA   More>>

I have made an applet which is connected to database and have performed some queries. I have made this application on Jbuilder but then I remove all the classes related to jbuilder and try to run on browser or through appletviewer, it is throwing Exceptions but is working correctly on jbuilder.The Exception thrown are.............


java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:270)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:542)
at java.lang.SecurityManager.checkPackageAccess(SecurityManager.java:1513)
at sun.applet.AppletSecurity.checkPackageAccess(AppletSecurity.java:166)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:109)
at java.lang.ClassLoader.loadClass(ClassLoader.java:262)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:322)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at DataBase.getConnection(DataBase.java:23)
at DataBase.getQuery(DataBase.java:46)
at Memory.jbInit(Memory.java:116)
at Memory.init(Memory.java:50)
at sun.applet.AppletPanel.run(AppletPanel.java:341)
at java.lang.Thread.run(Thread.java:536)

   <<Less

Re: Exception in executing applet

Posted By:   Laxman_Subramanian  
Posted On:   Thursday, April 24, 2003 09:24 AM

Applets or not capable of opening network connections or read /write files on the client browser machine .Check for permissions and secuirty (sandbox restrictions). check Jguru forum for signed applets
About | Sitemap | Contact