Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
12.1k views
in Java FTP by (560 points)
I'm getting this error when I tried to use the SFTP client in an Applet:

Could not read property 'edtftp.log.level' due to security permissions
Could not read property 'edtftp.log.log4j' due to security permissions
...
...
Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission license.key 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.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at com.enterprisedt.util.license.LicenseProperties.A(Unknown Source)
at com.enterprisedt.util.license.LicenseProperties.A(Unknown Source)
at com.enterprisedt.util.license.LicenseProperties.<init>(Unknown Source)
at com.enterprisedt.net.ftp.ssh.SSHFTPClient.<clinit>(Unknown Source)
... 3 more


I'm fully aware of applet permissions and the rules, but this applet IS signed. How are you reading this property? I have both the JAR files on the webserver and they are downloaded with my signed applet (or jar ).

Is there a way to disable logging so it won't attempt to read this property or is there any support with connecting from an Applet -- without modifying a policy file on a client's machine since that defeats the whole purpose of an applet.

(Sorry for the bombardment of questions, but I'm about to purchase the PRO product that includes SFTP, but it needs to run in an applet)

Thanks,

11 Answers

0 votes
by (51.6k points)
Hi Abhishek

Thanks for telling us how you solved the problem. It really should have worked using SSLFTPClient. Our own applet product, Integral FTP, uses SSLFTPClient so we know that it can work. If you find that you do need to use SSLFTPClient then we're here to help.

- Hans (EnterpriseDT)

Categories

...