简体   繁体   中英

Hessian Web service invocation from a JavaFX Applet

I'm trying to invoke a Hessian Web Service from a JavaFX applet. I know it needs some reflection permissions so I signed it myself for testing but even then it doesn't work. The browser asks me if I accept the certificate, I click yes but I receive the permission exceptions anyway:

com.caucho.hessian.client.HessianRuntimeException: java.security.AccessControlException: access denied (java.net.SocketPermission 192.168.0.112:8080 connect,resolve)

java.security.AccessControlException: access denied (java.lang.reflect.ReflectPermission suppressAccessChecks

java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)

Am I missing something?

Thank you in advance.

According to Sun's documentation :

a signed applet has the AllPermission permission only if Java Plug-in can verify the signers

Since you are self-signing, I think you'll want to setup a policy file to grant yourself permission (will NOT work for others). Here is a tutorial .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM