I'm using the Eclipse plugin for Google App Engine and I'm having a strange issue with a Xerces dependency.
On of my classes depends on the Apache Xerces JAR which I have added to the project's classpath. This however, triggers an error when starting the Jetty app server:
WARNING: failed
com.google.apphosting.utils.jetty.DevAppEngine...
Is there StringListProperty just in Python or in Java too? I cant find it in the Java API.
...
Does Jasper Reports work on Google App Engine?
...
I have a few already but wanted to merge them into one public domain oauth code library for twitter, facebook, friendfeed (and let other developers improve the library for their preferred connections).
I'm having a tough time just debugging mashing friendfeed and twitters oauth into one friendly python program running on the Google App ...
We are building an application on Google App Engine in Java using Spring 2.5.
I would like to put something in the footer that displays page render time.
Where are the best code hooks in either Spring or GAE/J to calculate render time and put it into the Spring model for JSP rendering?
...
I have an unowned relationship in my Domain model
@Entity
public class A {
@Id
private String id;
private Key firstB;
private Key secondB;
// getters & setters
}
@Entity
public class B {
@Id
private Key id;
private String name;
// getter & setter
}
KeyFactory.createKey(B.class.getSimpleName(), name) is the way I generate th...
Hi guys,
I'm trying to get my models related using ReferenceProperty, but not have a huge amount of luck. I have 3 levels: Group, Topic, then Pros, and Cons. As in a Group houses many topics, and within each topic could be many Pros and Cons.
I am able to store new Groups nice and fine, but I don't have any idea how to store topics und...
I'm putting user privileges identificator in user sessions after authentication.
How to restrict access to some parts of the site depending on user privileges. For now I'm checking privileges within page handlers but how to make it better?
Are there any existing templates of doing this? Could you give an example?
...
I've enjoyed building out a couple simple applications on the GAE, but now I'm stumped about how to architect a music collection organizer on the app engine. In brief, I can't figure out how to filter on multiple properties while sorting on another.
Let's assume the core model is an Album that contains several properties, including:
...
I am just trying to get some things to work so I can try some of google app engines java. However I seem to have a problem with something that I can't get a hold of.
The java code looks like this:
import java.net.URL;
import com.google.gdata.client.photos.*;
import com.google.gdata.data.photos.*;
public class TestPicasa {
public stat...
Say my app has a page on which people can add comments.
Say after each comment is added a taskqueue worker is added.
So if a 100 comments are added a 100 taskqueue insertions are made.
(note: the above is a hypothetical example to illustrate my question)
Say I wanted to ensure that the number of insertions are kept to a
minimum (so...
Is there a way to turn on the Last-Modified header for static resources served up by Google App Engine? I have a large zip file that my app serves up to an iPhone client app, and I'd like to only download it if the Last-Modified date indicates that it is newer than the cached copy on the iPhone.
PS: I am using the Java version of Goog...
I store instances of Domain objects in GAE's memcache using the javax.cache API. I'd like to be notified as soon any instance is evicted due to storage limitations or anything else. Is a CacheListener the solution for that? Is GAE calling CacheListener.evict(Object o) when it's removing instance?
...
I have two classes in an owned one-to-many relationship. The parent is Map, and the child is POI (point of interest). I am trying to add a POI to an existing Map, but I get an exception when I try to persist my changes. Here are the two classes:
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Map {
@Primar...
My question is more of a best practices question on how to implement unowned relationships with Google App Engine. I am using JDO to do my persistence and like recommended in the google docs I'm persisting my list of unowned relationships like so:
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class User implements...
class Message(db.Model):
user = db.ReferenceProperty(User, required=True, collection_name='Message_set')
text = db.TextProperty(required=True)
I tried this but I'm getting BadValueError on the gql statement.
users = []
users.append(userA)
users.append(userB)
users.append(userC)
messages = Message.gql('Where user In :users', use...
Hi all,
A bit of background first: GeoModel is a library I wrote that adds very basic geospatial indexing and querying functionality to App Engine apps. It is similar in approach to geohashing. The equivalent location hash in GeoModel is called a 'geocell.'
Currently, the GeoModel library adds 13 properties (location_geocell__n_, n=1.....
Ive had a similar question as this one before, and when that solved this came. So here we go again.
The content of doGet pretty much works but when I try it as a part of a servlet that eclipse created for me I get errors. Its looks a bit like I don't have the appropriate files referenced in the library, but I think I do.
The java code ...
I have a model like this:
class Group(db.Model):
name = db.StringProperty()
description = db.TextProperty()
Sometimes when executing queries like:
groups = Group.all().order("name").fetch(20)
or
groups = Group.all()
I'm getting error massages like this:
Traceback (most recent call last):
File "/opt/google_appengine/google/a...
How does google app engine's sandbox work? What would I have to do to create my own such sandbox (to safely allow my clients to run their apps on my engine without giving them the ability to format my disk drive)? Is it just class loader magic, byte manipulation or something?
...