appengine-magic icon indicating copy to clipboard operation
appengine-magic copied to clipboard

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

Open emezeske opened this issue 13 years ago • 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?

emezeske avatar May 02 '12 05:05 emezeske

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.

gcv avatar May 02 '12 06:05 gcv

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

emezeske avatar May 02 '12 06:05 emezeske