[appengine-java] Re: handle 1 not found error

2011-02-27 Thread JaySicks
thanks, for your reply. In fact yes, I use task queues. The error comes up when I loop through database objects, and try to persist to the database as well. I want to generate an object for a subset of objects in the database, and store them in the datastore. So my logic is: get an iterator of the

[appengine-java] Re: Error javax.persistence.PersistenceException: Illegal argument

2011-02-27 Thread Didier Durand
Sorry, Got confused with Objectify that I use now in place of JDO/JPA. Look at this blog: http://gae-java-persistence.blogspot.com/ You have there the needed examples to solve your problem regards didier On Feb 27, 2:53 pm, lisandrodc wrote: > Thanks Didier, but "@Parent" It is not an annot

[appengine-java] Re: Can't get .gif image to show in app engine

2011-02-27 Thread Didier Durand
Hi, Did you try specifically in your config file ? If I were you, I would. didier On Feb 28, 6:15 am, i3k wrote: > I must be missing something simple here,  I have a static gif file that I > have uploaded to my app engine application with Eclipse.  When I try to > access it, it is not availabl

[appengine-java] Re: handle 1 not found error

2011-02-27 Thread Didier Durand
Hi, I rather had such messages when using task queues and doing mistakes with them. Do you use task queues (or cron jobs) ? regards didier On Feb 27, 5:56 am, JaySicks wrote: > Hi, I'm getting the error: > "com.google.appengine.api.datastore.DatastoreFailureException: handle > 1 not found" >

[appengine-java] Can't get .gif image to show in app engine

2011-02-27 Thread i3k
I must be missing something simple here, I have a static gif file that I have uploaded to my app engine application with Eclipse. When I try to access it, it is not available on the server. The requested URL /images/iLinkProgress.gif was not found on this server.The location is https://myapp

[appengine-java] using GQL to access the Contacts.

2011-02-27 Thread Dr. Cornelius
Hi, I'm pretty sure you must be able to do this but I cannot find any examples anywhere. I'm am having to manually filter my contacts, I'd like to search/ filter my contacts using a GQL query. I've done it with the isolated storage but cannot workout the the contacts. It this possible? Thanks

[appengine-java] /_ah/warmup calls

2011-02-27 Thread Cian Montgomery
My app (appid: mr-october) is experiencing problems with the /_ah/ warmup calls. Looking thru the logs I can not find a single call to warm up that succeeds. Every warm up call shoes this warning message: 2011-02-25 08:56:37.796 A serious problem was encountered with the process that handled this

[appengine-java] GAE (Java) integration with OAuth (facebook, twitter, etc.)

2011-02-27 Thread irrdev
By searching Google, it's possible to come up with several home-grown solutions for gaining OAuth authentication to specific websites such as Facebook and Twitter. Unfortunately, most these methods are outdated and/or are site-specific. Considering that many of today's online apps seek social api i

[appengine-java] handle 1 not found error

2011-02-27 Thread JaySicks
Hi, I'm getting the error: "com.google.appengine.api.datastore.DatastoreFailureException: handle 1 not found" (the number may vary) I looked up, and I found, that it's related to transactions. And I should get the error, when the too much time passes from the start of the transaction to the commit

Re: [appengine-java] Re: How to get all entity types?

2011-02-27 Thread 王宇辉
Thanks, dider 2011/2/24 Didier Durand > Hi, > > Look at > http://code.google.com/appengine/docs/java/datastore/metadataqueries.html: > all what you need is there. > > regards > > didier > > On Feb 24, 8:01 am, 王宇辉 wrote: > > Hi guys, > > > > Is there any way to get all the entity names by code?

[appengine-java] Boolean.FALSE values come out of memcache strange?

2011-02-27 Thread Kriss Daniels
Hello, I just got bit by this strange java appengine behaviour. Store a Boolean.FALSE value in memcache. (I'm using the lowlevel API and this value was within other objects) Retrieve this value from memcache. (value instanceof Boolean) is still true (value.booleanValue()) is still false howeve

[appengine-java] Persisting and deleting objects using same PersistanceManager

2011-02-27 Thread Tadas Šubonis
Hi, I have this test (I am creating object, persist it and trying to remove it) and it is failing on "fail("not supposed to get here");" line. Is it bug in GAE JDO or JDO is supposed to work in this way? private final LocalServiceTestHelper helper = new LocalServiceTestHelper(

Re: [appengine-java] count total records when using cursor

2011-02-27 Thread Jeff Schnitzer
There is no cache of query results when you use cursors - or limit/offset. They're just pointers into the real datastore index. If you change the datastore, the results will change. If you want 100% guaranteed unchanging query results in a highly dynamic dataset, cache the results yourself in the

[appengine-java] Re: Can't integrate my GoogleAppEngine(GAE/J) app with JPA (DataNucleus) !

2011-02-27 Thread Guser
Hello, I got the same error after copying code from another GAEJ project which I had previously developed. The error is causing by a missing persistence.xml file, in my case, or I suppose it could be caused by mis-naming or a missing persistence-unit declaration in the persistence.xml. The full d

[appengine-java] Re: Single session per user

2011-02-27 Thread Scott
Thanks for the response Didier! I know I can store the session id, but how do I then retrieve the session object by id? I have been looking at ways to access _ah_SESSION entities using the low level datastore api like this: DatastoreService ds = DatastoreServiceFactory.getDatastoreServ

[appengine-java] Re: Error javax.persistence.PersistenceException: Illegal argument

2011-02-27 Thread lisandrodc
Thanks Didier, but "@Parent" It is not an annotation of JPA... link: http://www.datanucleus.org/products/accessplatform_1_1/jpa/annotations.html What is what you say that I must place in the code? Regards Lisandro On 27 feb, 04:06, Didier Durand wrote: > Yes, > > You can't update 2 entities that

[appengine-java] count total records when using cursor

2011-02-27 Thread Luke
let say we use cursor and we fast-forward page. 1-10 11-20 when reached here, one record in 23 is deleted 21-30 on in this case, when cursor is at 21, it will only show 9 record on this page correct? In other words, we cannot use global count (total records) for paging unless we will have to