google-app-engine

How to load properties file in Google App Engine?

So I'm trying to add some ability to my project to allow user-defined properties in my deployment artifact - a simple key:value .properties file. I place the service.properties file in war/WEB-INF/my-service.properties And in my ServiceImpl.java constructor I have the following: String propertiesFileName = "my-service.properties";...

GAE Datastore and security risks with JDOQL

I just started working on a project that will run on google app engine (GAE). I'm using java (wicket) with some ajax. I'm experienced with relational databases and typically use something like iBatis. When going through the docs and examples for the GAE datastore using JDO I see that they're executing stuff like: String query = "sele...

appengine: NeedIndexError: The built-in indices are not efficient enough for this query and your data. Please add a composite index for this query.

While using django.core.paginator import ObjectPaginator, I'm getting this error: NeedIndexError: The built-in indices are not efficient enough for this query and your data. Please add a composite index for this query. The original query is written in this form: query = models.Cdr.all() query.filter("var1 =", var1 ) query.fi...

self join in google app engine (java)

Hi I have modified the guestbook example shipped with google app engine (java) to include a parent-child relationship using some sort of a 'self join'. Now my greeting.java file looks like this package guestbook; import java.util.Date; import java.util.List; import javax.jdo.annotations.IdGeneratorStrategy; import javax.jdo.anno...

Block requests from *.appspot.com and force custom domain in Google App Engine

How can I prevent a user from accessing my app at example.appspot.com and force them to access it at example.com? I already have example.com working, but I don't want users to be able to access the appspot domain. I'm using python. ...

openid consumer for gwt

Anyone have or know of a java implementation of an openid relying party(consumer) for gwt/gae? openid4java and joid bring in too much baggage for my needs. ...

Committed before 401 No authentication specified

I'm programming using GWT, which includes Jetty. I have defined my own servlet and when I call response.sendError(HttpServletResponse.SC_UNAUTHORIZED, e.getMessage()); It gives me a warning that states: WARNING: Committed before 401 No authentication specified Sep 2, 2009 2:40:36 AM com.google.apphosting.utils.jetty.JettyLogger warn ...

Which SOAP libraries are available for Google App Engine?

I'm trying to deploy an application to Google App Engine that will eventually interface with JIRA and other services over SOAP. The J2SE 6 java.xml.soap.* APIs are not supported by the GAE JRE. What other simple libraries are available for building requests and parsing results over a URLConnection? Axis and CXF seem to be the general...

What would cause a zip file to not be recognized on Google App Engine's when it reads properly in my local GAE sdk

My code executes successfully when I run it locally, but when I upload it to GAE and attempt to run it throws me a BadZipfile: File is not a zip file, or ends with a comment raw_file = urllib2.urlopen(url) buffer = cStringIO.StringIO(raw_file.read()) z = zipfile.ZipFile(buffer) zipped file size is 2.5 mb unzipped size is 14 mb What i...

Google App Engine as production platform

We are about to start working on new commercial web project and considering Google App Engine as a potential platform. Questions: Does Google App Engine is really scalable and may be considered as a production platform for commercial project? Is it more expensive (or cheaper) than good hosting company service in long run? Is it possi...

How do I set the Application Id in appengine?

I'm using Django along with appengine. When I try to save a record, I'm getting the error "app_id must not be empty". The application name has been set in app.yaml. I also added os.environ['APPLICATION_ID'] = 'test' in main.py. However, I continue to get the same error. ...

How to add more than 500 entries to the datastore with put() in google app engine?

I tried adding batches of data in a list with a couple of calls to db.put(). But it still timeouts occasionally. Anyone have some tips? ...

How would you query Picasa from a Google App Engine app? Data API or Url Fetch?

How would you query Picasa from a Google App Engine app? Data API or Url Fetch? What are the pros and cons of using either method? [Edit] I would like to be able to query a specific album in Picasa and list all the photos in it. Code examples to do this in python are much appreciated. ...

Problems while saving a pre-persisted object in Google App Engine (Java)

I am having problems while saving a pre-persisted JDO object in google-app-engine data store. Basically, in one servlet, I create the object and save it. In another servlet, I read the object, set a bunch of properties and try updating it. The update is through a makePersistent call on PersistenceManager. There is no exception being thro...

Many to many relationship in java google ap engine

how would i go about creating a many-many relationship among data objects in google app engine (using jdo) The app engine page talks about 1-many and 1-1 but not many-many. Any code example will be highly appreciated ...

Web/Screen Scraping with Google App Engine - Code works in python interpreter but not GAE

I want to do some web scraping with GAE. (Infinite Campus Student Information Portal, fyi). This service requires you to login to get in the website. I had some code that worked using mechanize in normal python. When I learned that I couldn't use mechanize in Google App Engine I ended up using urllib2 + ClientForm. I couldn't get it to l...

Google App Engine / JDO : store computed values

Since I cannot do JOIN queries against the App Engine Datastore, I would like to denormalize my entity objects a little to include computed values, in effect creating something like a function-based index. @Persistent Employee manager; @Persistent // de-normalized stored join value Integer managerDepartmentCode; This works fine,...

ListProperty of keys vs Many-to-Many in App Engine

As a hypothetical example, I have a model TodoItem and a model TodoList. An TodoList has an ordered list of TodoItems, and any one TodoItem can belong to any number of TodoLists (Many-to-Many). No other information needs to be stored about their relationship other than the order of a TodoItem in a TodoList. What is the best way to repr...

How to setup one-to-many unidirectional mapping for grails application on GAE ?

I try to perform testing on one-to-many unidirectional mapping for grails application on google app engine (GAE) using JPA. The one-to-many unidirectional mapping I attempt to define is between User and Role class. Unfortunately, I am stuck. Just curious is there any developer out there able to make it work successfully. Following is my...

Wiring a UserServiceFactory of Google AppEngine using Spring

I wanted to wire the Google App Engine user service in Spring by first creating a UserServiceFactory bean and then using that to get an instance of UserService. <bean id="googleUserServiceFactory" class="com.google.appengine.api.users.UserServiceFactory"></bean> <bean id="googleUserService" class="com.google.appengine.api...