google-app-engine

Google AppEngine JDO Persistence FK Arrays

I'm hoping someone's seen this. I've found no clues on Google. I'm using Google AppEngine with JDO to persist my objects. I have two objects, Parent and Child. Each Parent has n Child objects. I initially stored the Child objects in an ArrayList data member in the Parent class. I got the exception "java.lang.UnsupportedOperationExcep...

Google App Engine - Using managed relations

Guys I am experimenting with App engine. One of my stumbling blocks has been the support for managed relations or lack there off, this is further compounded by the lack of join support. Without getting into details of the issues I have run into (which I will post under different topic), I would like to ask two things. 1. Has any one ...

Why does the task name contain "now / 30"?

In the video/PDF from "Data pipelines with Google App Engine" Brett puts "now / 30" into the task name noting that he will explain the reason later, but somehow he never does. :) http://www.youtube.com/watch?v=zSDC_TU7rtc#t=41m35 task_name = '%s-%d-%d' % (sum_name, int(now / 30), index) Do you have any idea about the reason? Does it h...

OutOfMemoryError trying to upload to Blobstore locally

Hi all, I am trying to set up a basic file upload to blobstore, but I get this OutOfMemoryError: WARNING: Error for /_ah/upload/ aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGMACDA java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2786) at java.io.ByteArrayOutputStream.write(ByteArra...

Google datastore stats

I am querying the __Stat_Kind__ kind. It does not return me entities about kinds that currently exist in the datastore but it includes entities about kinds that I had deleted more than a week ago. I am not so much concerned about it returning me the non-existent kinds - the doc does mention this scenario after all. But I am concerned t...

Google App Engine - DELETE JPQL Query and Cascading

I noticed that the children of PersistentUser are not deleted when using the JPQL query below. However, the children are deleted if I perform an entityManager.remove(object). Is this expected? Why doesn't the JPQL query below also perform a cascaded delete? @OneToMany(mappedBy = "persistentUser", cascade = CascadeType.ALL) private Colle...

Datastore performance, my code or the datastore latency

I had for the last month a bit of a problem with a quite basic datastore query. It involves 2 db.Models with one referring to the other with a db.ReferenceProperty. The problem is that according to the admin logs the request takes about 2-4 seconds to complete. I strip it down to a bare form and a list to display the results. The put w...

Where do Entities get saved if you run a GAE project in development mode?

I am running a GWT Web Application project in Eclipse with certain Entities that I make persisent using JDO. Where (on my file system) do these Entities actually get saved if I run the project in development mode from Eclipse (so not on the Google App Engine, but locally)? ...

Problems using Maven to initialize a local thoughtsite (App Engine sample) project in Eclipse

This sample app ("thoughtsite") for App Engine contains a pom.xml in its trunk: http://code.google.com/p/thoughtsite/source/browse/#svn/trunk I ran mvn eclipse:eclipse and also tried using m2eclipse to import this source code into an Eclipse project. But I end up with this error despite the fact that I have the Google App Engine plugi...

Port a Tomcat Application to App Engine

Hi, I have a tomcat/mysql website that I would like to move over to Google app engine does anyone know of a good tutorial outlining this? Or can anyone make some suggestions on how to do this? ...

'createsuperuser' command un known while trying to get started with Djangoappengine

I am trying to get going with Djangoappengine. I followed the instructions, but when I get to this step: manage.py createsuperuser I get the following: Unknown command: 'createsuperuser' So I ran manage.py help And saw that 'createsuperuser' is not even in the list. The list of subcommands listed by help: cleanup compilemessa...

After getting the 'It worked!' page with Djangoappengine, what do I do next?

I followed the Djangoappengine instructions. I used their django-testapp and copied the following folders in the django-testapp folder according to what I understood the instructions to say: django djangoappengine djangotoolbox I then started the dev server by running: manage.py runserver Then navigated to http://localhost:...

Cloud Apps and Single Sign-On (AD integration)

I've been investigating some cloud vendors and the ability to implement single sign-on with them, especially when it comes to AD (Active Directory) integration. So far I've learned that with Azure this is possible through ADFS and the AppFabric Access Control offer. In AWS, since it is possible to create a VPN and see EC2 instances as ...

Google App Engine, Secure Data Connector (SDC), and supported protocols

I've been investigating what I can do with Google's Secure Data Connector and App Engine. Is it possible, from an App Engine application, to grab resources inside my corporate intranet without using HTTP(S)? From what I read in the documentation, the only way to request resources through SDC is by using url_fetch, which is limited to H...

How do you install a Maven2 plugin?

I found this plugin for Google App Engine development that seems to be what I need. But I have no idea how to install it. I downloaded the JAR file from this page but I don't know where to put it: http://code.google.com/p/maven-gae-plugin/ Could anyone point me in the right direction? I've tried search for installation instructions b...

How do you query an owned relationship in appengine jpa?

I may be over thinking this one, but I am stuck... I have an owned one-to-many relationship using AppEngine and JPA. My owning entity, lets call it 'MyList', owns entities of type 'Event'. In other words, every 'MyList' has zero or more 'Event' objects associated with it. I have no problem adding 'Event' objects to a 'MyList', and I hav...

JDO architecture: One to many relationship and cascading deleting

I’m new to object oriented database designs and I’m trying to understand how I should be structuring my classes in JDO for google app engine, particularly one to many relationships. Let’s say I’m building a structure for a department store where there are many departments, and each department has many products. So I’d want to have a cla...

How can I kill off a Python web app on GAE early following a redirect?

Hi Disclaimer: completely new to Python from a PHP background Ok I'm using Python on Google App Engine with Google's webapp framework. I have a function which I import as it contains things which need to be processed on each page. def some_function(self): if data['user'].new_user and not self.request.path == '/main/new': ...

GSON on Google App Engine throws a Security Exception

I am trying to convert an object into JSON using the GSON library on Google App Engine. For some reason, it throws this exception and I don't understand how to solve this. Any suggestions? java.lang.SecurityException: java.lang.IllegalAccessException: Reflection is not allowed on private static final int java.util.BitSet.ADDRESS_BITS_PE...

Fetching a random record from the Google App Engine Datastore?

I have a datastore with around 1,000,000 entities in a model. I want to fetch 10 random entities from this. I am not sure how to do this? can someone help? ...