Applets and RandomAccessfile

Peyrache Julien (jpeyrach@mygale.org)
Fri, 17 Oct 1997 14:35:57 +0100

Message-Id: <199710171233.OAA22194@cheylard.inforoutes-ardeche.fr>
From: "Peyrache Julien" <jpeyrach@mygale.org>
To: <java-security@web2.javasoft.com>
Subject: Applets and RandomAccessfile
Date: Fri, 17 Oct 1997 14:35:57 +0100

Message en plusieurs parties et au format MIME.

------=_NextPart_000_0001_01BCDB09.FBBD3140
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

My problem is as followed :

I've made an application which consists in writing and reading a file =
but when i want to transform it into an applet the randomaccessfile =
object (the file.read method) causes an exception like that : =20

*** Security Exception: file.read:belges.txt ***
sun.applet.AppletSecurityException: security.file.read: belges.txt
at sun.applet.AppletSecurity.checkRead(AppletSecurity.java:269)
at sun.applet.AppletSecurity.checkRead(AppletSecurity.java:243)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:48)
at fenetre.action(fenetre.java:110)
at java.awt.Component.handleEvent(Component.java:916)
at java.awt.Component.postEvent(Component.java:844)
at java.awt.Component.postEvent(Component.java:861)
at sun.awt.win32.MButtonPeer.action(MButtonPeer.java:39)
at sun.awt.win32.MToolkit.run(MToolkit.java:66)
at java.lang.Thread.run(Thread.java:294)=20

If you have a solution or a suggestion please email me =
(jpeyrach@mygale.org)=20

Thanks.

------=_NextPart_000_0001_01BCDB09.FBBD3140
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">

My problem is as followed = :

I've made an application = which consists=20 in writing and reading  a file but when i want to transform it into = an=20 applet the randomaccessfile object (the file.read method) causes an = exception=20 like that : =20

*** Security Exception:=20 file.read:belges.txt ***
sun.applet.AppletSecurityException:=20 security.file.read: = belges.txt
        at=20 sun.applet.AppletSecurity.checkRead(AppletSecurity.java:269)
 &nb= sp;     =20 at=20 sun.applet.AppletSecurity.checkRead(AppletSecurity.java:243)
 &nb= sp;     =20 at=20 java.io.RandomAccessFile.<init>(RandomAccessFile.java:48)
 =       =20 at=20 fenetre.action(fenetre.java:110)
      &= nbsp;=20 at=20 java.awt.Component.handleEvent(Component.java:916)
   &= nbsp;   =20 at=20 java.awt.Component.postEvent(Component.java:844)
   &nb= sp;   =20 at=20 java.awt.Component.postEvent(Component.java:861)
   &nb= sp;   =20 at=20 sun.awt.win32.MButtonPeer.action(MButtonPeer.java:39)
  &nbs= p;    =20 at=20 sun.awt.win32.MToolkit.run(MToolkit.java:66)
    &= nbsp;  =20 at java.lang.Thread.run(Thread.java:294)
=20

If = you have a=20 solution or a suggestion  please email me = (jpeyrach@mygale.org)=20

Thanks.
------=_NextPart_000_0001_01BCDB09.FBBD3140--