Contact:   Tel: 2726  -  New Media Systems, 1st Floor South, Queens Walk



You are not allowed to read/write on a local hard disk unless you are a trusted
applet (digitally signed and accepted by the clients). If your applet and the
image come from the same server, you should use a URL instead of local filepath
for that image.



Cheers,


Charles





Thompson Willard <[EMAIL PROTECTED]> on 11/02/2000 09:19:42 PM

To:        [EMAIL PROTECTED]
cc:         (bcc: Charles Chen/YellowPages)
From:      Thompson Willard <[EMAIL PROTECTED]>, 2 November 2000,
           9:19 p.m.

Security Violation???  [Scanned by Yellow Pages PostMaster]


Has anyone gotten this error while trying to simply read a gif file from the
server using an applet?

java.security.AccessControlException: access denied (java.io.FilePermission
d:\inetpub\wwwroot\dev\bullet_d.gif read)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java
:272)
at java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at java.lang.SecurityManager.checkRead(SecurityManager.java:890)
......

I went through all of the proper steps to make my applet a jar and signed it
using keys, ..., etc.
My applet compiles and all I do is set up an icon and display it:

Icon icon = new ImageIcon("d:\\inetpub\\wwwroot\\dev\\bullet_d.gif");
JLabel label = new JLabel("Description", icon, SwingConstants.RIGHT);
Container panel = getContentPane();
panel.setLayout(new FlowLayout());
panel.add(label);

Does anyone know what I should do, set up a socket??, fiddle with the
java.security??, any examples anywhere??

Thanks in advance.

- Willard Thompson

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to