appengine data nucleus enhancer issue with classes not getting enhanced - java

I have a appengine web app that keeps giving me a class not enhanced error... Whenever I try to log into the app from the login page I get the following error
Caused by: org.datanucleus.exceptions.NucleusUserException: Found Meta-Data for class com.d.su.model.Resource but this class is not enhanced!! Please enhance the class before running DataNucleus.
i've googled quite a bit and it seems to be an issue with data nucleus enhancer not running on all classes. i;m using eclipse with the google plugin, I tried it on two different versions of the appengine SDK but no luck... Any idea how I can go about resolving this?

Sometimes while changing app engine sdk, jars are not completely removed from previous version, so check if your webapps/lib have same jars of multiple version if so then delete all jars from webapps/lib then change appengine version.
Clean and refresh project, make sure lib have only default jars

Related

#Transactional not an annotation

I am trying to rebuild a grails application using ggts 3.4.0 with groovy 2.1.8, grails 2.3.3 and java 1.7.
In the services files I'm getting these error messages:
Groovy.class grails.transaction.Transactional is not an annotation in #grails.transaction.Transactional
I believe that one of the components listed above is causing this problem. Can someone suggest which particular one and the required version I need?
Incidentally, I've successfully built this in the past with different versions of the various components but I'm not sure what they were. I do have backups - so if you can suggest where can I find details of these builds that would help.
I would welcome any suggestions?
-mike

Spring Batch Admin - Override configurations are not recognized

I have downloaded the spring-batch-admin 1.3.0.RELEASE project, and updated all of the library references to the most recent RELEASE versions so that they are compatible with my spring-batch environment (eg. spring-xxx 4.1.4.RELEASE).
I have applied the environment settings and overrides per http://docs.spring.io/spring-batch-admin/getting-started.html . However, those overrides are not being recognized.
At least one email chain linked this symptom to the jira issues linked to https://jira.spring.io/browse/SPR-12111 , but those are allegedly fixed in spring core 4.1 .
Since the problem appears to be that the XML files in the project are not being scanned at all (only the ones embedded in the jar files), it seems to me that here should be some obvious way to work around this, even if it is not technically a "fix".
I am open for suggestions.
I resolved this by downloading the latest 1.3.1.RELEASE source from github and building it without any modifications.

Create android native feature using Bayeux Protocol

I am trying to create an Android project and get the Bayeux Java Client library
working for it. I have the cometd library imported in my eclipse and I also added
the projects to the build path of my project.
My project builds fine, but on execution, I keep getting the NoClassDefFound error.
I am not sure, how to set my project up.
Are there any examples that I can refer to?
Any help is greatly appreciated.
Thanks,
I do the same thing and musst add some Other third party libraries. Check the NoClassDef Exception which class is needed and wasn't found. I Google the required class and add it to my libs folder. If i remember right it were some jetty client libs (3 or 4).

GWT can't find org.json while it's in the build path

I have a strange problem. I get an error from Google Web Toolkit stating the following:
com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract
com.pluspopularity.model.LinkItem com.pluspopularity.web.client.GreetingService.greetServer(java.lang.String)
throws java.lang.IllegalArgumentException' threw an unexpected exception:
java.lang.NoClassDefFoundError: org/json/JSONException
Now, I can find lots of questions about this java.lang.NoClassDefFoundError: org/json/JSONException exception, but they all seem to be fixed by GWT version 2.5 because org.json was since then included in the gwt-dev.jar package.
I have version 2.5 and I can see org.json in my GWT SDK library.
So I have no idea where this error comes from.
Something I noticed: the GWT SDK folder contains a lot of jar files, but only 4 are included when I add it as an SDK in Eclipse: gwt-user.jar, gwt-dev.jar, validation-api-1.0.0.GA-sources.jar and validation-api-1.0.0.GA.jar. In some issues in questions about this error from GWT versions before 2.5 I see mentions of a gwt-servlet-deps.jar file. That file sits inside my GWT SDK folder, but it's not included in the SDK library in Eclipse.
I re-installed the GWT SDK via Eclipse but still only those 4 files are included.
You get an error at runtime (apparently), on the server-side.
If the Eclipse plugin doesn't do it for you (I have no idea if it's supposed to do it or not), you should go get gwt-servlet-deps.jar (or any JAR that contains org.json) and copy it to your WEB-INF/lib next to gwt-servlet.jar.
org.json.JSONException is present in json-20090211.jar.
Both gwt-user and request-factory-server have dependency on it. In a maven set up it gets copied automatically via request-factory for us since both are in runtime scope.

Eclipse cannot find the Google API's

I updated my Google App Engine SDK on Eclipse as soon as I restarted Eclipse, the application couldn't resolve all the references to javax.* and com.google.* packages.
by searching the internet, I found how to restore the javax api's (by including the relevant jar located in the apache library), but I can't find any similar explanation about how to restore the Google api's.
Any advice would be appreciated.
Does this happen for newly created projects too? You could try Doing "project"->"Clean" or close and re-open the project to make sure all new dependencies are loaded.

Categories

Resources