[appengine-java] How to get the userID? The one could be actually be used with buzz API to get user profile?

2011-07-26 Thread wei yi
I see there is a getUserID() in GAE API. And the value returned is a 
21-digit ID, however it is not the one used in Google user Profile. Is there 
anyway to get that one? Since for some new users, the gmail address does not 
work when applied API.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/ETuHpyGTPQQJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] JDODetachedFieldAccessException when accessing detached object from memcache

2011-07-26 Thread Mike Prince
We've been using memcache to cache detached JDO objects successfully.

However we tried to do a new release today and a new error has popped
up:

...JDODetachedFieldAccessException... yet this field was not detached
when you detached the object

The first time we retrieve an object using JDO and access it's fields
everything is ok.  But if we detach and save that object to memcache,
retrieve the object from memcache, and try to access a String field we
get the above error.

Any ideas why this started happening?

Thanks,

Mike

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: JDODetachedFieldAccessException when accessing detached object from memcache

2011-07-26 Thread Eduardo Garcia Lopez
Since some days ago we are experiencing some similar problem when accessing 
JDO detached objects.
We are using two different backends, and task queues, so I suspect there 
could be some problem related to multithread/multiinstance with Datastore.

One question, Mike, are you using backends?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/Z_5p-DT4KnAJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Task queue locking up

2011-07-26 Thread Eduardo Garcia Lopez
Hi,

I have been experiencing locks with task queues since last week too, 
specially when I use dynamic instances in my backends. During minutes the 
CPU load goes to 0% on all instances, and the queues keep growing but no 
single task is executed (and this happens with as few tasks as 10). After 
some time (minutes), it unlocks itself and continues execution. The worst of 
all is that these locks are causing that some operations on datastore 
timeout, so our application enters a catastrophic spiral where everything 
starts to fail.

In my case I am using backends (2 backends, 1 static, 1 dynamic with 2 
instances, 6 concurrent requests max), and JDO access to datastore inside 
the tasks. I keep the JDO objects transient, to discard that the problems 
are due to JDO locks, and most of the times the operation that times out is 
a simple getObjectById() -maybe just because is the first operation inside 
the task-.

I hope this contributes solving the problem,

Eduardo.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/tCR-yjx1hhoJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Task queue locking up

2011-07-26 Thread Eduardo Garcia Lopez
Ikai, regarding the fix pointed out by you, '*setting threadsafe to false*', 
well it delays a little the appearance of the problem, but after some time 
it arises again.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/JPjrn0dwDwgJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [appengine-java] Task queue locking up

2011-07-26 Thread Ikai Lan (Google)
Eduardo, it sounds like you're encountering a different problem than John.

Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine



On Tue, Jul 26, 2011 at 7:33 AM, Eduardo Garcia Lopez
egar...@stream18.comwrote:

 Ikai, regarding the fix pointed out by you, '*setting threadsafe to
 false*', well it delays a little the appearance of the problem, but after
 some time it arises again.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To view this discussion on the web visit
 https://groups.google.com/d/msg/google-appengine-java/-/JPjrn0dwDwgJ.

 To post to this group, send email to
 google-appengine-java@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: GAE Mail Sending Error-

2011-07-26 Thread sats
Looks like there was a bad ref. to the mail.jar in classpath. I restarted 
the workspace and things are looking better. 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/BE5kFzyofK0J.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Blobstore: storing multiple blobs, retrieving blobkeys in doGet, form dissappears in appspot deployment

2011-07-26 Thread Brandon Donnelson
Can you post some of your source code. Its hard to diagnose via your 
comments above.

Here is some of my code I use to do 
it: http://code.google.com/p/gwt-examples/wiki/DemoGAEMultiFileBlobUpload

Brandon Donnelson
http://gwt-examples.googlecode.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/gVsUAoAPRvoJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Can I/Should I test my *ServiceImpl class? (RPC calls - GAE+GWT+MVP)

2011-07-26 Thread Brandon Donnelson
I just tried GWTTestCase with App Engine enabled in eclipse and didn't get 
it to work. But you can run the app in eclipse dev mode and use some logging 
to console and see if your rpc is working or you can tell because the data 
made it to the client. The eclipse dev hosting mode works pretty much like 
the production environment although there are a few minor differences.

Brandon Donnelson
http://gwt-examples.googlecode.com

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/Jatt2UKjRW0J.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Mining logs for performance data

2011-07-26 Thread Kesava Neeli
Thanks but that means you are manually doing a cutpaste of the log from 
google logs viewer and then applying the rules. That cannot be autoamated. I 
like to run a cron job that can parse the log for my special log statements 
and then create a report of out of it. Anyone from appengine team has a 
recommendation on how to approach this? One extreme way is to post each of 
the performance log statement to public server outside appengine and then 
process it. Don't see it as a viable solution. 

Thanks
Neeli 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/95C0OSQD48cJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Memcache listener when data is evicted?

2011-07-26 Thread J.Ganesan
I had this kind of  issue when I wanted to maintain an object cache. I
had to settle down for something similar to what you do now.
In your case, if you had a dedicated server would you update the
database with every move. If the answer is yes, what you currently do
is fine. Else, I do not think gae is a fit server-cum-persistence
mechanism for your application.

J.Ganesan
www.DataStoreGwt.com


On Jul 23, 2:17 pm, Sébastien Tromp sebastien.tr...@gmail.com wrote:
 Hello,

 I am building a multiplayer game whose play sessions are rather short
 (around 5 mins). Everytime a player sends their move, it updates the game
 state in the cache. Since the cache is unreliable, I then update the
 datastore with the updated data.
 My concern is there will likely be many useless datastore updates - meaning
 two consecutive persistence calls while the data still is in the memcache.

 I was thus wondering whether you had any suggestion about this. I was
 thinking of listeners that would be called when the data is about to be
 evicted from the cache, who would be the one to do the actual persistence.
 But from what I
 readhttp://code.google.com/appengine/docs/java/memcache/usingjcache.html#...
 this
 is not possible today.

 Has any one of you run into a similar requirement? How have you coped with
 it?
 --
 Sébastien Tromp

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Channel API questions

2011-07-26 Thread Ice13ill
Hello, i have some simple questions regarding the channel api:
1. I know that after two hours, the given token for creating the
channel expires and onClose() and onError() are called. When this
happends, does the POST request to the path to disconnect servlet is
sent ?  (/_ah/channel/disconnected/)
2. if i create a channel with the same clientID twice, will that be
considered a new channel (given token is different) or will the token
be the identical ? (and also the same channel)
3. What would be the best method for keeping track of a large number
of created channels ? (clients IDs for example)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: JDODetachedFieldAccessException when accessing detached object from memcache

2011-07-26 Thread Mike Prince


On Jul 26, 2:00 am, Eduardo Garcia Lopez egar...@stream18.com wrote:
 Since some days ago we are experiencing some similar problem when accessing
 JDO detached objects.
 We are using two different backends, and task queues, so I suspect there
 could be some problem related to multithread/multiinstance with Datastore.

 One question, Mike, are you using backends?

We are not.

I'll keep experimenting today and see what I dig up.

Thanks,

Mike

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: deployment to production stalling

2011-07-26 Thread Nichole
Can anyone who's successfully today deploying to appengine production
w/ sdk 1.5.0 confirm this md5 sum for me?

