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

2012-02-04 Thread John Goche
oup. And if one uses 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 wrote: > I hope this is a stupid question but you're not setting the read consistency > to eventual are you? Best Regards, J

[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 this

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

2012-02-02 Thread John Goche
tx.rollback(); pm.close(); } } On Thu, Feb 2, 2012 at 11:01 AM, Nichole wrote: > you need an entity group >       > http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html > > or cross group transactions if you are using the HR datastore: >      h

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

2012-02-01 Thread John Goche
d. 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 wrote: > So it can't find a related Entity. You could obviously use the DB > viewer (or a low level API call) to check

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

2012-01-31 Thread John Goche
Hello, I have been testing JDO on app engine all day and have come up with the following problem on 2.0 RC2: I have a class Store with a field Sales with a list of SaleItem, all of which is persistable. When I modify the sale and make the store persistent the first time everything goes OK, but whe

[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 List otherUsers; } because User appears twice within Store, so the fr

[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 wrote: > > Hello, > > I have an object calld XZStore which has a member List receipts. > I add a receipt and

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 wrote: > Probably a bug, but you could just use the more normal > Query q = pm.newQuery(MyClass.class); > List results = (List)q.execute(); > which is widely tested in Googl

[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 { Extent storeExtent = pm.getExtent(XZStore.class); if (storeExtent == null) return

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 new_appengine-java-sdk

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
On Mon, Jan 30, 2012 at 4:44 PM, datanucleus wrote: > > 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 one or the othe

[appengine-java] upgrading to datanucleus-appengine 2.0

2012-01-29 Thread John Goche
in the 2.0 version. Thanks for your help with installing the 2.0 plugin, 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 unsubsc

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

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

2012-01-29 Thread John Goche
access 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 > wrote: > >> >> Hello, >> >> If anyone

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

2012-01-29 Thread John Goche
(QueuedThreadPool.java:582) Anyone having this problem? Anyone know how to solve it? Anyone know if gae datanucleus 2.0 RC2 plugin solves it. Anyone know how to install 2.0 RC2? Hoping someone on this list can help... source code to reproduce this error available upon request. Thanks, John Goche

[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

[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

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 wrote: > Ha

[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

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

2012-01-25 Thread John Goche
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

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 wrote: > On Tue, Jan 24, 2012 at 4:21 PM, John Goche > wrote: > >> > >> The main reason I ask is that loading two entities is about twice as > >> expensive as loading one twice the size. > > > > To

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

2012-01-24 Thread John Goche
sistencecapable. Not sure if this is the way to go. > 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

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

2012-01-24 Thread John Goche
JDO. 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 wrote: > >> >> Hell

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

2012-01-24 Thread John Goche
ng). Thank you 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

Re: [appengine-java] android + AppEngine + Users API

2012-01-07 Thread John Goche
What approach do you use for authentication? On Sat, Jan 7, 2012 at 6:40 PM, Vic Chen wrote: > i use android(also ios), gae and google cloud sql(for restore and backup > data). > it work for my project. > > i use very simple servlet way. > > 2012/1/8 John Goche : > >

[appengine-java] android + AppEngine + Users API

2012-01-07 Thread John Goche
y identity? 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

[appengine-java] Learning JDO for AppEngine

2012-01-06 Thread John Goche
comprehensive 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