I’m having some problem persisting object with my GWT-App engine project which I use Objectify for object persistence. However I am getting this error:
Caused by: java.lang.NullPointerException: No API environment is
registered for this thread.
Based on the stack trace the error originated from the Objectify’s put method. I have check that the object the application that is to be persisted is not NULL.
What could be causing this error?
You need to call ObjectifyFactory.register(Class clazz) for each entity class that you’re persisting. This should be done once (per JVM instance).