• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet and Servlet Communication : java.security.AccessControlException:

 
Anbarasu Selvaraj
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Rancher
Posts: 42968
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic