views:

788

answers:

5

I'm creating a GWT app in Google App Engine, and using Google data store. Does anybody else have the problem of the DataNucleus being flakey as all get out?

I can save a class, and DataNucleus will do it's thing just fine. If I change ANYTHING in the class (even adding whitespace) and then save, I get the following error:

DataNucleus Enhancer completed with success for 0 classes. Timings : input=37 ms, enhance=0 ms, total=37 ms. Consult the log for full details DataNucleus Enhancer completed and no classes were enhanced. Consult the log for full details

Once I clean my project, DataNucleus is happy again.

Is this common when using eclipse? Is there a workaround?

+2  A: 

I have had a few similar experiences, and needed to clean the project as well. Its not all the time, but I think it happened once or twice a day, when I was regularly using Eclipse with the Google plugins.

jsight
+3  A: 

The DataNucleus Enhancer is invoked by Google's Eclipse plugin. It is their plugin that causes the enhancement. The enhancer itself just does its job, enhancing the classes it is provided with. Nothing "flaky" about the enhancer ...

If you instead use the DataNucleus Eclipse plugin then you can do "on-demand" enhancement, enhancing just before deploy for example.

--Andy (DataNucleus)

DataNucleus
A: 

I was getting the error "Persistent class x does not seem to have been enhanced" and realized that I changed package names and the GAE plug in is set to enhance only certain classes.

You can change the list of classes that need enhancement in your project properties..Google...App Engine...ORM.

Chris Novak
A: 

I am experiencing a similar problem with Google App Engine/GWT/Eclipse with the Google plugin.

After changes to any of my .java files in the /src directory I see data nucleus kick off, but it never enhances any classes. In order for changes I make in my .java files to be visible in the browser I have to recompile the entire GWT project, which is proving very painful!

Any thoughts on how to rectify this? I've checked in the project settings under Google/app engine/ORM and it is indeed set to monitor my /src dir.

Dieter Hanover
does datanucleus only enhance persistent classes? Doesn't everything else get autobuilt on a change by eclipse as well? My problem is specifically about non-persistent classes, e.g. GWT EntryPoint's... "Build automatically" is turned on yet changes to my EntryPoint are not being reflected except on a complete rebuild.
Dieter Hanover
A: 

I had the same problem with the eclipse GAE plugin not "always" enhancing my classes so I installed the DataNucleus plugin to force it but I ran into a problem with the autogeneration of SerialVersionUIDs. I got an error saying "errors during build" but there were no compile errors. Uninstalled DataNucleus plugin and I was back to normal. They don't play well together, it seems.

I'm using GAE v1.3.3.1 and I installed DataNucleus eclipse plugin v2.0.2

Cleaning the project works, even if it's not the most elegant solution.

Charlie Roche