W3C home > Mailing lists > Public > www-jigsaw@w3.org > March to April 2002

[www-jigsaw] <none>

From: Shivkumar Gowda <shivkumar@coddo.com>
Date: Wed, 27 Mar 2002 23:22:50 -0500 (EST)
Message-ID: <003301c1d5ab$fff5b060$1f01a8c0@Coddo.com>
To: <www-jigsaw@w3.org>
I have created a utility where the applet reads from a file and displays an out put.
Though the utility runs ok on a file system on a hard disk, if i write the same 
application on an CD the utility gives an error 
com.ms.security.SecurityExceptionEx[app1.action]: cannot access file /E:/index.txt
        at com/ms/security/permissions/FileIOPermission.check
        at com/ms/security/PolicyEngine.deepCheck
        at com/ms/security/PolicyEngine.checkPermission
        at com/ms/security/StandardSecurityManager.chk
        at com/ms/security/StandardSecurityManager.checkRead
        at java/io/FileInputStream.<init>
        at java/io/FileReader.<init>
        at app1.action
        at java/awt/Component.handleEvent
        at java/awt/Component.postEvent
        at java/awt/Component.postEvent
        at java/awt/Component.dispatchEventImpl
        at java/awt/Component.dispatchEvent
        at java/awt/EventDispatchThread.run

These lines are used to access the file 
String file = getCodeBase().getFile();
BufferedReader b1 = new BufferedReader(new FileReader(file+getParameter("FileNm")));
Received on Thursday, 28 March 2002 05:42:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:41:30 UTC