Hi, any thoughts about the following would be appreciated. The
following code:
PersistenceManager pm = PMF.get ().getPersistenceManager ();
try
{
Transaction transaction = pm.currentTransaction ();
transaction.begin ();
String query = "select from " +
RegistrationTable.class.getName ()
+ " where serial == '" + serial + "'";
Query q = pm.newQuery (query);
Collection c = (Collection) q.execute ();
q.close (c);
transaction.commit ();
throws an exception when trying to invoke pm.newQuery() as follows:
aused by: javax.jdo.JDOUserException: Transaction is still active. You
should always close your transactions correctly using commit() or
rollback().
FailedObject:org.datanucleus.store.appengine.jdo.datastorejdopersistencemana...@7f3ccc
at org.datanucleus.jdo.JDOPersistenceManager.close
(JDOPersistenceManager.java:277)
If I try removing the transaction.begin(), or calling
transaction.commit() before creating the query I get this exception:
Caused by: java.lang.NoSuchFieldError: NOT_EQUAL
at org.datanucleus.store.appengine.query.DatastoreQuery.buildNewOpMap
(DatastoreQuery.java:146)
at org.datanucleus.store.appengine.query.DatastoreQuery.<clinit>
(DatastoreQuery.java:136)
at org.datanucleus.store.appengine.query.JDOQLQuery.<init>
(JDOQLQuery.java:66)
The store is empty, there are no objects in it. Any suggestions would
be appreciated.
Thanks,
Joe
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" 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-web-toolkit?hl=en.