Announcement Announcement Module
Collapse
No announcement yet.
HttpInvoker and Applet Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • HttpInvoker and Applet

    I'm trying to access a service exposed using Spring's HttpInvoker from within an Applet. The problem is that I'm getting an access denied exception.

    Code:
    java.security.AccessControlException: access denied (java.net.SocketPermission localhost:8084 connect,resolve)
    Modifying the applet policy is not an option for me. I know that applets should be able to do http requests without any special permissions. I guess Spring is making http requests in a way that's not compatible with Applet permissions.

    Is it possible to create an implementation of HttpInvokerRequestExecutor that would work inside an applet?

  • #2
    There's nothing unusual about how Spring's HTTP invoker accesses HTTP.

    You need to remember that in an applet the only address you will be allowed to access using HTTP is the address that the applet was originaly downloaded from.

    Did your applet get downloaded from localhost:8084?

    Comment


    • #3
      I was opening a local html file with the applet in it. Once I made the html file served from localhost:8084, HTTP invoker started working inside the applet.

      Thanks.

      Comment

      Working...
      X