This repository was archived by the owner on Dec 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 273
This repository was archived by the owner on Dec 29, 2022. It is now read-only.
Issues with Google App Engine Thread #11
Copy link
Copy link
Closed
Labels
Description
So we are using Google App Engine as our primary backend and we are planning to call Firebase from our GAE instance for users' realtime location.
It seems like the GAE is denying GeoFire library because the library is initializing a Thread
when calling GeoFire geoFire = new GeoFire(new Firebase(("address")));
. So initializing Firebase
object is throwing an exception.
Is there a work around for this problem?
Here is the stack trace:
[INFO] Jun 24, 2015 12:03:00 AM com.google.api.server.spi.SystemService invokeServiceMethod
[INFO] SEVERE: exception occurred while calling backed method
[INFO] java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "modifyThreadGroup")
[INFO] at java.security.AccessControlContext.checkPermission(AccessControlContext.java:372)
[INFO] at java.security.AccessController.checkPermission(AccessController.java:559)
[INFO] at java.lang.SecurityManager.checkPermission(SecurityManager.java:549)
[INFO] at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkPermission(DevAppServerFactory.java:429)
[INFO] at com.google.appengine.tools.development.DevAppServerFactory$CustomSecurityManager.checkAccess(DevAppServerFactory.java:454)
[INFO] at java.lang.ThreadGroup.checkAccess(ThreadGroup.java:315)
[INFO] at java.lang.Thread.init(Thread.java:391)
[INFO] at java.lang.Thread.init(Thread.java:349)
[INFO] at java.lang.Thread.<init>(Thread.java:675)
[INFO] at java.util.concurrent.Executors$DefaultThreadFactory.newThread(Executors.java:572)
[INFO] at com.firebase.client.utilities.DefaultRunLoop$FirebaseThreadFactory.newThread(DefaultRunLoop.java:20)
[INFO] at java.util.concurrent.ThreadPoolExecutor$Worker.<init>(ThreadPoolExecutor.java:610)
[INFO] at java.util.concurrent.ThreadPoolExecutor.addWorker(ThreadPoolExecutor.java:924)
[INFO] at java.util.concurrent.ThreadPoolExecutor.ensurePrestart(ThreadPoolExecutor.java:1590)
[INFO] at java.util.concurrent.ScheduledThreadPoolExecutor.delayedExecute(ScheduledThreadPoolExecutor.java:333)
[INFO] at java.util.concurrent.ScheduledThreadPoolExecutor.schedule(ScheduledThreadPoolExecutor.java:530)
[INFO] at java.util.concurrent.ScheduledThreadPoolExecutor.execute(ScheduledThreadPoolExecutor.java:619)
[INFO] at com.firebase.client.utilities.DefaultRunLoop.scheduleNow(DefaultRunLoop.java:47)
[INFO] at com.firebase.client.core.Repo.scheduleNow(Repo.java:191)
[INFO] at com.firebase.client.core.Repo.<init>(Repo.java:67)
[INFO] at com.firebase.client.core.RepoManager.getLocalRepo(RepoManager.java:64)
[INFO] at com.firebase.client.core.RepoManager.getRepo(RepoManager.java:19)
[INFO] at com.firebase.client.Firebase.<init>(Firebase.java:182)
[INFO] at com.firebase.client.Firebase.<init>(Firebase.java:187)
[INFO] at com.firebase.client.Firebase.<init>(Firebase.java:165)
[INFO] at com.example.endpoint.UserEndpoint.setUserLocation(UserEndpoint.java:109)
sistr22sistr22