MD5 (appengine-tools-api.jar) = 472e6d29ff6633cf1cc7fde3cabd6290

Thanks for your time

On Jul 25, 11:05 am, Nichole nichole.k...@gmail.com wrote:
 Hello,

    Anyone having troubles deploying to appengine production?

    My deployments are currently stalling out to production
 since Friday July 21 though they still succeed to development.
 I didn't change my java jdk binaries, didn't change the appengine
 sdks that I was using, and had previously successfully
 deployed the app using the same configuration and builds,
 even after the July 14th maintenance.

    To troubleshoot, I tried installing and building from variations
 of java jdks, variations of appengine sdks (fresh downloads and
 existing that I already had) and had the same stalls during
 attempts to upload to production.

   I ran the deployment with java verbose options to print the
 classes loaded and then created aspects and used load time
 weaving to see the methods where the deployment is stalling.
 I can print them out here if it's helpful, but it looks to be a bug
 in the appengine-tools-api.jar

   Has anyone else had the same problem recently?  If so, how
 did you solve it?

 Thanks,
     Nichole

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] sdk 1.5.2 removes exploding indexes!!!

2011-07-26 Thread lp
has anyone read this.

http://googleappengine.blogspot.com/2011/07/app-engine-152-sdk-released.html

Advanced Query Planning - We are removing the need for exploding indexes and 
reducing the custom index requirements for many queries. The SDK will 
suggest better indexes in several cases and an upcoming article will 
describe what further optimizations are possible.


i havent tried it out yet but i wanna see if it reduces my write cost on 
list properties.

-lp 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/uli40PUyGqIJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Re: Channel API questions

2011-07-26 Thread Moishe
Answers below:

On Jul 26, 10:21 am, Ice13ill andrei.fifi...@gmail.com wrote:
 1. I know that after two hours, the given token for creating the
 channel expires and onClose() and onError() are called. When this
 happends, does the POST request to the path to disconnect servlet is
 sent ?  (/_ah/channel/disconnected/)

Yes, it will. It might not be at exactly the time of expiration but it
will be within a couple of minutes. It's possible that if you request
a new token and re-open the socket within that gap that the
disconnected and then connected calls will be skipped.

 2. if i create a channel with the same clientID twice, will that be
 considered a new channel (given token is different) or will the token
 be the identical ? (and also the same channel)

You will get a new token (every call to create a channel, even with
the same client id, will result in a new token -- among other reasons,
the token encodes the expiration time, so it will obviously change on
every call). The channel will be the same, though; if you have two
clients connected with tokens generated from the same client id, they
will both receive messages sent to that client id. However no
guarantees are made of support of multiple connected clients; if you
open a new client, other clients connected via tokens generated with
the same client id may be (probably will be) disconnected.

 3. What would be the best method for keeping track of a large number
 of created channels ? (clients IDs for example)

I use the datastore with a memcache layer on top in apps I've written.
You could have eg. a table of user_ids (from the users API)
representing connected users.

-Moishe

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] FK Maps not supported error when using HashMaps

2011-07-26 Thread Kesava Neeli
Hi,

I am seeing the following stack trace when using HashMap in my persistable 
class. I have something like this in my app. 

@PersistenceCapable
public class MyClass {
...

ListClassA list1;
ListClass B list2;

...
}

@PersistenceCapable

public class ClassA {

//some fields


@Persistent(serialized = true, defaultFetchGroup = true)

private HashMapString, String myMap;

@Persistent(serialized = true, defaultFetchGroup = true)

private ListHashMapString, String myListMap; 

//getters  setters

}


When I persist my MyClass object, it looks ok. I can see all ListClassA 
being persisted correctly. I saw old post from 2 yrs ago where GAE team 
member showed the example on how to persist using HashMap (like above). 


When I retrieve my MyClass object with my key to update it, I see the 
exception trace below. Can't we use HashMap at all? It's NOT listed in GAE 
supported collection class list at 
https://code.google.com/appengine/docs/java/datastore/jdo/dataclasses.html#Collections.
 
Any good alternatives to use?  I need to use key/value pairs in that object. 
Any pointers are much appreciated. 

NestedThrowablesStackTrace:
java.lang.UnsupportedOperationException: FK Maps not supported.
at 
org.datanucleus.store.appengine.DatastoreManager.newFKMapStore(DatastoreManager.java:589)
at 
org.datanucleus.store.mapped.MappedStoreManager.getBackingStoreForMap(MappedStoreManager.java:766)
at 
org.datanucleus.store.mapped.MappedStoreManager.getBackingStoreForField(MappedStoreManager.java:637)

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine for Java group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-appengine-java/-/EOhGl49yIvQJ.
To post to this group, send email to google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



Re: [google-appengine] 4.4 ToS question

2011-07-26 Thread Gregory D'alesandre
That is not a violation of the ToS.  It is only a violation is you are
essentially sharding an application to avoid charges.

Hope that helps!

Greg D'Alesandre
Senior Product Manager, Google App Engine

On Thu, Jul 14, 2011 at 3:39 AM, Mitchell Amihod
mitchell.ami...@gmail.comwrote:

 Hi

 Is it breaking the TOS 4.4 if I build an API on one account, and then build
 a front end site which accesses this API on a different account?
 Not doing it to avoid incurring billing costs (i'll be happy to get to the
 point where there's enough traffic that we're being charged :) )
 We're actually building an API with the intention that others will build
 clients against it, and our front end happens to just be the first to use
 it.
 We have different people working on front end site / back end API.
 Just want to check if this use case is ok - we don't want to get shut down
 for something like this.

 thanks
 m

  --
 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/-/2bpoU2WklsAJ.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] GAE structure of python project

2011-07-26 Thread Vasyl Nakvasiuk
What about your structure of python project? Where do you put your third 
party packages?
For example, I use GAE + Flask + Werkzeug + Jinja2, and put this packages to 
the 'libs' folder. And this folder under git or mercurial.
From time to time I update this packages and increase .git or .hg folder 
size. It's not cool!
What about you (structure, third party packages, updating packages) ? 

-- 
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/-/hcJsSj8FhgsJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Modelling data in Java for GAE

2011-07-26 Thread MK Z
Hi,
I'm pretty new to this GAE platffrom and the Google BigTable. Ive been
trying to search for tutorial (with example) on this subject but found
nothing to get me started (found handful of Python examples but my app
is to be written in Java). There are few good examples which I have
tried and its working perfectly on GAE. As I come from RDBMS
background so im totally clueless on how relationship between tables
work as Google BigTable stores data differently. I also read
Programming Google App Engine book the example shown is not in-depth.
here is my scenario: If I have table department and employee, a
typical query will be select d.deptName, e.employee name, ... from
department d, employee e WHERE as far as my reading, this is not
supported in GQL. another thing, how do I do the data modelling? do I
need to use the mappedBy annotation? Any help will be appreciated.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: HR database, ancestor queries and data consistency: docs not 100% clear

