[appengine-java] Re: Updating a simple boolean

2010-03-07 Thread datanucleus
Observance of the JDO spec would tell you that calling makePersistent on something that is already managed is a pointless call since JDO knows you updated the field (the whole point of enhancing those classes); but you don't seem to bother doing a pm.close(). Obviously the log would reveal what

[appengine-java] Re: Task Queue Problems

2010-03-07 Thread Toby
Hi, maybe it is the Method.GET? I just do like this: Queue queue = QueueFactory.getDefaultQueue(); queue.add(TaskOptions.Builder.url(/tasks/foo)); and make sure you handle post and get requests in the servlet, just in case. Cheers,

[appengine-java] Re: Children in an owned one-to-many relationship not being retrieved, what am I doing wrong?

2010-03-07 Thread Toby
Hello Mike, have you tried touching them before you close the query? I had similar problem and only solved it by calling the getter for the owned collection before detaching the results. if (results.iterator().hasNext()) { for (Product fp : results) {

[appengine-java] Google Sitebricks

2010-03-07 Thread SRF
Has anybody been successful deploying a Sitebricks application to Google App Engine? -- 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-j...@googlegroups.com. To unsubscribe from

[appengine-java] Re: Children in an owned one-to-many relationship not being retrieved, what am I doing wrong?

2010-03-07 Thread tempy
Thanks for the suggestion... I did try that exact code and sad to say it didn't help, just returned a 0-size collection. I'm still trying to figure this out... On Mar 7, 10:58 am, Toby toby.ro...@gmail.com wrote: Hello Mike, have you tried touching them before you close the query? I had

[appengine-java] Re: Children in an owned one-to-many relationship not being retrieved, what am I doing wrong?

2010-03-07 Thread Toby
Okay, I see. In my case it is a List not a Set ... but I think that really makes no difference. What I think is strange is that you initialize the fields: @Persistent(defaultFetchGroup = true, mappedBy = _Parent) @Element(dependent = true) private SetCard _Cards = new

[appengine-java] Re: Children in an owned one-to-many relationship not being retrieved, what am I doing wrong?

2010-03-07 Thread tempy
Same thing, but... I tried wrapping both the initial makepersistent() call and then the query in transactions, without changing anything else: I get this, which I hope is related to my original issue: javax.jdo.JDOFatalUserException: Illegal argument NestedThrowables:

[appengine-java] Re: Children in an owned one-to-many relationship not being retrieved, what am I doing wrong?

2010-03-07 Thread tempy
Solved the issue finally... Turned out that I was forgetting to set the deck's key's parent property to user properly, and thus the deck/ card combination was forming one entity group and the user was another group. I still don't get why this had the odd effect of loading user object with an

[appengine-java] Can't save 2 or more sub entities

2010-03-07 Thread Gunnar
Hi, I've created a testservlet to illustrate my problem. I want an owned uni-directional relationship between an entity and a list of sub entities. The model enties are detachable because the client shall be a GWT app. When I add one sub entity it works as expected. When I add the second only the

[appengine-java] What are the rules for object persistence between requests

2010-03-07 Thread tempy
On the dev server, I have a singleton DAO that encapsulates all logic relating to the datastore and memcache. I was surprised to find that the singleton persists between requests, and will generally go on existing until I restart the dev environment. Does this reflect production app engine

Re: [appengine-java] What are the rules for object persistence between requests

2010-03-07 Thread John Patterson
Hi Mike, static variables are a useful way to cache short term data. They will last as long as the instance lasts which is hard to predict. I read some time ago that there is an undocumented limit of about 100MB of memory per instance. On 8 Mar 2010, at 01:02, tempy wrote: On the dev

[appengine-java] Re: Updating a simple boolean

2010-03-07 Thread A1programmer
Actually, nothing for this shows up up in the log. I get Mail sent to: address Anyway, I am not a fan of JDO/JPA/etc, at any level. Also, you make it sound as if I am wasting your time. You could have chosen not to answer, although I appreciate the fact that you did. People come to this

[appengine-java] Re: What are the rules for object persistence between requests

2010-03-07 Thread tempy
Interesting... now I need to go and make sure all my logic still works if singletons stick around between requests. GAE is full of surprises! Thanks for the tip =) On Mar 7, 7:22 pm, John Patterson jdpatter...@gmail.com wrote: Hi Mike, static variables are a useful way to cache short term

Re: [appengine-java] Re: What are the rules for object persistence between requests

2010-03-07 Thread Jeff Schnitzer
On Sun, Mar 7, 2010 at 11:36 AM, tempy fay...@gmail.com wrote: Interesting... now I need to go and make sure all my logic still works if singletons stick around between requests.  GAE is full of surprises!  Thanks for the tip =) It may be true that GAE is full of surprises, but this shouldn't

