Re: [appengine-java] OAuth and google chrome

2012-01-18 Thread Ikai Lan (Google)
This is strange - there should be nothing browser specific about the session. Try to isolate the behavior by removing OAuth out of the equation. What happens when you store a variable in session scope without the OAuth flow? Does it change each time? -- Ikai Lan Developer Programs Engineer,

Re: [appengine-java] JPA and Entity Groups

2012-01-18 Thread Ikai Lan (Google)
Answers below. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Tue, Jan 17, 2012 at 9:24 AM, Paul Bartosik paulhbarto...@gmail.comwrote: 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

Re: [appengine-java] JPA and Entity Groups

2012-01-18 Thread Ikai Lan (Google)
On second examination, I could be wrong about JPA. I'll need to test this and see. http://stackoverflow.com/questions/4909012/how-to-create-an-object-in-a-specific-entity-group-with-jpa-google-appengine-j If you get around to this before me, can you let me know if it works? Note that as of a

[appengine-java] Re: embedding dev_appserver

2012-01-18 Thread Răzvan Rotaru
I had a look in the source code and found out that the dev server is started in a different jvm by KickStart.main. This jvm has following command line: java -javaagent:sdk_path/lib/agent/appengine-agent.jar - Xbootclasspath/p:sdk_pathlib/override/appengine-dev-jdk- overrides.jar -classpath

[appengine-java] Spring MVC

2012-01-18 Thread Paul Ford
Quick question: If WAR's are deployed to GAE container and the JRE white list does not contain the spring classes (or hibernate or whatever framework you pick that is outside of JRE Whitelist), how do you incorporate spring or whatever J2EE framework and it run in GAE? Thanks Paul -- You

Re: [appengine-java] Spring MVC

2012-01-18 Thread Matthew Jaggard
The whitelist only details JVM classes that are allowed. You can including classes with your project as much as you like (as long as they don't depend on the missing JVM classes) so to use Spring, you have to include the spring jar file(s). Mat. On 18 Jan 2012 20:33, Paul Ford

Re: [appengine-java] Spring MVC

2012-01-18 Thread Paul Ford
ok got it Matthew. I am a noob so excuse my ignorance, So you would apply the spring jar as a library reference in your say eclipse project. Compile your project war (which includes that spring jar) and deploy to GAE? If correct would the spring jar then run in the JVM container? I'm sure I'm

Re: [appengine-java] JPA and Entity Groups

2012-01-18 Thread Ikai Lan (Google)
Yep, just double checked. JPA's @OneToMany has absolutely nothing to do with entity group hierarchies. You'll have to use KeyFactory. Re-read my original email and ignore the one that begins with on second examination .. . -- Ikai Lan Developer Programs Engineer, Google App Engine

Re: [appengine-java] Spring MVC

2012-01-18 Thread Matthew Jaggard
Hi Paul, No problem being a noob :-) Yes, you're right, just add the relevant libraries to your project and make sure they're included in the output, which I think is default anyway (as opposed to libraries like lombok that are just there at compile-time) Mat. P.S. I'm living in Northampton

[appengine-java] Re: Ordered collection

2012-01-18 Thread Miguel
I found the property for the memcache L2!!! ;) For the ordered collection I see the v2 is yet in RC* status, so I prefer to stay on the v1 version .. I noticed if I set a collection datanucleus always complains because the owner set is different from the one it expects: Object

[appengine-java] Re: SpringMVC RESTful + JSP + GAE/J .. 404 not found on JSPs..

2012-01-18 Thread Draško
I could hardly imagine this is a feature ;-) Is there any update around? My setup is: macos 10.7.2 eclipse 3.7 gae 1.6.1 spring framework 3.1 Thanks for any feedback. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this

Re: [appengine-java] OAuth and google chrome

2012-01-18 Thread George Simon K
Hi Chris, Solution to your problem can be fixed by moving oauthParameters.setOAuthCallback(http://myappengine/connect.jsp;); after oauthHelper.getUnauthorizedRequestToken(oauthParameters); But this is oauth 1.0 not the updated 1.0.a, means you won't receive a verifer id and will have the yellow

[appengine-java] playframework-crudsiena-2.0.2-gae-1.6.0_b1

2012-01-18 Thread Priyatham Suresh
hi this is priyatham suresh i have devoloped a simple playframework-crudsiena-2.0.2-gae-1.6.0_b1 application. it runs successfully in my local db but when i run this in app engine it displays the following error message *The server encountered an error and could not complete your

Re: [appengine-java] OAuth and google chrome

2012-01-18 Thread David Thompson
Eclipse is failing to do oauth to app engine so I have no expectation it would ever work for anything I could possibly develop;) Seriously how do I reset my eclipse app engine credentials for my Java projects. Command line works fine and I use ouath for an app but deploy from eclipse for the same

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

2012-01-18 Thread Jules
Some additional notes: A previous version of this code that did significantly more but smaller writes ran out of memory much sooner. Event is a db.Model class that is used to record things that happen on our system. There could be 10's or 100's of 1000's processed by this code. A future version

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

2012-01-18 Thread Jules
I've just tried commenting out the f.write(buf.getvalue()). When I do this, the code successfully processes all of the records. Is there something incorrect in the way I'm using the blobstore files API? -- You received this message because you are subscribed to the Google Groups Google App

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

2012-01-18 Thread Alexis
I was in the same position in August, with our apps on M/S. The DEE errors began to appear, then were more and more frequent and finally had a high impact on our app availability. We migrated to HRD writing our own mapreduce and then all went fine (except for the costs but hey, was the price for a

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

2012-01-18 Thread Alexis
Cezary, I was in the same position in August, with our apps on M/S. The DEE errors began to appear, then were more and more frequent and finally had a high impact on our app availability. Our warmup requests, that only load code, were randomly taking from a few secs to more than 30sec and so

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

2012-01-18 Thread Alexis
Cezary, I was in the same position in August, with our Python apps on M/S. The DEE errors began to appear, then were more and more frequent and finally had a high impact on our app availability. Our warmup requests, that only load code, were randomly taking from a few secs to more than 30sec and

[google-appengine] Re: 2^31

2012-01-18 Thread Rohan Chandiramani
Yeah, they upped the weekly fee and removed the free tier. This is just to discourage the freeloaders with their free apps. -- 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] Channel API, Bugs on IE

2012-01-18 Thread magocrab
Hi, I'm having problems receiving messages from the Channel API in Internet Eplorer (versions 7, 8 and 9). On the client side, I can see that socket.onopen() is called. And from the server there is no error when I call channelService.sendMessage(). But socket.onmessage is never called. This

[google-appengine] Re: Channel API, Bugs on IE

2012-01-18 Thread Mathieu Clavel
Yep, same problem with IE7 where messages were not received. I'm now using polling and it's working like a charm. -- 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] Saving session data from javascript

2012-01-18 Thread Phil McDonnell
I know app engine saves the session data into the datastore. Is there a way to get access to this from my javascript? For instance, my users log into facebook via a js api so I'd like to be able to quickly save the fb id handles to the session from my js code. Thanks, Phil -- You received

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

2012-01-18 Thread Andreas
so i opted for a custom solution where i pre-serialize the object into a dictionary. i added an objectproperty to the model which stores the dictionary to the blobstore. now i dont need to serialize the object(s) on request any more because i only need to access this single property. with

[google-appengine] Random DeadlineExceed Errors with python27 and HRD

2012-01-18 Thread sergio.jar...@gmail.com
Hi, I'm seeing random DeadlineExceeded errors with python27 and HRD since about a week ago, I do have threadsafe False so it's not the threadsafe latency issue. I can provide the app id off-list. Here is a (partial) trace File /base/python27_runtime/python27_lib/versions/1/google/appengine/

[google-appengine] speed up fetching of larger data set

2012-01-18 Thread GordonHo
hi, i have occasionally the problem that I've to fetch several thousands entities from the datastore. so far i tried to solve the speed issue by splitting the fetch into several chunks beeing fetched at the same time. however so far i am quite unsatisfied with the speed, fetching ~6000

[google-appengine] Re: How to download logs from a backend?

2012-01-18 Thread Dave Loomer
Amy, I don't think it has anything to do with flushing or delays, as even when I run with the --num_days=2 option, I still only get requests for frontend objects (HTML, images, etc.) from the past two days. In reality, since my app is not yet launched I probably have 100x as many log entries for

Re: [google-appengine] speed up fetching of larger data set

2012-01-18 Thread Andreas
45 seconds to fetch 6k entities sounds a little weird to me. what do you do with those entities after fetching them? did you profile this operation with appstats? On Jan 18, 2012, at 1:17 PM, GordonHo wrote: hi, i have occasionally the problem that I've to fetch several thousands entities

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

2012-01-18 Thread Jules
What I shall try next is processing a batch of records and then closing the file and kicking off a new process, which will start where the old one left off. What I don't know is whether without the finalize the data already written will be lost. Jules -- You received this message because you

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

2012-01-18 Thread Ikai Lan (Google)
No, I mean the version number in your appengine-web.xml file. The stack trace seems to think you have a bad version. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Tue, Jan 17, 2012 at 11:10 AM, Deepak Singh deepaksingh...@gmail.comwrote: GAE 1.6.1 I am able

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

2012-01-18 Thread Deepak Singh
aapengine-web.xml ?xml version=1.0 encoding=utf-8? appengine-web-app xmlns=http://appengine.google.com/ns/1.0; applicationyatrafinderdevenv/application version1/version -- Thanks Deepak On Thu, Jan 19, 2012 at 12:43 AM, Ikai Lan (Google) ika...@google.comwrote: No, I mean the version

[google-appengine] ROFLMFAO DynamoDB From Amazon

2012-01-18 Thread Brandon Wirtz
Google should pay me to do a parody of this http://www.youtube.com/watch?feature=player_embedded http://www.youtube.com/watch?feature=player_embeddedv=oz-7wJJ9HZ0#! v=oz-7wJJ9HZ0#! I might do it for free, but I suspect the audience for such a video is somewhat limited. Dynamo Misses the Dynamic

[google-appengine] Re: Random DeadlineExceed Errors with python27 and HRD

2012-01-18 Thread Alexis
you are not alone, I've got the same issue. It's being discussed here too: http://groups.google.com/group/google-appengine/browse_thread/thread/e176afd47b27a6a9/ On 18 jan, 18:46, sergio.jar...@gmail.com sergio.jar...@gmail.com wrote: Hi, I'm seeing random DeadlineExceeded errors with python27

[google-appengine] Lots of spam from *.appspotmail.com users

2012-01-18 Thread bgu
There is a lot of spam in Turkish coming in, spammers and abusers of the Google App Engine on a daily basis. I am able to provide original headers and body of these messages, who should I address this to? -- You received this message because you are subscribed to the Google Groups Google App

[google-appengine] Key features review before choosing Google App Engine for mission critical application

2012-01-18 Thread hugues2
Hi, Before investing financial resources to develop a mission critical application on Google App Engine, I would be very interested to have your view on the following : *I. Application requirements* - The application should be able to serve +/- 1,000 companies. Each company having +/- 10

RE: [google-appengine] Key features review before choosing Google App Engine for mission critical application

2012-01-18 Thread Brandon Wirtz
Likely you will go broke on the unnecessary backups. But nothing in your doc would prevent you from using GAE. From: google-appengine@googlegroups.com [mailto:google-appengine@googlegroups.com] On Behalf Of hugues2 Sent: Wednesday, January 18, 2012 11:37 AM To:

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

2012-01-18 Thread Mike Aizatsky
I also advise you to call gc.collect() after every batch. I found that python's garbage collection is really bad. Give it a try. On Jan 18, 10:58 am, Jules ju...@projectfourwinds.com wrote: What I shall try next is processing a batch of records and then closing the file and kicking off a new

[google-appengine] Can not deploy my apps

2012-01-18 Thread Hui Li
Hello, I just realized that I cannot deploy my apps through the google app engine launcher. It worked fine before lunch today. I tried very simple Hello World! program. It did not work. Does anyone have the same situation? Thanks. -- You received this message because you are subscribed to

Re: [google-appengine] Random DeadlineExceed Errors with python27 and HRD

2012-01-18 Thread Brian Quinlan
Hi Sergio, On Thu, Jan 19, 2012 at 4:46 AM, sergio.jar...@gmail.com sergio.jar...@gmail.com wrote: Hi, I'm seeing random DeadlineExceeded errors with python27 and HRD since about a week ago, I do have threadsafe False so it's not the threadsafe latency issue. I can provide the app id

[google-appengine] Re: Saving session data from javascript

2012-01-18 Thread Jeff Deskins
You would have to make an AJAX call passing the data to your app. From there, your server side code (Java/Python/Go) can save the info into the datastore or put it into session. Jeff -- You received this message because you are subscribed to the Google Groups Google App Engine group. To

[google-appengine] Re: How to download logs from a backend?

2012-01-18 Thread Dave Loomer
I should add that I don't have any truly long-running backend processes -- typically, they all complete in a few minutes, and I run thousands per day. On Jan 18, 12:19 pm, Dave Loomer dloo...@gmail.com wrote: Amy, I don't think it has anything to do with flushing or delays, as even when I run

[google-appengine] Error Code 104

2012-01-18 Thread andrew
Can anyone explain what is the cause of Error code 104? We just got a series of these which caused HTTP:500 errors and page errors for users. serving a page from our CMS that hasn't had code or content changes in weeks. 2012-01-18 22:25:28.562 /Addit/learn-more 500 39902ms 0kb Mozilla/5.0

[google-appengine] appcfg two-factor authentication

2012-01-18 Thread sebastián serrano
Hi All, Star this issue if you use two-factor authentication: http://code.google.com/p/googleappengine/issues/detail?id=4777 A few more stars and it gets to the first page of issues :-) -Sebastian www.devsar.com -- You received this message because you are subscribed to the Google Groups

Re: [google-appengine] Google Cloud Storage API

2012-01-18 Thread Chris Ramsdale
Hey Jeff, What errors are you seeing? Do you know that you have a valid readChannel? -- Chris On Tue, Jan 17, 2012 at 4:50 PM, Jeff Morgan j...@lacodatech.com wrote: Is it possible to read a binary file from GCS using the GAE API? The example provided in the GAE documentation works great but

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

