my signed applet works with 1.4.1 plugin but it doesn't with 1.4.2_02 !!!

Hi there, I've got problems trying to sign an applet with Java 2. That applet is an FTP which is used for uploading files throught the Browser (just upload).

I signed my applet with SDK 1.4.1 when I surfed the page which contains it, the applet works properly (the browser had Java plug in 1.4.1) ... the certificate appeared (thawte), I clicked "Yes" for agreeing the certificate .. everything went fine. The problem was when I tried to navigate that page with a Browser with Java Plug in 1.4.2, I agreed the cetificate, but when I tried to upload a file with the applet the following error happens :

ava.security.AccessControlException: access denied (java.io.FilePermission C:\install\slsk151.wma 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 FtpSigned.upload(FtpSigned.java:463)

at FtpSigned.run(FtpSigned.java:526)

at java.lang.Thread.run(Unknown Source)

after that I downloaded the SDK 1.4.2_02 and I installed the plugin

1.4.2_02 (build 1.4.2_02-b03)

I signed tha applet again and it didn't work ...

please ... I need help!

Thanks in advance.

Nico.

[1494 byte] By [domecqa] at [2007-9-29 17:50:30]
# 1

Seems lots of people are running into this issue. It appears the SecurityManager changed in 1.4.2_01+ ... I think you have to change to AccessController.doPrivilaged to get things to work properly.

See http://forum.java.sun.com/thread.jsp?forum=63&thread=442390 or http://forum.java.sun.com/thread.jsp?forum=32&thread=442569

sbelslya at 2007-7-15 16:58:25 > top of Java-index,Security,Signed Applets...
# 2

Funny, I had a problem going to _03 when it worked fine in _02. Symptoms: In IE, Sun's plug-in displays security warning prompt for signed applet, and, even though the user clicks YES to accept, all priv operations cause exceptions. It sounds like what you're referring to, but I'm wondering why I didn't see it in _02. Anyway, I'm going to look into the doPriv... stuff to see if that fixes my prob and I'll report back FWIW.

TomJava333ea at 2007-7-15 16:58:25 > top of Java-index,Security,Signed Applets...
# 3
I found my first possible solution. See the following posts of mine if interested: http://forum.java.sun.com/thread.jsp?forum=32&thread=442569 http://forum.java.sun.com/thread.jsp?forum=421&thread=439670Feedback welcome.
TomJava333ea at 2007-7-15 16:58:25 > top of Java-index,Security,Signed Applets...