2011-07-26 Thread Pol
On Jul 26, 6:15 am, Nick Johnson (Google) nick.john...@google.com
wrote:

  I understand that, but my problem is with the indexes: even in the
  scope of HR + transactions, the doc is confusing regarding wether or
  not there can be a race-condition on indexes update.

  For instance:
  - transaction A modifies entity X and commits
  - then transaction B happens almost concurrently:
   - at this point, using db.get() X will return the latest X no matter
  what
   - however, using db.GqlQuery() with a predicate that matches X *may
  not* return X because the indexes may not be done updating yet (the A -
   B thing in the doc)

  So is this race-condition possible or not? No matter what, you might
  wanna rewrite a couple sentences in this article :)

 Again, this depends on if you're using an ancestor query. Queries that
 include ancestor filters are strongly consistent, queries that don't aren't.

Since I'm inside a transactions, I am indeed using ancestor queries.
So I'm going to interpret your answer as with HR and ancestor
queries, there can be no race-conditions at all due to index updates
no matter what the doc says about concurrent transactions and small
windows. :)

For the record, I did end up finding a bug in my code that explained
the fact sometimes concurrent transactions with ancestor queries were
apparently returning stalled results.

- Pol

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Modelling data in Java for GAE

2011-07-26 Thread Pascal Voitot Dev
Hi,
BigTable is a NoSQL DB without join feature that you know in SQL.
So you manage relations manually and do join by issuing several request
instead a single one and you join within your application context.
Basically you do more computation in your app than in the DB in this case.
But the DB is more versatile and less contrained which is a big advantage
sometimes.

Generally, you don't create normalized models in DB such as BigTable because
you can't join.
So you tend to denormalize your models (create join table) and use
redundancy.
In GAE, a great feature is the entity grouping where you can associate a
child to a parent by its key but it has its limitations also.

One thing to know is that, in the same transaction, you can target entities
only in the same group of entities.
One other thing to know is that when you fetch multiple entities in a row,
the maximum returned number of entities is 1000 but you can manage it with
offsets or better with cursors (look at GAE docs).
There are a lot of other features but begin with that ;)

regards
Pascal

PS: I'm lead developer of siena project providing a simple mapping layer for
NoSQL/SQL (http://www.sienaproject.com)



On Mon, Jul 25, 2011 at 8:09 PM, MK Z v5s12.msc...@gmail.com wrote:

 Hi,
 I'm pretty new to this GAE platffrom and the Google BigTable. Ive been
 trying to search for tutorial (with example) on this subject but found
 nothing to get me started (found handful of Python examples but my app
 is to be written in Java). There are f in ew good examples which I have
 tried and its working perfectly on GAE. As I come from RDBMS
 background so im totally clueless on how relationship between tables
 work as Google BigTable stores data differently. I also read
 Programming Google App Engine book the example shown is not in-depth.
 here is my scenario: If I have table department and employee, a
 typical query will be select d.deptName, e.employee name, ... from
 department d, employee e WHERE as far as my reading, this is not
 supported in GQL. another thing, how do I do the data modelling? do I
 need to use the mappedBy annotation? Any help will be appreciated.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Error in upload java web application error message This application does not exist (app_id=u'xxxxxxx')

2011-07-26 Thread msanztru
Hi all,

I am having exactly the same issue. The id exists in appengine and it 
matches the contents of the xml file, but having tried several times I 
always get the same issue

any ideas?

Thanks!!

-- 
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/-/FzSZ-fXalIsJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Is HTTP_X_APPENGINE_INBOUND_APPID authenticated?

2011-07-26 Thread Andrin von Rechenberg
Hey there

I was wondering if the header HTTP_X_APPENGINE_INBOUND_APPID
could be faked by a client or if the Google Frontends authenticate this
header
somehow?

Is it secure to assume that if HTTP_X_APPENGINE_INBOUND_APPID is present,
the request is really from that app?

Cheers,
-Andrin

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Jersey 1.8 issue

2011-07-26 Thread Yann Lambret
Hello,

I'm trying to deploy a restful web service on GAE with Jersey 1.8 
implementation. On the page 'will it run on appengine', there is no 
information about this specific release. I've set up the web.xml as 
indicated in the Jersey documentation :

servlet
servlet-nameJersey Web Application/servlet-name

servlet-classcom.sun.jersey.spi.container.servlet.ServletContainer/servlet-class
init-param
param-namecom.sun.jersey.config.property.packages/param-name
param-valuenet.whatever.rest/param-value
/init-param
/servlet

My war/WEB-INF/lib directory contains the following files:

asm-3.1.jar
jackson-core-asl-1.7.1.jar
jackson-jaxrs-1.7.1.jar
jackson-mapper-asl-1.7.1.jar
jackson-xc-1.7.1.jar
jersey-client-1.8.jar
jersey-core-1.8.jar
jersey-json-1.8.jar
jersey-server-1.8.jar
jettison-1.1.jar
jsr311-api-1.1.1.jar

My REST class is annotated with @Path btu I still get these errors when 
accessing the application (deploying is ok):

Uncaught exception from servlet
javax.servlet.UnavailableException: 
com.sun.jersey.api.container.ContainerException: The ResourceConfig instance 
does not contain any root resource classes.
at 
org.mortbay.jetty.servlet.ServletHolder.makeUnavailable(ServletHolder.java:415)
at 
org.mortbay.jetty.servlet.ServletHolder.initServlet(ServletHolder.java:458)
at 
org.mortbay.jetty.servlet.ServletHolder.doStart(ServletHolder.java:263)
at 
org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:50)
at 
org.mortbay.jetty.servlet.ServletHandler.initialize(ServletHandler.java:685)
at org.mortbay.jetty.servlet.Context.startContext(Context.java:140)
at 
org.mortbay.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1250

Or sometimes this additionnal error, depending on the content of my web.xml 
file:

com.sun.jersey.server.impl.application.RootResourceUriRules init: The 
ResourceConfig instance does not contain any root resource classes.

Did sommeone successfully manage to deploy a Jersey 1.8 app on GAE ? If so, 
could you please provide the related web.xml secttion,
code snippet or whatever could help ?

Thanks a lot.

Yann


-- 
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/-/EuIysG0Zcl4J.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Jibx data binding on GAE

2011-07-26 Thread Deepak Singh
Hi all,

I have to use JIBX databinding framework and JIBX/WS in my application.
So i would like to know that Is Jibx supported by app engine?

Regards
Deepak

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Backend confusion

2011-07-26 Thread WanderingGAE
I'm having a tough time figuring out how to use the Backends properly.

I have it registering and running, but I'm not quite sure how I should be 
using it... here is the backend code:

class StartHandler(webapp.RequestHandler):
def get(self):
logging.debug(Starting up!)
logservice.flush()

def main():
application = webapp.WSGIApplication([('/_ah/start', StartHandler)],
 debug=True)
util.run_wsgi_app(application)

I've tried several variations  with logservice, but I never get a log 
message that the backend has started up.  I really just want to do some 
datastore work when the backend starts up.  Any help would be appreciated.  


-- 
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/-/T7NXa9LdNSMJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Deploy application size limit

2011-07-26 Thread Rodrigo Teixo
Hello everybody.

I was deploying my aplication and got a error telling me that my
application size limit is more than 150MB.
Well, I just want to know if I am mistaking something. My application
is not so big. I have at this moment 14 modules and the compiled
permutations are taking more than 10MBytes each and I havent use
internacionalization.

Is that correct? Am I doing something wrong to have the modules
permutations so big?

