[appengine-java] Capabilities related tests

2010-10-04 Thread Guillaume Laforge
Hi all,

I'd like to be able to test how my application is behaving in the case
of some Capabilities are not enabled.
For example, what happens when Capability.DATASTORE_WRITE has a status
of DISABLED.
I had another look at the testing jar and its various classes, but I
didn't find a way to see whether we could manually set some capability
statuses.
Is this something that is possible?
What are the best practices in the field?

-- 
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
http://www.springsource.com/g2one

-- 
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-j...@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: Looking for a JPA/Entity-Group Tutorial

2010-10-04 Thread Didier Durand
Hi Dave,

try this for explanations on entity groups:
http://code.google.com/appengine/docs/python/datastore/keysandentitygroups.html#Entity_Groups_Ancestors_and_Paths

didier

On Oct 3, 11:59 pm, Dave Hicks dh...@i-hicks.org wrote:
   I'm having problems understanding how to get entities to play nice
 together.  So, I'd like to find a good tutorial on how to work with
 entity groups using JPA.

 My specific issue, right now, is being unable to add a new entity to a
 collection that is held by a parent entity.  When I attempt to add a new
 entity to the collection of children, I always get an error indicating
 that the entity group is incorrect.  I just haven't been able to find
 any information about how to make this work.

 Thanks for any tips/links.
 Dave

-- 
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-j...@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: JDO unique Long ID keys across entity groups

2010-10-04 Thread Fred
Thanks guys! Think I'll just concatenate parent and child ID for
display purposes and keep the rest as it is.

Fred

On 1 Okt., 08:16, John Patterson jdpatter...@gmail.com wrote:
 You can use DatastoreService.allocateIds() to get a range of unique  
 keys that you can then assign to the children.  The kind name can be  
 any old String - not just an existing kind.  This method does not  
 guarantee the ids will be sequential but they will be unique.

 If you really need sequential ids you can use memcache's atomic  
 increment method.  If the value is not found in memcache you can do a  
 query to find the maximum sequence number in the datastore and use the  
 memcache increment method that allows you to specify an initial  
 missing value atomically.

 John

 On 30 Sep 2010, at 17:28, Fred wrote:

  Hi Group,

  I know key ids are only unique across entity groups so what GAE + JDO
  gives me is:
  /Parent[1]/Child[1]
  /Parent[1]/Child[2]
  /Parent[1]/Child[3]

  /Parent[2]/Child[1]
  /Parent[2]/Child[2]

  /Parent[3]/Child[1]

  etc.

  What I need to achieve (aka implement) is a way to assign keys in the
  following fashion:
  /Parent[1]/Child[1]
  /Parent[1]/Child[2]
  /Parent[1]/Child[3]

  /Parent[2]/Child[4]
  /Parent[2]/Child[5]

  /Parent[3]/Child[6]

  etc... so child ids are in sequence across entity groups (or at least
  unique). Does anyone have experience with this or any thoughts on how
  to go about it in a secure fashion?
  I can't seem to come up with a secure way of doing this, but don't
  want to give up on it because it would give my use case a lot of
  querying power.

  Hope someone can help.
  Thanks in advance,
  Fred

  --
  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 
  athttp://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-j...@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: allocateIds performance

2010-10-04 Thread dilbert
I have two classes. The first class contains a reference to the
second. One service request might generate several such pairs. So I
figured that I can batch store them at the end of the service request.
To do that I need to generate ID-s for all the second classes. I
thought that allocateIds was what I needed but from the tests I made
(it sometimes took much longer to execute than other times) I
suspected that it sometimes goes to the datastore. Ideally I would
like to avoid going to the datastore just to generate the Id-s. What
is the best way to accomplish this?

To answer Your second question I haven't had time to play with
AppStats yet. I measured time using System.nanoTime().
Thanks for Your time.

On Oct 1, 10:59 pm, Ikai Lan (Google) ikai.l+gro...@google.com
wrote:
 They're a function of the datastore itself, but they don't create indexes or
 any of the things that are usually associated with entity writes. The worst
 case performance has allocateIds doing a write to a hard disk, but most of
 the time they retrieve data from in-memory caches.

 What are you trying to do? Have you benchmarked this using AppStats?

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

 On Tue, Sep 28, 2010 at 4:19 AM, dilbert dilbert.elbo...@gmail.com wrote:
  How fast are the allocateIds methods from the DatastoreService
  interface? I mean do they hit the datastore?

  --
  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-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@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-j...@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: problem with cache I suppose

2010-10-04 Thread Spiridon Kopicl
Thx Didier.

-- 
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-j...@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] Developing an AppStore for a GWT / App Engine application?

2010-10-04 Thread Ingo Jaeckel
hello everyone,

i want to build an app store for a GWT application. users should open
the app store from within the application, browse through apps and
install them like they are used to it from other app stores e.g. apple
app store or android market. i outlined my ideas about it in the wiki
of my project http://code.google.com/p/honeycrm/wiki/Plugins
(including a more detailed description of the store, apps and sequence
diagrams of the installation process).

- has something like this been done before?
- are there any best practices on this topic?
- is it realistically i.e. a good idea to put source code into the
plugin package (e.g. a zip file) and do the transformations
(compilation of .java - .class using javac and .java - .js using
GWTs compiler)? see
http://code.google.com/p/honeycrm/wiki/Plugins#installation_of_plugins
- can i do this within google app engine or do i have to use another
servlet container e.g. for compilation.

kind regards,
ingo

-- 
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-j...@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] Select query using LIKE

2010-10-04 Thread Ravi Dhanwate
Hi All,

Please provide inputs if we can use LIKE in GQL query or if any
alternative is available for this.

Thanks.
Ravi

-- 
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-j...@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] Select query using LIKE

2010-10-04 Thread John Patterson
Use a GREATER_THAN_OR_EQUAL and a LESS_THAN filter to match a prefix -  
thats the best you can do for a single stored term.  You will need to  
break the term up into multiple n-grams if you want to query for a  
partial match within a term.


On 4 Oct 2010, at 16:25, Ravi Dhanwate wrote:


Hi All,

Please provide inputs if we can use LIKE in GQL query or if any  
alternative is available for this.


Thanks.
Ravi

--
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 
.


--
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-j...@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: Wicket/JPA application works locally but fails when deployed on GAE

2010-10-04 Thread Ian Marshall
Mmmm: my link has been Googlised. If interested, try

  http://www.SwapPlace.co.uk

instead.


On Oct 4, 9:11 am, Ian Marshall ianmarshall...@gmail.com wrote:
 I disagree. I use Wicket and JDO on GAE/J; it works fine for me,
 including no serialisation problems.

 As a working example, I am satisfied with my Wicket/JDO/GAE/J proof-of-
 concept web application at

  www.SwapPlace.co.uk.

 I am using the lessons learnt for my commercial web site development,
 which is coming along nicely too.

 On Oct 3, 9:43 pm, nico nfmelen...@gmail.com wrote:

  Hey! don't use wicket + GAE!!! you will have lot of serialization problems
  and your project will FAIL! you will lose time and money!
  bug:http://code.google.com/p/googleappengine/issues/detail?id=2500

  Bye!
  NM

-- 
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-j...@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: Wicket/JPA application works locally but fails when deployed on GAE

2010-10-04 Thread Ian Marshall
I disagree. I use Wicket and JDO on GAE/J; it works fine for me,
including no serialisation problems.

As a working example, I am satisfied with my Wicket/JDO/GAE/J proof-of-
concept web application at

  www.SwapPlace.co.uk.

I am using the lessons learnt for my commercial web site development,
which is coming along nicely too.


On Oct 3, 9:43 pm, nico nfmelen...@gmail.com wrote:
 Hey! don't use wicket + GAE!!! you will have lot of serialization problems
 and your project will FAIL! you will lose time and money!
 bug:http://code.google.com/p/googleappengine/issues/detail?id=2500

 Bye!
 NM

-- 
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-j...@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: Looking for a JPA/Entity-Group Tutorial

2010-10-04 Thread Ian Marshall
Hi Dave,

Have you tried the GAE/J persistence blog at:

  http://gae-java-persistence.blogspot.com

by Max Ross of Google? I recommend it. It's got examples in both JDO
(which I use) and JPA.

Regards,

Ian


On Oct 3, 10:59 pm, Dave Hicks dh...@i-hicks.org wrote:
   I'm having problems understanding how to get entities to play nice
 together.  So, I'd like to find a good tutorial on how to work with
 entity groups using JPA.

 My specific issue, right now, is being unable to add a new entity to a
 collection that is held by a parent entity.  When I attempt to add a new
 entity to the collection of children, I always get an error indicating
 that the entity group is incorrect.  I just haven't been able to find
 any information about how to make this work.

 Thanks for any tips/links.
 Dave

-- 
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-j...@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] Re: Capabilities related tests

