Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Help!!AccessControlException:java.io.FilePermission
- From: SundarS2@xxxxxxxxxxxxxxx (SundarS2@xxxxxxxxxxxxxxx)
- Subject: Help!!AccessControlException:java.io.FilePermission
- Date: Tue, 31 Aug 1999 14:19:19 -0400
Hi All, I have posted this question before but there was no reply.Hoping to get a reply this time. I have an applet signed using the JDK1.2.2 keytool.I have the policy file in C:\windows directory. My applet needs to read a file from the local hard disk and upload it to the server. But Iam getting the following error. java.security.AccessControlException: access denied (java.io.FilePermission file:\C:\sundari\cancel.gif 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.checkRead(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at java.io.FileInputStream.<init>(Unknown Source) at FileUploadTest$EventHandler.actionPerformed(FileUploadTest.java, Compiled Code) at java.awt.Button.processActionEvent(Unknown Source) at java.awt.Button.processEvent(Unknown Source) at java.awt.Component.dispatchEventImpl(Unknown Source) at java.awt.Component.dispatchEvent(Unknown Source) at java.awt.EventQueue.dispatchEvent(Unknown Source) at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source) at java.awt.EventDispatchThread.pumpEvents(Unknown Source) at java.awt.EventDispatchThread.run(Unknown Source) I cant understand where I have gone wrong.Please help. TIA Sundari
- Prev by Date: Downloading jars
- Next by Date: Odp: Tupe 2 and 4 JDBC drivers
- Previous by thread: Downloading jars
- Next by thread: References remain on Thread stack
- Index(es):