Another question... If I enable billing, can I deploy a bigger
application?


Thanks in advance,
Rodrigo.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Backend confusion

2011-07-26 Thread WanderingGAE
I've also tried this in the file, no log messages seen.

from google.appengine.ext import webapp
from google.appengine.ext.webapp import util
from google.appengine.api import logservice
import logging
import time

logservice.AUTOFLUSH_ENABLED = False

logging.debug(Starting up!)
logservice.flush()

while True:
logging.debug(Check!)
logservice.flush()
time.sleep(5)

-- 
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/-/rS8QPpyg3VoJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Backend confusion

2011-07-26 Thread WanderingGAE
And my backends.yaml

backends:
- name: counter
  start: counter.py
  instances: 1
  class: B1

-- 
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/-/Fhmn56CcZHYJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Is there any Google+ backend API (OAuth) in the works for use with Apps?

2011-07-26 Thread Brandon Donnelson
I'm curious if there is any planned Google+ backend API + OAuth support 
coming? Particularly pertaining to a Google users circles. 

For instance, It would be nice to give a user in my app authorization to 
someone in one of my circles?

Brandon Donnelson
http://gwt-examples.googlecode.com

-- 
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/-/LASHN7UjbWcJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Is HTTP_X_APPENGINE_INBOUND_APPID authenticated?

2011-07-26 Thread Jon McAlister
Yes, you can assume this.

The only cases where this header will be allowed through to the app are:
(a) another app is requesting your app using our urlfetch api [or,
the app is urlfetching itself]
(b) the request came from a logged-in admin of your app

While (a) is the primary intention of this header, (b) can be useful
for debugging purposes.

On Tue, Jul 26, 2011 at 2:39 AM, Andrin von Rechenberg
andri...@gmail.com wrote:
 Hey there
 I was wondering if the header HTTP_X_APPENGINE_INBOUND_APPID
 could be faked by a client or if the Google Frontends authenticate this
 header
 somehow?
 Is it secure to assume that if HTTP_X_APPENGINE_INBOUND_APPID is present,
 the request is really from that app?
 Cheers,
 -Andrin

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Is HTTP_X_APPENGINE_INBOUND_APPID authenticated?

2011-07-26 Thread Jon McAlister
I should also point out that, while this header is not yet documented,
it's not going away either, and will be documented in an upcoming
release.

On Tue, Jul 26, 2011 at 8:23 AM, Jon McAlister jon...@google.com wrote:
 Yes, you can assume this.

 The only cases where this header will be allowed through to the app are:
    (a) another app is requesting your app using our urlfetch api [or,
 the app is urlfetching itself]
    (b) the request came from a logged-in admin of your app

 While (a) is the primary intention of this header, (b) can be useful
 for debugging purposes.

 On Tue, Jul 26, 2011 at 2:39 AM, Andrin von Rechenberg
 andri...@gmail.com wrote:
 Hey there
 I was wondering if the header HTTP_X_APPENGINE_INBOUND_APPID
 could be faked by a client or if the Google Frontends authenticate this
 header
 somehow?
 Is it secure to assume that if HTTP_X_APPENGINE_INBOUND_APPID is present,
 the request is really from that app?
 Cheers,
 -Andrin

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Is there any Google+ backend API (OAuth) in the works for use with Apps?

2011-07-26 Thread Ikai Lan (Google)
Not yet. Sign up to be notified here:

https://services.google.com/fb/forms/plusdevelopers/

Being an engineering focused company, you can imagine this is something many
of us care about.

Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine



On Tue, Jul 26, 2011 at 10:38 AM, Brandon Donnelson branflake2...@gmail.com
 wrote:

 I'm curious if there is any planned Google+ backend API + OAuth support
 coming? Particularly pertaining to a Google users circles.

 For instance, It would be nice to give a user in my app authorization to
 someone in one of my circles?

 Brandon Donnelson
 http://gwt-examples.googlecode.com

 --
 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/-/LASHN7UjbWcJ.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Is there any Google+ backend API (OAuth) in the works for use with Apps?

2011-07-26 Thread Brandon Donnelson
Wow, thanks for the fast reply. I've signed up but, I couldn't resist 
asking. I'm excited to see what pops out into the wild in the future.

Brandon Donnelson
http://gwt-examples.googlecode.com
http://c.gawkat.com

-- 
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/-/0wcaLbPJp4UJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Deploy application size limit

2011-07-26 Thread Jose Montes de Oca
Hi Rodrigo,

FYI enabling the billing wont change this quota.

We would need a little more information about your application. are you 
using GWT? any big static files?

Looking forward to your response.

Best,
Jose.

-- 
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/-/6-mmvB5ha4gJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Deploy application size limit

2011-07-26 Thread Jose Montes de Oca
Hi Rodrigo,

FYI enabling the billing wont change this quota.

We would need a little more information about your application. are you 
using GWT? any big static files?

Looking forward to your response.

Best,
Jose.

-- 
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/-/6uCD43XEPvQJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Deploy application size limit

2011-07-26 Thread Rodrigo Teixo
Hi Jose.

Yes. I am using gwt. I am NOT using internacionalization. So each
module has between 6 to 10 compilations.

All images together has 4,7MB in 612 files but the images are not been
used in the modules.

Are them carried on the permutations?

No other static files are significant.

Help please,
Thanks in advance,
[],
Rodrigo.


On 26 jul, 15:38, Jose Montes de Oca jfmontesde...@google.com wrote:
 Hi Rodrigo,

 FYI enabling the billing wont change this quota.

 We would need a little more information about your application. are you
 using GWT? any big static files?

 Looking forward to your response.

 Best,
 Jose.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Modelling data in Java for GAE

2011-07-26 Thread Jose Montes de Oca
Hi,

You don't need to worry much on the underlying of the datastore (big table) 
but rather understand how the datastore works as a non relational way of 
persisting data in your application. If you are using Java you have:

- JPO: http://code.google.com/appengine/docs/java/datastore/jdo/
- JPA: http://code.google.com/appengine/docs/java/datastore/jpa/

There are also other frameworks that you can check out:
- Objectify: http://code.google.com/p/objectify-appengine/
- slim3: http://code.google.com/p/slim3/
- Twig: http://code.google.com/p/twig-persist/

I will recommend to start by reading about the Datastore: 
http://code.google.com/appengine/docs/java/datastore/overview.html getting 
familiar with its concept (keys, properties, entities, ancestors ...) 

Another good resource of information would be Past Google IO talks:
- http://www.youtube.com/watch?v=2jW2iSKDipY

For the scenario you picture on your example, you are right you can not do 
join queries. A workaround would be to de-normalize your data model to have 
the department information within the employee entity, so you could make a 
query over the kind employee.

Hope this helps you getting started on Datastore and App engine. If you have 
more questions don't hesitate to ask!

Happy coding!

Best,
Jose Montes de Oca

-- 
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/-/-MPXy0Q40QsJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] TransactionFailedError: Is the transaction committed or not?

2011-07-26 Thread Jose Montes de Oca
Hi Pol,

What this meas is that even if a transaction throws an exception this does 
not means the transaction failed, thats why you need to make your datastore 
transaction idempotent. So if you retry a transaction because it throws an 
exception, your transaction needs to check if the last 
transaction committed successfully or not.

Best,
Jose Montes de Oca

-- 
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/-/bm54SrfYFdAJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Deploy application size limit

2011-07-26 Thread Jose Montes de Oca
Hi,

When compiling in GWT make sure to compile in OBFUSCATED mode, not PRETTY or 
DETAILED mode.

Try that out and let us know how it goes!

Best,
Jose Montes de Oca

-- 
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/-/AYLHRo_B3KEJ.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] TransactionFailedError: Is the transaction committed or not?

2011-07-26 Thread Joshua Smith
On this topic, nobody ever answered this question:

 http://code.google.com/appengine/docs/python/datastore/transactions.html
 
 First it says, Make sure your transactions are idempotent and then it gives 
 an example which isn't.
 
 I'm not sure it's possible to do the task in that example correctly if you 
 cannot tell whether a transaction succeeded or failed when it throws an 
 exception. I just tried sketching out a solution that stored a transaction ID 
 in the model, but that won't work because there could be multiple writers. 
 The whole thing seems rather intractable, and the idea that you cannot tell 
 whether a transaction succeeded or failed violates the principle of least 
 surprise for anyone who's ever used a database!
 
 Can some googlers weigh in, and explain how, for example, the example in the 
 documentation could be implemented correctly?
 

So, can you?

I think that the idea of making transactions idempotent is nonsense.  I don't 
think it is going to be possible in many cases.

Either you support transactions, or you don't.  By my reading, GAE doesn't.

-Joshua

On Jul 26, 2011, at 3:40 PM, Jose Montes de Oca wrote:

 Hi Pol,
 
 What this meas is that even if a transaction throws an exception this does 
 not means the transaction failed, thats why you need to make your datastore 
 transaction idempotent. So if you retry a transaction because it throws an 
 exception, your transaction needs to check if the last transaction 
 committed successfully or not.
 
 Best,
 Jose Montes de Oca
 
 -- 
 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/-/bm54SrfYFdAJ.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: Fork-Join queue implementation question regarding overlapping joins for same index/batch

2011-07-26 Thread Bert
Hi,

Thanks Robert. Right, now see the need for having revision numbers on
aggregates.

Thanks
Rob



On Jul 26, 7:21 am, Robert Kluin robert.kl...@gmail.com wrote:
 Hi,
   No, they won't be summed twice.  The update to the aggregate occurs
 within a transaction, so one of the writes will fail and retry.  Even
 if some of the update work units are refetched the marker entities
 stored within the aggregates entity group have a revision number that
 allows you to skip stale updates.

 Robert







 On Mon, Jul 25, 2011 at 04:39, Bert robertbcur...@gmail.com wrote:
  Hi,

  Based on Brett's talk
 http://www.google.com/url?sa=Dq=http://www.google.com/events/io/2010...,
  is it possible to have a scenario where you get 2 join tasks happening
  closer than 1 second(or given batch time duration) apart?

  A scenario where I think it may happen is as follows:
  Batch time 1 second
  Stall timeout is 30 seconds
  The first insert is added at hh:mm:29.9 (multiple inserts follow)
  Task_name is e.g. sumName-1-1237847
  The task will only execute at about hh:mm:30.9

  At hh:mm:30.0 a new task is inserted but the index remains the same
  (the task sumName-1-1237847 hasn't incremented index yet).
  The task_name is sumName-2-1237847 and it will execute at hh:mm:31.0
  (only 0.1 seconds after the previous task for the same index).

  In most cases this may be OK (because 2 updates in a second for an
  entity group is probably OK), but what happens if there are many
  records for index 1237847 (more than task can finish in 0.1 seconds)?
  Potentially task sumName-2-1237847 could start executing before task
  sumName-1-1237847 has had time to finish executing, in which case it
  will also retrieve the work items for index 1237847 and may sum the
  same values twice.

  Here's the code (from the slides):

  now = time.time()
  stallTimeout =30
  try:
   taskqueue.add(
   name='%s-%d-%d' % (
   sum_name, int(now / stallTimeout ), index),
   url='/work',
   eta=datetime.datetime.utcfromtimestamp(now) +
   datetime.timedelta(seconds=1))
  except taskqueue.TaskAlreadyExistsError:
   pass

  def join(sum_name, index):
   # force new writers to use the next index
   memcache.incr('index-' + sum_name)
   lock = '%s-lock-%d' % (sum_name, index)
   memcache.decr(lock, 2**15) # You missed the boat
   # busy wait for writers
   for i in xrange(20): # timeout after 5s
     counter = memcache.get(lock)
     if counter is None or int(counter) = 2**15:
       break
     time.sleep(0.250)
   #get work for index
   #sum or whatever you want
   #delete work

  If what I've said is valid, is a workaround to check the lock at join
  time to see if its already been decremented by 2**15 before starting
  the join as that would indicate it's already been run?

  def join(sum_name,index):
   lock = '%s-lock-%d' % (sum_name, index)
   counter =memcache.get(lock)
   if int(counter)  2**16:
     #the task for index has already started running, return to prevent
  overlap
     return False

    #rest of code here...

  Thanks
  Rob

  --
  You received this message because you are subscribed to the Google Groups 
  Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to 
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: GAE starting unnecessary instances

2011-07-26 Thread Johan Euphrosine
On Mon, Jul 25, 2011 at 9:25 PM, Galoch galoch...@gmail.com wrote:

 Hi Johan,

 Thanks for following up on this discussion.

 I have new findings to share with you since GAE now works a bit
 differently with all these recent changes. Before I do that I will
 share the changes I made to our app which has helped us mitigate some
 performance issues.

 1. We moved all our cron jobs to the Backends with 1 B1 RI. Amazingly
 it is able to handle all the load single handed compared to 6
 instances (3 RI + 3 DI) in the regular app. We have our eye brows
 raised! But we are playing it with caution by setting max-concurrent-
 requests to 1. Will gradually raise the limits until it starts
 complaining.

 2. We set Max Idle Instances to 6 and Min Pending Latency to 15s. I
 recommend keeping Max Idle Instances to at least 4. Because if you
 keep it at 3 GAE kills and creates DI very aggressively ... in some
 cases 10-20 seconds.

Thanks for investigating those behaviors, feel free to continue to
share your findings with the community.

 3. In our regular app we are running dummy cron jobs to keep 3 DI up
 at all times. Again, amazingly with many concurrent users they are
 able to handle ALL the load. On the contrary RI are almost untouched.
 Here's the latest statistics:

 QPS*    Latency*        Requests        Errors  Age             Memory
 Availability
 0.000   0.0 ms  25              0              12:43:22         82.3 MBytes   
   Resident
 Icon Resident
 0.000   0.0 ms  10              0              12:44:45         80.6 MBytes   
   Resident
 Icon Resident
 0.000   0.0 ms  5               0              12:44:46         81.9 MBytes   
   Resident
 Icon Resident
 0.350   19.1 ms         11762   0               9:45:11         118.5 MBytes  
   Dynamic Icon
 Dynamic
 0.317   17.5 ms         3890    0               3:11:04         97.7 MBytes   
   Dynamic Icon
 Dynamic
 0.333   67.5 ms         15604   0               12:43:41        104.8 MBytes  
   Dynamic Icon
 Dynamic

 But this is just a sample set of users. I don't know yet if we can
 scale on this principle but it seems to work on light load. But this
 is definitely short term fix since this is going to be expensive under
 new billing.

I believe those stats illustrate the rule we discussed before:
Idle DI  Idle RI.

Keep in mind that under the new pricing model Min Idle Instances
should superseed Always On instances, as described by gregd in the
billing faq.

So hopefully you should not have idling DI instance wandering around,
and you will be able to control this with Max Idle Instances anyway.

 After spending fairly good amount of time collecting these statistics
 I can boil down to a few things that I want to share, that can help us
 tune our app to GAE.
 A. Know the current usage of an instance (RI or DI) in terms of
 current CPU utilization in percentage. This will help us correlate CPU
 utilization shown in each request in the logs and help us tune our
 queries. Right now there is no way to determine what effect the tuning
 had on an individual instance.

 B. Know the number of current threads running within an instance
 (maybe in a span of 15 seconds or so). This will help us identify
 ratio of thread handling capacity vs CPU consumed (point A). Higher
 the number means better throughput. Lower the number means we need to
 closely examine our requests.

 C. Able to override the 30 second deadline for the warm up requests so
 that we have enough time to load our frameworks.

 D. Able to specify how long an instance can live before reclaimed by
 GAE. Something similar to session timeouts. This will help avoid
 unnecessary warm up requests and will improve overall performance.

 E. Ability to specify rules within GAE console that will adjust the
 Max Idle Instances during different times of a day and week.

 F. Able to specify the size of  DI (something similar to Backends B1,
 B2 ... so on) instead of standard DI. Should be able to configure
 along with each rule mentioned in point E.


 I understand that C, D, E, F may involve some additional costs to us
 but these short / long term enhancements will hugely help us run our
 business applications on GAE. The idea is to give us more time and
 capacity with the DI while keeping a control on the cost.

I think your suggestions would be a great addition to the
admin-console, and let user have more visibility and control over
their instances and thus over billing.

You should definitely fill separate feature requests on the public
issue tracker for them.

In the meantime, I will make sure the engineering team is aware of
your suggestion.

 Let me know if I missed something that is already there or I am going
 off tangent here.

You're completely on the topic of this discussion :)

 On Jul 25, 9:18 am, Johan Euphrosine pro...@google.com wrote:
 Hi Francois,

 I think the help text of the 'Idle Instances' settings is pretty
 self-explanatory:
 
 You will not be charged for instances over the specified 

Re: [google-appengine] Re: GAE starting unnecessary instances

2011-07-26 Thread Johan Euphrosine
On Fri, Jul 22, 2011 at 5:37 PM, Rob Coops rco...@gmail.com wrote:
 1/ Idle Always On instance  Spawning a new Dynamic instance
 2/ Spawning a new Dynamic instance  Busy Always On instance
 3/ Idle Dynamic instance  Busy Always On instance
 4/ Idle Dynamic instance  Idle Always On instance
 So App engine prefers to use bored Always On instances over spawning new
 dynamic once that's good. If the Always On instances are busy it spawns a
 new Dynamic instance good. If a Dynamic instance is bored but the Always On
 once are busy the Dynamic instance gets the load still good.

 But then you loose me if the Always one instance is idle the Dynamic
 instance still gets the load, why?
 In this last case I would expect the Always on instance to get the load
 otherwise the Dynamic instance will keep on being busy and will not get
 stopped because of it.
 I don't know what the cost are of spawning and later destroying a Dynamic
 instance but I cannot imagine that this is such a huge cost that you would
 have to prefer using the Dynamic instances over the Always On once.
 I believe that this last rule should read:
 4/ Idle Always On instance  Idle Dynamic instance
 In which case the Idle Always On instances would get the load and the bored
 Dynamic instances would get cleaned up much faster then they are now.
 I suspect this is a typo though as I cannot imagine that this is really the
 setup but if it is I would say that is a candidate for change. :-)

