- I'm building a simple Servlet Application on Google App Engine. 
- I have a Servlet and I'm able to successfully reach its doGet method. 
- However, when I try to establish a MongoClient on my localhost, I get the 
exception: 
access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
- The Error is triggered by following line:

client = new MongoClient(hostName);

- Can someone explain to me what am I doing wrong?

java.security.AccessControlException: access denied 
("java.lang.RuntimePermission" "modifyThreadGroup")
    at 
java.security.AccessControlContext.checkPermission(AccessControlContext.java:457)
    at 
java.security.AccessController.checkPermission(AccessController.java:884)
    at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
    at 
com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:429)
    at 
com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkAccess(DevAppServerFactory.java:454)
    at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:315)
    at java.lang.Thread.init(Thread.java:391)
    at java.lang.Thread.init(Thread.java:349)
    at java.lang.Thread.<init>(Thread.java:548)
    at com.mongodb.ServerMonitor.<init>(ServerMonitor.java:66)
    at com.mongodb.DefaultServer.<init>(DefaultServer.java:45)
    at 
com.mongodb.DefaultClusterableServerFactory.create(DefaultClusterableServerFactory.java:44)
    at com.mongodb.BaseCluster.createServer(BaseCluster.java:235)
    at com.mongodb.SingleServerCluster.<init>(SingleServerCluster.java:45)
    at com.mongodb.Clusters.create(Clusters.java:32)
    at com.mongodb.DBTCPConnector.start(DBTCPConnector.java:72)
    at com.mongodb.Mongo.<init>(Mongo.java:346)
    at com.mongodb.MongoClient.<init>(MongoClient.java:167)
    at com.mongodb.MongoClient.<init>(MongoClient.java:152)
    at com.mongodb.MongoClient.<init>(MongoClient.java:127)
    at com.mongodb.MongoClient.<init>(MongoClient.java:92)


-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to google-appengine+unsubscr...@googlegroups.com.
To post to this group, send email to google-appengine@googlegroups.com.
Visit this group at http://groups.google.com/group/google-appengine.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/e1931ae0-8fcd-41a7-a055-f2c083806630%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to