[appengine-java] Re: Ordered collection

2012-01-17 Thread Miguel
Ok, got it: I definitely have to switch to the new plugin .. Just a last thought: in this way I have to retrieve all the children each time I want to order the collection .. Am I right? I hope it is integrated with the second level caching system mechanism .. On Jan 16, 7:20 pm, datanucleus

[appengine-java] OAuth and google chrome

2012-01-17 Thread Christopher Gabin
Hi everyone ! I'm looking for a solution to run my connection oauth with google chrome. currently my code only works on firefox and IE but not on google chrome because when I persist in my OAuthTokenSecret a session variable when google redirect back on my aplication the value of the

[appengine-java] Uncaught exception from servlet javax.servlet.UnavailableException: Initialization failed.

2012-01-17 Thread sado
Uncaught exception from servlet javax.servlet.UnavailableException: Initialization failed. at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.createHandler(AppVersionHandlerMap.java: 211) at

[appengine-java] JPA and Entity Groups

2012-01-17 Thread Paul Bartosik
I have spent a bit of time banging up against Entity Group issues. In all cases, the problem was with my JPA. I had made mistakes in my annotations that manifested as run-time transaction and Entity Group errors . The documentation on JPA relationships and Entity Groups is pretty light. Can

Re: [appengine-java] JPA and Entity Groups

2012-01-17 Thread Matthew Jaggard
Cough objectify cough On 17 Jan 2012 19:49, Paul Bartosik paulhbarto...@gmail.com wrote: I have spent a bit of time banging up against Entity Group issues. In all cases, the problem was with my JPA. I had made mistakes in my annotations that manifested as run-time transaction and Entity

[appengine-java] Re: json communication with google app engine

2012-01-17 Thread angstrom348
Thank you. You seem to be doing precisely the same thing I intend to do. It is particularly helpful you listed a client for both objectivec and java. I'll be trying to put something together with the base you suggested. On Jan 16, 7:44 pm, Bruno Fuster brunofus...@gmail.com wrote: Hi, I have

Re: [appengine-java] Re: json communication with google app engine

2012-01-17 Thread Bruno Fuster
Cool! I'm the objc project author so if you have any issues just let me know... its not ready for XML though, just JSON under production, so keep that in mind :) On Tue, Jan 17, 2012 at 10:09 PM, angstrom348 linux.mod...@gmail.comwrote: Thank you. You seem to be doing precisely the same

Re: [appengine-java] json communication with google app engine

2012-01-17 Thread Wilson MacGyver
Jackson is very nice for JSON too http://jackson.codehaus.org/ On Jan 16, 2012, at 7:57 PM, Carter Maslan car...@maslan.com wrote: We have been happy with our use gson on server side too: of http://code.google.com/p/google-gson/ On Mon, Jan 16, 2012 at 4:44 PM, Bruno Fuster

Re: [appengine-java] json communication with google app engine

2012-01-17 Thread Jeff Schnitzer
I use Resteasy with Jackson. It works great. Uses the standard JAX-RS annotations. http://docs.jboss.org/resteasy/docs/2.3.0.GA/userguide/html_single/index.html Jeff On Mon, Jan 16, 2012 at 11:51 PM, angstrom348 linux.mod...@gmail.com wrote: I am trying to allow for app engine interaction

Re: [appengine-java] json communication with google app engine

2012-01-17 Thread Jeff Schnitzer
As a bonus, you can also use Resteasy for webpage rendering using this thin framework on top: http://code.google.com/p/htmleasy/ (I wrote it originally, although another guy maintains it now. I still use it, and - if I may say so - it's great) Jeff On Wed, Jan 18, 2012 at 12:38 AM, Jeff

Re: [appengine-java] json communication with google app engine

2012-01-17 Thread Wilson MacGyver
I'm curious if you could share why you picked resteasy over jersey of other jax-rs implementations? On Jan 17, 2012, at 7:38 PM, Jeff Schnitzer j...@infohazard.org wrote: I use Resteasy with Jackson. It works great. Uses the standard JAX-RS annotations.

Re: [appengine-java] json communication with google app engine

