What are the main reasons that cause the exception reported?
Same trusted signed applet (Digicert certificate), works great on some PCs, doesn't work on other. Exception occurs when i try to get an attachment stream through URLConnection
Where it doesn't works, i resolve with
grant {
permission java.security.AllPermission;
};
in
java.policybut i would like to avoid to update every PC.
Could be a port
(8081) issue? What should I investigate?
Writing custom
SecurityManager
for your applet could solve your issue. Setting your ownSecurityManager
will grant all permission for your applet.Now set this security manager for your applet
Caution: Impact of System.setSecurityManager(null)
It isn't trusted by those other PCs, and wasn't accepted by the user as trusted when asked.
OR
If that's the complete manifest, this JAR isn't signed at all, let alone by a trusted certificate. It should be full of
Name:
andSHA-256-Digest
entries.You must add "all-permissions" in manifest.mf instance "sandbox"
and
sign your jar file with code signing certificate.