Base Class "Does Not Seem to Have Been Enhanced" After Upgrade of Google App Engine SDK for Java
I get errors like this when attempting to run unit tests under App Engine SDK 1.2.8. The unit tests pass开发者_开发百科 under SDK 1.2.6 using the same code.
"Class com.foo.bar.BaseClass does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output"
A class which extends BaseClass IS persisted, but has the proper annotations, etc.
I had the same issue but with a different solution. After deploying I checked the console, that pointed to an error log:
Plugin (Bundle) "org.datanucleus.store.appengine" is already registered. Ensure you dont have multiple JAR versions of the same plugin in the classpath.plugin in the classpath.
So I checked the libs in the WEB-INF folder. I found multiple versions of "datanucleus-appengine-xxx". After removing the old verions it worked again.
A thread on GAE support group shows other reports of the same issue and links to a release-candidate version of ORM 1.0.4 which fixes this and another related bug: Support Thread
My errors were fixed by installing the ORM RC using the method provided in the GAE support wiki.
Thanks to Max Ross @ Google for delivering a fix for the problem quickly.
精彩评论