2012-01-17 Thread Jeff Schnitzer
I have a long history with JBoss, plus I have friends who still work there - although I don't know Bill Burke well and don't particularly love the way he runs Resteasy (insufficiently self-critical for my tastes, and not enough internal code comments). That said, Resteasy works well, the product

[appengine-java] Re: Ordered collection

2012-01-17 Thread datanucleus
Just a last thought: in this way I have to retrieve all the children each time I want to order the collection .. Am I right? You retrieve the owner object, and it has a List. You play around with the List to your hearts content, and the updates are saved. I hope it is integrated with the

Re: [google-appengine] Re: Why are several production issues related to DeadlineExceededErrors being ignored?

2012-01-17 Thread Kenneth
I always found that startup errors and datastore errors happened at the same time. I assume instances are getting the code from the datastore. For reasons unknown, the master slave datastore is broken and Google's solution is hrd. I was in the same mental position as you at the beginning of

[google-appengine] Re: Why are several production issues related to DeadlineExceededErrors being ignored?

2012-01-17 Thread Kenneth
Wow, sorry to hear that. Is it java or python? I've been on hrd now for about a month. I have the sliders set to el cheapo mode and haven't had any timeouts at all. My understanding is the startup timeout is 10 seconds. The total request timeout is 60 seconds. -- You received this message

[google-appengine] Re: Why are several production issues related to DeadlineExceededErrors being ignored?

2012-01-17 Thread Cezary Wagner
Brandon, I am doing service management/development many years and your explanation not convince me since it not show partially valid root cause - I think so - see why it not convincing. Low availability is a fact see report again it random for same thing: 2012.01.14 26 1 1

[google-appengine] Re: Why are several production issues related to DeadlineExceededErrors being ignored?

2012-01-17 Thread Cezary Wagner
Kenneth, The timeouts could not be 10s or 15s - since DeadlineExceededErrors occurs in my logs is about 60s - I think that 10s or 15s is myths or wrong implementation since what is sense to give 60s if it should start in 15s??? Common timeouts are: 64608ms, 70806ms, 63093ms, 64499ms, ... On

[google-appengine] Do you Serialize your Data?

2012-01-17 Thread Brandon Wirtz
We are looking at restructuring some of our calls, optimizing again for speed, we are thinking that rather than having a datastore call for a single cell, we'd serialize things. This makes searching suck, and we have had a few issues where serialized and unserialized data didn't quite match when

RE: [google-appengine] Re: Why are several production issues related to DeadlineExceededErrors being ignored?

2012-01-17 Thread Brandon Wirtz
You are on M/S. You could be doing Echo Hello World and nothing else and get Deadline Exceeded Errors. Maybe not quite but if you have any imports that use Memcache than you would. M/S has Zero advantage at this point. -Original Message- From: google-appengine@googlegroups.com

RE: [google-appengine] Re: Why are several production issues related to DeadlineExceededErrors being ignored?

2012-01-17 Thread Brandon Wirtz
You keep pointing to reasons you believe it isn't your code, and why we are wrong, but you aren't trying the things we point out. If your time out are at 70 seconds you are doing something wrong, it shouldn't take that long to start up. EVER. Also you are on M/S which has its own rules. Jump in

[google-appengine] Secure a composite

2012-01-17 Thread nirm
Hello all, I am a newbe in GAE (but not to java) I have built a basic GAE+GWT app and i followed the Sink example. Meaning: 1. I have one html page : a welcome page - shouldn't be secured. 2. I have number of pages that are actually a composite. 2. Some but not all needs to be secured (User

[google-appengine] No realtime account statement for premier accounts?

2012-01-17 Thread Daniel Florey
Hi, after moving our apps to the premier account I do not get any updated information about the costs of the apps. Is there a plan to provide similar functionality to the billing history for premier apps that are available for classic apps? Thanks, Daniel -- You received this message because

[google-appengine] Re: Do you Serialize your Data?

2012-01-17 Thread bFlood
hi brandon I do this with a bunch of models, keep a few properties for search and then dump the bulk of data into a compressed, json text property. Obviously the json part might be overkill but its a lot more flexible going forward if (err, when) you need to add more data (especially nested data)

