Results 1 to 3 of 3

Thread: HttpInvoker and Applet

  1. #1
    Join Date
    Jul 2005
    Posts
    15

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Melbourne, Australia
    Posts
    335

    Default

    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. #3
    Join Date
    Jul 2005
    Posts
    15

    Default

    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.

Similar Threads

  1. Replies: 1
    Last Post: May 15th, 2005, 12:51 AM
  2. HttpInvoker for applet
    By puicheng in forum Remoting
    Replies: 2
    Last Post: Mar 10th, 2005, 03:57 PM
  3. Http-invoker performance?
    By jacekk in forum Remoting
    Replies: 8
    Last Post: Dec 11th, 2004, 06:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •