google-app-engine

Can not get the Auth Token for GData After Authentication on App Engine

I would like to pull the Auth Token for the Gdata auth so that I can write to a google calendar. I am having issues getting the token after authentication so that I can send the token to the calendar service. I am using the default login screen provided by appengine (/_ah/login) and I am able to login and authenticate, however, I am una...

spring 3.0 force singleton bean

<bean id="data.emf" class="org.springframework.orm.jpa.LocalEntityManagerFactoryBean" > <property name="persistenceUnitName" value="transactions-optional" /> </bean> from what i know by default all bean are singleton (according to document) but i somehow still getting duplicated creating of entitymanagerfactory. is there any p...

Google App Engine and OpenID

I am trying to implement OpenID in a GoogleAppEngine project. In this case, which OpenIDStore I have to use. Thanks ...

How to handle updating JDO class definitions on Google App Engine

I'm using the Google app engine and JDO. What is the best way to update a JDO class definition without having to wipe the data store contents first? I'm not sure if this is specific to JDO on GAE, but I noticed that when I simply change the name of one of my persistent fields from svotes to votes, an exception is thrown (java.lang.NoSu...

Google App Engine -- Java or Python?

I noticed that this was asked in the following post. Has anyone used both and can conclusively tell me which is better? It seems like python might be a little easier to implement and faster? ...

App Engine urlfetch is raising exceptions when i think it should not be

I've written my first Python application with the App Engine APIs, it is intended to monitor a list of servers and notify me when one of them goes down, by sending a message to my iPhone using Prowl, or sending me an email, or both. Problem is, a few times a week it notifies me a server is down even when it clearly isn't. I've tested it...

ByPassing Google App Engine SDK to allow black listed classes

Is there a way to circumbent google app engine sdk to allow the usage of classes that are not present in the GAE JRE white list? I know the app that I would be building will not run in appspot, but at least in my development server, I need to access a postgresql database(java.net.socket.*) and generate some files(java.io.FileWriter) in m...

Optimizing ModelChoiceField query in django Admin (AppEngine)

I have two models: Activity and Place. The Activity model has a ReferenceProperty to the Place model. This was working fine until the Place table started growing and now when trying to edit an Activity via django admin I get a memory error from Google (it doesn't happen if I remove that field from the Activity admin's fieldsets) The wi...

On Google App Engine I get an InvocationTargetException the first time I query the datastore after starting the dev server

On Google App Engine I get multiple java.lang.reflect.InvocationTargetException everytime I start the development server. I am using Spring MVC 3.0. My app works fine, but I feel like the exception slows down the startup time of the development server, and I'm not sure if the exception is also happening on the real server and slowing...

Google App Engine Loading Requests Happen Very Frequently

I have a Google App Engine app using Java and Spring MVC 3.0. A lot of the time if it goes even 2 minutes without a request, then the next request is a loading request which takes about 12 seconds to respond to and uses about 5 seconds of CPU time. Sometimes it does a loading request even when there was no traffic for only one minute. ...

Profiling a java Google App Engine app.

Anyone know how to profile a Google App Engine for java app? Preferably I'd like to use the build in netbeans profiler, but that has an error on startup when I try to use it. Here is the error when I try to profile with netbeans 6.8: runserver-profile: [java] Error occurred during initialization of VM [java] Could not find a...

In Python in Google App Engine, how do you capture output produced by the print statement?

I am working in the Google Application Engine environment where I am loading doctests and python code from strings to test Python homework assignments. My basic implementation (Provided by Alex Martelli) appears to work for all of my problems except for those containing the print statement. Something seems to go wrong when I attempt to e...

Faster App Engine Development Datastore Alternative

Hello, Is there a way to use a real database(SQLite, Mysql, or even some non-relational one) as datastore for development, instead of memory/file datastore that is provided. I saw few projects, GAE-SQLite(did not seem to be working) and one tip about accessing production datastore using remote api (still pretty slow for large datasets...

Lazy Intantiation of the Spring MVC DispatcherServlet?

Is there a way for me to instantiate the Spring MVC DispatcherServlet in code rather put it in the web.xml and have it be instantiated by the web server? The reason for this is that I want to check a memCache to see if I have already recently rendered the page that is being requested and if so just return from the memCache, rather than ...

How to download a file via the browser from Amazon S3 using Python (and boto) at Google App Engine?

I have a python script running inside the Google App Engine with boto 1.9b that gets all keys inside a S3-Bucket. The output is formated as a HTML-Table. bucket_instance = conn_s3.get_bucket(bucketname) liste_keys = bucket_instance.get_all_keys() table = '<table>' for i in range(laenge_liste_keys): table = table + '<tr><td>'+str(lis...

How to serialize db.Model objects to json?

When using from django.utils import simplejson on objects of types that derive from db.Model it throws exceptions. How to circumvent this? ...

How can I call a GWT RPC method on a server from a non GWT (but Java) gapplication?

I have a regular Java application and want to access an GWT RPC endpoint. Any idea how to make this happen? My GWT application is on a GAE/J and I could use REST for example but I already have the GWT RPC endpoints and don't want to build another façade. Yes, I have seen http://stackoverflow.com/questions/1330318/invoke-a-gwt-rpc-servic...

How can I query objects with a date field, using a specific month and year?

I need to make a gql query against a set of some objects which have a date field. I am very new to python and also the GAE so I am a bit igorant to this. I am looking in the documentation but cannot find quite what I am looking for. Basically I have made the following class method Event.getEventsForMonth(cls, month,year): So I am t...

What IDE to use for Google App Engine development in Python?

I'm trying to figure out what IDE to use for Google App Engine development in Python. I'm completely new to Python, coming from a C#/.NET background. I initially went down the route of getting the Eclipse plugin for Google App Engine development only to find out it was for Java development only. Currently, I'm just using Notepad++...

GAE email me errors

Can GAE be configured to bust me an email when there's an error? ...