This is not a typo:
4/ Idle Always On instance  Idle Dynamic instance

Under the new pricing model, as gregd highlighted in the pricing faq
Always On will be superseeded with Min Idle Instances.

So we shouldn't see that weird behaviour of Always On instance
getting idle, but rather a nice distribution of Dynamic Instance
matching the scheduler knobs you set in admin-console.

 The other thing I would suggest is altering the load balancing rules for
 Dynamic instances from the picture painted in this email it looks like the
 load balancing of multiple Dynamic instances is pretty much round robin (or
 equal load based). If this would be changed to always try and load use one
 Dynamic instance till the load reaches 80% or so before using the second one
 and so on this would allow the despawning of excess Dynamic instances much
 sooner then when one uses the current setup. This does mean a slightly
 bigger hit in case of a serious failure of the currently preferred Dynamic
 instance. Hence the 80% mark for the load which is arbitrarily chosen by
 randomly picking a number above 50 and might need some more scientific work
 to ensure that in an average scenario the remaining instances will usually
 be able to take the load caused by the sudden death of an Dynamic instance.
 From what I currently see it looks like the safest option has been chosen,
 meaning that in all cases the service will remain active no matter what
 happens but this means a significant cost on the customer side. I suspect
 that many customers are happy with that, but I think that an equal amount of
 them will want to see a situation where the costs are less likely to spike
 while providing a similar albeit slightly less high availability solution.
 It might be an interesting idea to offer several flavors of high
 availability, ranging from the current supper safe but relatively
 unpredictable cost to a pretty decent with very predictable costs one. I
 have no idea if this is technically possible but something tells me that it
 should not be that hard to do. And even if it is a little harder to do my
 guess is that Google would be up to that task.
 Well that's my two cents...

Thanks a lot for those suggestions, I will make sure to forward them
to the engineering team.

In the meantime feel free to open feature request for them if you want
to the community to be able to track their progress.

 ( reads as has priority for handling the incoming request)
 2/ Spawning a new Dynamic instance  Busy Always On instance
 4/ Idle Dynamic instance  Idle Always On instance
 On Fri, Jul 22, 2011 at 4:57 PM, Johan Euphrosine pro...@google.com wrote:

 HI Galoch,

 Thanks for the followup,

 I think you are experiencing a combinaison fo the two following rules
 I was pointing to in my previous email:
 ( reads as has priority for handling the incoming request)
 2/ Spawning a new Dynamic instance  Busy Always On instance
 4/ Idle Dynamic instance  Idle Always On instance

 Applied to your example it could means that:
 Resident Instance 1:   Requests: 49     Age: 1Hr
 Resident Instance 2:   Requests: 6      Age: 1Hr
 Resident Instance 3:   Requests: 2      Age: 1Hr
 Dynamic Instance 1:   Requests: 7      Age: 2min
 Dynamic Instance 2:   Requests: 291  Age: 1Hr
 Dynamic Instance 3:   Requests: 322  Age: 1Hr

 - 1 Hours ago while all your Always On instance were busy and you had
 a burst of incoming requests and the scheduler spawned new Dynamic
 instances as per rule 2/ highlighted above.
 - After the burst and back to 

[google-appengine] Created new app but application does not exist

2011-07-26 Thread Peter Liu
Hi,

I tried to create a new app called androidquery, and the web UI
shows some error (forgot exact wording).
Despite the message, I can access the admin panel for this app, so
it's created (at least half way) and the appid is reserved.

