[appengine-java] Learning JDO for AppEngine

2012-01-06 Thread John Goche
reference on JDO. Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java

[appengine-java] android + AppEngine + Users API

2012-01-07 Thread John Goche
? Doesn't app engine close the session once the HTTP response is received by the client. If so how can I actually stay logged in? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google

[appengine-java] lost trying to understand JDO on BigTable: please help coding example

2012-01-24 Thread John Goche
for your kind help, John Goche -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr

Re: [appengine-java] lost trying to understand JDO on BigTable: please help coding example

2012-01-24 Thread John Goche
. In Objectify, you would just @Embed one class into the other. Mat. Thank you for your reply. Looking forward to hearing from someone who would know how to do this in JDO. Regards, John Goche On 24 January 2012 20:05, John Goche johngoch...@googlemail.com wrote: Hello, I have the following

Re: [appengine-java] lost trying to understand JDO on BigTable: please help coding example

2012-01-24 Thread John Goche
. In my opinion, you're not sacrificing code readability - you're just moving work around. So how would I move stuff around in the example given above? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post

Re: [appengine-java] lost trying to understand JDO on BigTable: please help coding example

2012-01-25 Thread John Goche
On Wed, Jan 25, 2012 at 1:57 AM, Jeff Schnitzer j...@infohazard.org wrote: On Tue, Jan 24, 2012 at 4:21 PM, John Goche johngoch...@googlemail.com wrote: The main reason I ask is that loading two entities is about twice as expensive as loading one twice the size. Tough. I cannot

[appengine-java] please help understanding: connection between JDO Java keys and BigTable keys

2012-01-25 Thread John Goche
the various instances using iterators programmatically? Thanks, John Goche -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send

[appengine-java] app engine server availability

2012-01-27 Thread John Goche
again in 16 seconds. Will check again in 32 seconds. Will check again in 60 seconds. Will check again in 60 seconds. Will check again in 60 seconds. Will check again in 60 seconds. Will check again in 60 seconds. ... Anyone else having this issue? Regards, John Goche

Re: [appengine-java] Re: app engine server availability

2012-01-27 Thread John Goche
) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) If this is a problem on google's side I hope it get fixed sometime soon. Reagards, John Goche On Fri, Jan 27, 2012 at 2:53 PM, Chris ritterch...@gmail.com wrote

[appengine-java] WEB-INF/appengine-generated/datastore-indexes-auto.xml

