Announcement Announcement Module
No announcement yet.
HttpInvoker and Applet Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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: access denied ( 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?


    • #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.