2010-10-04 Thread Don Schwarz
Guillaume, this is a great idea.  Please file an issue in our issue
tracker and we'll follow up.

On Mon, Oct 4, 2010 at 9:50 AM, Guillaume Laforge glafo...@gmail.com wrote:
 And I forgot a complementary question:

 Are there plans to add a mocked capabilities service in the testing jar?

 Guillaume

 On Mon, Oct 4, 2010 at 14:08, Guillaume Laforge glafo...@gmail.com wrote:
 Hi all,

 I'd like to be able to test how my application is behaving in the case
 of some Capabilities are not enabled.
 For example, what happens when Capability.DATASTORE_WRITE has a status
 of DISABLED.
 I had another look at the testing jar and its various classes, but I
 didn't find a way to see whether we could manually set some capability
 statuses.
 Is this something that is possible?
 What are the best practices in the field?

 --
 Guillaume Laforge
 Groovy Project Manager
 Head of Groovy Development at SpringSource
 http://www.springsource.com/g2one




 --
 Guillaume Laforge
 Groovy Project Manager
 Head of Groovy Development at SpringSource
 http://www.springsource.com/g2one

 --
 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-j...@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-j...@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] User Personal page

2010-10-04 Thread x_maras
Hi,


I'm new to the cloud and not an experienced developer.
For a course I have to make a web application using the GAE and I will
also use JAVA for it.


I did a few tutorials but I still have questions that don't let me
start with my project.


In my application I want people to be able to login (I have figured out
how to do it) and I also want to have different data presentation
depending to each user (this I don't know how to do it)
I have experience of php and mysql but it is my first time that I 'm
working with Datastore.


So I would like to know what can separate each user connected with a
google account.
Could I have something like the PHP session for checking if a user is
logged in?
How I could also make relationship in datastore objects like relating 2
sql tables for example.


I would be grateful if someone could give me this information or
provide me some links where I could find answers.

-- 
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-j...@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] Tell data store not to selected index properties on bulkupload

2010-10-04 Thread Maxim Veksler
Hello,

I would like to disable indexing for properties I know I won't be using for
query filtering to save storage space.

I have used bulkuploader to push ~500mb of data into the datastore. These
Entities contain lot's of properties which won't be used for filtering, for
ex. CountryName
I would like to exclude these properties from the indexing, and purge the
existing index.

Not sure about how datastore works, so I'll ask all my questions at once:

Can I disable indexing for properties or does single property indexes always
created without me being able to control it?
Can tell app engine to truncate existing index and not recreate it (to
reclaim the disk space) ?
Can I retrospectively upload an index.yaml file (I did not had this file
before) to delete the unneeded indexes created?
Will this index.yaml configuration will take effect on my next bulkupload
operation as well?

Thanks for helping,
Maxim.

[1] http://code.google.com/appengine/docs/java/configyaml/indexconfig.html

-- 
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-j...@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] Re: Capabilities related tests

2010-10-04 Thread Guillaume Laforge
Hi Don!

Here it is: http://code.google.com/p/googleappengine/issues/detail?id=3821
I hope the description is okay?

Guillaume

On Mon, Oct 4, 2010 at 17:48, Don Schwarz schwa...@google.com wrote:
 Guillaume, this is a great idea.  Please file an issue in our issue
 tracker and we'll follow up.

 On Mon, Oct 4, 2010 at 9:50 AM, Guillaume Laforge glafo...@gmail.com wrote:
 And I forgot a complementary question:

 Are there plans to add a mocked capabilities service in the testing jar?

 Guillaume

 On Mon, Oct 4, 2010 at 14:08, Guillaume Laforge glafo...@gmail.com wrote:
 Hi all,

 I'd like to be able to test how my application is behaving in the case
 of some Capabilities are not enabled.
 For example, what happens when Capability.DATASTORE_WRITE has a status
 of DISABLED.
 I had another look at the testing jar and its various classes, but I
 didn't find a way to see whether we could manually set some capability
 statuses.
 Is this something that is possible?
 What are the best practices in the field?

 --
 Guillaume Laforge
 Groovy Project Manager
 Head of Groovy Development at SpringSource
 http://www.springsource.com/g2one




 --
 Guillaume Laforge
 Groovy Project Manager
 Head of Groovy Development at SpringSource
 http://www.springsource.com/g2one

 --
 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-j...@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-j...@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.





-- 
Guillaume Laforge
Groovy Project Manager
Head of Groovy Development at SpringSource
http://www.springsource.com/g2one

-- 
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-j...@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: Google App Engine MUD

2010-10-04 Thread 番頭Fattom
If the client access server with HTTP, GAE is definitely OK.

But in my experience, Telnet is a better protocol for Mud/BBS.
And I think GAE do not support socket function.

If GAE support WebSocket, it will be a good way to approach that...
(but I am not sure about this feature.)

The most important thing is that it's very difficult to write a MUD
including MUD OS/MUD Lib/MUD compiler...
It's not a easy job.


On 10月2日, 上午11時02分, MLS mlsjunkm...@gmail.com wrote:
 My friend and I are looking to rewrite an old BBS MUD.

 The game is a few thousand rooms and purely text based with commands
 issued by individual players and the game responding and updating
 players stats based on the results of their commands.

 I do not have a programming background, and I'm wondering about the
 best way to approach writing it for GAE.

 Attempting to translate the game to objects, I have the following
 layout:

 World object holds all of the zone objects, zone objects hold rooms,
 room objects hold players, player objects hold inventory objects,
 spellbook objects, and attributes. Then write appropriate methods for
 manipulating the objects appropriately and returning the results.

 I have a few questions though:

 1. Is this a technically correct way of approaching the problem? If
 not, what would be better? (keep in mind, I am not a professional
 programmer by any means. I can find my way if I have something already
 written to make changes, but I've never written anything from scratch
 before). Would I populate all these objects, then write world to the
 db and retrieve it for each player action? I have no idea how servlets
 work to store state, or really how they work in general really.
 Basically, how would I be storing and retrieving stored player
 statistics which are constantly changing many times a second as
 players play the game.

 2. A key issue is the ability to push updates to players in real time,
 and track individuals who are connected. For example, I would like the
 ability to be able to call something like
 room[someroomnum].sendtoall(Some message here); to push a message to
 all players in that room, or player[someplayernum].send(some message
 here); to send replies to players directly.

 I understand this is a complex issue with the stateless http protocol,
 but I have read some about the upcoming channel API which sounds like
 it may offer this ability but I don't know enough to be certain.

 Overall I'm looking to avoid devoting countless hours to this project
 if it is going to be beyond my abilities to complete successfully.

 Thanks very much for your time and consideration,

 MLS

-- 
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-j...@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] Re: Capabilities related tests

2010-10-04 Thread Don Schwarz
Looks good.  Thanks.

On Mon, Oct 4, 2010 at 12:00 PM, Guillaume Laforge glafo...@gmail.com wrote:
 Hi Don!

 Here it is: http://code.google.com/p/googleappengine/issues/detail?id=3821
 I hope the description is okay?

 Guillaume

 On Mon, Oct 4, 2010 at 17:48, Don Schwarz schwa...@google.com wrote:
 Guillaume, this is a great idea.  Please file an issue in our issue
 tracker and we'll follow up.

 On Mon, Oct 4, 2010 at 9:50 AM, Guillaume Laforge glafo...@gmail.com wrote:
 And I forgot a complementary question:

 Are there plans to add a mocked capabilities service in the testing jar?

 Guillaume

 On Mon, Oct 4, 2010 at 14:08, Guillaume Laforge glafo...@gmail.com wrote:
 Hi all,

 I'd like to be able to test how my application is behaving in the case
 of some Capabilities are not enabled.
 For example, what happens when Capability.DATASTORE_WRITE has a status
 of DISABLED.
 I had another look at the testing jar and its various classes, but I
 didn't find a way to see whether we could manually set some capability
 statuses.
 Is this something that is possible?
 What are the best practices in the field?

 --
 Guillaume Laforge
 Groovy Project Manager
 Head of Groovy Development at SpringSource
 http://www.springsource.com/g2one




 --
 Guillaume Laforge
 Groovy Project Manager
 Head of Groovy Development at SpringSource
 http://www.springsource.com/g2one

 --
 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-j...@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-j...@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.





 --
 Guillaume Laforge
 Groovy Project Manager
 Head of Groovy Development at SpringSource
 http://www.springsource.com/g2one

 --
 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-j...@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-j...@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] Batch put for JDO objects

2010-10-04 Thread Ikai Lan (Google)
There is no way to write a JDO object with the low-level API. You need to
convert it into an Entity and save the Entity. Can you post any code?

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