[appengine-java] Hard Deadline Exceeded and High CPU

2010-03-07 Thread Ken
I have a very simple Groovy on Grails application installed that uses only a single table. The application is really just the scaffolded edits on this table with very few modifications to make it work. So it doesn't really do anything. About one in five clicks result in an error. The exception

[appengine-java] Re: Enable billing to avoid HardDeadlineExceededError?

2010-03-07 Thread Ken
This is happening to me in a Groovy on Grails application, but it doesn't seem to be a loading problem. Even if I'm clicking through the application I get these kinds of problems randomly. Probably one out of every five clicks fails if I wait for it to. Grails uses Spring underneath so maybe

[appengine-java] Interpretation of 503 (Service not available) errors

2010-03-07 Thread Jon Blower
Hi, I'm stress testing a simple GAE-Java application that serves static images: nothing is generated dynamically. The test client has multiple threads (up to 100) that request randomly-selected images. As the number of threads in the client gets to 50 and above I can achieve hundreds of requests

[appengine-java] Re: Policy prevented put operation during stress testing

2010-03-07 Thread Jon Blower
On closer inspection of my logs, it appears that I might be hitting my per-minute limits for read/write to the datastore, and possibly memcache. Although I'm nowhere near the limit of 4800 calls/minute to the image manipulation API, I might well be hitting the 5 megabyte per minute limit for that

[appengine-java] Re: Updating a simple boolean

2010-03-07 Thread datanucleus
Plenty shows up in the log when you set it to DEBUG level. -- 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-j...@googlegroups.com. To unsubscribe from this group, send email to

[appengine-java] Re: JDO Level2 Cache setup for dummies

2010-03-07 Thread Toby
Hello, Currently I made a memcache layer over my DAO to prevent calling the datastore if it is not neccessary. Do I understand right, that this L2 cache is doing exactly the same? If I e.g. fire a request and then fire the same query again (and in the mean time no update or delete was done) it

[appengine-java] Re: Hard Deadline Exceeded and High CPU

2010-03-07 Thread Ken
I was just looking in the logs after making numerous requests to my application. Something is seriously wrong. I'm even having high CPU on static files. In one request it took 45 seconds of CPU to return the favicon.ico file. I guess this is really related to starting a server instance, but if

[appengine-java] Re: What are the rules for object persistence between requests

2010-03-07 Thread tempy
Well I didn't think that GAE would start up a new JVM per request, but I assumed the GC would clean up any data created between requests, as there seems to be nothing left holding references to said data. One of these days I will read up on the details of java garbage collection... On Mar 7,

[appengine-java] Re: Hard Deadline Exceeded and High CPU

2010-03-07 Thread Ken
I am getting HardDeadlineExceededErrors. What do you mean that the instance will be disposed? What can I do about it? Thank you. On Mar 7, 5:18 pm, John Patterson jdpatter...@gmail.com wrote: If there are errors like HardDeadlineExceededError then the server   instance will be disposed.  

Re: [appengine-java] Re: What are the rules for object persistence between requests

2010-03-07 Thread Jeff Schnitzer
On Sun, Mar 7, 2010 at 2:30 PM, tempy fay...@gmail.com wrote: Well I didn't think that GAE would start up a new JVM per request, but I assumed the GC would clean up any data created between requests, as there seems to be nothing left holding references to said data.  One of these days I will

Re: [appengine-java] searchable datastore

2010-03-07 Thread Gal Dolber
I am using a ListString tags property on my searchable models, I fill it when I put the entities with all the matches I will like to have, and I query them like query.filter(tags, SomeString); Regards 2010/3/6 Prashant Gupta nextprash...@gmail.com Hi, I want to make my app's data searchable.

[appengine-java] Querying datastore with keylist?

2010-03-07 Thread Alexander Lagler
hi, can you tell me how to query datastore in java with an KEYLIST by using Listmyclass mylist = (Listmyclass)query.execute(LIST OF KEYS); i do not want to use pm.getObjectsById(ListObject) because i want to use both 'setOrdering()' and 'setRange()' couldnt find something on the web, so any

[appengine-java] Cannot get my basic Struts2 application to work

2010-03-07 Thread Deepam Tiwan
Hi All, I am having trouble getting my basic struts2 application to working with GAE/J. I read the discussion about OGNL permission but I feel I am not hitting that point yet. Here is the URL. http://demoappbasic.appspot.com/HelloWorld.action And this is the error I see, Error: result 'null'

Re: [appengine-java] Re: Hard Deadline Exceeded and High CPU

2010-03-07 Thread John Patterson
The Jetty server is not used again after an error so another one has to be spun-up for you next request. The only thing you can do about it is tackle the HDEEs which is not always easy. It sounds like they might be due to long start-up time? If so there are a number of tactics you can

[appengine-java] Failing to properly detach children in owned one-to-many relationship

2010-03-07 Thread tempy
I am trying to load the full object graph for User, which contains a collection of decks, which then contains a collection of cards, as such: User: @PersistenceCapable(detachable = true) @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) @FetchGroup(name = decks, members = {

[appengine-java] 2688 ms to retrive 201 entities from datastore?

2010-03-07 Thread nicolas melendez
Hi there, i have an entity group thish tree is like this: Room -- Table -- Game in an operation i need to retrive the whole tree, which are 201 entities and take me 2688 ms and that is a lot of time! That is common in app engine, or i am doing something wrong? Thanks in advance NM -- You

[appengine-java] Re: Hard Deadline Exceeded and High CPU

2010-03-07 Thread Ken
Actually my app is written in Groovy on Grails. It is supposed to be supported by App Engine and seems to work OK, with a few warts and this problem. Unfortunately it means I probably don't have as much control over application start up times as I might with another framework. Is there any way

[appengine-java] Re: Updating a simple boolean

2010-03-07 Thread A1programmer
It doesn't show up in the log. It is on DEBUG level. On Mar 7, 4:12 pm, datanucleus andy_jeffer...@yahoo.com wrote: Plenty shows up in the log when you set it to DEBUG level. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post

Re: [appengine-java] searchable datastore

2010-03-07 Thread yjun hu
you can try to use compass for searching. and a simple demo here: http://hapeblog.appspot.com/blog.shtml?id=7002 On Sun, Mar 7, 2010 at 2:13 PM, Gal Dolber gal.dol...@gmail.com wrote: I am using a ListString tags property on my searchable models, I fill it when I put the entities with all

[appengine-java] Simple query

2010-03-07 Thread Karel Alvarez
Hi guy, I hate to bother everybody again. I have a ver simple class, some fields, and an String primary key. One of the fields lastTimeIndexed is a date. I am trying to get the max value for it, the folowing method working fine upto 3k records, but now I added more, and it takes minutes to run. I

Re: [appengine-java] Querying datastore with keylist?

2010-03-07 Thread Karel Alvarez
Hi, there is an example in this page: http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html look for the contains() thanks Karel On Sun, Mar 7, 2010 at 2:19 AM, Alexander Lagler alag...@edu.uni-klu.ac.at wrote: hi, can you tell me how to query datastore in java with an

[appengine-java] Re: Eclipse hangs at startup, Ubuntu

2010-03-07 Thread Larry Cable
I believe this is a problem not in Eclipse but in Gtk ... On Mar 4, 4:15 am, Steven Jay Cohen steven.jay.co...@gmail.com wrote: I can confirm this same behavior on my GWT projects not AppEngine. It's sporadic and can be addressed exactly as described in this post. I am using Eclipse 3.5.2

[appengine-java] Latency/Aggressive Recycling/Timings

2010-03-07 Thread Steve Pritchard
I have moved my app previously described at http://www.rexcel.ca:/gems/bbb/load.home to http://gems-bbb.appspot.com/gems/bbb/load.home Since it is designed to be very responsive I felt I need to understand the spin out/spin in issue and see what immediate band-aid solutions may be available.

[google-appengine] how i can access my contacts of wave

2010-03-07 Thread santosh mantri
hi i'm creating one desktop app...for which i want to have my wave contacts...is there any java api to do this... if so plz let me knw.. thanx in advance,, -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to

[google-appengine] Re: Post-mortem for February 24th, 2010 outage

2010-03-07 Thread gwstuff
- The current option of low-latency, strong consistency, and lower availability during unexpected failures (like a power outage) - A new option for higher availability using synchronous replication for reads and writes, at the cost of significantly higher latency This would be fantastic, if

[google-appengine] Datastore Viewer throwing Server Error (500)

2010-03-07 Thread Eli Jones
Every time I try to access the Datastore Viewer for one of my AppIDs.. it just gives me the a server error has occurred The AppID is datastoretester -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to

[google-appengine] Re: Why request time for script takes so long?

2010-03-07 Thread Shedokan
I think I forgot to mention that my app is a python app and not a java app. But somehow now eveything is alright, maybe it's because I haven't used GAE for a long time. but thanks for trying. On 6 מרץ, 20:10, François Masurel fm2...@mably.com wrote: You should have a look at the following

[google-appengine] Re: Post-mortem for February 24th, 2010 outage

2010-03-07 Thread Evil Mushroom Lord
Thank you for taking the time to share all this information with us. Props to you guys. :) On Mar 7, 11:33 am, gwstuff gwsa...@gmail.com wrote: - The current option of low-latency, strong consistency, and lower availability during unexpected failures (like a power outage) - A new option

[google-appengine] Error 404 cannot upload database to remote datastore thro' remote_api on apps domain

2010-03-07 Thread sjh
Hi, I have an app that works fine on my local machine including the local datastore. I can upload the app without any problems. However, when I try and upload the data with appcfg.py upload_data --config_file=spectrum_loader.py -- filename=spectrum_data.csv --kind=Spectrum

[google-appengine] appengine status graph not showing for Query: Latency

2010-03-07 Thread stephen
http://code.google.com/status/appengine/detail/datastore/2010/03/02#ae-trust-detail-datastore-query-latency shows the last working Query: Latency graph, but all days after then up to now show no graph i have debugged the non working pages with firebug to include some information on why they

[google-appengine] 90+% of Requests Report Timeout Errors

2010-03-07 Thread Jules
Since 3/5, a huge chunk of requests are getting timeout errors. No changes were made to the production version of our app since 2/28. Pages that were blazingly fast now timeout. These pages all do simple reads from the datastore. These errors appear to coincide with the datastore latency warnings

[google-appengine] template redundant render of javascript

2010-03-07 Thread pythono
Hey there, So I am generating dynamic javacscript code as follows. There is a scripts.html template with code like: script type=text/javascriptalert(hi);/script When I render this template I get script type=text/javascriptalert(hi);/scriptalert(hi);/ script Any idea why this could be

[google-appengine] Re: template redundant render of javascript

2010-03-07 Thread pythono
Sorry I was a bit incomplete on the last post. Here is the code I'm using to render the template: dirname = os.path.dirname(__file__) template_file = os.path.join(dirname, os.path.join('templates', scripts.html)) output = template.render(template_file,{}) self.response.out.write(output) If

[google-appengine] Re: Post-mortem for February 24th, 2010 outage

2010-03-07 Thread David
Thank you for the open and honest post-mortem. On Mar 8, 5:03 am, Evil Mushroom Lord evilmushrooml...@gmail.com wrote: Thank you for taking the time to share all this information with us. Props to you guys. :) On Mar 7, 11:33 am, gwstuff gwsa...@gmail.com wrote: - The current option of

Re: [google-appengine] cron job every 20 seconds?

2010-03-07 Thread Iap
2010/3/7 Richard richar...@gmail.com How can I get a cron job to run every 20 seconds? Run 3 identical ones every minute? This might help: http://groups.google.com/group/google-appengine/browse_thread/thread/7645670d581b95f1/4b7b61c4814d6a2d?lnk=raot -- You received this message because you

[google-appengine] Re: appengine status graph not showing for Query: Latency

2010-03-07 Thread Locke
Just before it overloaded Google Charts API, it was showing latencies over 1200ms. On Mar 6, 9:52 pm, stephen stephenino...@gmail.com wrote: http://code.google.com/status/appengine/detail/datastore/2010/03/02#a... shows the last working Query: Latency graph, but all days after then up to now

Re: [google-appengine] Re: 1500 ms query latency

2010-03-07 Thread Patrick Twohig
On this note, I'm not actually able to see the query latency chart. Is that something broken for me or everybody else? http://code.google.com/status/appengine/detail/datastore/2010/03/07#ae-trust-detail-datastore-query-latency On Fri, Mar 5, 2010 at 11:05 AM, Ikai L (Google) ika...@google.com