views:

342

answers:

2

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.

A: 

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.

J5
A: 

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.

phantomas