But when I deploy, it shows this error:

java.io.IOException: Error posting to URL:
https://appengine.google.com/api/appversion/create?app_id=androidqueryversion=0-1-1;
404 Not Found
This application does not exist (app_id=u'androidquery').

I suppose some error happened in the middle of the app creation
process and the app is stuck?

Anyway to rescue the app or the app id? I really want to keep the app
id because it matches my .com domain.

Many thanks.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Anyone At OSCon Portland?

2011-07-26 Thread Brandon Wirtz
I'm in Portland for OSCon (open source conference by O'Riely) Anyone in the
area?

 

Send me a text 650-281-1467 we could grab food, or share a meal table.

 

-Brandon

 

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] remote_api and java - put in batches

2011-07-26 Thread Fred Ross-Perry
I'm working on a tool using Java on the client side to backup and 
restore data.
The restore side involves reconstructing entities form XML data, and 
putting them

to the datastore.  Right now I am doing them one at a time, like this:

while (there are more entites)
{
Entity entity = convert from XML to Entity here
datastore.put(entity);
}

But I'd like to do it in batches.
I see that there is also

datastore.put(IterableEntity)

How do I build up an IterableEntity form a series of Entitys?

thanks

--
You received this message because you are subscribed to the Google Groups Google 
App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] remote_api and java - put in batches

2011-07-26 Thread Pascal Voitot Dev
On Tue, Jul 26, 2011 at 11:41 PM, Fred Ross-Perry
fredrosspe...@gmail.comwrote:

 I'm working on a tool using Java on the client side to backup and restore
 data.
 The restore side involves reconstructing entities form XML data, and
 putting them
 to the datastore.  Right now I am doing them one at a time, like this:

while (there are more entites)
{
Entity entity = convert from XML to Entity here
datastore.put(entity);
}

 But I'd like to do it in batches.
 I see that there is also

datastore.put(IterableEntity**)

 How do I build up an IterableEntity form a series of Entitys?


You can serialize your list of entities in XML as for one single one.
Then you retrieve it and build a ListEntity from your entity and just pass
it to the datastore.put batch function.

Is it what you want because i'm not sure to understand!

regards
Pascal


 thanks

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to 
 google-appengine@googlegroups.**comgoogle-appengine@googlegroups.com
 .
 To unsubscribe from this group, send email to
 google-appengine+unsubscribe@**googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at http://groups.google.com/**
 group/google-appengine?hl=enhttp://groups.google.com/group/google-appengine?hl=en
 .



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] remote_api and java - put in batches

2011-07-26 Thread Stephen Johnson
Hi Fred,

Lists/Sets implement the Iterable interface, so create any list type
(ArrayList/LinkedList) you want and then just add them to that.


ListEntity entities = new ArrayListEntity();

while (more entities) {

  entities.add(entity);

}

datastore.put(entities);

Stephen
CortexConnect
cortexconnect.appspot.com


On Tue, Jul 26, 2011 at 2:41 PM, Fred Ross-Perry fredrosspe...@gmail.comwrote:

 I'm working on a tool using Java on the client side to backup and restore
 data.
 The restore side involves reconstructing entities form XML data, and
 putting them
 to the datastore.  Right now I am doing them one at a time, like this:

while (there are more entites)
{
Entity entity = convert from XML to Entity here
datastore.put(entity);
}

 But I'd like to do it in batches.
 I see that there is also

datastore.put(IterableEntity**)

 How do I build up an IterableEntity form a series of Entitys?

 thanks

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to 
 google-appengine@googlegroups.**comgoogle-appengine@googlegroups.com
 .
 To unsubscribe from this group, send email to
 google-appengine+unsubscribe@**googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at http://groups.google.com/**
 group/google-appengine?hl=enhttp://groups.google.com/group/google-appengine?hl=en
 .



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Anyone At OSCon Portland?

2011-07-26 Thread Ikai Lan (Google)
I think Wesley is there. He's giving talks if I'm not mistaken.

Ikai Lan
Developer Programs Engineer, Google App Engine
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine



On Tue, Jul 26, 2011 at 5:19 PM, Brandon Wirtz drak...@digerat.com wrote:

 I’m in Portland for OSCon (open source conference by O’Riely) Anyone in the
 area?

 ** **

 Send me a text 650-281-1467 we could grab food, or share a meal table.

 ** **

 -Brandon

 ** **

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Re: GAE starting unnecessary instances

2011-07-26 Thread Santiago Lema
To keep things simple,  is this issue worth worrying about before the
new billing model becomes active ? Or will everything be so different
that the stuff we see know will be different then ?

My instances:
https://skitch.com/smalltech/fcyfd/instances-smallte.ch

Site: smallte.ch
(on http://websmalltech.appspot.com/ )


On 25 juil, 10:33, Johan Euphrosine pro...@google.com wrote:
 What is your setting for 'Max IdleInstances' ?

 Feel free to open a Production issue with you appid if you want me to
 track this specifically.









 On Sat, Jul 23, 2011 at 11:01 AM, Francois Masurel f.masu...@gmail.com 
 wrote:
  Geez, now even some Dynamicinstancesare not used too and stay idle for
  hours (check attachment).
  With the new pricing model this will get really really expensive.
  I hope there is definitely something going wrong.
  Francois

  --
  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/-/Qczx6foLplUJ.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 Johan Euphrosine (proppy)
 Developer Programs Engineer
 Google Developer Relations

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] Move frontend domain name to public backend

2011-07-26 Thread David
I've set up a public backend and it works using the appspot name.  I
currently have a custom domain http://api.mydomain.com pointing to the
frontend application.  How do I move that domain name so it's now
pointing at the public backend I created in the same app?   All I see
in Google Apps is a list of domains for the entire application.  I saw
something about a subdomain like http://something.api.mydomain.com but
I don't want to do that because there are existing users using the
other domain name. I just want to change where it points to.

Any help would be appreciated.
Thanks,
David

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] TransactionFailedError: Is the transaction committed or not?

2011-07-26 Thread Robert Kluin
Well, I generally put revision numbers on my entities.  In my
transctions, before the update, I check that the revision number
currently on the entity matches what I expect.  If it doesn't then I
know the update is out-of-date.

There are other solutions too, depending on the app and data model.


Robert



On Tue, Jul 26, 2011 at 15:03, Joshua Smith joshuaesm...@charter.net wrote:
 On this topic, nobody ever answered this question:

 http://code.google.com/appengine/docs/python/datastore/transactions.html

 First it says, Make sure your transactions are idempotent and then it
 gives an example which isn't.

 I'm not sure it's possible to do the task in that example correctly if you
 cannot tell whether a transaction succeeded or failed when it throws an
 exception. I just tried sketching out a solution that stored a transaction
 ID in the model, but that won't work because there could be multiple
 writers. The whole thing seems rather intractable, and the idea that you
 cannot tell whether a transaction succeeded or failed violates the principle
 of least surprise for anyone who's ever used a database!

 Can some googlers weigh in, and explain how, for example, the example in the
 documentation could be implemented correctly?


 So, can you?
 I think that the idea of making transactions idempotent is nonsense.  I
 don't think it is going to be possible in many cases.
 Either you support transactions, or you don't.  By my reading, GAE doesn't.
 -Joshua
 On Jul 26, 2011, at 3:40 PM, Jose Montes de Oca wrote:

 Hi Pol,
 What this meas is that even if a transaction throws an exception this does
 not means the transaction failed, thats why you need to make your datastore
 transaction idempotent. So if you retry a transaction because it throws an
 exception, your transaction needs to check if the last
 transaction committed successfully or not.
 Best,
 Jose Montes de Oca
 --
 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/-/bm54SrfYFdAJ.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Jibx data binding on GAE

