hqchai / UCLA-Translate-Flashcards

0 stars 0 forks source link

Exception thrown from JDO when testing redirect #25

Closed jisaji closed 10 years ago

jisaji commented 10 years ago

Stack trace:

org.datanucleus.PersistenceConfiguration setProperty: Property datanucleus.appengine.singletonPMFForName unknown - will be ignored

com.google.appengine.datanucleus.MetaDataValidator validate: Performing appengine-specific metadata validation for flashcards.Deck

com.google.appengine.datanucleus.MetaDataValidator validate: Finished performing appengine-specific metadata validation for flashcards.Deck

org.datanucleus.api.jdo.NucleusJDOHelper getJDOExceptionForNucleusException: Exception thrown Persistent class "Class flashcards.Deck 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. org.datanucleus.store.exceptions.NoTableManagedException: Persistent class "Class flashcards.Deck 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. at com.google.appengine.datanucleus.DatastoreManager.getDatastoreClass(DatastoreManager.java:551) at com.google.appengine.datanucleus.query.DatastoreQuery.compile(DatastoreQuery.java:234) at com.google.appengine.datanucleus.query.JDOQLQuery.performExecute(JDOQLQuery.java:158) at org.datanucleus.store.query.Query.executeQuery(Query.java:1789) at org.datanucleus.store.query.Query.executeWithArray(Query.java:1666) at org.datanucleus.api.jdo.JDOQuery.execute(JDOQuery.java:243) at flashcards.GoogleDatastoreFacade.getDeckNameList(GoogleDatastoreFacade.java:34) at flashcards.HomePageServlet.doGet(HomePageServlet.java:29)

I was testing my Authorization exception code when this happened. First I signed out of google. Then, I called the home servlet explicitly. It then redirected me to the google login page. I entered my username and password and when I hit enter, this exception was shown.

I have pushed the branch I was working on to github so you can see the code I changed. Branch is called 'todos'

keylime503 commented 10 years ago

try running "ant datanucleusenhance" instead of "ant compile" then deploy and see if that fixes it

jisaji commented 10 years ago

Worked. So I guess datanucleusenhance is the new compile now

keylime503 commented 10 years ago

yep, should have mentioned that sorry