RE: [google-appengine] Re: Do you Serialize your Data?

2012-01-17 Thread Brandon Wirtz
Have you weighed Compression vs uncompressed in terms of speed, and cost? I'll end up testing to see, but I like to know the answers beforehand :-) -Original Message- From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of bFlood Sent: Tuesday,

Re: [google-appengine] Re: Do you Serialize your Data?

2012-01-17 Thread Jeff Schnitzer
I tend to do this a lot to minimize the cost of fetching data; if I need all the information about a Person then I get all that info by loading a single entity, usually pulled from memcache. Most of my analytic processes look like map/reduce so indexing these complex structures wouldn't really

Re: [google-appengine] Re: Do you Serialize your Data?

2012-01-17 Thread Jeff Schnitzer
In fact, I wrote up an explanation of this 6 months ago: http://blog.similarity.com/post/7541938593/how-to-build-an-online-dating-site-nosql-edition Jeff On Tue, Jan 17, 2012 at 2:06 PM, Jeff Schnitzer j...@infohazard.org wrote: I tend to do this a lot to minimize the cost of fetching data; if

RE: [google-appengine] Re: Do you Serialize your Data?

2012-01-17 Thread Brandon Wirtz
You wrote How to Use GAE to Get Laid and didn't tell anyone? Evil. -Original Message- From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of Jeff Schnitzer Sent: Tuesday, January 17, 2012 6:10 AM To: google-appengine@googlegroups.com Subject: Re:

[google-appengine] 2^31

2012-01-17 Thread pdknsk
I've just noticed this in the dashboard. It's slightly over my daily budget. Recipients Emailed 2,147,487,094 2,147,486,994 $0.01/ 100 Recipients $214,748.70 Also on the quota page. Datastore API Calls 2,147,484,014 Okay Datastore Queries

[google-appengine] Re: SSL on Custom domains before 2014 ?

2012-01-17 Thread objectuser
Cayden, I signed up for the Trusted Tester Program over a week ago and have not heard back. Is there something else I need to do? Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit

[google-appengine] Re: Do you Serialize your Data?

2012-01-17 Thread bFlood
hi brandon compression - not really, at least not with HRD. I remember it being useful in M/S but only for larger strings. I'm using this python property now, it only compresses over a certain size http://atastypixel.com/blog/wp-content/uploads/2011/01/compressible_text_property.py_.txt great

[google-appengine] Re: Why are several production issues related to DeadlineExceededErrors being ignored?

2012-01-17 Thread Cezary Wagner
Brandon, Test on Master/Slave. Not keeping point that my code is perfect I keep point that GEA LOAD behavior is RANDOM/UNPREDICTED - once it load faster (5s) once it not loads since DeadlineExceed (70s) - it not enough for production system. Problem start from last weeks. I will do some imports

[google-appengine] Ensure strong consistency using 'contrived' keys

2012-01-17 Thread Klaas Pieter Annema
I see the following pattern in the documentation to ensure strong consistency: user_key = db.Key.from_path('User', 'ryan') # Put two entities db.put([TestModel(parent=user_key), TestModel(parent=user_key)]) # Global query doesn't see the data. self.assertEqual(0, TestModel.all().count(3)) #

Re: [google-appengine] Potentially blocking issues as we near production: TLS/SSL, POST/PUT chunked encoding, support options

2012-01-17 Thread Jonathan Layes
Hi Cayden, Thanks for the fast and thorough reply and for trying to get us on the Trusted Tester SSL program sooner rather than later. I appreciate it. A quick followup question concerning TLS: is Google supplying the TLS certificates or will we have the option to provide our own? Thanks,

Re: [google-appengine] Potentially blocking issues as we near production: TLS/SSL, POST/PUT chunked encoding, support options

2012-01-17 Thread Jonathan Layes
Thanks for the bit of morning humour, Brandon. A good way to start the day. I'm not worried about the application-layer issues (that's for us to worry about). And, honestly, I'm not worried about the catastrophic failure of a datacentre or other large-scale outages. Big failures get noticed

Re: [google-appengine] Ensure strong consistency using 'contrived' keys

