-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Jersey 2.0-rc1 does not start on Google App Engine because of new Timer/Thread creation #2111
Comments
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented Then you cen use Executors.newSingleThreadScheduledExecutor(threadFactory) method to create ScheduledExecutorService. I hope ScheduledExecutorService can be used to schedule "TimerTask" functionality (see JerseyRequestTimeoutHandler).
|
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
@glassfishrobot Commented |
|
Since 2.0-rc1 jersey can not start on GAE. It tries to init Timer/Thread but there are some limitations on GAE - https://developers.google.com/appengine/docs/java/runtime?hl=cs#The_Sandbox.
The AccessControlException is thrown:
Change since 2.0-m13 (where it worked on GAE) was probably done by fixing #2044:
jersey/jersey@af357be
https://github.com/jersey/jersey/blob/af357bef3e93a61c87417c083d70d753c7efb51d/core-server/src/main/java/org/glassfish/jersey/server/internal/JerseyRequestTimeoutHandler.java
Environment
Google App Engine 1.7.6
Affected Versions
[2.0-rc1, 2.0]
The text was updated successfully, but these errors were encountered: