hi,
i'm getting the following error in the app engine:
java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessDeclaredMembers)

the strange thing is that it happens only on FF. works well on IE and
Chrome.

it happens when i exceute the following code:

//purpose: test sending a large string with POST function
function postOldForm(){
        var http;

        if (window.XMLHttpRequest)
  {
  // code for IE7+, Firefox, Chrome, Opera, Safari
  http=new XMLHttpRequest();
  }
        else if (window.ActiveXObject)
  {
  // code for IE6, IE5
        http=new ActiveXObject("Microsoft.XMLHTTP");
  }
        var url = "http://totochartswebservice.appspot.com/
totoOldFormStorage";
        var gili="111";
        for (i=0;i<300;i++){
                gili=gili+i;
                }
        var gili2="222";
        var params = "lorem=" + escape(gili) + "&content=" + gili2;
        http.open("POST", url, true);

        //Send the proper header information along with the request
        http.setRequestHeader("Content-type", "application/x-www-form-
urlencoded");
        //http.setRequestHeader("Content-length", params.length);
        //http.setRequestHeader("Connection", "close");

        http.onreadystatechange = function() {//Call a function when the
state changes.
                if(http.readyState == 4 && http.status == 200) {
                        alert(http.responseText);
                }
        }
        http.send(params);
}

my servlet totoOldFormStorage looks like this:
public void doPost(HttpServletRequest request, HttpServletResponse
response) throws ServletException, IOException
          {
            String params;
            params=request.getParameter("lorem");
            oldForm old=new oldForm(123,params);

                String result="success";
                DBMethods.saveInDB(old, true);

            response.setContentType("text/plain;charset=UTF-8");
                response.getWriter().println(params.length());
                System.out.println(params.length());

          }


DBMethods is a class that summons a PM object, and stores the oldForm
object in the Datastore.

can anyone think of a reason for this exception?

thank you,
Gili

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.


Reply via email to