gcv/appengine-magic

Unable to use com.google.appengine.api.ThreadManager in dev

emezeske opened this issue · 2 comments

When trying to access the ThreadManager in development (using appengine-magic.core/serve), the import works but this exception is thrown:

clojure.lang.Compiler$CompilerException: java.lang.RuntimeException: Unable to find static field: createThreadForCurrentRequest in class com.google.appengine.api.ThreadManager, compiling: x

If run the exact same code via the dev_appserver.sh script, it works just fine. I guess that some part of the threading stuff is not getting initialized by appengine-magic?

gcv commented

It certainly looks that way. The ThreadManager is a 1.6.4 feature, which is not currently supported by appengine-magic. I'll try to find time in the next few days to bring the library up-to-date.

Oh, I didn't realize it was such a new addition! Thanks for the quick response.