hi Jason,
thank you for your answer.

please see the stack trace below:

Uncaught exception from servlet
java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessDeclaredMembers)
        at java.security.AccessControlContext.checkPermission
(AccessControlContext.java:355)
        at java.security.AccessController.checkPermission
(AccessController.java:567)
        at java.lang.SecurityManager.checkPermission(Unknown Source)
        at
com.google.apphosting.runtime.security.CustomSecurityManager.checkPermission
(CustomSecurityManager.java:45)
        at java.lang.SecurityManager.checkMemberAccess(Unknown Source)
        at java.lang.Class.checkMemberAccess(Unknown Source)
        at java.lang.Class.getDeclaredMethods(Unknown Source)
        at javax.servlet.http.HttpServlet.getAllDeclaredMethods
(HttpServlet.java:479)
        at javax.servlet.http.HttpServlet.doOptions(HttpServlet.java:534)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
        at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1093)
        at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter
(ParseBlobUploadFilter.java:97)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
        at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter
(SaveSessionFilter.java:35)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
        at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter
(TransactionCleanupFilter.java:43)
        at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
(ServletHandler.java:1084)
        at org.mortbay.jetty.servlet.ServletHandler.handle
(ServletHandler.java:360)
        at org.mortbay.jetty.security.SecurityHandler.handle
(SecurityHandler.java:216)
        at org.mortbay.jetty.servlet.SessionHandler.handle
(SessionHandler.java:181)
        at org.mortbay.jetty.handler.ContextHandler.handle
(ContextHandler.java:712)
        at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
        at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle
(AppVersionHandlerMap.java:238)
        at org.mortbay.jetty.handler.HandlerWrapper.handle
(HandlerWrapper.java:139)
        at org.mortbay.jetty.Server.handle(Server.java:313)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
506)
        at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete
(HttpConnection.java:830)
        at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable
(RpcRequestParser.java:76)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
        at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest
(JettyServletEngineAdapter.java:135)
        at com.google.apphosting.runtime.JavaRuntime.handleRequest
(JavaRuntime.java:235)
        at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5235)
        at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:5233)
        at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest
(BlockingApplicationHandler.java:24)
        at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
363)
        at com.google.net.rpc.impl.Server$2.run(Server.java:838)
        at com.google.tracing.LocalTraceSpanRunnable.run
(LocalTraceSpanRunnable.java:56)
        at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan
(LocalTraceSpanBuilder.java:536)
        at com.google.net.rpc.impl.Server.startRpc(Server.java:793)
        at com.google.net.rpc.impl.Server.processRequest(Server.java:368)
        at com.google.net.rpc.impl.ServerConnection.messageReceived
(ServerConnection.java:448)
        at com.google.net.rpc.impl.RpcConnection.parseMessages
(RpcConnection.java:319)
        at com.google.net.rpc.impl.RpcConnection.dataReceived
(RpcConnection.java:290)
        at com.google.net.async.Connection.handleReadEvent(Connection.java:
466)
        at com.google.net.async.EventDispatcher.processNetworkEvents
(EventDispatcher.java:759)
        at com.google.net.async.EventDispatcher.internalLoop
(EventDispatcher.java:205)
        at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
101)
        at com.google.net.rpc.RpcService.runUntilServerShutdown
(RpcService.java:251)
        at com.google.apphosting.runtime.JavaRuntime$RpcRunnable.run
(JavaRuntime.java:394)
        at java.lang.Thread.run(Unknown Source)

any thoughts?

thanks & regards,
Gili

On Dec 23, 12:16 am, "Jason (Google)" <[email protected]> wrote:
> Hi Gili. Can you provide the full stack trace?
>
> - Jason
>
>
>
> On Mon, Dec 21, 2009 at 8:59 AM, Gili Vaturi <[email protected]> wrote:
> > 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]<google-appengine%[email protected]>
> > .
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.- Hide quoted text -
>
> - Show quoted text -

--

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