On Sun, Oct 3, 2010 at 5:06 PM, Tommy trb...@gmail.com wrote:

 So is there another way I can perform a batch update since
 makePersistentAll doesn't do it?

 When I tried to do the batch update with the low-level API, the
 DatastoreService put() call didn't save the objects.  It seemed to write
 blank copies of the objects with all the fields set to null.  The second
 write was JDO correctly saving the objects with the modified data.  So there
 was something wrong with how I was saving them with the DatastoreService.
 What's the proper way to write a modified JDO object with the low-level API?

 Thanks.


 --
 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-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@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-j...@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] java.lang.ClassCastException: java.lang.String cannot be cast to java.lang.Long

2010-10-04 Thread Deepika M
Hi,

I have an entity called Node with attributes and the setters and getters for
them:
private int source;
private int graphId;
private SetInteger adjacentNodes;

In my servlet I have the following query:

Query query1= em.createQuery(SELECT x FROM pojos.Node x WHERE
graphId=:graph1Id);
query1.setParameter(graph1Id, g1Id);
ListNode results1 = (ListNode) query1.getResultList();

for(Node result1:results1){

n1=result1.getSource();
*g1AdjacentNodes =(SetInteger)(result1.getAdjacentNodes());*

}

Now, the line marked in bold, throws the exception :

java.lang.ClassCastException: java.lang.String cannot be cast to
java.lang.Long

Can someone please explain how to fix this?

Thanks,
Deepika

-- 
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-j...@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: Tell data store not to selected index properties on bulkupload

2010-10-04 Thread Peter Ondruska
Just define entity properties with indexed=False, e.g.

class Authorization(db.Model):
  domain = db.StringProperty(required=True)
  code = db.StringProperty(required=True, indexed=False)   # 
  update = db.DateTimeProperty(required=True, auto_now_add=True)

and then bulkload

On Oct 4, 6:26 pm, Maxim Veksler ma...@vekslers.org wrote:
 Hello,

 I would like to disable indexing for properties I know I won't be using for
 query filtering to save storage space.

 I have used bulkuploader to push ~500mb of data into the datastore. These
 Entities contain lot's of properties which won't be used for filtering, for
 ex. CountryName
 I would like to exclude these properties from the indexing, and purge the
 existing index.

 Not sure about how datastore works, so I'll ask all my questions at once:

 Can I disable indexing for properties or does single property indexes always
 created without me being able to control it?
 Can tell app engine to truncate existing index and not recreate it (to
 reclaim the disk space) ?
 Can I retrospectively upload an index.yaml file (I did not had this file
 before) to delete the unneeded indexes created?
 Will this index.yaml configuration will take effect on my next bulkupload
 operation as well?

 Thanks for helping,
 Maxim.

 [1]http://code.google.com/appengine/docs/java/configyaml/indexconfig.html

-- 
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-j...@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] I'm not able to deploy my new app due to InvalidClassException: local class incompatible

2010-10-04 Thread Marcel Overdijk
http://janrain4j.appspot.com/
javax.servlet.ServletException: java.lang.RuntimeException:
java.io.InvalidClassException:
com.googlecode.janrain4j.api.engage.response.AbstractEngageResponse;
local class incompatible: stream classdesc serialVersionUID =
-8862811237568844288, local class serialVersionUID =
4656491432091728114
at
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
240)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
542)
at org.mortbay.jetty.HttpConnection
$RequestHandler.headerComplete(HttpConnection.java:923)
at
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
135)
at
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
251)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:6784)
at com.google.apphosting.base.RuntimePb$EvaluationRuntime
$6.handleBlockingRequest(RuntimePb.java:6782)
at
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
398)
at com.google.net.rpc.impl.Server$2.run(Server.java:852)
at
com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
56)
at
com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
576)
at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
at com.google.net.rpc.impl.Server.processRequest(Server.java:369)
at
com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
442)
at
com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
319)
at
com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
290)
at com.google.net.async.Connection.handleReadEvent(Connection.java:
474)
at
com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
831)
at
com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
207)
at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
103)
at
com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
251)
at com.google.apphosting.runtime.JavaRuntime
$RpcRunnable.run(JavaRuntime.java:418)
at java.lang.Thread.run(Thread.java:636)

What should I do?

-- 
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-j...@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] I'm not able to deploy my new app due to InvalidClassException: local class incompatible

2010-10-04 Thread Don Schwarz
This isn't the full stack trace so it's difficult to be sure, but do
you store AbstractEngineResponses in an HTTP session?  If so, it seems
that the class is no longer compatible with the version stored in your
session.

If so, try clearing your cookies.  This will create a new session for you.

For the future you may want to read through:

http://www.javapractices.com/topic/TopicAction.do?Id=45

On Mon, Oct 4, 2010 at 3:33 PM, Marcel Overdijk
marceloverd...@gmail.com wrote:
 http://janrain4j.appspot.com/
 javax.servlet.ServletException: java.lang.RuntimeException:
 java.io.InvalidClassException:
 com.googlecode.janrain4j.api.engage.response.AbstractEngageResponse;
 local class incompatible: stream classdesc serialVersionUID =
 -8862811237568844288, local class serialVersionUID =
 4656491432091728114
        at
 com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:
 240)
        at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 152)
        at org.mortbay.jetty.Server.handle(Server.java:326)
        at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:
 542)
        at org.mortbay.jetty.HttpConnection
 $RequestHandler.headerComplete(HttpConnection.java:923)
        at
 com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:
 76)
        at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
        at
 com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:
 135)
        at
 com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:
 251)
        at com.google.apphosting.base.RuntimePb$EvaluationRuntime
 $6.handleBlockingRequest(RuntimePb.java:6784)
        at com.google.apphosting.base.RuntimePb$EvaluationRuntime
 $6.handleBlockingRequest(RuntimePb.java:6782)
        at
 com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:
 24)
        at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:
 398)
        at com.google.net.rpc.impl.Server$2.run(Server.java:852)
        at
 com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:
 56)
        at
 com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:
 576)
        at com.google.net.rpc.impl.Server.startRpc(Server.java:807)
        at com.google.net.rpc.impl.Server.processRequest(Server.java:369)
        at
 com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:
 442)
        at
 com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:
 319)
        at
 com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:
 290)
        at com.google.net.async.Connection.handleReadEvent(Connection.java:
 474)
        at
 com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java:
 831)
        at
 com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java:
 207)
        at com.google.net.async.EventDispatcher.loop(EventDispatcher.java:
 103)
        at
 com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java:
 251)
        at com.google.apphosting.runtime.JavaRuntime
 $RpcRunnable.run(JavaRuntime.java:418)
        at java.lang.Thread.run(Thread.java:636)

 What should I do?

 --
 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-j...@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-j...@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] Object references imply ownership?

2010-10-04 Thread Dave Hicks
 I'm using JPA, and I'm having a really tough time getting around this 
problem.  It seems that when I try to refer to an object by way of a 
@ManyToOne, somehow DataNucleus wants to assume some kind of ownership 
and throws an exception.


I have three kinds of objects:  Person, Book, Rating.  Person and Book 
objects are independent of one another and created independently.  When 
a person rates a Book, a new Rating object is created and added to a set 
of Ratings owned by the Person.  The Rating object has a reference to 
the Book.  Here are the classes (each extends a superclass that contains 
the @Id element):


class Person extends BasicEntity {
private String email;

@OneToMany(mappedBy=person, cascade=CascadeType.All, 
fetch=FetchType.LAZY)

private SetRating ratings;
}

class Book extends BasicEntity {
private String name;
}

class Rating extends BasicEntity {
@ManyToOne(fetch=FetchType.LAZY)
private Person person;

@ManyToOne(fetch=FetchType.LAZY)
private Book book;

private Integer value;
}

I get the following exception when I attempt to add such a Rating to a 
Person:
org.springframework.orm.jpa.JpaSystemException: Detected attempt to 
establish Person(1)/Rating(3) as the parent of Book(2) but the entity 
identified by Book(2) has already been persisted without a parent.  A 
parent cannot be established or changed once an object has been persisted.


What gives?  Is it not permitted to refer to objects in this way?  I've 
been using this technique in JPA for years.


Thanks,
Dave

--
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-j...@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: Select query using LIKE

2010-10-04 Thread effpe
This test worked for me


Query query = pm.newQuery(Employee.class);
query.setFilter(lastName.startsWith(lastNameParam));
query.setOrdering(lastName, firstName, hireDate desc);
query.declareParameters(String lastNameParam);
ListEmployee results = (ListEmployee) query.execute(lastname);
if (results.size()0) {
for (Employee e : results) { //e
}



the .startsWith(...) was in effect the same as .matches(...) because I
was NOT allowed to have wildchars as a prefix anyway 

-- 
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-j...@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] Getting a LOT of mysterious 500 responses

2010-10-04 Thread Keith Lea
Hi, on our tiny little web service http://findbugs-cloud.appspot.com,
we're getting a whole lot of 500 responses, with a mysterious message.
It started a few months ago and has slowly but steadily gotten worse
since. Since a 500 response makes our continuous build fail, it's
getting irritating...

Request was aborted after waiting too long to attempt to service your
request. This may happen sporadically when the App Engine serving
cluster is under unexpectedly high or uneven load. If you see this
message frequently, please contact the App Engine team.

Also irritating is that these only show up as warnings so sometimes I
don't even notice they're happening.


Any idea what's going on? Are we just on a bad cluster? Can we get
moved somehow?

-- 
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-j...@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: Downloading application logs from app engine

2010-10-04 Thread Matthew Blain
You can download them using the --severity flag
http://code.google.com/appengine/docs/java/tools/uploadinganapp.html#Command_Line_Arguments

On Oct 2, 5:25 am, Vikas Hazrati vhazr...@gmail.com wrote:
 I guess copy paste is the only way out ;)

 On Sep 30, 5:45 pm, Vikas Hazrati vhazr...@gmail.com wrote:



  I am trying to download the application logs from the app engine but
  with the command that I am using

  appcfg.sh request_logs myapp/war 0051.txt

  I am able to get the app engine logs and not the ones that I get when
  i expand the logs. So in a nutshell

  instead of just this as a part of download

  09-30 04:58AM 40.954 / 302 24240ms 22236cpu_ms 1080api_cpu_ms 0kb
  Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.3 (KHTML, like
  Gecko) Chrome/6.0.472.63 Safari/534.3,gzip(gfe)

  I would like to get the following logs which i see when i expand the
  above log in the admin console

  09-30 04:58AM 40.954 / 302 24240ms 22236cpu_ms 1080api_cpu_ms 0kb
  Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/534.3 (KHTML, like
  Gecko) Chrome/6.0.472.63 Safari/534.3,gzip(gfe)

  [myappid/0-0-5-1.345167134118388057].stdout: 2010-09-30 11:58:45,996
  INFO  com.myapp.util.admin.LogLoadingRequest - GAE ALERT !!
  Loading request occuring.

  I 09-30 04:58AM 47.802 javax.servlet.ServletContext log: Initializing
  Spring root WebApplicationContext

  Regards | Vikas

-- 
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-j...@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] Good wurfl example for mobile detection on app engine?

2010-10-04 Thread Shaun
Does any know of a good example and/or library to do WURFL mobile
detection on App Engine or is there a better way to do it? Based on
the users device I would like to serve a different interface

Thanks!

Shaun

-- 
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-j...@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] Will I be able to get more apps if needed?

2010-10-04 Thread Gal Dolber
-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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-j...@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] Object references imply ownership?

2010-10-04 Thread Hariharan Anantharaman
Hi,
I have encountered similar error using JDO long time back. I firmly believe
that if you use @ManyToOne or something it means a relationship amongst
them.

Though I don't remember exactly what I did ,Coupleof observations
1. In the rating class. Add annotation of rederenced by attribute in
annotation. Or a similar annotation needs to be done in Book class.

2. Person has a list of rating and rating again has a person. Are you
planning to query by rating entity independently? I think this design tells
JPA that a person indirectly owns a book.

Thanks
Hari

On Oct 5, 2010 2:54 AM, Dave Hicks dh...@i-hicks.org wrote:

 I'm using JPA, and I'm having a really tough time getting around this
problem.  It seems that when I try to refer to an object by way of a
@ManyToOne, somehow DataNucleus wants to assume some kind of ownership and
throws an exception.

I have three kinds of objects:  Person, Book, Rating.  Person and Book
objects are independent of one another and created independently.  When a
person rates a Book, a new Rating object is created and added to a set of
Ratings owned by the Person.  The Rating object has a reference to the Book.
 Here are the classes (each extends a superclass that contains the @Id
element):

class Person extends BasicEntity {
   private String email;

   @OneToMany(mappedBy=person, cascade=CascadeType.All,
fetch=FetchType.LAZY)
   private SetRating ratings;
}

class Book extends BasicEntity {
   private String name;
}

class Rating extends BasicEntity {
   @ManyToOne(fetch=FetchType.LAZY)
   private Person person;

   @ManyToOne(fetch=FetchType.LAZY)
   private Book book;

   private Integer value;
}

I get the following exception when I attempt to add such a Rating to a
Person:
org.springframework.orm.jpa.JpaSystemException: Detected attempt to
establish Person(1)/Rating(3) as the parent of Book(2) but the entity
identified by Book(2) has already been persisted without a parent.  A parent
cannot be established or changed once an object has been persisted.

What gives?  Is it not permitted to refer to objects in this way?  I've been
using this technique in JPA for years.

Thanks,
Dave

-- 
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-j...@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@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-j...@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: Google App Engine MUD

2010-10-04 Thread MLS
Hi Fattom,

Thanks for your response. I don't think most browsers support
Websockets quite yet, and I don't want to tie people to a specific
one.

What is the most challenging part of writing a MUD for http aside from
real time delivery, which I'm hoping Ajax push solves? Aside from that
I believe I can write the methods required to produce the output that
is expected from the various commands in the game I plan to implement,
and can manage player attributes with player objects and back them
with a nice database.

I could certainly be missing something crucial though, so please let
me know. To me it sounds much more difficult to write a client and
server using telnet.


Thanks,

MLS


On Oct 3, 10:55 pm, 番頭Fattom fattom.rid...@gmail.com wrote:
 If the client access server with HTTP, GAE is definitely OK.

 But in my experience, Telnet is a better protocol for Mud/BBS.
 And I think GAE do not support socket function.

 If GAE support WebSocket, it will be a good way to approach that...
 (but I am not sure about this feature.)

 The most important thing is that it's very difficult to write a MUD
 including MUD OS/MUD Lib/MUD compiler...
 It's not a easy job.

 On 10月2日, 上午11時02分, MLS mlsjunkm...@gmail.com wrote:

  My friend and I are looking to rewrite an old BBS MUD.

  The game is a few thousand rooms and purely text based with commands
  issued by individual players and the game responding and updating
  players stats based on the results of their commands.

  I do not have a programming background, and I'm wondering about the
  best way to approach writing it for GAE.

  Attempting to translate the game to objects, I have the following
  layout:

  World object holds all of the zone objects, zone objects hold rooms,
  room objects hold players, player objects hold inventory objects,
  spellbook objects, and attributes. Then write appropriate methods for
  manipulating the objects appropriately and returning the results.

  I have a few questions though:

  1. Is this a technically correct way of approaching the problem? If
  not, what would be better? (keep in mind, I am not a professional
  programmer by any means. I can find my way if I have something already
  written to make changes, but I've never written anything from scratch
  before). Would I populate all these objects, then write world to the
  db and retrieve it for each player action? I have no idea how servlets
  work to store state, or really how they work in general really.
  Basically, how would I be storing and retrieving stored player
  statistics which are constantly changing many times a second as
  players play the game.

  2. A key issue is the ability to push updates to players in real time,
  and track individuals who are connected. For example, I would like the
  ability to be able to call something like
  room[someroomnum].sendtoall(Some message here); to push a message to
  all players in that room, or player[someplayernum].send(some message
  here); to send replies to players directly.

  I understand this is a complex issue with the stateless http protocol,
  but I have read some about the upcoming channel API which sounds like
  it may offer this ability but I don't know enough to be certain.

  Overall I'm looking to avoid devoting countless hours to this project
  if it is going to be beyond my abilities to complete successfully.

  Thanks very much for your time and consideration,

  MLS

-- 
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-j...@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] Object references imply ownership?

2010-10-04 Thread Dave Hicks

 Hi Hari,

I don't follow what you're saying in #1 below.

#2 - This is just the way I have always modeled classes using JPA.  In a 
relational database, the @ManyToOne would cause the key of the owning 
entity to be stored in the row.  In this case, the Rating table would 
have a column to hold the Person_Id.  It's unclear to me how this works 
with the DataNucleus datastore in GAE.  Here's an example of a similar 
relationship that is supposed to work in GAE:  
http://gae-java-persistence.blogspot.com/2009/10/creating-bidrectional-owned-one-to-many.html  
Obviously, the difference is that I have another @ManyToOne that 
references another entity type.


I've always felt like I had a firm handle on JPA, but using it with GAE 
has been a very discouraging endeavor, so far.

Thanks for the feedback,
Dave


On 10/04/2010 11:56 PM, Hariharan Anantharaman wrote:


Hi,
I have encountered similar error using JDO long time back. I firmly 
believe that if you use @ManyToOne or something it means a 
relationship amongst them.


Though I don't remember exactly what I did ,Coupleof observations
1. In the rating class. Add annotation of rederenced by attribute in 
annotation. Or a similar annotation needs to be done in Book class.


2. Person has a list of rating and rating again has a person. Are you 
planning to query by rating entity independently? I think this design 
tells JPA that a person indirectly owns a book.


Thanks
Hari

On Oct 5, 2010 2:54 AM, Dave Hicks dh...@i-hicks.org
mailto:dh...@i-hicks.org wrote:

 I'm using JPA, and I'm having a really tough time getting around
this problem.  It seems that when I try to refer to an object by
way of a @ManyToOne, somehow DataNucleus wants to assume some kind
of ownership and throws an exception.

I have three kinds of objects:  Person, Book, Rating.  Person and
Book objects are independent of one another and created
independently.  When a person rates a Book, a new Rating object is
created and added to a set of Ratings owned by the Person.  The
Rating object has a reference to the Book.  Here are the classes
(each extends a superclass that contains the @Id element):

class Person extends BasicEntity {
   private String email;

   @OneToMany(mappedBy=person, cascade=CascadeType.All,
fetch=FetchType.LAZY)
   private SetRating ratings;
}

class Book extends BasicEntity {
   private String name;
}

class Rating extends BasicEntity {
   @ManyToOne(fetch=FetchType.LAZY)
   private Person person;

   @ManyToOne(fetch=FetchType.LAZY)
   private Book book;

   private Integer value;
}

I get the following exception when I attempt to add such a Rating
to a Person:
org.springframework.orm.jpa.JpaSystemException: Detected attempt
to establish Person(1)/Rating(3) as the parent of Book(2) but the
entity identified by Book(2) has already been persisted without a
parent.  A parent cannot be established or changed once an object
has been persisted.

What gives?  Is it not permitted to refer to objects in this way?
 I've been using this technique in JPA for years.

Thanks,
Dave

-- 
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
mailto:google-appengine-java@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine-java+unsubscr...@googlegroups.com
mailto:google-appengine-java%2bunsubscr...@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-j...@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-j...@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] Object references imply ownership?

2010-10-04 Thread Hariharan Anantharaman
On point #1, there is a way in JdO to say which attributes forms a relation
or forms a join between two entities. It need not be the primarykey always.

Also I don't think having more than 1 @ManyToOne relation should be a
problem. I might need to look at my app code in the evening to see how did I
solve the problem.

Thanks
Hari
http://harianantha.in

On Oct 5, 2010 9:52 AM, Dave Hicks dh...@i-hicks.org wrote:

 Hi Hari,

I don't follow what you're saying in #1 below.

#2 - This is just the way I have always modeled classes using JPA.  In a
relational database, the @ManyToOne would cause the key of the owning entity
to be stored in the row.  In this case, the Rating table would have a
column to hold the Person_Id.  It's unclear to me how this works with the
DataNucleus datastore in GAE.  Here's an example of a similar relationship
that is supposed to work in GAE:
http://gae-java-persistence.blogspot.com/2009/10/creating-bidrectional-owned-one-to-many.html
Obviously, the difference is that I have another @ManyToOne that references
another entity type.

I've always felt like I had a firm handle on JPA, but using it with GAE has
been a very discouraging endeavor, so far.
Thanks for the feedback,
Dave

On 10/04/2010 11:56 PM, Hariharan Anantharaman wrote:   Hi,  I have
encountered similar error ...

-- You received this message because you are subscribed to the Google Groups
Google App Engine fo...

-- 
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-j...@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] Good wurfl example for mobile detection on app engine?

2010-10-04 Thread Gal Dolber
Hi, I used it long time ago, but not in appengine.
You need to import the database and tweak a bit the java api.
But it should work ok

Best

On Mon, Oct 4, 2010 at 7:16 PM, Shaun shaunc...@gmail.com wrote:

 Does any know of a good example and/or library to do WURFL mobile
 detection on App Engine or is there a better way to do it? Based on
 the users device I would like to serve a different interface

 Thanks!

 Shaun

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




-- 
Guit: Elegant, beautiful, modular and *production ready* gwt applications.

http://code.google.com/p/guit/

-- 
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-j...@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.



[google-appengine] Re: Task Queue not working in Eclipse plugin (on Mac)

2010-10-04 Thread Marc Hacker
Same on Windows

-- 
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-appeng...@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] Data partitioning by entity name conflicts with App engine custom index architecture

2010-10-04 Thread Nick Johnson (Google)
Hi,

There is no need to partition your datastore. If you're concerned about
performance, don't be - App Engine can handle as much data as you can throw
at it. If you're concerned about isolation, you should look into namespaces,
as Tim Hoffman suggests.

-Nick Johnson

On Sun, Oct 3, 2010 at 10:37 PM, DutrowLLC dutrow...@gmail.com wrote:

 I chose to partition data between different users by adding a post-fix to
 all entity names.  So instead of having a PhoneCall entity, I had
 PhoneCall_r35wk, with the random sequence r35wk corresponding to a
 particular user.  There could be thousands of PhoneCall_ entities,
 each with a different name.  I figured this would be a good architecture
 since user's data would be completely partitioned.  Also, I would eliminate
 an equality filter for each query (ie: userId EQUALS 123456)

 It turns out this architecture seems to conflict with another aspect of App
 Engine that was seemingly unrelated.  And thats the need for adding custom
 indexes through the index.yaml file (or executing each query on the dev
 server).  For a while, I had no need for custom indexes, but recently I had
 need to execute this query which seemed to require a custom index:
 Pseudo-code:
 SELECT * FROM CallRecord_27sjakla
 WHERE callerId IN [703-678-9832, 540-892-2191]   // number is a String
 ORDER BY startTime DESC  // startTime is a Long integer

 This problem of needing to manually pre-define custom indexes for entity
 names that are not pre-determined could be solved if there was a way for the
 application to programmatically add to the index.yaml file (I did not see
 documentation for this).  However, even in this case, I have concerns that
 the index.yaml file would grow to become very big and cause problems with
 the application taking too long to initialize.

 Is there another way that I should be handling this situation?  Is there
 are better way to add these custom indexes?  Should I be partitioning user
 data differently?




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




-- 
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

-- 
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-appeng...@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] Googlegroup authorization

2010-10-04 Thread raya
I've checked Users Python API and as I understand a user is a single
google user. Is there a solution how to authorize any user from
specified google group ?

-- 
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-appeng...@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] CMS integration into GAE application

2010-10-04 Thread Mitch Christow
Hi folks,

I am in the middle of building a GAE based app. One thing I would like
to add to it is a CMS library/framework that would allow me to
integrate content management capabilities into my program. Does anyone
have a suggestion which CMS can run on top of GAE and integrate into a
custom developed GAE app? Thanks for your help.

Mitch

-- 
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-appeng...@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: CMS integration into GAE application

2010-10-04 Thread Prashant
i am working on a java based cms, claymushttps://code.google.com/p/claymus/.
unfortunately, a lot of work still has to be done on front-end b4 it could
be used as a CMS. back-end is almost done and ready to be used as framework
but it is still totally undocumented :( .

On 4 October 2010 12:34, Tim Hoffman zutes...@gmail.com wrote:

 You should probably mention java or python in your requirements ;-)

 T

 On Oct 4, 1:27 pm, Mitch Christow mitch.chris...@gmail.com wrote:
  Hi folks,
 
  I am in the middle of building a GAE based app. One thing I would like
  to add to it is a CMS library/framework that would allow me to
  integrate content management capabilities into my program. Does anyone
  have a suggestion which CMS can run on top of GAE and integrate into a
  custom developed GAE app? Thanks for your help.
 
  Mitch

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




-- 
Prashant
www.claymus.com

-- 
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-appeng...@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] deploy just one file update.

2010-10-04 Thread Nick Johnson (Google)
Hi John,

The upload tool (appcfg) only updates modified files. Files that have been
uploaded previously are checked for modifications, but not uploaded.

-Nick Johnson

On Mon, Oct 4, 2010 at 11:57 AM, John V Denley
johnvden...@googlemail.comwrote:

 I cant seem to find any information anywhere about how to deploy/
 upload just one file.

 Its possible I'm not looking in the right places, but also I use
 eclipse so I have never had to do any manual manipulation of any
 files.

 The Simplest example of what I want to do is to simply update the
 standard.css file with a new setting, without having to deploy the
 entire application.

 Or equally I might need to make a small change to my appname.html
 file but without having to deploy the entire application.

 This is similar to doing an FTP to my hosting server, but as I say I
 cant seem to find any information about how to do this with app
 engine!

 Any help pointing me in the right direction on this would be greatly
 appreciated

 Thanks,
 J

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




-- 
Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. ::
Registered in Dublin, Ireland, Registration Number: 368047
Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
368047

-- 
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-appeng...@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: The API call taskqueue.BulkAdd() was explicitly cancelled.

2010-10-04 Thread Col Wilson
Stats Page now says Elevated:

http://code.google.com/status/appengine/

On Oct 4, 8:17 am, Col Wilson terse...@gmail.com wrote:
 I'm getting very high levels of Errors of this sort while trying to
 execute queued tasks:

 The API call taskqueue.BulkAdd() was explicitly cancelled.

 I have slowed the queue right down and reduced the possible size of
 any db.puts and still they come.

 I can't believe that nobody has reported this at any time ever, but
 still when I search the group I get no results. There is a Japanese
 group talking about it 
 though:http://groups.google.co.jp/group/google-appengine/browse_thread/threa...

 Help someone please.

-- 
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-appeng...@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: CMS integration into GAE application

2010-10-04 Thread Mitch Christow
Hi Tim,

My apologies; I did indeed forget to say. I am using Java for the
development.

Mitch

-- 
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-appeng...@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] deploy just one file update.

2010-10-04 Thread John Denley
Hi Nick,

Thanks, I actually just noticed that on my last update. So my question
really should have been, how can I run the deploy without running the
compile bit in eclipse (or out of eclipse) if thats whats needed?

so on the following log entries, how can I only do the bit from Uploading 1
files. onwards?:

...snip...
Linking into C:\eclipse\iDeBanet\war\Register.
   Link succeeded
   Compilation succeeded -- 25.152s
Creating staging directory
Scanning for jsp files.
Compiling jsp files.
Scanning files on local disk.
Scanned 250 files.
Scanned 500 files.
Scanned 750 files.
Initiating update.
Cloning 195 static files.
Cloned 100 files.
Cloning 574 application files.
Cloned 100 files.
Cloned 200 files.
Cloned 300 files.
Cloned 400 files.
Cloned 500 files.
Uploading 1 files.
Uploaded 1 files.
Initializing precompilation...
Deploying new version.
Will check again in 1 seconds.
Will check again in 2 seconds.
Will check again in 4 seconds.
Will check again in 8 seconds.
Will check again in 16 seconds.
Will check again in 32 seconds.
Will check again in 60 seconds.
Closing update: new version is ready to start serving.
Uploading index definitions.
Uploading cron jobs.
Uploading task queues.
Deployment completed successfully


On 4 October 2010 13:12, Nick Johnson (Google) nick.john...@google.comwrote:

 Hi John,

 The upload tool (appcfg) only updates modified files. Files that have been
 uploaded previously are checked for modifications, but not uploaded.

 -Nick Johnson

 On Mon, Oct 4, 2010 at 11:57 AM, John V Denley johnvden...@googlemail.com
  wrote:

 I cant seem to find any information anywhere about how to deploy/
 upload just one file.

 Its possible I'm not looking in the right places, but also I use
 eclipse so I have never had to do any manual manipulation of any
 files.

 The Simplest example of what I want to do is to simply update the
 standard.css file with a new setting, without having to deploy the
 entire application.

 Or equally I might need to make a small change to my appname.html
 file but without having to deploy the entire application.

 This is similar to doing an FTP to my hosting server, but as I say I
 cant seem to find any information about how to do this with app
 engine!

 Any help pointing me in the right direction on this would be greatly
 appreciated

 Thanks,
 J

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




 --
 Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd.
 :: Registered in Dublin, Ireland, Registration Number: 368047
 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number:
 368047

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@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-appeng...@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 just one file update.

2010-10-04 Thread John V Denley
I cant seem to find any information anywhere about how to deploy/
upload just one file.

Its possible I'm not looking in the right places, but also I use
eclipse so I have never had to do any manual manipulation of any
files.

The Simplest example of what I want to do is to simply update the
standard.css file with a new setting, without having to deploy the
entire application.

Or equally I might need to make a small change to my appname.html
file but without having to deploy the entire application.

This is similar to doing an FTP to my hosting server, but as I say I
cant seem to find any information about how to do this with app
engine!

Any help pointing me in the right direction on this would be greatly
appreciated

Thanks,
J

-- 
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-appeng...@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: Latency related follow up

2010-10-04 Thread J
kg,

I have been using GAE for a couple of years now and this is a highly
unusual situation. GAE has been a very successful product IMHO.

Whether recent events are a one-time situation or whether GAE has
become a victim of its own success is hard to say.

Speaking only for myself and my fledgling business, I intend to stick
with it.

As for what one can do, we do a fair amount of exception handling and
retry in the code. When testing, we go to the extent of injecting
random datastore errors and making sure the integrity of the data is
preserved. It gets expensive to do so, and we don't do as much as I
would like, but the investment has been worth it.

HTH.

On Oct 3, 10:42 pm, kg kang...@gmail.com wrote:
 My service launched on 9/14 just the day after 9/13 when the
 maintenance happened.  20% of my requests fail due to the following
 error today...And this just happens every day.

 W 10-03 07:02PM 45.207
 Request was aborted after waiting too long to attempt to service your
 request. This may happen sporadically when the App Engine serving
 cluster is under unexpectedly high or uneven load. If you see this
 message frequently, please contact the App Engine team.

 I have seen Google acknowledge that the issue is still ongoing and
 that they are working to fix it, which is certainly good to hear.

 My question though is:
 Are these errors a fact of life on GAE or just this worse since 9/13
 maintenance?

 It pains to me such a powerful platform ridden with these issues and
 kicking myself here but I am hoping to hear it is after 9/13
 maintenance.

 Is there anything an app developer could do to mitigate this issue
 other than retrying (which is usually end users really doing the
 trying or may simply abandon your service)?

-- 
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-appeng...@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: CMS integration into GAE application

2010-10-04 Thread Tim Hoffman
You should probably mention java or python in your requirements ;-)

T

On Oct 4, 1:27 pm, Mitch Christow mitch.chris...@gmail.com wrote:
 Hi folks,

 I am in the middle of building a GAE based app. One thing I would like
 to add to it is a CMS library/framework that would allow me to
 integrate content management capabilities into my program. Does anyone
 have a suggestion which CMS can run on top of GAE and integrate into a
 custom developed GAE app? Thanks for your help.

 Mitch

-- 
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-appeng...@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: CMS integration into GAE application

2010-10-04 Thread Tim Hoffman
Hi Mitch.

It's ok, just I don't have anything to add as I don't use java and not
familiar with any java cms for appengine.
I am sure there are some out there though.

T

On Oct 4, 8:26 pm, Mitch Christow mitch.chris...@gmail.com wrote:
 Hi Tim,

 My apologies; I did indeed forget to say. I am using Java for the
 development.

 Mitch

-- 
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-appeng...@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] Request was aborted after waiting too long to attempt to service your request.

2010-10-04 Thread sahid
Hello,

I have see my warning log and i have a multiple of


Request was aborted after waiting too long to attempt to service your
request.
This may happen sporadically when the App Engine serving cluster is
under unexpectedly high or uneven load.
If you see this message frequently, please contact the App Engine
team.


This exception comes from different paths.
So i contact the App Engin team...

APPID: devel-inchallah

Cordialy,
Sahid

-- 
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-appeng...@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: appcfg.py download_data [INFO] Authentication Failed

2010-10-04 Thread Hugo Rodger-Brown
Same here - I've tried creating admins from email addresses within the
apps domain, and outside, but nothing works. I can upload new apps
just fine. Using 1.3.7 of the SDK.

On Sep 26, 11:20 pm, Vladimir Prudnikov pru...@gmail.com wrote:
 The same problem for me. I'm trying to download data. Authentication
 failed each time. I tried 10 times or more. I'm sure too that I enter
 correct email and password (in another tab I deploy to the same app
 with the same credentials at the same time).

 Version 1.3.7 (1.3.7.891)

 On Sep 1, 12:46 am, morphium_hidrochloricum trone...@gmail.com
 wrote:



  Nothing changed after I upgraded to 1.3.7.

-- 
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-appeng...@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] [mapreduce] Can i run the tasks via code?

2010-10-04 Thread BarrenTeam
We actually run the jobs manually.
Is there anyway to launch them automatically? For exemple  through
servlet?

-- 
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-appeng...@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: Latency related follow up

2010-10-04 Thread Kangesh Gunaseelan
Hi,

Thanks for your feedback. That is good to know.

I think I am handling errors reasonably well but there is only so much an
app developer can do to handle the errors.  Ultimately, it is the end user
that will need to resolve the error.

Here is an example:
When an end user tries to post a message (which talks to GAE custom
service), sometimes an error occurs.  I am able to handle this error by
either queuing for offline sending or just letting the user to know to
retry.  The latter case is in and of itself is bad.   Same feeling that I
would have when I compose a long mail in Gmail and SEND fails and asks me to
retry.

Here is another scenario that I am even concerned about:
I want to notify users that they have a new message. I am thinking of
employing hooks from within GAE to notify users that there is a new message
(via a payload that indicates the message identifier).
Now, when the users try to open the app and see what the messages were, they
ought to get the new messages.  Well, based on the GAE errors (i.e request
aborted errors), that is going to be a hit and miss.   When this happens,
the users are going to get annoyed and feel that they are being spammed or
tricked into accessing the application.

Google Folks,
I understand that you are working towards resolving this.  Any further
updates on when you will be able to resolve this.   This is probably a no
but I will ask any way - as a GAE developer, is there anything that we can
do to avoid Request aborted error scenarios?
Are you planning on reserving instances type model to get around this?