2012-01-17 Thread Jeff Schnitzer
There's nothing wrong with using a parent key that doesn't correlate to a real entity. However, be aware that your write throughput for that entity group will be limited to approximately one transaction per second. I use this technique when synchronizing bulk data from a third-party. I have a

[google-appengine] Re: deploy only static files

2012-01-17 Thread Jeff Morgan
At the moment I am investigating the new GAE API for Google Cloud Storagehttp://code.google.com/appengine/docs/java/googlestorage/overview.html. While the API is still young it may be an option because it allows you to maintain the files separate from GAE. -- You received this message

Re: [google-appengine] Ensure strong consistency using 'contrived' keys

2012-01-17 Thread Klaas Pieter Annema
Ok, I just wanted to make sure that I wouldn't run into trouble later. Thanks, - Klaas Pieter On Tuesday 17 January 2012 at 18:15, Jeff Schnitzer wrote: There's nothing wrong with using a parent key that doesn't correlate to a real entity. However, be aware that your write throughput for

Re: [google-appengine] Re: fastest way to serialize db.Model(s) to json?

2012-01-17 Thread Andreas
so i tried to port my app to python 2.7 but atm it is too complex to do and i really dont think there will be a massive speed improvement. think ill pre-serialize my objects (somehow like gregory suggested) which should bring the serialization down a few seconds. On Jan 16, 2012, at 8:46 PM,

[google-appengine] Automated Java backup solutions

2012-01-17 Thread Phil McDonnell
What are people using for GAE java automated backup these days? I know there is a python solution out there. Has anyone implemented the python solution for their java app? If so, how did it go? I'd really like an automated solution. I'm on the standard (non-HRD) database. Would I be better to

Re: [google-appengine] Not able to deploy application with GAE 1.6.1

2012-01-17 Thread Ikai Lan (Google)
What's the version number you are using? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Mon, Jan 16, 2012 at 9:24 AM, Deepak Singh deepaksingh...@gmail.comwrote: Hi All, I recently upgraded to GAE 1.6.1. When i deploy my app through Eclipse deploy option,

Re: [google-appengine] Not able to deploy application with GAE 1.6.1

2012-01-17 Thread Deepak Singh
GAE 1.6.1 I am able to deploy but rollback gives the mentioned exception. So, for rollback i use GAE 1.5.5 and it does fine. Thus, there is an issue to do rollback using GAE 1.6.1 Also, Does it make any difference to the production if i deploy my app using 1.6.1 and if required i rollback using

[google-appengine] Suggestions needed to implement REST for our Java App Engine back-end

2012-01-17 Thread supercobra
Hi there, I'd like to get some framework / library suggestions to implement a REST interface to our Java App Engine back-end. We are looking for a lightweight solution if possible. Thank you. Daniel -- You received this message because you are subscribed to the Google Groups Google App

[google-appengine] This webpage has a redirect loop error when visiting https://appengine.google.com/start

2012-01-17 Thread smewp
*Background* I have two different google app accounts, lets call them {foo}.net and {bar}.com. While signed in to google apps under {foo}.net, I created an app engine account and then set up my first web app, which I called {bar}. I then decided that I would like to have my new app engine

Re: [google-appengine] Re: SSL on Custom domains before 2014 ?

2012-01-17 Thread Waleed Abdulla
I filled the form a couple of months ago and haven't heard back! On Tue, Jan 17, 2012 at 6:48 AM, objectuser kevin.k.le...@gmail.com wrote: Cayden, I signed up for the Trusted Tester Program over a week ago and have not heard back. Is there something else I need to do? Thanks! -- You

[google-appengine] Re: No realtime account statement for premier accounts?

2012-01-17 Thread Jason Collins
I agree - it would be nice to see this and save me the math. j On Jan 17, 5:20 am, Daniel Florey daniel.flo...@gmail.com wrote: Hi, after moving our apps to the premier account I do not get any updated information about the costs of the apps. Is there a plan to provide similar functionality

[google-appengine] Can't vacuum bad indexes

2012-01-17 Thread Ryan
I tried to create a bunch of indexes on keys descending (which I saw is recommended to speed up data downloading in the bulk exporter). Here's a sample of what I'm trying: kind: books - properties: name: __key__ direction: desc However, all my indexes of this format went from building status

