Applet to Servlet

S

Sean

Hi, I hope someone can help, this is becoming a really annoying problem.

I have an applet that sends data to a servlet via POST, and reads in
serialized data that is returned in the form of a String array. Everything
works fine, until i run the line:

ObjectInputStream in = new
ObjectInputStream(connection.getInputStream());

which seems to throw an exeption for some reason. The exception message
given is:

access denied (java.util.PropertyPermission http.strictPostRedirect read)

Any ideas? All help would be great, as I am truely stumped

Thankyou
 
Y

Yan Lijun

applet could only connect to the server where it was downloaded
check your connection address
 
S

Sean

Nah, its not that, the applet gathers the protocol, host and port from the
current codeBase, so there should be no problem. However, there still is :-(
 
Joined
May 14, 2009
Messages
1
Reaction score
0
I had that error when the URL that my applet was using to establish the connection did not match what my servlet was actually reacting to and consequently the request was being redirected to the error page, which generated the security exception. Once I corrected the servlet :stupido: the problem was resolved.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top