Thanks.


On Mon, Oct 4, 2010 at 4:25 AM, J j.si...@earlystageit.com wrote:

 kg,

 I have been using GAE for a couple of years now and this is a highly
 unusual situation. GAE has been a very successful product IMHO.

 Whether recent events are a one-time situation or whether GAE has
 become a victim of its own success is hard to say.

 Speaking only for myself and my fledgling business, I intend to stick
 with it.

 As for what one can do, we do a fair amount of exception handling and
 retry in the code. When testing, we go to the extent of injecting
 random datastore errors and making sure the integrity of the data is
 preserved. It gets expensive to do so, and we don't do as much as I
 would like, but the investment has been worth it.

 HTH.

 On Oct 3, 10:42 pm, kg kang...@gmail.com wrote:
  My service launched on 9/14 just the day after 9/13 when the
  maintenance happened.  20% of my requests fail due to the following
  error today...And this just happens every day.
 
  W 10-03 07:02PM 45.207
  Request was aborted after waiting too long to attempt to service your
  request. This may happen sporadically when the App Engine serving
  cluster is under unexpectedly high or uneven load. If you see this
  message frequently, please contact the App Engine team.
 
  I have seen Google acknowledge that the issue is still ongoing and
  that they are working to fix it, which is certainly good to hear.
 
  My question though is:
  Are these errors a fact of life on GAE or just this worse since 9/13
  maintenance?
 
  It pains to me such a powerful platform ridden with these issues and
  kicking myself here but I am hoping to hear it is after 9/13
  maintenance.
 
  Is there anything an app developer could do to mitigate this issue
  other than retrying (which is usually end users really doing the
  trying or may simply abandon your service)?

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@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-appeng...@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] [mapreduce] Can i run the tasks via code?

2010-10-04 Thread Eli Jones
You could use cron jobs:

http://code.google.com/appengine/docs/python/config/cron.html
http://code.google.com/appengine/docs/python/config/cron.html

On Mon, Oct 4, 2010 at 6:40 AM, BarrenTeam barren8...@gmail.com wrote:

 We actually run the jobs manually.
 Is there anyway to launch them automatically? For exemple  through
 servlet?

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@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-appeng...@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] [mapreduce] Can i run the tasks via code?

2010-10-04 Thread Eli Jones
Nevermind.. is see that you mean mapreduce jobs.

I guess you could read the code they have for the page that lets you
manually start the jobs.. then.. if you're lucky and clicking run really
just fires off a call to a handler.. you can find out the parameters.. and
configure a cron job to do the same thing.

On Mon, Oct 4, 2010 at 1:40 PM, Eli Jones eli.jo...@gmail.com wrote:

 You could use cron jobs:

 http://code.google.com/appengine/docs/python/config/cron.html
 http://code.google.com/appengine/docs/python/config/cron.html

 On Mon, Oct 4, 2010 at 6:40 AM, BarrenTeam barren8...@gmail.com wrote:

 We actually run the jobs manually.
 Is there anyway to launch them automatically? For exemple  through
 servlet?

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@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-appeng...@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: Data partitioning by entity name conflicts with App engine custom index architecture

2010-10-04 Thread DutrowLLC
Thanks guys, that clears things up pretty well.

-- 
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-appeng...@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: Namespace API for Staging

2010-10-04 Thread Ikai Lan (Google)
There are reasons why you may want a production instance with test data: for
instance, if you are testing a client that depends on a domain name or some
other operation where you need the prod instance but can't use real data.
Namespaces are a tool in a toolbelt and an option, not the recommendation
approach.

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



On Sat, Oct 2, 2010 at 7:56 AM, MLTrim michele.trimar...@gmail.com wrote:

 Thanks Ikai :)
 I opted for a separate app ID.
 It's curious that Google itself is suggesting to use Namespaces for
 Testing and Production.

 http://code.google.com/intl/it-IT/appengine/docs/python/multitenancy/namespaces.html

 On Sep 30, 11:45 pm, Ikai Lan (Google) 
 ikai.l+gro...@google.comikai.l%2bgro...@google.com
 
 wrote:
  I have mixed feelings about using namespaces for a staging instance. Why
 not
  just use a separate app ID? It's not a violation of the terms of service,
  and you can also test cron jobs as well.
 
  --
  Ikai Lan
  Developer Programs Engineer, Google App Engine
  Blogger:http://googleappengine.blogspot.com
  Reddit:http://www.reddit.com/r/appengine
  Twitter:http://twitter.com/app_engine
 
  On Wed, Sep 29, 2010 at 1:09 AM, MLTrim michele.trimar...@gmail.com
 wrote:
   Hi
   I'm looking for a clean solution to setup a staging environment for my
   Gae application.
   Reading the new spec of Namespaces API you suggest that a possible use
   of this new feature is:
 
   # Creating Separate Datastore Instances for Testing and Production
 
   It looks awesome to me so here are my questions:
 
   1.
   I've added this snippet on my appengine_config.py
 
   def namespace_manager_default_namespace_for_request():
  return os.environ['SERVER_NAME']
 
   then I've deployed a new 'staging' version of my app.
   The staging app is not sharing the Datastore with the Production one
   as aspected but I don't know what Namespace parameter should I input
   on Data Viewer to retrieve the entities on Staging namespace.
   I've tried with staging' or 'staging.latest.fooapp.appspot.com' but
   it just not works.
   Any hints?
 
   2.
   If I would like to stress test the Staging app, could I give trouble
   (Table lock) on the Production app or working on different Namespaces
   avoid this problem?
 
   3.
   Different namespaces share the same quota on Datastore for example?
 
   thanks
   Michele
 
   --
   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.comgoogle-appengine%2bunsubscr...@googlegroups.com
 google-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%252bunsubscr...@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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@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-appeng...@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: Task Queue not working in Eclipse plugin (on Mac)

2010-10-04 Thread Ikai Lan (Google)
I've seen this happen when folks put testing JARs in the WEB-INF/lib
directory. Can you check to see if you are doing this?

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



On Mon, Oct 4, 2010 at 6:01 AM, Marc Hacker marc1hac...@gmail.com wrote:

 Same on Windows

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@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-appeng...@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] Could I recover the application that all associated developers account has deleted ?

2010-10-04 Thread Ikai Lan (Google)
My earlier email was incorrect - if all developers are removed, the
application will serve for one month before it is permanently deleted, since
this is the recovery period.

I've reenabled the application. This application has not gone through the
irreversible stage yet, so it's a good thing we recovered it now. I can
readd you as a developer, but can you verify that you own the account? Email
me the auth domain you are using (it's a very strange looking one) and I'll
add this Gmail address you're using back to the list of developers.

When you delete user accounts, there should be a warning in the domain
dashboard about data/apps being deleted. How can we better warn developers
of this behavior? We can't email the developers, since their accounts were
deleted, and if you delete a developer account, you can't log into the admin
console.

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



On Fri, Oct 1, 2010 at 12:03 PM, Ikai Lan (Google)
ikai.l+gro...@google.comikai.l%2bgro...@google.com
 wrote:

 What's the application ID? I'll look into this for you to see if it's
 recoverable.

 Is the application deleted, or are just the developers deleted?

 More likely than not we garbage collect apps, so that might explain the
 delay. As far as I know, this shouldn't have been the case.

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



 On Thu, Sep 30, 2010 at 9:57 PM, Masatoshi Iwasaki mstshiwas...@gmail.com
  wrote:

 Hi,

 Recently I became an administrator for Google Apps for our domain.
 Yesterday an application hosted on GAE for Google Apps of our domain
 suddenly got 404 error. I asked former administarator to tell me
 developer's account for the application, but he had already deleted
 developers' accounts from our domain about a month ago because of
 developers had left from the orgnization.

 My questions are:

 i) Could I recover our application?  When I access the url, It shows
 only 404 error. I have tried to recreate an developer's account with
 the same name of the deleted developer's account, but I couldn't get
 access to app engine admin console.

 ii) If this is caused by deleting accounts, why did it take more than
 one month to stop the application? If it immediately stops the
 application, we would have noticed this problem earlier.

 Any suggestions are welcome.

 Regards,
 Masatoshi

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@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-appeng...@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: [mapreduce] Can i run the tasks via code?

2010-10-04 Thread Matthew Blain
control.start_map is how you do this in python. i'm not sure of the
java equivalent.

On Oct 4, 10:49 am, Eli Jones eli.jo...@gmail.com wrote:
 Nevermind.. is see that you mean mapreduce jobs.

 I guess you could read the code they have for the page that lets you
 manually start the jobs.. then.. if you're lucky and clicking run really
 just fires off a call to a handler.. you can find out the parameters.. and
 configure a cron job to do the same thing.



 On Mon, Oct 4, 2010 at 1:40 PM, Eli Jones eli.jo...@gmail.com wrote:
  You could use cron jobs:

 http://code.google.com/appengine/docs/python/config/cron.html
  http://code.google.com/appengine/docs/python/config/cron.html

  On Mon, Oct 4, 2010 at 6:40 AM, BarrenTeam barren8...@gmail.com wrote:

  We actually run the jobs manually.
  Is there anyway to launch them automatically? For exemple  through
  servlet?

  --
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib
   e...@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-appeng...@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: Special Greetings

