I hope someone can help me because I feel like I'm slowly going
insane. I've deployed a few GAE projects before and everything has
always gone smoothly. However, on my current project the DataNucleus
Enhancer is out to get me. I have a JPA Entity class that is giving me
fits. Even after a clean, refresh, and another clean in Eclipse,
50-80% of the time after I start-up the application and attempt to
authenticate myself I receive the following error:
javax.persistence.PersistenceException: No meta data for
com.corp.core.domain.User. Perhaps you need to run the enhancer on
this class?
at
com.google.appengine.runtime.Request.process-514417639f6f388a(Request.java)
at
org.datanucleus.jpa.NucleusJPAHelper.getJPAExceptionForNucleusException(NucleusJPAHelper.java:
264)
at org.datanucleus.jpa.JPAQuery.getResultList(JPAQuery.java:179)
at
com.corp.server.services.AuthenticationServiceImpl.getUserById(AuthenticationServiceImpl.java:
287)
at
com.corp.server.services.AuthenticationServiceImpl.getCurrentUser(AuthenticationServiceImpl.java:
263)
at com.corp.gwt.authentication.PageUserBean.getUser(PageUserBean.java:
29)
at org.apache.jsp.header_jsp._jspService(header_jsp.java:61)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
390)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
182)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
765)
Every once in a while I get lucky and the application will work
correctly but any code change has a chance of bringing back the error.
This error is thrown even after the Enhancer says that it has enhanced
the correct number of classes. I've done every modification that I can
think of to the class to attempt to figure out what code is setting it
off but so far no luck. I've renamed it, moved it, removed all methods
and stripped it down to its core. No luck. It was one thing to deal
with this after a code change in development but now it is effecting
production. I've been deploying and redeploying my application for the
past 90 minutes using the deploy button in Eclipse but I now get the
same error on the server too.
Does anyone have any ideas as to how I can work around this DataNuceus
Enhancer nonsense? I don't have to modify the class so I wish there
was a way to enhance it once and forget about it.
--
You received this message because you are subscribed to the Google Groups
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine?hl=en.