2012-01-27 Thread John Goche
Hello, My eclipse is not placing an *WEB-INF/appengine-generated/* datastore-indexes-auto.xml in place for me as described on http://code.google.com/appengine/docs/java/config/indexconfig.html Anyone know how to get eclipse to generate one automatically? Thanks, John Goche -- You received

[appengine-java] anyone know how to deal with: org.datanucleus.exceptions.NucleusUserException: Object Manager has been closed

2012-01-28 Thread John Goche
().getPersistenceManager(); Transaction tx = pm.currentTransaction(); try { tx.begin(); pm.makePersistent(Data.store); tx.commit(); } finally { if (tx.isActive()) tx.rollback(); pm.close(); } } I don't see anything wrong with the code. Any ideas? John Goche

Re: [appengine-java] anyone know how to deal with: org.datanucleus.exceptions.NucleusUserException: Object Manager has been closed

2012-01-29 Thread John Goche
the simple fields such as String, Data, int, long, double, etc... which should have been retrieved automatically I suppose since they are not lists? Thanks, JG On Sun, Jan 29, 2012 at 10:52 AM, John Goche johngoch...@googlemail.comwrote: Hello, If anyone knows how to deal

Re: [appengine-java] Re: anyone know how to deal with: org.datanucleus.exceptions.NucleusUserException: Object Manager has been closed

2012-01-29 Thread John Goche
/datanucleus/store/exceptions/ReachableObjectNotCascadedException.html You can try pm.flush() and temporarily add catch (Throwable t) { t.printStackTrace() for more detail Thanks but where in my code am I supposed to call this pm.flush() call? Thanks, JG On Jan 28, 3:52 pm, John Goche johngoch

Re: [appengine-java] Re: upgrading to datanucleus-appengine 2.0

2012-01-30 Thread John Goche
On Mon, Jan 30, 2012 at 4:44 PM, datanucleus andy_jeffer...@yahoo.comwrote: Also, I did not have a persistence.xml file in eclipse so I copied the one provided on the wiki's link and placed it alongside jdoconfig.xml in hope that this would be enough. And why should you have one? You use

Re: [appengine-java] Re: upgrading to datanucleus-appengine 2.0

2012-01-30 Thread John Goche
Hello, I am still trying the v2.0 installation. I have reinstalled eclipse and the app engine plugin and then followed the instructions at: http://code.google.com/p/datanucleus-appengine/wiki/UpgradingToVersionTwo all went well but in the very last step when I enabled the auto enhancement I got:

Re: [appengine-java] Re: upgrading to datanucleus-appengine 2.0

2012-01-30 Thread John Goche
Well, I've finally managed to resolve my problem: The org/datanucleus/enhancer/DataNucleusEnhancer.class was found in eclipse/plugins/com.google.appengine.eclipse.sdkbundle_1.6.1.v201201120043r37/new_appengine-java-sdk-1.6.1/lib/opt/tools/datanucleus/v2 but I was including

[appengine-java] iterating over Extent throwing NullPointerException on extent.closeAll()

2012-01-30 Thread John Goche
Hello, I am running app engine plugin 2.0 RC2 and having the following problem: The following code runs and returns null but... PersistenceManager pm = PMF.get().getPersistenceManager(); try { ExtentXZStore storeExtent = pm.getExtent(XZStore.class); if (storeExtent ==

Re: [appengine-java] Re: iterating over Extent throwing NullPointerException on extent.closeAll()

2012-01-31 Thread John Goche
Thanks for the confirmation. Using Query instead of Extent is working for me. On Tue, Jan 31, 2012 at 11:37 AM, datanucleus andy_jeffer...@yahoo.comwrote: Probably a bug, but you could just use the more normal Query q = pm.newQuery(MyClass.class); List results = (List)q.execute(); which is

[appengine-java] Re: pm.makePersistent() causes NullPointerException after deletion

2012-01-31 Thread John Goche
Upgrading to datanucleus-appengine plugin 2.0 RC2 and changing Extent to Query also made this problem vanish. Regards, JG On Mon, Jan 30, 2012 at 12:23 AM, John Goche johngoch...@googlemail.comwrote: Hello, I have an object calld XZStore which has a member ListReceipts receipts. I add

[appengine-java] Does this cause any problems with JDO on app engine?

2012-01-31 Thread John Goche
Hello, The following scenario was giving me problems: @PersistenceCapable class Store { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; @Persistent User admin; @Persistent ListUser otherUsers; } because User appears twice within Store, so

Re: [appengine-java] Re: makePersistent failing every second time since server restart

2012-02-01 Thread John Goche
. In the meantime any suggestions on how to work around the problem would be greatly appreciated. Kind Regards, John Goche On Wed, Feb 1, 2012 at 9:21 AM, datanucleus andy_jeffer...@yahoo.com wrote: So it can't find a related Entity. You could obviously use the DB viewer (or a low level API call) to check

Re: [appengine-java] Re: makePersistent failing every second time since server restart

2012-02-02 Thread John Goche
/transactions.html or If you are not on the HR datastore and need 2-phase locking transactions: http://groups.google.com/group/google-appengine-java/browse_thread/thread/497060c343e16052/18f8603e9ffe3db4?lnk=gstq=Good+point+++nichole#18f8603e9ffe3db4 On Feb 1, 10:25 am, John Goche johngoch

[appengine-java] writing then reading entity does not fetch entity from datastore

2012-02-03 Thread John Goche
on the datastore just after committing a write transaction. (If I run the code through the debugger things run slow enough that the entity has a chance of being read back on the second pass). Any help with this issue would be greatly appreciated, Regards, John Goche -- You received

Re: [appengine-java] writing then reading entity does not fetch entity from datastore

2012-02-04 Thread John Goche
the high replication server and does not query by key one will be exposed to this constraint. On Sat, Feb 4, 2012 at 3:16 AM, Matthew Jaggard matt...@jaggard.org.uk wrote: I hope this is a stupid question but you're not setting the read consistency to eventual are you? Best Regards, John Goche