2010-10-04 Thread nickmilon
Seems the group has been hijacked today ;-(


On Oct 4, 6:54 am, Grant Brown grant-br...@uiowa.edu wrote:
 Fuck off, you are in the wrong place.



 On Sat, Oct 2, 2010 at 12:49 PM, kof nklaw hduyew...@gmail.com wrote:
  Special Greetings
  Wishing you vertical and horizontal love, perfect peace, eternal
  safety, plus favor  blessings.
 http://www.pasgom.org/hometoend.html
 http://www.pasgom.org/sitemap.html

  Very important eyewitness accounts - (mp3);
  [1] The 7 Colombian youth – To listen, just click here,
 http://www.pasgom.org/rapture/audio/7_Youths_Hell.mp3
  [2] The 8-year old Girl – click here;
 http://pasgom.org/rapture/audio/English_Rapture_and_Tribulation.mp3
  [3] Special Rapture-readiness and revelations

 http://www.pasgom.org/rapture/revelations/rapture_revelation_and_read...
  Salvation:http://pasgom.org/salvation.html
  Sitemap:http://www.pasgom.org/sitemap.html
  If the links are unclick-able, simply copy paste on browser;
  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-appeng...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib 
  e...@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-appeng...@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] Appengine - Reportlab (Get Photo from Model)

2010-10-04 Thread xerife
Hi, I´m using the latest reportlab version 2.5 to generate PDF´s.
I´m also using Google App Engine and Django.

I can get also an image that is in my source folder. Ex: for heading
or footer.
Everything went well to generate the PDF, but I'm having great
difficulty printing to a PDF an image that an user uploaded, like his
own photo.
The photo is a property and is defined in model as BlobProperty ().

Handler:
class savePDF(webapp.RequestHandler):
def post(self):
user= models.Users.all()
p = canvas.Canvas(self.response.out)
p.drawString(50, 720, 'Curriculum Vitae : '+ '%s' %
user.name)

image = canvas.ImageReader(StringIO.StringIO(user.photo))
p.drawImage(image, 40,700)

Model:
class User(db.Model):
photo = db.BlobProperty()
name = db.StringProperty(required = True)

View:
table align=center
tbody
tr
tdUpload Photo: /td
tdimg src=/uploadFoto //td
/tr
tr
tdUser Name: /td
td{{ user.name }}/td
/tr
tr
tdUser Photo: /td
td{{ user.photo }}/td
/tr

Note: I´ve modified utils.py this post.

I´m getting errors like this one:
File C:\Users\hp\workspace\x-ray\src\principal.py, line 441, in post
image = canvas.ImageReader(StringIO.StringIO(user.photo)) File
reportlab.zip\reportlab\lib\utils.py, line 588, in init File
reportlab.zip\reportlab\lib\utils.py, line 582, in init
RuntimeError: Imaging Library not available, unable to import bitmaps
only jpegs fileName=StringIO.StringIO instance at 0x04A5A030
identity=[imagerea...@0x4a62290].

Please note that i uploaded an .jpeg image.

So, i don´t get the error. If someone could help, i´d be very happy.
The problem that i´m facing right now is when a user upload a photo,
isn´t displayed on his PDF.

I´ll show you a short pic tinypic.com/r/2ngeont/7, but the image shown
is uploaded by me not by the user.

-- 
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-appeng...@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] Request log retention: are they archived at Google?

2010-10-04 Thread Gavin Andresen
I'm writing a privacy policy for a new App Engine app that I'm
developing, and would like to say something specific about how long
Google retains logs linking IP addresses to requests that are routed
to my application.

A while ago in another thread Jeff S said:

The admin console has a fixed amount of space set aside for your
logs...

Does Google archive request logs, or (I hope!) are they gone forever
unless I actively download and archive them myself?

-- 
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-appeng...@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] Unable to upload app - was working the other day

2010-10-04 Thread Peter Bell
I have an app - available at app.myshopus.com. The app name is
myshopus, deployment worked fine on Friday. Today when I try to
appcfg.sh update war it asks for email and password (as it should).
I type them in (checking for caps lock, etc - they are correct) and it
asks for them again. I do this three times and then it gives me a

com.google.appengine.tools.admin.ServerConnection
$ClientLoginException: Unknown
Unable to update app: Unknown
Please see the logs [/var/folders/Yh/Yhnhi3+QFV4IJTTQK9q4bE+++TI/-Tmp-/
appcfg5952276576316662153.log] for further information.

The log gives me the following stack trace. Looks like I'm getting a
403 forbidden response for URL: https://www.google.com/accounts/ClientLogin

The same credentials worked on Friday . . . I know that I got some
strange issues where I set up Google apps for domains for this domain
and it was telling me that pe...@myshopus.com was already in use so I
couldn't use it as part of the domain, but with some futzing around
last week I was able to convince Google that pe...@myshopus.com was
indeed part of the apps for domains for myshopus.com and it allowed me
to use those credentials to log in and assign the app to that domain.

Any thoughts on how to fix this or what's going on? Stack trace below.

Any input appreciated!

Best Wishes,
Peter


Unable to update:
com.google.appengine.tools.admin.ServerConnection
$ClientLoginException: Unknown
at
com.google.appengine.tools.admin.ServerConnection.getAuthToken(ServerConnection.java:
296)
at
com.google.appengine.tools.admin.ServerConnection.authenticate(ServerConnection.java:
222)
at
com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:
151)
at
com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:
82)
at
com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:
582)
at
com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:
400)
at
com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:
112)
at
com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:
56)
at com.google.appengine.tools.admin.AppCfg
$UpdateAction.execute(AppCfg.java:547)
at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:138)
at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:61)
at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:57)
Caused by: java.io.IOException: Server returned HTTP response code:
403 for URL: https://www.google.com/accounts/ClientLogin
at sun.reflect.GeneratedConstructorAccessor14.newInstance(Unknown
Source)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:
27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at sun.net.www.protocol.http.HttpURLConnection
$6.run(HttpURLConnection.java:1368)
at java.security.AccessController.doPrivileged(Native Method)
at
sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:
1362)
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:
1016)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:
234)
at
com.google.appengine.tools.admin.ServerConnection.connect(ServerConnection.java:
346)
at
com.google.appengine.tools.admin.ServerConnection.getAuthToken(ServerConnection.java:
254)
... 11 more
Caused by: java.io.IOException: Server returned HTTP response code:
403 for URL: https://www.google.com/accounts/ClientLogin
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:
1313)
at
sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java:
2226)
at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderFieldKey(HttpsURLConnectionImpl.java:
287)
at
com.google.appengine.tools.util.ClientCookieManager.readCookies(ClientCookieManager.java:
123)
at
com.google.appengine.tools.admin.ServerConnection.connect(ServerConnection.java:
344)
... 12 more

-- 
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-appeng...@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: Latency related follow up

2010-10-04 Thread Kangesh Gunaseelan
Thanks for your suggestion.

I will take a look at the appstats one more time. What I am noticing though
is api_cpu under 500ms (and many much below that) but sometimes overall cpu
overshoots 700 ms. More over, for request aborted error messages, it doesn't
really look like the service is even called - overall cpu in those instances
is over 1 ms but api_cpu is 0 ms.  Am I interpreting this right?

I have seen old posts where users recommended a cron and I tried that out
today with surprisingly positive results.  Other than this potentially
causing few instances to stay alive, I can't think of any other
explanations.  Any one why that is better?  In any case, I wonder if that is
going to really help if concurrent requests increase and demand more active
instances.

Thanks.



On Mon, Oct 4, 2010 at 6:30 PM, Julian Namaro namarojul...@gmail.comwrote:


 Hi,

  as a GAE developer, is there anything that we can
  do to avoid Request aborted error scenarios?

 You can run appstats, and if your app has any request taking more than
 ~700ms work on optimizing it. Long requests are the first to time out
 during periods of high latency and are generally a source of problems
 in App Engine.

 --
 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-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@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-appeng...@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] App Engine console is down!

2010-10-04 Thread Kangesh Gunaseelan
Are folks experiencing this issue?
Thanks.
Error: Server ErrorThe server encountered an error and could not complete
your request.

If the problem persists, please
reporthttp://code.google.com/appengine/community.html your
problem and mention this error message and the query that caused it.

-- 
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-appeng...@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: Memcache capacity

2010-10-04 Thread SivaTumma
Ikai,

Can We build applications those serve religions or Porn on appengine ?

-- 
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-appeng...@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.