Saturday, March 26, 2011

Data Nucleus Enhancer Errors

It appears like there is a limit on how many classes can be enhanced in google app engine projects on eclipse. If there are too many classes, you get the following error ("CreateProcess error=87, The parameter is incorrect") at the build time and some classes do not get enhanced. 




If you try to use the application, you get errors that look like the following:



[ERROR] Excepton in class: javax.jdo.JDOUserException
[ERROR] Persistent class "Class so&so does not seem to have been enhanced.  You may want to rerun the enhancer and check for errors in the output." has no table in the database, but the operation requires it. Please check the specification of the MetaData for this class.

How to fix?
In reality, all classes do not need to be enhanced. You can restrict it to a limited set of classes by changing ORM settings under App Engine settings in Eclipse




Friday, March 11, 2011

SuggestBox with UIBinder

Using SuggestBox with in UIBinder is not straighforward. This article explains how to do it.