2012-01-18 Thread Brandon Wirtz
Round one of my testing says that Serializing via JSON, or Pickle is SLOWER than just doing the reads from the datastore. I'm reading up on model_to_protobuf Which is supposed to be faster. I'm a little sad. It would be awesome if there was a .put(key,serialize(stuff_i_would_write)

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

2012-01-18 Thread Brian Quinlan
Hi Brandon, On Thu, Jan 19, 2012 at 11:25 AM, Brandon Wirtz drak...@digerat.com wrote: Round one of my testing says that Serializing via JSON,  or Pickle is SLOWER than just doing the reads from the datastore. This might be different in the Python 2.7 runtime, where cPickle and C-accelerated

Re: [google-appengine] Re: Saving session data from javascript

2012-01-18 Thread Phil McDonnell
I definitely get that I need to connect the js to the java server side code via some sort of AJAX. Are there some standard or easy ways to implement this? I remember from a past project that there were some clunky, but generally good ways to do this in GWT. Does regular java appengine have

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

2012-01-18 Thread Brandon Wirtz
Ah... Working off old docs that said cPickle didn't work so I didn't even try it. I'll try that. I moved on to put_async which looks like other low hanging fruit for my app. Especially since Cache Misses are already the slowest of my pages, (and cache miss = write) -Original Message-

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

2012-01-18 Thread Mahron
I use my own serialization to communicate with a flash app and also for the datastore. It is binary and gziped and allows for nested items and binary properties. The compression, decompression, serialize and deserialize time is negligible compared to the datastore request time and sending back

[google-appengine] Put_Async Use It

2012-01-18 Thread Brandon Wirtz
Crap. I'll have to let it bake to be sure, but there is no reason to believe results shouldn't be as indicated. Put_async just reduced my instance count by 40%. (I'm still working to get to the point that I pay for storage and bandwidth + my $2 a week) I had mis-understood what it did, and

Re: [google-appengine] Re: How to download logs from a backend?

2012-01-18 Thread Amy Unruh
My earlier post was incorrect-- sorry! You do need to specifically request the logs for a backend. You can do that by passing the backend name as the version name, e.g.: appcfg.py request_logs --version=backend_name project_dir outfile You can add the --include_all flag to see details of

[google-appengine] ASync Reads as if you want Speed and don't care if it costs a little extra

2012-01-18 Thread Brandon Wirtz
Talking with one of my devs about why you would want Async reads.. He says: Why would I want to do that, who says Gee I may want to read this thing later guess I should ask for it. You do a read when you need it. I say back: Let's test that bugger I bet I can make things go faster using it.

[google-appengine] Re: How to download logs from a backend?

2012-01-18 Thread Dave Loomer
This is great - thanks Amy! On Jan 18, 7:43 pm, Amy Unruh amyu+gro...@google.com wrote: My earlier post was incorrect-- sorry!  You do need to specifically request the logs for a backend.  You can do that by passing the backend name as the version name, e.g.:  appcfg.py request_logs

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

2012-01-18 Thread Andreas
i started pre-serializing my objects with an objectproperty which writes to the blobstore on put . while serializing 50 entities with around 10 properties each on request took around 5-6 seconds as an average, now i cut the time in half at least. On Jan 18, 2012, at 8:19 PM, Mahron wrote: I

[google-appengine] Trying to reconcile Users API with Apps Provisioning API

2012-01-18 Thread Jason Collins
I'm not sure where to pose this question; it sits right on the interface between App Engine and Apps Provisioning API. I have an App Engine app that is using Federated Identity (OpenID) as its authentication method. The Users API suggests the following: The User object for a valid user can

[google-appengine] Geopt queries (will this work?)...

2012-01-18 Thread mattmoore
Very basic query I want to run on a GeoPt property. Basically I'm storing an entity with a GeoPt property and would like users to be able to retrieve entities that have a value in said GeoPt property within a bounding box from a given GeoPt. Simple example of this would be a list of Restaurant

Re: [google-appengine] A fun app engine story with a moral.

2012-01-18 Thread jk
hi I have the same issue. I want to disable billing for my app. but it shows = You cannot currently disable billing because some owners of this application already have too many free apps. The following owners are at their limit: -

[google-appengine] Seeing weird spikes in Requests per Second

2012-01-18 Thread Daniel
For a little more then 24hrs I've been seeing some very odd spikes in my RPS chart. Seems to dip to zero, then compensate by spiking up and then leveling out again. Chart attached. This pattern is not normal at all for my app. I'm not seeing errors and users aren't complaining. Feels like

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

2012-01-18 Thread Brandon Wirtz
I opted for cpickle. My Slowness the first pass was that I was testing with 250k binaries and Pickle escapes them... So they were very large and didn't actually fit (I didn't check they matched going in and coming out) Once I applied ZIP to the Pickle it appears to be fast. Which brings me to

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

2012-01-18 Thread Brandon Wirtz
Pickle is much faster if you set Highest Profile rather than taking the default. Something about compatibility... Any how... Also Zlib.compress on 1 is a lot faster than 6, and there was minimal difference in the size of the data after. -Original Message- From:

Re: [google-appengine] Put_Async Use It

2012-01-18 Thread Richard Watson
Just a note - Brandon, thanks for posting your findings, in general. Very useful. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/jCtpIj3-NOkJ. To