2011-07-26 Thread Robert Kluin
Perhaps this will be of use to you:
http://code.google.com/appengine/docs/java/jrewhitelist.html






On Tue, Jul 26, 2011 at 05:20, Deepak Singh deepaksingh...@gmail.com wrote:
 Hi all,

 I have to use JIBX databinding framework and JIBX/WS in my application.
 So i would like to know that Is Jibx supported by app engine?

 Regards
 Deepak

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Jibx data binding on GAE

2011-07-26 Thread Deepak Singh
Jibx binding is no where mentioned either in whitelist or blacklist.
Then what should i assume ?

On Wed, Jul 27, 2011 at 8:41 AM, Robert Kluin robert.kl...@gmail.comwrote:

 Perhaps this will be of use to you:
 http://code.google.com/appengine/docs/java/jrewhitelist.html






 On Tue, Jul 26, 2011 at 05:20, Deepak Singh deepaksingh...@gmail.com
 wrote:
  Hi all,
 
  I have to use JIBX databinding framework and JIBX/WS in my application.
  So i would like to know that Is Jibx supported by app engine?
 
  Regards
  Deepak
 
  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.
 

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Weird ImportErrors

2011-07-26 Thread Robert Kluin
Hi Ricardo,
  If you only get this with one url then I would suspect something
is wrong with that module.  Could you provide any further details?



Robert






2011/7/15 Ricardo Bánffy rban...@gmail.com:
 Hi folks.

 I am consistently having them despite the libraries being there. It
 seems that something in werkzeug deeply offends GAE. A single URL
 presents this error in the vitamina-01 app. Others with similar
 patterns, don't.

 No module named handlers
 Traceback (most recent call last):
  File .../lib/dist/tipfy/app.py, line 245, in dispatch
    rv = self.handle_exception(request, e)
  File .../lib/dist/tipfy/app.py, line 241, in dispatch
    rv = self.router.dispatch(request)
  File .../lib/dist/tipfy/routing.py, line 89, in dispatch
    self.handlers[handler] = import_string(handler)
  File .../lib/dist/werkzeug/utils.py, line 526, in import_string
    return getattr(__import__(module, None, None, [obj]), obj)
 ImportError: No module named handlers

 I filed a comment at
 http://code.google.com/p/googleappengine/issues/detail?id=3652 because
 I believe this is not a new condition.

 Any ideas? Workarounds?

 --
 Ricardo Bánffy
 http://www.dieblinkenlights.com
 http://twitter.com/rbanffy

 --
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Jibx data binding on GAE

2011-07-26 Thread Robert Kluin
Maybe you should look into what jibx uses, or just try it.








On Tue, Jul 26, 2011 at 23:30, Deepak Singh deepaksingh...@gmail.com wrote:
 Jibx binding is no where mentioned either in whitelist or blacklist.
 Then what should i assume ?

 On Wed, Jul 27, 2011 at 8:41 AM, Robert Kluin robert.kl...@gmail.com
 wrote:

 Perhaps this will be of use to you:
 http://code.google.com/appengine/docs/java/jrewhitelist.html






 On Tue, Jul 26, 2011 at 05:20, Deepak Singh deepaksingh...@gmail.com
 wrote:
  Hi all,
 
  I have to use JIBX databinding framework and JIBX/WS in my application.
  So i would like to know that Is Jibx supported by app engine?
 
  Regards
  Deepak
 
  --
  You received this message because you are subscribed to the Google
  Groups
  Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.
 

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Jibx data binding on GAE

2011-07-26 Thread Deepak Singh
Ok. I will give it a try.

On Wed, Jul 27, 2011 at 10:02 AM, Robert Kluin robert.kl...@gmail.comwrote:

 Maybe you should look into what jibx uses, or just try it.








 On Tue, Jul 26, 2011 at 23:30, Deepak Singh deepaksingh...@gmail.com
 wrote:
  Jibx binding is no where mentioned either in whitelist or blacklist.
  Then what should i assume ?
 
  On Wed, Jul 27, 2011 at 8:41 AM, Robert Kluin robert.kl...@gmail.com
  wrote:
 
  Perhaps this will be of use to you:
  http://code.google.com/appengine/docs/java/jrewhitelist.html
 
 
 
 
 
 
  On Tue, Jul 26, 2011 at 05:20, Deepak Singh deepaksingh...@gmail.com
  wrote:
   Hi all,
  
   I have to use JIBX databinding framework and JIBX/WS in my
 application.
   So i would like to know that Is Jibx supported by app engine?
  
   Regards
   Deepak
  
   --
   You received this message because you are subscribed to the Google
   Groups
   Google App Engine group.
   To post to this group, send email to
 google-appengine@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.com.
   For more options, visit this group at
   http://groups.google.com/group/google-appengine?hl=en.
  
 
  --
  You received this message because you are subscribed to the Google
 Groups
  Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.
 
 
  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.
 

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Duplicate Properties

2011-07-26 Thread Robert Kluin
Hey Kyle,
  It sounds like you've changed your model definition.  Perhaps the
bulkloader is getting the info on properties from the datastore stats
or something.

  The datastore is schemaless, every entity of a given kind could have
different properties or properties with the same name and different
type.  After you changed your types, did you make sure to correct any
existing data (if needed)?



Robert







On Mon, Jul 18, 2011 at 18:09, Kyle Mulka kyle.mu...@gmail.com wrote:
 After I ran create_bulkloader_config, I got this in my bulkloader.yaml
 file:

    # Warning: This property is a duplicate, but with a different
 type.
    # TODO: Edit this transform so only one property with this name
 remains.
    - property: address
      external_name: address
      # Type: PostalAddress Stats: 9 properties of this type in this
 kind.
      import_transform: db.PostalAddress

 This seems like a remnant of a data transformation I did a month or
 two ago. I don't see any and PostalAddress properties in the datastore
 any more, so where is this coming from? Can an entity really have two
 properties with the same name but different types?? And, how would I
 find those entities and remove the extra property?

 --
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] Re: Billing: HR storage vs blobstore

2011-07-26 Thread Robert Kluin
That is correct.






On Thu, Jul 14, 2011 at 15:25, bejayoharen beayoha...@gmail.com wrote:
 So some experimenting and reading the docs more carefully indicates
 that the blobstore pricing is not effected by selecting High
 Replication Datastore, but confirmation would be great.

 bjorn

 On Jul 14, 12:56 pm, bejayoharen beayoha...@gmail.com wrote:
 Hey there,

 If I am using the HR datastore for an app, and I put data in the
 blobstore, does the blobstore get charged at the HR rates? I have
 assumed so, but technically the blobstore and datastore are different
 things and my billing page shows Stored Data and High Replication
 Storage which I can't explain otherwise. The docs appear ambiguous to
 me.

 thanks

 bjorn

 --
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 To post to this group, send email to google-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.