[google-appengine] Re: fastest way to serialize db.Model(s) to json?

2012-01-17 Thread Matthew Blain
the most concise code is probably db.to_dict. this is roughly the same code path used in db.model_to_protobuf On Jan 17, 9:37 am, Andreas a.schmi...@gmail.com wrote: so i tried to port my app to python 2.7 but atm it is too complex to do and i really dont think there will be a massive speed

[google-appengine] Re: Suggestions needed to implement REST for our Java App Engine back-end

2012-01-17 Thread Chris
GSON and servlets -- I find Jersey's cold start time to be unacceptable. - Chris On Jan 17, 2:13 pm, supercobra superco...@gmail.com wrote: Hi there, I'd like to get some framework / library suggestions to implement a REST interface to our Java  App Engine back-end. We are looking for a

RE: [google-appengine] Potentially blocking issues as we near production: TLS/SSL, POST/PUT chunked encoding, support options

2012-01-17 Thread Brandon Wirtz
Talk to Google about if that's what you get. At Amazon, there is no tier where large outages get resolved faster, you just get to tell your boss I spoke to them, they are working on it If you don't care if they spoke back, all tiers are the same ;-) That's not to say that the support plan

[google-appengine] Out of Memory using Blobstore Write API

2012-01-17 Thread Jules
I am using the experimental blobstore file API to write a CSV file containing some event data. There's a lot of data so I'm batching up the writes. My code is running in a backend so I have lots of time but I'm running out of memory, and I don't understand why. Here's the main part of the code:

[google-appengine] How long should I expect it will take for the code to propagate around the world?

2012-01-17 Thread Douglas
Hi, It has been more than two weeks since I deployed my latest code. It is mostly okay but I am still receiving some results from the old code. I am not on high replication. How long should I expect it will take for the code to propagate around the world? Thank you, Douglas -- You

[google-appengine] Re: Suggestions needed to implement REST for our Java App Engine back-end

2012-01-17 Thread jon
Spring framework is nice but it's not small. On Jan 18, 7:26 am, Chris ritterch...@gmail.com wrote: GSON and servlets -- I find Jersey's cold start time to be unacceptable. - Chris On Jan 17, 2:13 pm, supercobra superco...@gmail.com wrote: Hi there, I'd like to get some

Re: [google-appengine] Re: Suggestions needed to implement REST for our Java App Engine back-end

2012-01-17 Thread Wilson MacGyver
What sort of load time did Jersey add for you? When I last tried it, I didn't remember it was particularly bad. On Jan 17, 2012, at 3:26 PM, Chris ritterch...@gmail.com wrote: GSON and servlets -- I find Jersey's cold start time to be unacceptable. - Chris On Jan 17, 2:13 pm, supercobra

[google-appengine] List property indexing question

2012-01-17 Thread Mahron
Hi, What happens under the hood when list properties are modified, index and composite index wise ? Does it modify added and removed values only ? -- 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] Google Cloud Storage API

2012-01-17 Thread Jeff Morgan
Is it possible to read a binary file from GCS using the GAE API? The example provided in the GAE documentation works great but a text file but how about a PDF or MP3? I tried BufferedInputStream reader = new BufferedInputStream(Channels.newInputStream(readChannel));, but this is not working.

[google-appengine] Deadline exceeded errors, huge latency, very high number of instances, entities not deleting

2012-01-17 Thread Ben
Over the past several weeks (months?) we've noticed an increased amount of DeadlineExceeded / Timeout Exceptions on our app, which involve a very large delay (71476ms, 72460ms, 61287ms, 91551ms, etc) and often occur on the smallest of queries... even requests that do not do any database queries,

Re: [google-appengine] Re: Suggestions needed to implement REST for our Java App Engine back-end

2012-01-17 Thread James Broberg
Restlet is great. They have a version especially for GAE http://www.restlet.org/ On 18 January 2012 11:24, Wilson MacGyver wmacgy...@gmail.com wrote: What sort of load time did Jersey add for you? When I last tried it, I didn't remember it was particularly bad. On Jan 17, 2012, at 3:26 PM,