aspose file tools*
The moose likes Applets and the fly likes Applet and Servlet Communication : java.security.AccessControlException: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Applet and Servlet Communication : java.security.AccessControlException:" Watch "Applet and Servlet Communication : java.security.AccessControlException:" New topic
Author

Applet and Servlet Communication : java.security.AccessControlException:

Anbarasu Selvaraj
Greenhorn

Joined: Mar 07, 2006
Posts: 21
Applet is trying to communicate servlet. (It is communicating), after some process in servlet i am passing control to jsp (via response.sendRedirect). but i am receiving the error like bellow

java.security.AccessControlException: access denied (java.util.PropertyPermission http.strictPostRedirect read)
at java.security.AccessControlContext.checkPermission(Unknown Source)
at java.security.AccessController.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at java.lang.SecurityManager.checkPropertyAccess(Unknown Source)
at java.lang.System.getProperty(Unknown Source)
at java.lang.Boolean.getBoolean(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.followRedirect(Unknown Source)
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)
at EchoApplet.onSendData(EchoApplet.java:117)
at EchoApplet.access$000(EchoApplet.java:10)
at EchoApplet$1.actionPerformed(EchoApplet.java:46)
at java.awt.Button.processActionEvent(Unknown Source)
at java.awt.Button.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)

Please advise.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42932
    
  68
Using a client-side redirect does not make sense during applet/servlet communication. Either do a forward on the server side, or -if you want to replace the page that shows the applet in the browser- use AppletContext.showDocument in the applet.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Applet and Servlet Communication : java.security.AccessControlException: