java.security.AccessControlException: Multithreading in App engine

77 views
Skip to first unread message

Manish Sharma

unread,
Apr 15, 2017, 10:03:37 AM4/15/17
to Google App Engine

Hello,


This is my first post here.


I am using GAE for my backend(module created through Android Studio). I added a library that helps in sending FCM messages to FCM Cloud Connection Server but this library spawns threads to handle things which is where I am getting this exception for trying to spawn threads.

Now, I know that TaskQueue API is provided for this purpose but the library is not under my control.

How can I get around problems with using 3rd party libs that use concurrency?


Any help is truly appreciated.

Adam (Cloud Platform Support)

unread,
Apr 15, 2017, 4:32:26 PM4/15/17
to Google App Engine
Not all third-party libraries can be used with App Engine Java standard runtime, due to the limitations imposed by the sandbox. If the library will accept a ThreadFactory, you can pass it one that you get from com.google.appengine.api.ThreadManager.currentRequestThreadFactory(). Otherwise, the library will need to be modified in such a way as to make use of App Engine's ThreadManager.
Reply all
Reply to author
Forward
0 new messages