[appengine-java] Re: Updating data class resets data fields

2010-04-28 Thread seleronm
Hi,

I think that this thread is useful.
http://groups.google.com/group/google-appengine-java/browse_thread/thread/d13d469752c825e7

Look for past threads
It may have useful information

Hope this helps,
thanks.




 No, this is not expected behavior. Try rolling back your application and
 seeing if this still occurs. I suspect something else is wrong - you just
 need to narrow down the version of your application that causes this to
 happen.

 2010/4/27 Marcos Vinícius Soares mavsoa...@gmail.com



  I believe this is not allowed. Once you change a class you cannot retrieve
  the older objects anymore. In this case, you added a field to a class, but,
  what if you had removed two fields!? How is the framework supposed to treat
  this!?

  Try rolling back your class and see if you can retrieve the old objects. I
  believe you will only be able to get them this way.

  On Tue, Apr 27, 2010 at 4:22 PM, kghate kgh...@gmail.com wrote:

  any ideas on what I am doing wrong? Please help!

  On Apr 27, 12:31 am, kghate kgh...@gmail.com wrote:
   I am storing some persistent data and all is working fine, I have a
   simple data class per examples provided in the Storing Data section.

   However, I noticed that all my stored data got reset to null when I
   added a couple new fields to be stored.

   To give an example, my employee data class was storing firstName and
   DOB and had 5 entries. I added two more fields, lastName and
   isPermanent and found that my earlier 5 entries got reset to null. The
   new data class is working fine and all new entries are being stored as
   expected, but I lost existing entries.

   What am I doing wrong here? Is this expected behavior? How do I ensure
   that existing data does not get reset when new persistent fields are
   added to the data class?

   Please help!

   --
   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 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.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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
  .
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.

 --
 Ikai Lan
 Developer Relations, Google App Engine
 Twitter:http://twitter.com/ikai
 Delicious:http://delicious.com/ikailan

 
 Google App Engine links:
 Blog:http://googleappengine.blogspot.com
 Twitter:http://twitter.com/app_engine
 Reddit:http://www.reddit.com/r/appengine

 --
 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 
 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: about count query

2010-04-28 Thread Joe Fawzy
it is supported ,use it
u can find several posts about it in this group
joe

On Apr 28, 4:47 am, Chau Huynh cmhu...@gmail.com wrote:
 On Wed, Apr 28, 2010 at 5:24 AM, Joe Fawzy joewic...@gmail.com wrote:

 select count (this) from User
 Since when app engine support group operation? ;-)





 On Wed, Apr 28, 2010 at 5:24 AM, Joe Fawzy joewic...@gmail.com wrote:
  Hi all
  i am using JDO and i want to count the number of entities so which is
  more efficient
  using a count quert, eg:
   select count (this) from User
  or  key only query
   select id from User
   then get the count using resultList.size();

  by the way , i know that the recommended way on appengine is to
  precompute but this cannot be done in my case
  thanks
  Joe

  --
  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%2B 
  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 
 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: Writing to a local file in development environment

2010-04-28 Thread Ian Marshall
Out of interest, what text file manipulation do you need to you when
debugging using the GAE/J development server?

With the answer to this question, perhaps we can work out a useful
work-around for you!

-- 
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: Owned one to many relationship problem when parent was already existed.

2010-04-28 Thread boustanihani
Your Problem is due to a bug in DataNucleus described at:
http://code.google.com/p/datanucleus-appengine/issues/detail?id=89

Summary = Updating children does not work for the moment!

This will be fixed in DataNucleus Release-1.1.0 ...
The current version is 1.0.4.1 RC2 ... So I hope it will be fixed
soon :)

Check:
http://code.google.com/p/datanucleus-appengine/

Please tell me if my reply was helpful.

regards
Hani

-- 
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: Inheritance hierarchy and getExtent

2010-04-28 Thread SiM
On Tue, Apr 27, 2010 at 11:27 PM, Maxim Cherednik maxim.chered...@gmail.com
 wrote:

 Hey Simith,
 I am struggling exactly with the same problem.

 I read manual about inheritance here

 http://code.google.com/appengine/docs/java/datastore/dataclasses.html#Inheritance
 So I was pretty sure that JDO inheritance on App Engine works as
 described in the DataNucleus documentation.

 First of all, Saving works for me, but I have no idea how to retrieve
 ListBaseClass :(

 Any ideas?


Hello Maxim,

After searching the mailing list if find that it is not supported by
AppEngine, even if you set the Subclasses retrieval flag  to true in the
getExtent API it is set to false in the implementation further down in the
getExtent method , so you might have to query specifically for what you
want, unless someone suggests a workaround or wait till it is implemented.

it is mentioned here :
http://datanucleus.blogspot.com/2010/01/gaej-and-jdojpa.html

 Cheers,
Simith

-- 
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: about count query

2010-04-28 Thread Chau Huynh
Thanks for the info. I can see count and tried it. Thank you.

As a side note, I have a look into
org.datanucleus.store.appengine.query.DatastoreQuery
In case of count, it's a call to
com.google.appengine.api.datastore.PreparedQuery.countEntities()
Key only query still need to go through some wrapping/serialization though.
So it seems to me the former is more efficient (currently not support with
limit/offset though).

On Wed, Apr 28, 2010 at 2:41 PM, Joe Fawzy joewic...@gmail.com wrote:

 it is supported ,use it
 u can find several posts about it in this group
 joe

 On Apr 28, 4:47 am, Chau Huynh cmhu...@gmail.com wrote:
  On Wed, Apr 28, 2010 at 5:24 AM, Joe Fawzy joewic...@gmail.com wrote:
 
  select count (this) from User
  Since when app engine support group operation? ;-)
 
 
 
 
 
  On Wed, Apr 28, 2010 at 5:24 AM, Joe Fawzy joewic...@gmail.com wrote:
   Hi all
   i am using JDO and i want to count the number of entities so which is
   more efficient
   using a count quert, eg:
select count (this) from User
   or  key only query
select id from User
then get the count using resultList.size();
 
   by the way , i know that the recommended way on appengine is to
   precompute but this cannot be done in my case
   thanks
   Joe
 
   --
   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.comgoogle-appengine-java%2B
 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.comgoogle-appengine-java%2bunsubscr...@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.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: Owned one to many relationship problem when parent was already existed.

2010-04-28 Thread ylmz
That was very helpful. Thank you for your answer. Now I can implement
this without relationships until this bug is solved.

On Apr 28, 12:42 pm, boustanihani boustanih...@googlemail.com wrote:
 Your Problem is due to a bug in DataNucleus described 
 at:http://code.google.com/p/datanucleus-appengine/issues/detail?id=89

 Summary = Updating children does not work for the moment!

 This will be fixed in DataNucleus Release-1.1.0 ...
 The current version is 1.0.4.1 RC2 ... So I hope it will be fixed
 soon :)

 Check:http://code.google.com/p/datanucleus-appengine/

 Please tell me if my reply was helpful.

 regards
 Hani

 --
 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 
 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: changing datamodel later

2010-04-28 Thread Matthias Koch
Hi,

thanks, Long works.
and thanks for the info with the search.

so changing the fields of persistent objects later, included big
update process.

is there no way to change the DB and all its entries directly within
the admin console or something like this ?

kr Matthias

On 26 Apr., 20:19, Timofey Koolin timo...@koolin.ru wrote:
 if you want search by value of new property you must resave each
 object with new schema.

 On 26 апр, 17:10, Matthias Koch umbella@googlemail.com wrote:





  Hi,
  I'm new to appengine.
  and have the first problem hopefully someone can help me.

  I have just a simple Entiy class like this:

  @Entity
  public class GuestbookEntry {

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Key    key;
    private String username;
    private String message;
  ..

  }

  this class will be persisted with jpa.

  this works fine so far.
  but know I will update this class and add a new field:

  private long time;

  when I now start the app and will get the data that is allready stored
  I allways get this error:

  java.lang.NullPointerException: Datastore entity with kind
  GuestbookEntry and key GuestbookEntry(1) has a null property named
  time.  This property is mapped to
  net.umbella.appengine.services.guestbook.model.GuestbookEntry.time,
  which cannot accept null values

  normaly I would update the db schema by myself, andi can add a default
  value 0 to all existing entry.

  but how do I solve this problem on appengine ?

  thanks

  kindest regards
  Matthias

  --
  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 
  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 
 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: Which is more efficient? single query or a key only query followed by batch get

2010-04-28 Thread timwhunt
Depending on what you're trying to do, there are cases when key-only
and batch get are faster.  See Brett Slatkin's scalable complex apps
talk from Google IO 2009.

http://www.youtube.com/watch?v=AgaL6NGpkB8

The relationship index approach may not apply to what you're doing,
but it's apparently a great approach when you can use it.

-- 
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: Writing to a local file in development environment

2010-04-28 Thread Patrick Cornelißen
Hi!

2010/4/28 Jaroslav Záruba jaroslav.zar...@gmail.com

 But when you asked... :)
 When debugging I'm linking the sources individually, one script/ element
 per JS-file. Then I want to be able to join them into single (static)
 JS-file which is how the code is served usually.
 Since when I realized I can not create the static resource within my app*
 this particular issue has turned into 'playing with Java on GAE'.
 Keeping the 'big JS' in memory and sending it via servlet does make much
 sense to me. I will create the static file using Apache and only this
 JS-compilation will be deployed to GAE-server.


Hmm, you could merge the JS files in memory and serve it as stream via
servlet and when you want to cache it use memcache. There are many classes
which let you concatenate them in memory. Simple ones like Stringbuffer,
 BufferedOutputStreams for direct streams etc.

Have you tried that?

-- 
Mit freundlichen Grüßen,
 Patrick Cornelißen
 http://www.openprojectguide.org
 http://www.pcornelissen.de http://code.google.com/p/gloudy/

-- 
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: Manually restart GAE on the cloud

2010-04-28 Thread nicolas melendez
why you need to reboot? what happened?

On Wed, Apr 28, 2010 at 8:24 AM, Romain Pelisse bela...@gmail.com wrote:


 On 28 April 2010 06:15, Chau Huynh cmhu...@gmail.com wrote:

 Delete the version and redeploy, maybe?


 This would be my next move also. Let us know if it does the trick.

 --
 Romain PELISSE,
 The trouble with having an open mind, of course, is that people will
 insist on coming along and trying to put things in it -- Terry Pratchett
 http://belaran.eu/

 --
 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] This happens even for delays of 10 seconds.

2010-04-28 Thread Sant
In the end, I receive a
google.appengine.runtime.DeadlineExceededError.

my app is taksee-pricing

-- 
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] SDK 1.3.3 / JUnit 4 : DatastorePb$QueryExplanation

2010-04-28 Thread Korzenowski
Hello,

Since updating to SDK 1.3.3, my JUniit 1.4 tests are failing with the
following exception, using 1.3.2 is fine. Is this happening
elsewhere?

java.lang.NoClassDefFoundError: com/google/apphosting/api/DatastorePb
$QueryExplanation
at java.lang.Class.getDeclaredMethods0(Native Method)
at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
at java.lang.Class.privateGetPublicMethods(Unknown Source)
at java.lang.Class.getMethods(Unknown Source)
at
com.google.appengine.tools.development.ApiProxyLocalImpl.getDispatchMethod(ApiProxyLocalImpl.java:
256)
at com.google.appengine.tools.development.ApiProxyLocalImpl.access
$300(ApiProxyLocalImpl.java:44)
at com.google.appengine.tools.development.ApiProxyLocalImpl
$AsyncApiCall.call(ApiProxyLocalImpl.java:291)
at com.google.appengine.tools.development.ApiProxyLocalImpl
$AsyncApiCall.call(ApiProxyLocalImpl.java:264)
at java.util.concurrent.Executors$PrivilegedCallable$1.run(Unknown
Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.concurrent.Executors$PrivilegedCallable.call(Unknown
Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown
Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
com.google.apphosting.api.DatastorePb$QueryExplanation
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 16 more

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.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.



[appengine-java] Any further Tutorials? Basic questions

2010-04-28 Thread Christian
Hello,

i am a quite expierenced programmer in java, but i am totally new to
web apps, especially gae.

I have worked through the guestbook tutorial, but now i still cant
start to program any comprehensive app.

Are there any more how-to oder tutorials where i can learn more about
fundamental functionalities?

Just some questions that come to my mind: How can users interact
through an app with each other (e.g. chatting like in good ol' IRC)?
Is there a way to do something like an Java Applet (so more graphics)
wich works on the underlying datastore and user authentication? Is it
possible to have the app do something on its own (e.g. write a email
to all registred users every monday)?

I am new to this and want to get more into it. But how?

-- 
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] JAXB

2010-04-28 Thread Lukasw44
Hi
Anybody know wher i can find tutorial about using jaxb in google app
engine ??( I'm using netbeans plugin )

I need know how marshalling/unmarshalling and modify xml document in
google app engine :))
Thank you

-- 
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: apparent appstats bug

2010-04-28 Thread Dick Johnson

No, there's nothing in the deployed logs indicating an error (or in
the local console info).  In fact, in the deployed logs I do see that
'appstats available' message for those requests, e.g.
 Appstats available: /appstats/details?time=1272409799843
but get a 'not found' error when I follow the link.

But, it sounds feasible that something along those lines could be
happening somewhere, and perhaps the exception is being swallowed. (I
wonder if it could be memcache-related?...)

On Apr 27, 1:05 pm, Jens Scheffler schefflerj...@google.com wrote:
 Hi,

 If you look at the logs of your deployed application, do you see any
 errors, such as an OutOfMemoryError? My current suspicion is that app
 stats collects so much data (and keeps it in memory) for this request
 that it runs out of memory before it can persist it. If that is the
 case, we might be seeing something like that in the error logs.

 Best regards,

Jens

 On Apr 27, 10:01 am, Dick Johnson d...@infosleuth.net wrote:

  As an addendum to my previous note-- when an app is deployed to App
  Engine, I don't get the appstats 'hang' behaviour of my previous post,
  in that the servlet response does finish rendering.  But, just as with
  the local development version, the servlets that caused issues with
  Appstats are not listed at all in the Appstats statistics page for the
  deployed version.  For some reason, these servlets are not getting
  properly processed by Appstats.

  This seems especially problematic because the servlets in question,
  that are not being reported by appstats, are in actuality taking up
  the largest percentage of resources.


-- 
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] Using java.net.URL class with long URI

2010-04-28 Thread Yousef.Ghandour
I've tried to use URI class with the facebook URI, attached to it the
very long access_token variable which result in throwing an
exception! Any idea?

-- 
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: apparent appstats bug

2010-04-28 Thread Jens Scheffler

 in the deployed logs I do see that 'appstats available' message for those 
 requests

interesting. That message is logged after the commit to memcache has
already been started. Can you confirm whether the data is visible in
app stats when you follow the link?

Best regards,

   Jens



On Apr 28, 8:31 am, Dick Johnson d...@infosleuth.net wrote:
 No, there's nothing in the deployed logs indicating an error (or in
 the local console info).  In fact, in the deployed logs I do see that
 'appstats available' message for those requests, e.g.
  Appstats available: /appstats/details?time=1272409799843
 but get a 'not found' error when I follow the link.

 But, it sounds feasible that something along those lines could be
 happening somewhere, and perhaps the exception is being swallowed. (I
 wonder if it could be memcache-related?...)

 On Apr 27, 1:05 pm, Jens Scheffler schefflerj...@google.com wrote:



  Hi,

  If you look at the logs of your deployed application, do you see any
  errors, such as an OutOfMemoryError? My current suspicion is that app
  stats collects so much data (and keeps it in memory) for this request
  that it runs out of memory before it can persist it. If that is the
  case, we might be seeing something like that in the error logs.

  Best regards,

     Jens

  On Apr 27, 10:01 am, Dick Johnson d...@infosleuth.net wrote:

   As an addendum to my previous note-- when an app is deployed to App
   Engine, I don't get the appstats 'hang' behaviour of my previous post,
   in that the servlet response does finish rendering.  But, just as with
   the local development version, the servlets that caused issues with
   Appstats are not listed at all in the Appstats statistics page for the
   deployed version.  For some reason, these servlets are not getting
   properly processed by Appstats.

   This seems especially problematic because the servlets in question,
   that are not being reported by appstats, are in actuality taking up
   the largest percentage of resources.

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



Re: [appengine-java] very stupid question....

2010-04-28 Thread Ikai L (Google)
Here's a quick link about Java package naming:

http://java.sun.com/docs/books/jls/second_edition/html/packages.doc.html

You shouldn't use dashes or camelCase. Note that this isn't a domain - it's
a package hierarchy.

From the link:

The name of a package is not meant to imply where the package is stored
within the Internet; for example, a package named edu.cmu.cs.bovik.cheese is
not necessarily obtainable from Internet address cmu.edu or fromcs.cmu.edu or
from bovik.cs.cmu.edu. The suggested convention for generating unique
package names is merely a way to piggyback a package naming convention on
top of an existing, widely known unique name registry instead of having to
create a separate registry for package names.

On Wed, Apr 28, 2010 at 12:04 PM, joradom jora...@gmail.com wrote:

 it's a common way to name the packages after the domain:
 ie: com.google.samples 

 but if you have a '-' in the domain name, it is not allowed
 ie: my-domain.com

 can't use: com.my-domain.samples

 is there a way to espcape this? or a prefered way to name the package?

 com.my_domain.samples? com.myDomain.samples?

 i know it's a very stupid question :) but i hope to get a clever
 answer.

 thx

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




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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] Error uploading project to App Engine

2010-04-28 Thread Rahul Ravikumar
When i try to update my project using the Eclipse plugin - I see the
following error message in my eclipse log. I am unable to update my
application on GAE.

eclipse.buildId=I20090611-1540
java.version=1.6.0_20
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
Framework arguments:  -product org.eclipse.epp.package.jee.product
Command-line arguments:  -os win32 -ws win32 -arch x86 -product
org.eclipse.epp.package.jee.product

Error
Wed Apr 28 13:35:27 PDT 2010
Unable to update app: Error posting to URL:
https://appengine.google.com/api/appversion/create?app_id=myappidversion=3500
Internal Server Error

Server Error (500)
A server error has occurred.

See the deployment console for more details

com.google.appengine.tools.admin.AdminException: Unable to update app:
Error posting to URL: 
https://appengine.google.com/api/appversion/create?app_id=myappidversion=3;
500 Internal Server Error

Server Error (500)
A server error has occurred.

at
com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:
62)
at
com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:
271)
at
com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:
145)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Caused by: java.io.IOException: Error posting to URL:
https://appengine.google.com/api/appversion/create?app_id=myappidversion=3;
500 Internal Server Error

Server Error (500)
A server error has occurred.

at
com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:
149)
at
com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:
82)
at
com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:
559)
at
com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:
376)
at
com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:
111)
at
com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:
56)
... 4 more



The deployment log is given below:

Unable to update:
java.io.IOException: Error posting to URL:
https://appengine.google.com/api/appversion/create?app_id=myappidversion=3;
500 Internal Server Error

Server Error (500)
A server error has occurred.

at
com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:
149)
at
com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:
82)
at
com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:
559)
at
com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:
376)
at
com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:
111)
at
com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:
56)
at
com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:
271)
at
com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:
145)
at
org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

Any ideas as to why this could be happening ?

Thanks,
Rahul

-- 
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] Error uploading project to App Engine

2010-04-28 Thread Max Ross (Google)
GAE is currently read-only for scheduled maintenance.  I recommend
subscribing to the google-appengine-downtime-notify group if you'd like to
receive notifications of these events:

http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/4857b46e4e6ff0f9

http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/4857b46e4e6ff0f9
Thanks,
Max

On Wed, Apr 28, 2010 at 1:42 PM, Rahul Ravikumar tikura...@gmail.comwrote:

 When i try to update my project using the Eclipse plugin - I see the
 following error message in my eclipse log. I am unable to update my
 application on GAE.

 eclipse.buildId=I20090611-1540
 java.version=1.6.0_20
 java.vendor=Sun Microsystems Inc.
 BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
 Framework arguments:  -product org.eclipse.epp.package.jee.product
 Command-line arguments:  -os win32 -ws win32 -arch x86 -product
 org.eclipse.epp.package.jee.product

 Error
 Wed Apr 28 13:35:27 PDT 2010
 Unable to update app: Error posting to URL:

 https://appengine.google.com/api/appversion/create?app_id=myappidversion=3500
 Internal Server Error

 Server Error (500)
 A server error has occurred.

 See the deployment console for more details

 com.google.appengine.tools.admin.AdminException: Unable to update app:
 Error posting to URL:
 https://appengine.google.com/api/appversion/create?app_id=myappidversion=3;
 500 Internal Server Error

 Server Error (500)
 A server error has occurred.

 at
 com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:
 62)
 at

 com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:
 271)
 at

 com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:
 145)
 at

 org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
 38)
 at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
 Caused by: java.io.IOException: Error posting to URL:

 https://appengine.google.com/api/appversion/create?app_id=myappidversion=3;
 500 Internal Server Error

 Server Error (500)
 A server error has occurred.

 at

 com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:
 149)
 at

 com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:
 82)
 at

 com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:
 559)
 at

 com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:
 376)
 at

 com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:
 111)
 at
 com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:
 56)
 ... 4 more


 

 The deployment log is given below:

 Unable to update:
 java.io.IOException: Error posting to URL:

 https://appengine.google.com/api/appversion/create?app_id=myappidversion=3;
 500 Internal Server Error

 Server Error (500)
 A server error has occurred.

at

 com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java:
 149)
at

 com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java:
 82)
at

 com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:
 559)
at

 com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:
 376)
at

 com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:
 111)
at
 com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:
 56)
at

 com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java:
 271)
at

 com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java:
 145)
at

 org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:
 38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)

 Any ideas as to why this could be happening ?

 Thanks,
 Rahul

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

[appengine-java] What happens when I don't close persistenceManagers?

2010-04-28 Thread Jaroslav Záruba
What are possible consequences of having method like this?

--
public Article getArticle(Key key)
{
return
pManagerFactory.getPersistenceManager().getObjectById(Article.class,
key);
}
--

Is it generally wrong? I.e. will I run out of available pManagers?
And if it is OK, for how long can I call setters on non-detached
object to have those changes propagated to data-store?

Regards
  J. Záruba

-- 
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] DB errors

2010-04-28 Thread Ikai L (Google)
Hi Philip,

The datastore was placed into read-only mode for a period of an hour today
for scheduled maintenance. To be updated of future maintenance or downtime
updates, please subscribe to the notification only group here:

http://groups.google.com/group/google-appengine-downtime-notify

On Wed, Apr 28, 2010 at 2:52 PM, Philip Tucker ptuc...@gmail.com wrote:

 I'm getting several of these errors on my server today.

 com.honkentuber.wordwise.GameServlet newJsonResponse: exception
 com.google.apphosting.api.ApiProxy$CapabilityDisabledException: The
 API call datastore_v3.Put() is temporarily unavailable.
at com.google.apphosting.runtime.ApiProxyImpl
 $AsyncApiFuture.rpcFinished(ApiProxyImpl.java:264)
at com.google.net.rpc.RpcStub$RpcCallbackDispatcher
 $1.runInContext(RpcStub.java:1025)
at com.google.tracing.TraceContext$TraceContextRunnable
 $1.run(TraceContext.java:444)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:
 684)
at com.google.tracing.TraceContext

 $AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:
 322)
at com.google.tracing.TraceContext
 $AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:
 314)
at com.google.tracing.TraceContext
 $TraceContextRunnable.run(TraceContext.java:442)
at com.google.net.rpc.RpcStub
 $RpcCallbackDispatcher.rpcFinished(RpcStub.java:1046)
at com.google.net.rpc.RPC.internalFinish(RPC.java:2047)
at
 com.google.net.rpc.impl.RpcNetChannel.finishRpc(RpcNetChannel.java:
 2338)
at
 com.google.net.rpc.impl.RpcNetChannel.messageReceived(RpcNetChannel.java:
 1265)
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.async.GlobalEventRegistry
 $2.runLoop(GlobalEventRegistry.java:95)
at com.google.net.async.LoopingEventDispatcher
 $EventDispatcherThread.run(LoopingEventDispatcher.java:378)

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




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/appengine

-- 
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] securing REST endpoints

2010-04-28 Thread Brother
Hi,

I have deployed a Java based application on the App Engine using
RESTEasy to protect the endpoints.
I would like to secure the access of such endpoints. What are the
supported features in App Engine to do so?

Thanks

B

-- 
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: Manually restart GAE on the cloud

2010-04-28 Thread Chau Huynh
In fact, the post owner already uploaded new version but it did not work for
him.
So he wanted to ask for any deploy suggestion, maybe lucky enough on case
basis.

On Thu, Apr 29, 2010 at 2:54 AM, Duong BaTien duong.bat...@gmail.comwrote:

 We increase the version number, load it up, test it, then change to the
 new version, delete the old one.

 BaTien
 DBGROUPS and BudhNet


 On Wed, 2010-04-28 at 11:15 +0700, Chau Huynh wrote:
  Delete the version and redeploy, maybe?
  Or should Google hep you look into your case, as App Engine user do
  not have such direct control on their system to reboot.
 
  On Wed, Apr 28, 2010 at 10:54 AM, Phuong Nguyen phuongn...@gmail.com
  wrote:
  I think disable/enable your app doesnot reboot JVM.
 
  I'm trying FreeMarker. If JVM process a class for the first
  time, then
  VerifyError is thrown. On second time, it throw
  NoClassDefFoundError.
  When I disabled and reenabled, JVM still throws
  NoClassDefFoundError.
  So I guess JVM is not restarted.
 
  On Apr 28, 10:00 am, Thomas mylee...@gmail.com wrote:
   In the Admin Console you can disable your application and
  re-enable
   it. I think it is much like a JVM reboot.
  
   --
   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.comappengine-java%2bunsubscr...@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.comappengine-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.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.



Re: [appengine-java] Re: Manually restart GAE on the cloud

2010-04-28 Thread 风笑雪
You can try to disable it, and re-enable later.

-- 
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] What happens when I don't close persistenceManagers?

2010-04-28 Thread Chau Huynh
Hi Jaroslav,

I think the Article entity returned was detached already, right?
In fact you can try a simple test by modifying the returned object and
verify it value on Admin Console.

The PersistenceManagerFactory takes time to init, but once only (
http://code.google.com/appengine/docs/java/gettingstarted/usingdatastore.html
)
while it's cheap to create as many PersistenceManager's as your need.

Thanks

2010/4/29 Jaroslav Záruba jaroslav.zar...@gmail.com

 What are possible consequences of having method like this?

 --
 public Article getArticle(Key key)
 {
return
 pManagerFactory.getPersistenceManager().getObjectById(Article.class,
 key);
 }
 --

 Is it generally wrong? I.e. will I run out of available pManagers?
 And if it is OK, for how long can I call setters on non-detached
 object to have those changes propagated to data-store?

 Regards
  J. Záruba

 --
 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: Works on development server but it doesn't on GAE (Sessions).

2010-04-28 Thread nearmars
Hi TiagoP
did you solve this issue? I am curious as I'm starting to build my own
users class so that I am not restricted to just google users logging
into my application.
Is this what you're using it for? I'd be happy to help you figure this
out if you want to share more of the code with me.

Thanks.

Mike



On Apr 13, 11:10 am, Peter Ondruska peter.ondru...@gmail.com wrote:
 Have you enabledsessions? 
 Seehttp://code.google.com/appengine/docs/java/config/appconfig.html#Enab...

 On Apr 13, 5:52 pm, TiagoP pix...@gmail.com wrote:

  Hi,

  I have this code that works just fine on the development server but
  when I deploy the application, the session isn't created.

  What am I doing wrong?

  HttpSession session = req.getSession(true);
  session.setAttribute(loggedIn, new String(true));

-- 
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] Much more CPU time billed without any reason

2010-04-28 Thread Henning
Hello,

my website has been running the last 2 months without any change.
Basically there is one cron job that is triggered every minute every
now and then. There is no data persisted. What happened during the
last couple of weeks is that the billed cpu time per day tripled! How
can that be?

Henning

-- 
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: Dashboard API

2010-04-28 Thread Tim Hoffman
Why doesn't the ereporter handler meet your requirements

http://blog.notdot.net/2010/03/Using-the-ereporter-module-for-easy-error-reporting-in-App-Engine

T

On Apr 28, 4:01 am, Harlan Crystal harlan.crys...@gmail.com wrote:
 The use of this that is more important to me is doing sysadmin-work.
 I'm constantly checking my admin console throughout the day to make
 sure my error rate isn't high or that my taskqueues aren't backed up.
 If I could use an API to query this data and send problems to a pager
 it would really improve my life.

 On Mon, Apr 26, 2010 at 2:41 PM, Ikai L (Google) ika...@google.com wrote:





  We've heard requests for a Dashboard API before. I can certainly see the
  usefulness of being able to not just do read operations, but write
  operations as well. Make sure to star the issue and get others to do it.

  On Mon, Apr 26, 2010 at 10:51 AM, Peter Recore peterrec...@gmail.com
  wrote:

  doesn't Google Analytics require JavaScript to be active on the
  client?  If so, that would ignore hits from various categories of
  clients like people running no-script and agents making API calls
  through some kind of web service.  i think it would also ignore
  internal requests, like from a cron job.

  On Apr 26, 10:03 am, Nick Johnson (Google) nick.john...@google.com
  wrote:
   Hi Chris,

   Have you considered simply using Google Analytics?

   -Nick Johnson

   On Mon, Apr 26, 2010 at 8:05 AM, Chris Killpack killp...@gmail.com
   wrote:
I recently discovered that I had become a human cron-job: every night
around 11:50pm PST I would log into the GAE dashboard, total the
number of
requests in my app and store them in a spreadsheet so I could track
load
over time.

I've found no mention of a dashboard API, which leaves scraping the
HTML. This is non trivial because I have to deal with the Account
login
page, which I expect goes out of it's way to make auto login's hard. I
thought about hard-coding the relevant cookies into the cron job,
generating
new ones by manual login every time the existing ones fail. But it
appears
the relevant cookies only last 24 hours, so I'm back to my nightly
routine.

Is there another way to retrieve this info, and if not, are there
plans for
such a mechanism? I've found an open issue:

http://code.google.com/p/googleappengine/issues/detail?id=655can=5c...

Thanks,

Chris

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

   --
   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
   athttp://groups.google.com/group/google-appengine?hl=en.

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To post to this group, send email to google-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.

  --
  Ikai Lan
  Developer Relations, Google App Engine
  Twitter: http://twitter.com/ikai
  Delicious: http://delicious.com/ikailan
  
  Google App Engine links:
  Blog: http://googleappengine.blogspot.com
  Twitter: http://twitter.com/app_engine
  Reddit: http://www.reddit.com/r/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.

 --
 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 
 athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message 

Re: [google-appengine] Re: data structure to implement some of your friends also like this feature.

2010-04-28 Thread Nick Johnson (Google)
Hi Herbert,

Merge join queries - queries with multiple equality filters but no
inequalities or sort orders - are a special case. They can be satisfied
using the built in indexes and a merge join strategy, but they can also use
a custom index. The production environment will use the index if it's
present, and otherwise will do a merge join.

Generally, a merge join works well, but there are situations in which it
doesn't - in which case you may need to add an explicit index.

-Nick Johnson

On Wed, Apr 28, 2010 at 4:42 AM, Herbert herber...@gmail.com wrote:

 Hi Nick

 Thank you. One thing I'm still a bit confused about index. I had the
 impression that if I've executed all kinds of queries before I deploy,
 all required indexes would be included, am I correct?

 Does building a custom index improve performance on complex queries
 even though it is not required? Or I could just stick to the rules
 from the doc, and make sure I cover all queries before I deploy?

 Thanks!

 On Apr 27, 6:59 pm, Nick Johnson (Google) nick.john...@google.com
 wrote:
  Hi Herbert,
 
  A query like this will use the merge join strategy by default. If it's
 too
  slow for the merge join strategy, you could have to build a custom index
 for
  it, which would indeed be 'exploding'  - each User entity would have
  len(friends)*len(likes) index entries.
 
  -Nick
 
 
 
  On Mon, Apr 26, 2010 at 3:20 PM, Herbert herber...@gmail.com wrote:
   Sorry, suddenly got a thought on it.
 
   Can I do two equality check on both User.friends and User.likes ?
   would that be cause an exploding index?
 
   I.E. User.all().filter(friends =, me).filter(likes =, A).fetch(3)
 
   thanks!
   Herbert
 
   --
   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.
 
  --
  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 athttp://
 groups.google.com/group/google-appengine?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-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.



Re: [google-appengine] HTTPS Availability for Non-AppSpot Domains - Yes/No/Maybe

2010-04-28 Thread Fredrik Bonander
Hi,

There is some really nice features on the roadmap, great work!

But 2 questions come to mind.

1. The items in the roadmap list, are they sorted by priority? Since SSL for 
3-party domains is the top one, is this the next thing that will be 
implemented? That would be really nice.
2. Is there any ETA on any of these features? Doesn't have to be an exact date, 
but a Q1 or Q2 etc would be great!

..fredrik



On 26 apr 2010, at 16.04, Nick Johnson (Google) wrote:

 Hi Bobby,
 
 It's on the roadmap: http://code.google.com/appengine/docs/roadmap.html
 
 -Nick Johnson
 
 On Mon, Apr 26, 2010 at 8:45 AM, Bobby bobbysoa...@gmail.com wrote:
 I realize this may have been brought up plenty of times.
 
 I have some AppEngine apps using domain names outside of appspot.com.
 I'm wondering if it will be possible to enable HTTPS for these apps in
 the future.
 
 Basically, a yes or no, or a timeline, would help me determine how to
 get around this.
 
 Has anyone been able to make this work using some techniques? I can
 think of a couple but would rather not have to go down that path.
 
 Bobby
 
 --
 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.
 
 
 
 
 -- 
 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.

--
Fredrik Bonander
carl.fredrik.bonan...@gmail.com
+46 70 943 5441

- the infinite power of the creative mind - 

-- 
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] HTTPS Availability for Non-AppSpot Domains - Yes/No/Maybe

2010-04-28 Thread Nick Johnson (Google)
On Wed, Apr 28, 2010 at 12:07 PM, Fredrik Bonander 
carl.fredrik.bonan...@gmail.com wrote:

 Hi,

 There is some really nice features on the roadmap, great work!

 But 2 questions come to mind.

 1. The items in the roadmap list, are they sorted by priority? Since SSL
 for 3-party domains is the top one, is this the next thing that will be
 implemented? That would be really nice.


Items aren't sorted by priority.


 2. Is there any ETA on any of these features? Doesn't have to be an exact
 date, but a Q1 or Q2 etc would be great!


The roadmap generally lists features with a time horizon of about 6 months,
but that's not a firm guarantee.

-Nick



 ..fredrik



 On 26 apr 2010, at 16.04, Nick Johnson (Google) wrote:

 Hi Bobby,

 It's on the roadmap: http://code.google.com/appengine/docs/roadmap.html

 http://code.google.com/appengine/docs/roadmap.html-Nick Johnson

 On Mon, Apr 26, 2010 at 8:45 AM, Bobby bobbysoa...@gmail.com wrote:

 I realize this may have been brought up plenty of times.

 I have some AppEngine apps using domain names outside of appspot.com.
 I'm wondering if it will be possible to enable HTTPS for these apps in
 the future.

 Basically, a yes or no, or a timeline, would help me determine how to
 get around this.

 Has anyone been able to make this work using some techniques? I can
 think of a couple but would rather not have to go down that path.

 Bobby

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


  --
 Fredrik Bonander
 carl.fredrik.bonan...@gmail.com
 +46 70 943 5441

 *- **the infinite power of the creative min**d - *

  --
 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] association google apps with google appengine

2010-04-28 Thread I.K.
Hi,

Some group wisdom please.

I currently have a domain name (from godaddy) which points to a google
application account, which is associated to my app engine
application.  I believe that a decent way to get a domain name to
point to an appengine app.

I wish to create a different gae app and get my domain name to point
to the new app, without upsetting my (somwhat poor) google rankings.

Is it possible to alter my google application account so that it
points to my new gae without upsetting my google rankings?

Or is there a better way to appoach this?

Many thanks

Mike

-- 
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: ReadOnly Datastore and Task Queues

2010-04-28 Thread Matija
Java version doesn't have Capabilities API (for now).

Matija.

On Apr 27, 8:10 pm, Robert Kluin robert.kl...@gmail.com wrote:
 Perhaps you could check if the datastore is in read-only mode at the
 beginning of the task, then do what ever action is appropriate for
 your case (like raise an exception).

 Robert

 On Mon, Apr 26, 2010 at 4:45 AM, Matija matija.jerko...@gmail.com wrote:
  Is there way to pause task queue if datastore is currently in readonly
  state ?
  If task queue needs to persist something in datastore I need to left
  exception to be thrown so that it retries over and over until
  datastore is in normal state. Is there some other clever way to handle
  readonly datastore state in combination with task queue ?

  --
  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 
  athttp://groups.google.com/group/google-appengine?hl=en.

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

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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] Server failed to serve the requests.

2010-04-28 Thread Robert Kluin
Anupam,

   What are the actual errors you are seeing?  Are errors in your
app's error log?

   Further comments / questions inline:


On Wed, Apr 28, 2010 at 12:31 AM, WeShine Tech
intelltest.ad...@gmail.com wrote:
  Hello Robert,

       Are you saying that you have other clients (customers) running the
 same code on different deployments ?
      No. So what happened is at my clients site the
 application stopped responding. So I started using the earlier versions of
 my application and those seemed to work fine.

What has changed between versions?  Have you added additional request
handlers, or otherwise increased the work that needs done to load your
app?



     When you say the log shows latency issues I assume you mean the requests
 are taking
 a lot of CPU time?
      That is correct. But the same requests work absolutely fine otherwise.
 So why would some requests take a lot of CPU time only on
 some occasions where as work efficiently most of the times? Could you share
 some tippers for resolving this issue.

If the app sits idle it will be unloaded from the app severs.  As I
understand, apps may be more aggressively unloaded during times when
the overall traffic to app engine itself is high.  What you are
describing sounds like this could be the issue.

Look in your apps info log for messages like:
   This request caused a new process to be started for your
application, and thus caused your application code to be loaded for
the first time. This request may thus take longer and use more CPU
than a typical request for your application.





     The application is not a very high traffic one because of its nature.
 However after receiving high amount of load for almost two hours it went
 down. Also it has performed very well with more traffic in the past. So I am
 not sure it could be the Cold Start.

This is almost the definition of the 'cold start' problem:  it does
well under load, but once there is a drop in traffic you get
performance issues.



 Thanks and Regards,
 Anupam M.




 On Wed, Apr 28, 2010 at 9:31 AM, Robert Kluin robert.kl...@gmail.com
 wrote:

 Anupam,
  Are you saying that you have other clients (customers) running the
 same code on different deployments, or are you saying you have loaded
 this app more heavily while running the current code?  When you say
 the log shows latency issues I assume you mean the requests are taking
 a lot of CPU time?

 It sounds like the app is not very high traffic.  Could this be the
 cold start issue?  If you hit the site a lot (once every couple
 seconds) does it respond OK?


 Robert







 On Tue, Apr 27, 2010 at 11:35 PM, WeShine Tech
 intelltest.ad...@gmail.com wrote:
  I did look into the problem and have been suggested that it could be due
  to
  latency issues. Please could you guide me through as to how to fix this.
  I
  have used the same code with more number of clients before but never
  faced a
  problem like this.
  The logs also show latency issues. And I did run the older version of my
  application using the appspot url. The older version performed just
  fine.
  However I did not try running the application using the
  appname.appspot.com url.
 
 
  On Tue, Apr 27, 2010 at 11:44 PM, Robert Kluin robert.kl...@gmail.com
  wrote:
 
  Were there any actual exceptions in the app's log?
 
  Did you see the requests in the request log?
 
  If you were using a custom domain, could you access the site directly
  at the 'appname'.appspot.com url?
 
  Robert
 
 
 
 
 
 
  On Mon, Apr 26, 2010 at 9:52 AM, WeShine Tech
  intelltest.ad...@gmail.com wrote:
   Hello,
          I have an application which requires resources just on some
   particular days. However today my application actually failed at my
   clients site. The application logs do read some high CPU usage for
   some of the url but that is it. It would completely stop responding
   at
   times for all and any requests. Please suggest me some work around
   for
   this problem. I have started my billing and have allowed a large
   number of resources to be consumed per day. The consumption shown in
   the admin console is as low as 1% of what has been allocated.
  
   Do let me know if there is any more information required to be shared
   from my side. But the problem is extremely critical and needs to be
   fixed as soon as possible.
  
   Any help is appreciated.
  
   Thanks and Regards,
   Anupam M.
  
   --
   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.
  
  
 
  --
  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.
 

Re: [google-appengine] Trouble creating a named key

2010-04-28 Thread Robert Kluin
Hi Mark,
  I am not a Java guy so this is just a shot in the dark, but have you
looked into using KeyFactory.Builder to build your key?  It looks like
it will let you build the key, similar to what Nick did.

 
http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/KeyFactory.Builder.html


Robert






On Wed, Apr 28, 2010 at 1:55 AM, Mark mar...@gmail.com wrote:
 Hi,

 I'm trying to port the article written by Nick Johnson on distributed
 transactions from python to java:

    http://blog.notdot.net/2009/9/Distributed-Transactions-on-App-Engine

 it is almost working, just have a problem on one of the last steps
 where a named-key is supposed to be created.

  public static void rollForward(PersistenceManager pm, Transfer
 transfer)
      throws Exception
  {
      Key namedKey = KeyFactory.createKey(
        transfer.getTargetKey(),
        Transfer.class.getSimpleName(),
        KeyFactory.keyToString(transfer.getKey()));

      ...

      Transfer destTransfer = new Transfer();
      destTransfer.setKey(namedKey);
      // destTransfer.setParentKey(); - commented out on purpose.
      pm.makePersistent(destTransfer);
      ...
  }

 when saving the destTransfer object to the datastore, I get this
 error:

  Cannot set both the primary key and a parent pk field.  If you want
 the datastore to generate an id for you, set the parent pk field to be
 the value of your parent key and leave the primary key field blank.
 If you wish to provide a named key, leave the parent pk field blank
 and set the primary key to be a Key object made up of both the parent
 key and the named child.

 I'm trying to take option #2, I believe I am doing it correctly. This
 is the Transfer class:

 �...@persistencecapable
  public class Transfer {

     �...@primarykey
     �...@persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
      private Key mKey;

     �...@persistent
     �...@extension(vendorName=datanucleus, key=gae.parent-pk,
 value=true)
      private Key mKeyParent;
  }

 so in the above, I leave mKeyParent null and explicitly set mKey to
 the named key value before saving it, but I'm still getting that
 exception thrown.

 I realize this is a bit long, does anyone see what the problem could
 be? I'd like to post this port of the distributed transactions for the
 group's reference once it's done, I just would like to get it actually
 working first,

 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.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: Trouble creating a named key

2010-04-28 Thread Mark
Hi Robert,

I gave that method a shot too, same error though, this is how I used
it:

  Key namedKey =
new KeyFactory.Builder(
  transfer.getTargetKey())
.addChild(
   Transfer.class.getSimpleName(),
   KeyFactory.keyToString(transfer.getKey())).getKey();

and I am still leaving mKeyParent null, as directed by the error
message.

I think I could create my own transfer class to effectively do the
same thing without all these keys, but I wanted to try doing a one-to-
one port of Nick's code first before applying any creative variations
on it. I'll try to dig around a bit more today,

Thank you!

On Apr 28, 7:21 am, Robert Kluin robert.kl...@gmail.com wrote:
 Hi Mark,
   I am not a Java guy so this is just a shot in the dark, but have you
 looked into using KeyFactory.Builder to build your key?  It looks like
 it will let you build the key, similar to what Nick did.

  http://code.google.com/appengine/docs/java/javadoc/com/google/appengi...

 Robert





 On Wed, Apr 28, 2010 at 1:55 AM, Mark mar...@gmail.com wrote:
  Hi,

  I'm trying to port the article written by Nick Johnson on distributed
  transactions from python to java:

     http://blog.notdot.net/2009/9/Distributed-Transactions-on-App-Engine

  it is almost working, just have a problem on one of the last steps
  where a named-key is supposed to be created.

   public static void rollForward(PersistenceManager pm, Transfer
  transfer)
       throws Exception
   {
       Key namedKey = KeyFactory.createKey(
         transfer.getTargetKey(),
         Transfer.class.getSimpleName(),
         KeyFactory.keyToString(transfer.getKey()));

       ...

       Transfer destTransfer = new Transfer();
       destTransfer.setKey(namedKey);
       // destTransfer.setParentKey(); - commented out on purpose.
       pm.makePersistent(destTransfer);
       ...
   }

  when saving the destTransfer object to the datastore, I get this
  error:

   Cannot set both the primary key and a parent pk field.  If you want
  the datastore to generate an id for you, set the parent pk field to be
  the value of your parent key and leave the primary key field blank.
  If you wish to provide a named key, leave the parent pk field blank
  and set the primary key to be a Key object made up of both the parent
  key and the named child.

  I'm trying to take option #2, I believe I am doing it correctly. This
  is the Transfer class:

  �...@persistencecapable
   public class Transfer {

      �...@primarykey
      �...@persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
       private Key mKey;

      �...@persistent
      �...@extension(vendorName=datanucleus, key=gae.parent-pk,
  value=true)
       private Key mKeyParent;
   }

  so in the above, I leave mKeyParent null and explicitly set mKey to
  the named key value before saving it, but I'm still getting that
  exception thrown.

  I realize this is a bit long, does anyone see what the problem could
  be? I'd like to post this port of the distributed transactions for the
  group's reference once it's done, I just would like to get it actually
  working first,

  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.com.
  For more options, visit this group 
  athttp://groups.google.com/group/google-appengine?hl=en.

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

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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] Using Google Checkout

2010-04-28 Thread Fredrik Bonander
Hi,

Have anyone used Google Checkout with GAE and the Checkout XML API? From what 
I've read you need SSL on you site?

It says in the documentation that there is some sample code for python, but I 
can't find it.

Also on a side note, if one uses Google Checkout Merchant, does the costumer 
need a google account to log in with?

..fredrik


--
Fredrik Bonander
carl.fredrik.bonan...@gmail.com
+46 70 943 5441

- the infinite power of the creative mind - 

-- 
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] The API package 'urlfetch' or call 'Fetch()' was not found.

2010-04-28 Thread Ajay Chitre
Hello,

I created a GWT application, tested it locally and later deployed it on
Appengine.  Everything was working well.  Later I added code that uses SDC
(Secure Data Connector).  It looks something like this..

  URLFetchService fetcher = URLFetchServiceFactory.getURLFetchService();
  URL dataURL = new URL(http://localhost:8182/jobs?arg1=1arg2=1;);
  HTTPRequest fetchreq = new HTTPRequest(dataURL);
  HTTPResponse resp = fetcher.fetch(fetchreq);

Every time I run it, the fetcher.fetch method throws an exception that
says... com.google.apphosting.api.ApiProxy$CallNotFoundException: The API
package 'urlfetch' or call 'Fetch()' was not found.

I tried changing the classpath, but nothing seems to help.

I created a separate GWT application given in the tutorial and added the
above code to it.  It works just fine, which implies that something is wrong
with my project setup... missing jar in Classpath.. or something like that.

Please help.  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.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



[google-appengine] How to take your Gmail ID as AppEngine ID?

2010-04-28 Thread Luigi
Hello,

in his book Programming Google Apps Engine Dan Sanderson writes:
... Google reserves every Gmail username as an application ID that
only the corresponding Gmail user can register

For example my Gmail account is luigigiro...@googlemail.com and I
try to create an App Engine app with ID luigigirotti and it fails with
the message An App or Google Account already exists with that name.

If I try to put a hyphen in between like luigi-girotti then App
Engine accepts it as a new ID.

So, how to utilize those reserved Gmail IDs 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.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] How to take your Gmail ID as AppEngine ID?

2010-04-28 Thread Barry Hunter
It seems those of us who signed up as @googlemail.com as a main domain
dont get this. (trying to get barrybhunter.appspot.com doesnt work)

I created another Google Account with @gmail.com and was able to claim
the appspot id for it.


(I know they are the same, and can send email to either, but somewhere
must register which domain is the 'main' one, and I guess that
confuses AppEngine)


On 28 April 2010 08:06, Luigi arru...@gmail.com wrote:
 Hello,

 in his book Programming Google Apps Engine Dan Sanderson writes:
 ... Google reserves every Gmail username as an application ID that
 only the corresponding Gmail user can register

 For example my Gmail account is luigigiro...@googlemail.com and I
 try to create an App Engine app with ID luigigirotti and it fails with
 the message An App or Google Account already exists with that name.

 If I try to put a hyphen in between like luigi-girotti then App
 Engine accepts it as a new ID.

 So, how to utilize those reserved Gmail IDs 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.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] Query Latency today

2010-04-28 Thread bFlood
any word on the cause? is it related to the planned maintenance today?
http://code.google.com/status/appengine/detail/datastore/2010/04/28#ae-trust-detail-datastore-query-latency

every 3rd or 4th query is well over 1000ms...

cheers
brian

-- 
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] https://peek-a-boo.appspot.com/ goes before my url in google search engine

2010-04-28 Thread Casey
I notice my site for some reason has been proxy hacked again with
https://peek-a-boo.appspot.com/ before it was http://go6internet.appspot.com/
. Does anyone know when google will fix this again?

-- 
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 structure to implement some of your friends also like this feature.

2010-04-28 Thread Herbert
Hi NIck

Thank you so much! So if I have merge join queries and if I can spare
resources on a custom index, there may be room for improvement on read
performance? I guess I could find this out with a larger data set on
the production server and query before / after building a custom
index.

Herbert

On Apr 28, 5:38 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Herbert,

 Merge join queries - queries with multiple equality filters but no
 inequalities or sort orders - are a special case. They can be satisfied
 using the built in indexes and a merge join strategy, but they can also use
 a custom index. The production environment will use the index if it's
 present, and otherwise will do a merge join.

 Generally, a merge join works well, but there are situations in which it
 doesn't - in which case you may need to add an explicit index.

 -Nick Johnson



 On Wed, Apr 28, 2010 at 4:42 AM, Herbert herber...@gmail.com wrote:
  Hi Nick

  Thank you. One thing I'm still a bit confused about index. I had the
  impression that if I've executed all kinds of queries before I deploy,
  all required indexes would be included, am I correct?

  Does building a custom index improve performance on complex queries
  even though it is not required? Or I could just stick to the rules
  from the doc, and make sure I cover all queries before I deploy?

  Thanks!

  On Apr 27, 6:59 pm, Nick Johnson (Google) nick.john...@google.com
  wrote:
   Hi Herbert,

   A query like this will use the merge join strategy by default. If it's
  too
   slow for the merge join strategy, you could have to build a custom index
  for
   it, which would indeed be 'exploding'  - each User entity would have
   len(friends)*len(likes) index entries.

   -Nick

   On Mon, Apr 26, 2010 at 3:20 PM, Herbert herber...@gmail.com wrote:
Sorry, suddenly got a thought on it.

Can I do two equality check on both User.friends and User.likes ?
would that be cause an exploding index?

I.E. User.all().filter(friends =, me).filter(likes =, A).fetch(3)

thanks!
Herbert

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

   --
   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 athttp://
  groups.google.com/group/google-appengine?hl=en.

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To post to this group, send email to google-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 
 athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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: Dashboard API

2010-04-28 Thread Harlan Crystal
Thanks Tim!  I'll look into that

On Wed, Apr 28, 2010 at 2:37 AM, Tim Hoffman zutes...@gmail.com wrote:
 Why doesn't the ereporter handler meet your requirements

 http://blog.notdot.net/2010/03/Using-the-ereporter-module-for-easy-error-reporting-in-App-Engine

 T

 On Apr 28, 4:01 am, Harlan Crystal harlan.crys...@gmail.com wrote:
 The use of this that is more important to me is doing sysadmin-work.
 I'm constantly checking my admin console throughout the day to make
 sure my error rate isn't high or that my taskqueues aren't backed up.
 If I could use an API to query this data and send problems to a pager
 it would really improve my life.

 On Mon, Apr 26, 2010 at 2:41 PM, Ikai L (Google) ika...@google.com wrote:





  We've heard requests for a Dashboard API before. I can certainly see the
  usefulness of being able to not just do read operations, but write
  operations as well. Make sure to star the issue and get others to do it.

  On Mon, Apr 26, 2010 at 10:51 AM, Peter Recore peterrec...@gmail.com
  wrote:

  doesn't Google Analytics require JavaScript to be active on the
  client?  If so, that would ignore hits from various categories of
  clients like people running no-script and agents making API calls
  through some kind of web service.  i think it would also ignore
  internal requests, like from a cron job.

  On Apr 26, 10:03 am, Nick Johnson (Google) nick.john...@google.com
  wrote:
   Hi Chris,

   Have you considered simply using Google Analytics?

   -Nick Johnson

   On Mon, Apr 26, 2010 at 8:05 AM, Chris Killpack killp...@gmail.com
   wrote:
I recently discovered that I had become a human cron-job: every night
around 11:50pm PST I would log into the GAE dashboard, total the
number of
requests in my app and store them in a spreadsheet so I could track
load
over time.

I've found no mention of a dashboard API, which leaves scraping the
HTML. This is non trivial because I have to deal with the Account
login
page, which I expect goes out of it's way to make auto login's hard. I
thought about hard-coding the relevant cookies into the cron job,
generating
new ones by manual login every time the existing ones fail. But it
appears
the relevant cookies only last 24 hours, so I'm back to my nightly
routine.

Is there another way to retrieve this info, and if not, are there
plans for
such a mechanism? I've found an open issue:

http://code.google.com/p/googleappengine/issues/detail?id=655can=5c...

Thanks,

Chris

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

   --
   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
   athttp://groups.google.com/group/google-appengine?hl=en.

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To post to this group, send email to google-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.

  --
  Ikai Lan
  Developer Relations, Google App Engine
  Twitter: http://twitter.com/ikai
  Delicious: http://delicious.com/ikailan
  
  Google App Engine links:
  Blog: http://googleappengine.blogspot.com
  Twitter: http://twitter.com/app_engine
  Reddit: http://www.reddit.com/r/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.

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

[google-appengine] Re: Compare tipfy and kay-framework?

2010-04-28 Thread Rodrigo Moraes
On Apr 14, 1:09 pm, Matt C  wrote:
 I'm curious about both of these.  From a quick overview, they are both
 well regarded, and to my newbie eyes, seem to be fairly similar to one
 another.

 Is there anyone who has tried both who could highlight the most
 important difference(s)?

 Also, I see that the owners of both tipfy and kay sometimes post
 here.  Comments from either of you about your favorite feature or what
 makes your framework different from other frameworks would be
 especially appreciated.

Heya,
Uh, only saw this message today.

I'm responsible for tipfy. Yep they are similar as both are based on
several same libraries - Werkzeug, Jinja2, Babel, and so on. From my
perspective the main difference is that kay follows a django'ish
approach for the views organization, and tipfy is more like webapp (so
we call them handlers :P). Besides the function vs class matter and
general project organization, I think both have several things in
common - a light core and a middleware system to plug extra
functionalities, and so on.

-- rodrigo

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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] https://peek-a-boo.appspot.com/ goes before my url in google search engine

2010-04-28 Thread Nick Johnson (Google)
Hi Casey,

These are proxy apps - they simply take incoming requests and make them on
the browser's behalf. Your site has not been 'hacked' in any fashion; Google
is simply indexing pages fetched through these proxies.

-Nick Johnson

On Wed, Apr 28, 2010 at 5:26 PM, Casey upperh...@gmail.com wrote:

 I notice my site for some reason has been proxy hacked again with
 https://peek-a-boo.appspot.com/ before it was
 http://go6internet.appspot.com/
 . Does anyone know when google will fix this again?

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



Re: [google-appengine] Re: Unable to delete previous versions of application

2010-04-28 Thread Ikai L (Google)
There should be a bug in our issues tracker. At any rate, we do have a
backlog of these which we clear periodically. We don't escalate these right
away since you can have up to 100 versions. If this is, for whatever reason,
blocking you, please fill out our billing issues form and let us know so we
can reprioritize.

On Wed, Apr 28, 2010 at 7:51 AM, esilver ericsilverb...@gmail.com wrote:

 I have this issue as wellmy Googler friend @nanaze said the best
 way to resolve was to just keep being persistent on the groups.

 GOOG, can you at least confirm that you have a bug filed for this
 issue? Thanks!!

 On Apr 23, 6:32 am, Nariya Takemura takem...@platinum-egg.com wrote:
  This is Takemura.
 
  Me too.
  My App is kd-mbga
 
  I can'tdeletetwo versions.
  One is 45 (deployed 21 days, 5:06:20 ago)
  Another is 9 (deployed 64 days, 7:48:10 ago)
 
  Situation is almost same.
 
 
 
 
 
   -Original Message-
   From: google-appengine@googlegroups.com
   [mailto:google-appeng...@googlegroups.com] On Behalf Of Alexander M
   Sent: Friday, April 23, 2010 7:01 AM
   To: Google App Engine
   Subject: [google-appengine]Unabletodeleteprevious
   versions of application
 
   Hello, I am hoping that someone from google can help me with
   this problem. My application is: romanceapp
 
   When I open  Versions from Dashboard, I am generally able
   to upload anddeleteversions without a problem. However,
   there are two versions (v1-feb-17-3am and rs-mar-12-0125)
   that I amunabletodelete, and that it would be nice to remove.
 
   Currently, when I try to remove the versions, I get the following
   error:
 
   Server Error
 
   A server error has occurred.
 
   Return to Applications screen 
 
   --
   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.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group athttp://
 groups.google.com/group/google-appengine?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-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.




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/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.



Re: [google-appengine] Blobstore Bytes Read quota??

2010-04-28 Thread Nick Johnson (Google)
Hi Alex,

What is your App ID?

-Nick Johnson

On Tue, Apr 27, 2010 at 10:28 AM, Alex Bertram akbert...@gmail.com wrote:

 Hi,

 Using the java API 1.3.2

 My app includes an import stage where a large data file (7-10mb) is
 uploaded using the BlobStore service. The processing of this file is
 broken up into a series of Tasks, which are executed sequentially
 (each task queues the next upon completion) .

 The datafile are not organized for random access, so each Task has to
 read through the entire datafile, no matter how small I make each
 individual task. This seems to work, but the dashboard says that I'm
 maxing out at 100% the Blobstore Bytes Read with 86,400 of 86,400. I
 can't find this quota documented anywhere.

 Again the tasks are running fine, but the big red bar makes me a bit
 nervous.

 Are there limits on reading bytes from Blobs? Is it really bytes or is
 it number of reads?

 I've written an InputStream wrapper for BlobStoreService that buffers
 in chunks of 512k. Is this value obviously too high/too low? Any
 advice on an optimal buffer size?

 Many thanks,

 Alex

 --
 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: WARNING appengine_rpc.py:399 ssl module not found.

2010-04-28 Thread J
You are right, Matthew. It does not block. Still, the message is there
for a reason and uploading without SSL increases the exposure. While
my site is in QA, I'm OK just putting up with the warning. I'd need to
tighten up my procedures before going live. Hopefully by then someone
will have posted an MSI.

One could argue that taking an MSI from someone you don't really know
is as risky as not using SSL at all, because they could have modified
the code before building the executable. That's a valid argument. I
wish Google did it and placed it on the App Engine downloads page :-).

Thanks.

On Apr 27, 4:03 pm, Matthew Blain matthew.bl...@google.com wrote:
 This message is a warning and not an error--it should not block you
 from uploading everything.

 --Matthew

 On Apr 27, 12:26 pm, J j.si...@earlystageit.com wrote:





  I am having this problem also. Found this thread in Google 
  Groups:http://groups.google.com/group/google-appengine/browse_thread/thread/

  The module requires Visual Studio to build and install. To have to
  install Visual Studio just for this seems a bit heavy. If some kind
  soul out there could build an MSI and post it, it would be wonderful.

  On Apr 26, 7:37 pm, Wooble geoffsp...@gmail.com wrote:

   Have you tried to install the ssl module from pypi? If so, what
   problem are you having with installing it?

   On Apr 26, 5:25 pm, oddse minpeng2...@gmail.com wrote:

Hello,

I got this warning and can't upload files and communicate with app
engine in order to unload file and create index for tables.

WARNING appengine_rpc.py:399 ssl module not found.
Without the ssl module, the identity of the remote host cannot be
verified, and
connections may NOT be secure. To fix this, please install the ssl
module fromhttp://pypi.python.org/pypi/ssl.
To learn more, 
seehttp://code.google.com/appengine/kb/general.html#rpcssl
. 

Need help to solve this problem.

Thank you.

   --
   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 
   athttp://groups.google.com/group/google-appengine?hl=en.

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

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

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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: Prerelease: New Appengine Bulkloader

2010-04-28 Thread Josh
I get the following error and then the process has to be killed to
exit.  Any ideas?

[ERROR   ] [Thread-11] ExportProgressThread:
Traceback (most recent call last):
  File /Users/s/Downloads/google_appengine/google/appengine/tools/
bulkloader.py, line 1442, in run
self.PerformWork()
  File /Users/s/Downloads/google_appengine/google/appengine/tools/
bulkloader.py, line 2210, in PerformWork
item.key_end)
  File /Users/s/Downloads/google_appengine/google/appengine/tools/
bulkloader.py, line 1993, in StoreKeys
self.py_type))
AssertionError:
agh3Zi1kYWlseXJFCxInX19TdGF0X1Byb3BlcnR5VHlwZV9Qcm9wZXJ0eU5hbWVfS2luZF9fIhhCbG9iX2NvbnRlbnRfRW50aXR5U2hhcmQM
is a class 'google.appengine.api.datastore_types.Key',
_ProgressDatabase expected type 'int'



On Apr 23, 1:36 pm, Matthew Blain matthew.bl...@google.com wrote:
 I have just updatedhttp://bulkloadersample.appspot.com/with a new
 release.
  * Updated to the 1.3.3 Python SDK
  * The wizard is easier to run and generates TODO comments on all
 lines which require editing. (You may want to do additional edits
 too.)
  * 'xml' format has been renamed to 'simplexml'--leaving room a more
 effective xml connector in the future may have a different interface.
 (No, there's no current plans for one.)

 I plan to talk about this at Google 
 I/O:http://code.google.com/events/io/2010/sessions/data-migration-appengi...
 Now is a great time to send feedback about the tool, or questions
 about the tool, to maximize the chance that your questions can be
 addressed in the session.

 --Matthew

 On Apr 22, 10:13 am, Sam Briesemeister sam.briesemeis...@gmail.com
 wrote:





  A couple of questions:

   - Is this feature easily ported into the 1.3.3 release of 4/21?
   - Is there a release timeline for this feature?

  Thanks!

  On Apr 9, 3:26 pm, Matthew Blain matthew.bl...@google.com wrote:

   I’d like to announce a wider prerelease of the new App Engine
  Bulkloaderconfiguration format. This new format extends the existing
  bulkloaderwith a new format with several advantages:

     * Semi-Automatic configuration generation: The SDK can generate a
  bulkloaderconfiguration based on your existing data.
     * Supports more data formats. CSV support has been extended to files
   with headers, basic XML support has been added, and it is simpler to
   use alternate text encodings in the files. Additional and custom data
   connectors are now easier to create.
     * Easier to use -- the new syntax is more declarative and
   descriptive than the old one. Developers who use languages other than
   Python no longer need to write code in the Python language, although
   the Python SDK is still required to run the tool.

   To try out the newbulkloader, please 
   visithttp://bulkloadersample.appspot.com/
   . Preliminary documentation is available on the README on that site
   along with a version of the 1.3.2 Python SDK containing the new
  bulkloader.

   You can send feedback to the group or directly to me.

   --Matthew Blain
   Google App Engine Team
   matthew.blain+bulkloa...@google.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 
  athttp://groups.google.com/group/google-appengine?hl=en.

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

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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] Outage

2010-04-28 Thread vivpuri
Has the outage started?

-- 
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] Why is the downtime scheduled right in the middle of the day for most timezones?

2010-04-28 Thread smwatch
I am sure Google team has some answers for this, but if this is a
planned maintenance, why is it in the middle of all the US time zones,
can this not have been done on later time in night when most US and
Europe traffic is the lowest.

Just trying to get an explanation, and also no notification are sent
out as of now about starting 1PM PST has already passed.

-- 
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: Why is the downtime scheduled right in the middle of the day for most timezones?

2010-04-28 Thread alf
In any post I have read the reason given is when all google enginers
are ready.
alf

On Apr 28, 10:26 pm, smwatch showm...@gmail.com wrote:
 I am sure Google team has some answers for this, but if this is a
 planned maintenance, why is it in the middle of all the US time zones,
 can this not have been done on later time in night when most US and
 Europe traffic is the lowest.

 Just trying to get an explanation, and also no notification are sent
 out as of now about starting 1PM PST has already passed.

 --
 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 
 athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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: Why is the downtime scheduled right in the middle of the day for most timezones?

2010-04-28 Thread Waleed Abdulla
Looks like it started around 1:30pm. I'm getting write exceptions now.



On Wed, Apr 28, 2010 at 1:33 PM, alf alberto@gmail.com wrote:

 In any post I have read the reason given is when all google enginers
 are ready.
 alf

 On Apr 28, 10:26 pm, smwatch showm...@gmail.com wrote:
  I am sure Google team has some answers for this, but if this is a
  planned maintenance, why is it in the middle of all the US time zones,
  can this not have been done on later time in night when most US and
  Europe traffic is the lowest.
 
  Just trying to get an explanation, and also no notification are sent
  out as of now about starting 1PM PST has already passed.
 
  --
  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 athttp://
 groups.google.com/group/google-appengine?hl=en.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-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] GQL - like '%param%'

2010-04-28 Thread Gleidson G Moura
how to make this query in GQL?

select p.nome p.idade from Pessoa where p.nome like '%gleidson%'


Obrigado!


-- 
Gleidson Guimarães Moura
Analista Desenvolvedor JAVA
www.powerlogic.com.br

 .. __@
 _ \ _
 ...(_)/ (_)

Os ventos que as vezes tiram algo que amamos, são os mesmos que trazem
algo que aprendemos a amar...
Por isso não devemos chorar pelo que nos foi tirado e sim, aprender a
amar o que nos foi dado.
Pois tudo aquilo que é realmente nosso, nunca se vai para sempre...
Bob Marley

The power of dreams.

-- 
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] Rotating Scheduled Maintenance times

2010-04-28 Thread emur...@conceptuamath.com
Today's scheduled maintenance is one hour long starting at 1pm Pacific
time.  There is maintenance scheduled for next Wednesday for one hour,
also at 1pm.  I understand the need for scheduled maintenance.  My
request is that the schedule rotates the outage to different times
around the clock to be fair to all apps.  The users of my application
use it primarily from 5am pacific to 3pm pacific.  If scheduled
maintenance will commonly fall at 1pm, then I'm in trouble.  If
maintenance is one hour long, some effort should be given to
distributing these maintenances instances evenly around the 24
available hours, so they do not impact an application like mine
unfairly.  For instance, the next maintenance could be at 1am Pacific
rather than 1pm (I know it's already scheduled, this is just and
example).  The times could rotate around the clock in this way;

1pm
1am
7pm
7am
2pm
2am
8pm
8am
etc.

Thanks for listening.

-- 
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: Why is the downtime scheduled right in the middle of the day for most timezones?

2010-04-28 Thread skk
Ahhh but has it ended yet ?

-skk

On Apr 28, 2:36 pm, Waleed Abdulla wal...@ninua.com wrote:
 Looks like it started around 1:30pm. I'm getting write exceptions now.



 On Wed, Apr 28, 2010 at 1:33 PM, alf alberto@gmail.com wrote:
  In any post I have read the reason given is when all google enginers
  are ready.
  alf

  On Apr 28, 10:26 pm, smwatch showm...@gmail.com wrote:
   I am sure Google team has some answers for this, but if this is a
   planned maintenance, why is it in the middle of all the US time zones,
   can this not have been done on later time in night when most US and
   Europe traffic is the lowest.

   Just trying to get an explanation, and also no notification are sent
   out as of now about starting 1PM PST has already passed.

   --
   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 athttp://
  groups.google.com/group/google-appengine?hl=en.

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  To post to this group, send email to google-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 
 athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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] You haven't set the DATABASE_ENGINE setting yet

2010-04-28 Thread fedex1
Hi,

I am seeing a similar problem.

Below is the settings file and the stack trace.

This error seems to come and go.  I don't make any changes and it
appears and then goes without any change.

It seems to have to do with writing to the database.

Can someone explain what the error is to help me understand what to
change?  Thanks, Ralph

The typical code is something like this:

 entry.ip = request.META[REMOTE_ADDR]
 entry.eventid = int(event_id)
 entry.put()

The settings.py file is:

# Copyright 2008 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the License);
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an AS IS BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Django settings for this project.

import os

DEBUG = True

TEMPLATE_DEBUG = DEBUG

ADMINS = (
('XXX', 'x...@gmail.com'),
)

MANAGERS = ADMINS

DATABASE_ENGINE = ''   # 'postgresql_psycopg2', 'postgresql',
'mysql', 'sqlite3' or 'ado_mssql'.
DATABASE_NAME = '' # Or path to database file if using
sqlite3.
DATABASE_USER = '' # Not used with sqlite3.
DATABASE_PASSWORD = '' # Not used with sqlite3.
DATABASE_HOST = '' # Set to empty string for localhost.
Not used with sqlite3.
DATABASE_PORT = '' # Set to empty string for default. Not
used with sqlite3.

# Local time zone for this installation. Choices can be found here:
# 
http://www.postgresql.org/docs/8.1/static/datetime-keywords.html#DATETIME-TIMEZONE-SET-TABLE
# although not all variations may be possible on all operating
systems.
# If running in a Windows environment this must be set to the same as
your
# system time zone.
TIME_ZONE = 'America/New_York'  # i.e., Brooklyn

# Language code for this installation. All choices can be found here:
# http://www.w3.org/TR/REC-html40/struct/dirlang.html#langcodes
# http://blogs.law.harvard.edu/tech/stories/storyReader$15
LANGUAGE_CODE = 'en-us'

SITE_ID = 1

# If you set this to False, Django will make some optimizations so as
not
# to load the internationalization machinery.
USE_I18N = False

# Absolute path to the directory that holds media.
# Example: /home/media/media.lawrence.com/
MEDIA_ROOT = ''

# URL that handles the media served from MEDIA_ROOT.
# Example: http://media.lawrence.com;
MEDIA_URL = ''

# URL prefix for admin media -- CSS, JavaScript and images. Make sure
to use a
# trailing slash.
# Examples: http://foo.com/media/;, /media/.
ADMIN_MEDIA_PREFIX = '/media/'

# Whether to append trailing slashes to URLs.
APPEND_SLASH = False

# Make this unique, and don't share it with anybody.
SECRET_KEY = '123'

# List of callables that know how to import templates from various
sources.
TEMPLATE_LOADERS = (
'django.template.loaders.filesystem.load_template_source',
)

ROOT_URLCONF = 'urls'

MIDDLEWARE_CLASSES = (
'django.contrib.sessions.middleware.SessionMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.middleware.common.CommonMiddleware'
)


TEMPLATE_DIRS = (
os.path.join(os.path.dirname(__file__), 'templates'),
# Put strings here, like /home/html/django_templates or C:/www/
django/templates.
# Always use forward slashes, even on Windows.
# Don't forget to use absolute paths, not relative paths.
)

INSTALLED_APPS = (
'django.contrib.admin',
'django.contrib.contenttypes',
)

WEBSITE='http://move.brooklynmarathon.com/'


The stack trace is:
#

   1.
  04-28 02:02PM 14.612 /evententry/165101 500 133ms 300cpu_ms
145api_cpu_ms 2kb Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:
1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR
3.5.30729),gzip(gfe),gzip(gfe)
  See details

  65.220.69.114 - fedex1 [28/Apr/2010:14:02:14 -0700] POST /
evententry/165101 HTTP/1.1 500 2188 http://move.brooklynmarathon.com/
evententry/165101 Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:
1.9.2.3) Gecko/20100401 Firefox/3.6.3 (.NET CLR
3.5.30729),gzip(gfe),gzip(gfe) move.brooklynmarathon.com

   2.
  E 04-28 02:02PM 14.743

  class 'django.core.exceptions.ImproperlyConfigured': You
haven't set the DATABASE_ENGINE setting yet.
  Traceback (most recent call last):
File /base/data/home/apps/move/2.341563111878929596/
django_bootstrap.py, line 67, in main
  util.run_wsgi_app(application)
File /base/python_runtime/python_lib/versions/1/google/
appengine/ext/webapp/util.py, line 97, in run_wsgi_app
  run_bare_wsgi_app(add_wsgi_middleware(application))
File /base/python_runtime/python_lib/versions/1/google/
appengine/ext/webapp/util.py, line 115, in run_bare_wsgi_app
  result = 

Re: [google-appengine] GQL - like '%param%'

2010-04-28 Thread Baz
You don't, full-text search is being worked on but won't be available for a
long time. There are hacks and solutions but you will have to research and
poke around.

2010/4/28 Gleidson G Moura gleidson.gmo...@gmail.com

 how to make this query in GQL?

 select p.nome p.idade from Pessoa where p.nome like '%gleidson%'


 Obrigado!


 --
 Gleidson Guimarães Moura
 Analista Desenvolvedor JAVA
 www.powerlogic.com.br

 .. __@
 _ \ _
 ...(_)/ (_)

 Os ventos que as vezes tiram algo que amamos, são os mesmos que trazem
 algo que aprendemos a amar...
 Por isso não devemos chorar pelo que nos foi tirado e sim, aprender a
 amar o que nos foi dado.
 Pois tudo aquilo que é realmente nosso, nunca se vai para sempre...
 Bob Marley

 The power of dreams.

 --
 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] exec javac

2010-04-28 Thread Toby Reyelts
David,

You can use an embeddable Java compiler, like
Janinohttp://docs.codehaus.org/display/JANINO/Home,
to compile Java code inside of your App Engine application.

On Mon, Apr 26, 2010 at 6:16 PM, David david.s.jan...@gmail.com wrote:

 Is it possible to store and compile a java (or C or whatever language)
 program on the server with Google App Engine, returning the results of
 the compile to the web client?

 This may seem like a strange question, but I really do want to send
 text that constitutes a simple java program, compile it, and return
 either the compiler error messages or the .class file to the web
 client.

 Thanks for any advice.

 David

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-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] Purging task queue not working

2010-04-28 Thread Harlan Crystal
Hi,

One of my task queues got filled with lots and lots of garbage tasks
during the scheduled maintenance period.

Even though I'm chewing through many tasks a minute, back of the
envelope estimates say I've got ~800,000 garbage tasks to get rid of.

I've tried to  purge the queue a few times, but whenever I hit the
purge button it sends me to the list of applications without any
explanation.  It's been about a half hour since I first tried purging
and the queue still appears to have a bunch of stuff in it.  Can I
have some assistance purging it please?

thanks,
-harlan

-- 
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] Why is the downtime scheduled right in the middle of the day for most timezones?

2010-04-28 Thread Harlan Crystal
Agreed.  Having an outage at this time in the day really does
noticeably cost my business money.

On Wed, Apr 28, 2010 at 4:26 PM, smwatch showm...@gmail.com wrote:
 I am sure Google team has some answers for this, but if this is a
 planned maintenance, why is it in the middle of all the US time zones,
 can this not have been done on later time in night when most US and
 Europe traffic is the lowest.

 Just trying to get an explanation, and also no notification are sent
 out as of now about starting 1PM PST has already passed.

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



-- 
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: Dashboard API

2010-04-28 Thread vivpuri
That still does not alert you on Task Queue quota, error rate,
response time,



On Apr 28, 2:37 am, Tim Hoffman zutes...@gmail.com wrote:
 Why doesn't the ereporter handler meet your requirements

 http://blog.notdot.net/2010/03/Using-the-ereporter-module-for-easy-er...

 T

 On Apr 28, 4:01 am, Harlan Crystal harlan.crys...@gmail.com wrote:





  The use of this that is more important to me is doing sysadmin-work.
  I'm constantly checking my admin console throughout the day to make
  sure my error rate isn't high or that my taskqueues aren't backed up.
  If I could use an API to query this data and send problems to a pager
  it would really improve my life.

  On Mon, Apr 26, 2010 at 2:41 PM, Ikai L (Google) ika...@google.com wrote:

   We've heard requests for a Dashboard API before. I can certainly see the
   usefulness of being able to not just do read operations, but write
   operations as well. Make sure to star the issue and get others to do it.

   On Mon, Apr 26, 2010 at 10:51 AM, Peter Recore peterrec...@gmail.com
   wrote:

   doesn't Google Analytics require JavaScript to be active on the
   client?  If so, that would ignore hits from various categories of
   clients like people running no-script and agents making API calls
   through some kind of web service.  i think it would also ignore
   internal requests, like from a cron job.

   On Apr 26, 10:03 am, Nick Johnson (Google) nick.john...@google.com
   wrote:
Hi Chris,

Have you considered simply using Google Analytics?

-Nick Johnson

On Mon, Apr 26, 2010 at 8:05 AM, Chris Killpack killp...@gmail.com
wrote:
 I recently discovered that I had become a human cron-job: every night
 around 11:50pm PST I would log into the GAE dashboard, total the
 number of
 requests in my app and store them in a spreadsheet so I could track
 load
 over time.

 I've found no mention of a dashboard API, which leaves scraping the
 HTML. This is non trivial because I have to deal with the Account
 login
 page, which I expect goes out of it's way to make auto login's hard. 
 I
 thought about hard-coding the relevant cookies into the cron job,
 generating
 new ones by manual login every time the existing ones fail. But it
 appears
 the relevant cookies only last 24 hours, so I'm back to my nightly
 routine.

 Is there another way to retrieve this info, and if not, are there
 plans for
 such a mechanism? I've found an open issue:

 http://code.google.com/p/googleappengine/issues/detail?id=655can=5c...

 Thanks,

 Chris

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

--
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
athttp://groups.google.com/group/google-appengine?hl=en.

   --
   You received this message because you are subscribed to the Google Groups
   Google App Engine group.
   To post to this group, send email to google-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.

   --
   Ikai Lan
   Developer Relations, Google App Engine
   Twitter: http://twitter.com/ikai
   Delicious: http://delicious.com/ikailan
   
   Google App Engine links:
   Blog: http://googleappengine.blogspot.com
   Twitter: http://twitter.com/app_engine
   Reddit: http://www.reddit.com/r/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.

  --
  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] Re: You haven't set the DATABASE_ENGINE setting yet

2010-04-28 Thread Greg
Not sure which thread this is the tail of, but it seems obvious to me
that you haven't set the DATABASE_ENGINE. Try eding your settings.py
and changing the line to:

DATABASE_ENGINE = sqllite3

Sorry if I haven't understood your problem correctly.

Cheers
Greg.

On Apr 29, 9:41 am, fedex1 fed...@gmail.com wrote:
 The settings.py file is:
 ...
 DATABASE_ENGINE = ''           # 'postgresql_psycopg2', 'postgresql', 
 'mysql', 'sqlite3' or 'ado_mssql'.
 ...
 django-0.96/django/db/backends/dummy/base.py, line 13, in complain
           raise ImproperlyConfigured, You haven't set the DATABASE_ENGINE 
 setting yet.

-- 
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: Why is the downtime scheduled right in the middle of the day for most timezones?

2010-04-28 Thread Greg
On Apr 29, 10:29 am, Harlan Crystal harlan.crys...@gmail.com wrote:
 Agreed.  Having an outage at this time in the day really does
 noticeably cost my business money.

Just a reminder that there are Appengine users outside the US. Here in
New Zealand I'm happy that this time it's early morning, unlike all
the previous ones that we're smack bang in the middle of my day. If
you think about it, some applications will be busiest first thing in
the morning, some during business hours, and some in the evening.
Throw in Europe and Asia, and there is no good time for maintenance.
I'm hoping that Google will phase out maintenance outages completely -
any Googlers like to comment on the possibility of this?

Like you, I have paying customers. I email them warnings about each
outage, and get very few complaints. I generally hold a couple of
feature updates until after each outage so customers feel their
getting some return for the inconvenience. This turns the outage into
a positive thing, because it gives the impression that we're improving
and refining the system.

-- 
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] Reproducible datastore errors after the maintenance

2010-04-28 Thread Waleed Abdulla
Hi there,
I started getting these errors in the last few hours. When trying to
put() some entities, the operation fails with Internal Error. It happens
on certain specific entities and those entities fail to put() 100% of the
time every time. Other entities seem normal. Here is a sample stack trace:


Traceback (most recent call last):
  File 
/base/data/home/apps/networkedblogs/1.341193116886810241/rocket/rocket.py,
line 205, in post
exec after_send_method(entity, new_entity) in locals()
  File string, line 1, in module
  File 
/base/data/home/apps/networkedblogs/1.341193116886810241/api/publisher.py,
line 246, in rocket_after_send
publisher.put()
  File 
/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py,
line 833, in put
return datastore.Put(self._entity, rpc=rpc)
  File 
/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py,
line 284, in Put
raise _ToDatastoreError(err)
InternalError: internal error.



And here is one that fails with DeadlineExceeded error. Again, on the
same specific entity:


Traceback (most recent call last):
  File 
/base/data/home/apps/networkedblogs/1.341193116886810241/rocket/rocket.py,
line 301, in main
run_wsgi_app(application)
  File 
/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py,
line 97, in run_wsgi_app
run_bare_wsgi_app(add_wsgi_middleware(application))
  File 
/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py,
line 115, in run_bare_wsgi_app
result = application(env, _start_response)
  File 
/base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py,
line 513, in __call__
handler.post(*groups)
  File 
/base/data/home/apps/networkedblogs/1.341193116886810241/rocket/rocket.py,
line 205, in post
exec after_send_method(entity, new_entity) in locals()
  File string, line 1, in module
  File /base/data/home/apps/networkedblogs/1.341193116886810241/api/blog.py,
line 308, in rocket_blog_after_send
blog.put_complete()
  File /base/data/home/apps/networkedblogs/1.341193116886810241/api/blog.py,
line 77, in put_complete
self.put()
  File 
/base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py,
line 833, in put
return datastore.Put(self._entity, rpc=rpc)
  File 
/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py,
line 282, in Put
'datastore_v3', 'Put', req, datastore_pb.PutResponse(), rpc)
  File 
/base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py,
line 185, in _MakeSyncCall
rpc.wait()
  File 
/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py,
line 460, in wait
self.__rpc.Wait()
  File 
/base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_rpc.py,
line 112, in Wait
rpc_completed = self._WaitImpl()
  File 
/base/python_runtime/python_lib/versions/1/google/appengine/runtime/apiproxy.py,
line 108, in _WaitImpl
rpc_completed = _apphosting_runtime___python__apiproxy.Wait(self)




I tried editing the faulty entity using the dashboard and that failed
too. I tried deleting it from the datastore viewer and that didn't work
either. I'm stuck as these entities are halting my replication process and
causing other entities waiting in the queue to not replicate either. App id
is: networkedblogs and here is one of the faulty entities:

SELECT * FROM Blog where __key__ = key('Blog', '_422270')


Regards,
Waleed

-- 
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] Entities stuck as read-only after scheduled maintenance

2010-04-28 Thread Ikai L (Google)
Hi everybody,

I just wanted to let you all know that we're on top of the issues regarding
the inability to update or delete certain entities resulting from the
scheduled maintenance. We're seeing somewhere around 0.5% of all requests
that access the datastore throw errors as a result of the maintenance. No
new entities should be stuck in this state, and we're working to fix all the
entities that have been stuck as a result of the maintenance.

We apologize for any inconvenience this has caused. We'll update the groups
again when we've reached a resolution.

-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/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.



[google-appengine] Re: Outage

2010-04-28 Thread Cody Swann
Doesn't appear to have started yet.

On Apr 28, 1:09 pm, vivpuri v...@vivekpuri.com wrote:
 Has the outage started?

 --
 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 
 athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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] Inadvertently deleted Google Apps account that had AppEngine apps (and no other administrator)

2010-04-28 Thread JZMatrix
I inadvertently deleted a Google Apps account from my domain that
still had a number of AppEngine apps under it, and no other
administrator accounts assigned.  Is there a way to have those apps
transfered to a different account under the same domain?

The original administrator account was ja...@ziemba.net
If a transfer is possible, the new administrator account should be
ziem...@ziemba.net

Thank you,
Jason Ziemba

-- 
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] appcfg.py update Server Error (500)

2010-04-28 Thread Jesse Hammons

tried it 5 times, I'm getting this error message:

Server: appengine.google.com.
Scanning files on local disk.
Initiating update.
Error 500: --- begin server output ---

Server Error (500)
A server error has occurred.
--- end server output ---


anyone else experiencing this issue?

-- 
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] Opensource form code for Google AppEngine

2010-04-28 Thread Milluk
Hi all,

Thanks for all the posts regarding how to use Django forms in GAE!

I had attempted to create a 2010 U.S. Census replica in Google
Spreadsheet forms and had some success in getting all the questions
down and so forth.  Yes, I had serious problems with entering in more
than one person, etc., but the real killer was the inability to share
the result with the respondent to the Census questions, provide a
secure means of doing so, and making it so that more than just me
could share with folks.  Answer: roll your own forms in Google
AppEngine.

Since I was not a programmer, I needed some help from one to get it
started, but now that it's done... Gee, most all the problems I had
with the Google Spreadsheets forms now are addressed:

- Privacy
- Results back to the user
- Results still saved in the Google Data Store
- All the variety of forms, etc.

While the form doesn't look that nice, you can check it out at
http://censuswizardbeta.appspot.com/wizard.  The code is also open
source on github under account milluk if you want to know how to make
your own forms based on the work to make that form.  Is it 100%
done.   No way.  There are a host of design issues, code issues,
usability issues, that should be addressed, but... it works and does
what it is supposed to do.  If you don't mind not being as sexy as
Google Spreadsheets or as easy to build, it's an alternative.

I suppose this post is a better candidate for AppEngine, but the whole
idea originated from the wonderful contributions from this forum (and
open data kit).

Cheers

-- 
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] Downtime not as advertized: memcache does not seem disabled

2010-04-28 Thread Jerome
To offer a better experience to our users, we wanted to detect the
downtime to disable some functionalities of our app before the point
of failure to write in the DataStore.

As the Scheduled Maintenance notification email specified that During
this scheduled maintenance, memcache will also be disabled., we
followed the instruction on the bottom of this page:
http://code.google.com/appengine/docs/java/howto/maintenance.html

Isn't the StrictErrorHandler() an accurate way to detect the downtime
anymore?

Jerome

-- 
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] Task Queue Internal Error

2010-04-28 Thread Greg
I've just deployed a task queue to handle a long running process that
deletes entities. Currently it does this in chunks of 250 at a time
using db.delete(entityList).

This works occasionally, but mostly fails with the internal error
shown below. This does not appear to be a resource issue, because the
request returns in 399ms (437cpu_ms 360api_cpu_ms). I'm using the name
parameter as advised by Nick's blog on chaining tasks.

Any ideas?

Cheers
Greg.

Traceback (most recent call last):
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/webapp/__init__.py, line 513, in __call__
handler.post(*groups)
  File /base/data/home/apps/myapp/8.341569110579056194/si_task.py,
line 53, in post
self.action()
  File /base/data/home/apps/apps/8.341569110579056194/si_task.py,
line 76, in action
deleteParents(sid,gen)
  File /base/data/home/apps/apps/8.341569110579056194/si_task.py,
line 34, in deleteParents
db.delete(parents)
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/db/__init__.py, line 1302, in delete
datastore.Delete(keys, rpc=rpc)
  File /base/python_runtime/python_lib/versions/1/google/appengine/
api/datastore.py, line 388, in Delete
raise _ToDatastoreError(err)
InternalError: internal error.

-- 
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] Reproducible datastore errors after the maintenance

2010-04-28 Thread Ikai L (Google)
Waleed, I've created a thread for this here to follow:

https://groups.google.com/group/google-appengine/browse_thread/thread/32a491e702cb79bd#

On Wed, Apr 28, 2010 at 6:07 PM, Waleed Abdulla wal...@ninua.com wrote:

 Hi there,
 I started getting these errors in the last few hours. When trying to
 put() some entities, the operation fails with Internal Error. It happens
 on certain specific entities and those entities fail to put() 100% of the
 time every time. Other entities seem normal. Here is a sample stack trace:

 Traceback (most recent call last):
   File 
 /base/data/home/apps/networkedblogs/1.341193116886810241/rocket/rocket.py, 
 line 205, in post
 exec after_send_method(entity, new_entity) in locals()
   File string, line 1, in module
   File 
 /base/data/home/apps/networkedblogs/1.341193116886810241/api/publisher.py, 
 line 246, in rocket_after_send
 publisher.put()
   File 
 /base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py,
  line 833, in put
 return datastore.Put(self._entity, rpc=rpc)
   File 
 /base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py,
  line 284, in Put
 raise _ToDatastoreError(err)
 InternalError: internal error.



 And here is one that fails with DeadlineExceeded error. Again, on the
 same specific entity:

 Traceback (most recent call last):
   File 
 /base/data/home/apps/networkedblogs/1.341193116886810241/rocket/rocket.py, 
 line 301, in main
 run_wsgi_app(application)
   File 
 /base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py,
  line 97, in run_wsgi_app
 run_bare_wsgi_app(add_wsgi_middleware(application))
   File 
 /base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/util.py,
  line 115, in run_bare_wsgi_app
 result = application(env, _start_response)
   File 
 /base/python_runtime/python_lib/versions/1/google/appengine/ext/webapp/__init__.py,
  line 513, in __call__
 handler.post(*groups)
   File 
 /base/data/home/apps/networkedblogs/1.341193116886810241/rocket/rocket.py, 
 line 205, in post
 exec after_send_method(entity, new_entity) in locals()
   File string, line 1, in module
   File 
 /base/data/home/apps/networkedblogs/1.341193116886810241/api/blog.py, line 
 308, in rocket_blog_after_send
 blog.put_complete()
   File 
 /base/data/home/apps/networkedblogs/1.341193116886810241/api/blog.py, line 
 77, in put_complete
 self.put()
   File 
 /base/python_runtime/python_lib/versions/1/google/appengine/ext/db/__init__.py,
  line 833, in put
 return datastore.Put(self._entity, rpc=rpc)
   File 
 /base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py,
  line 282, in Put
 'datastore_v3', 'Put', req, datastore_pb.PutResponse(), rpc)
   File 
 /base/python_runtime/python_lib/versions/1/google/appengine/api/datastore.py,
  line 185, in _MakeSyncCall
 rpc.wait()
   File 
 /base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_stub_map.py,
  line 460, in wait
 self.__rpc.Wait()
   File 
 /base/python_runtime/python_lib/versions/1/google/appengine/api/apiproxy_rpc.py,
  line 112, in Wait
 rpc_completed = self._WaitImpl()
   File 
 /base/python_runtime/python_lib/versions/1/google/appengine/runtime/apiproxy.py,
  line 108, in _WaitImpl
 rpc_completed = _apphosting_runtime___python__apiproxy.Wait(self)




 I tried editing the faulty entity using the dashboard and that failed
 too. I tried deleting it from the datastore viewer and that didn't work
 either. I'm stuck as these entities are halting my replication process and
 causing other entities waiting in the queue to not replicate either. App id
 is: networkedblogs and here is one of the faulty entities:

 SELECT * FROM Blog where __key__ = key('Blog', '_422270')


 Regards,
 Waleed

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




-- 
Ikai Lan
Developer Relations, Google App Engine
Twitter: http://twitter.com/ikai
Delicious: http://delicious.com/ikailan


Google App Engine links:
Blog: http://googleappengine.blogspot.com
Twitter: http://twitter.com/app_engine
Reddit: http://www.reddit.com/r/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.



[google-appengine] Re: Task Queue Internal Error

2010-04-28 Thread Greg
Ops! I just saw Ikai's post, and I'm guessing this is related. The
task works with enitites created since the outage, but not with those
created before.

On Apr 29, 1:26 pm, Greg g.fawc...@gmail.com wrote:
 I've just deployed a task queue to handle a long running process that
 deletes entities. Currently it does this in chunks of 250 at a time
 using db.delete(entityList).

 This works occasionally, but mostly fails with the internal error
 shown below. This does not appear to be a resource issue, because the
 request returns in 399ms (437cpu_ms 360api_cpu_ms). I'm using the name
 parameter as advised by Nick's blog on chaining tasks.

 Any ideas?

 Cheers
 Greg.

 Traceback (most recent call last):
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 ext/webapp/__init__.py, line 513, in __call__
     handler.post(*groups)
   File /base/data/home/apps/myapp/8.341569110579056194/si_task.py,
 line 53, in post
     self.action()
   File /base/data/home/apps/apps/8.341569110579056194/si_task.py,
 line 76, in action
     deleteParents(sid,gen)
   File /base/data/home/apps/apps/8.341569110579056194/si_task.py,
 line 34, in deleteParents
     db.delete(parents)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 ext/db/__init__.py, line 1302, in delete
     datastore.Delete(keys, rpc=rpc)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/datastore.py, line 388, in Delete
     raise _ToDatastoreError(err)
 InternalError: internal error.

 --
 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 
 athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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] reporting that blendapps is down

2010-04-28 Thread miracleweb
reporting that blendapps is down.?

-- 
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: reporting that blendapps is down

2010-04-28 Thread miracleweb
This was the error message:
--
Error: Server Error

The server encountered an error and could not complete your request.
If the problem persists, please report your problem and mention this
error message and the query that caused it.
--

On Apr 28, 8:47 pm, miracleweb miracle...@gmail.com wrote:
 reporting that blendapps is down.?

 --
 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 
 athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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] Accessing the Datastore

2010-04-28 Thread Rayomand
Hiya!

just a little help,

I have a good amount of data up on my GAE application datastore,
mostly numbers.

I need to access them using java, in order to carry out some number
crunchin calculations.

I intend hosting this java application on another cloud platform, say
AWS.

I wanted to know, about using the URLFetch option, i'm confused as to
what I have to pass as the URL to my java application.

I have been trying to find it on the google documentation, but haven't
been able to find what I am looking for.

and help, suggestions, will be greatly appreciated.

regards

Ray

-- 
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] Server failed to serve the requests.

2010-04-28 Thread WeShine Tech
Hello Robert,

  The errors that I see are mostly warning for the CPU consumption
exceeding the quota limit. I read on some thread that if one of the url
requests exceeds the quota limit the application goes down. I just want to
confirm this.

 Also this request is a simple async service (GWT). So if I just split
this service into multiple services will my issue be solved ?
 Also once the application is down, when I can expect it to start again.

Answers to the rest of the questions:

Between the versions there have been some minor bug fixes. However I
checked the logs of the older version and realized the  same log
regarding the CPU warning did exist at both the versions. So what I could
conclude is that may be the quota did not exceed the limit for my older
version because it had comparatively less load.

I did check the whole log in detail and did not find any such log which
would say :
This request caused a new process to be started for your
application, and thus caused your application code to be loaded for
the first time. This request may thus take longer and use more CPU
than a typical request for your application.

And regarding the cold start, can I expect any message in the log
regarding the same ?




On Wed, Apr 28, 2010 at 7:44 PM, Robert Kluin robert.kl...@gmail.comwrote:

 Anupam,

   What are the actual errors you are seeing?  Are errors in your
 app's error log?

   Further comments / questions inline:




 On Wed, Apr 28, 2010 at 12:31 AM, WeShine Tech
 intelltest.ad...@gmail.com wrote:
   Hello Robert,
 
Are you saying that you have other clients (customers) running the
  same code on different deployments ?
   No. So what happened is at my clients site the
  application stopped responding. So I started using the earlier versions
 of
  my application and those seemed to work fine.

 What has changed between versions?  Have you added additional request
 handlers, or otherwise increased the work that needs done to load your
 app?



  When you say the log shows latency issues I assume you mean the
 requests
  are taking
  a lot of CPU time?
   That is correct. But the same requests work absolutely fine
 otherwise.
  So why would some requests take a lot of CPU time only on
  some occasions where as work efficiently most of the times? Could you
 share
  some tippers for resolving this issue.

 If the app sits idle it will be unloaded from the app severs.  As I
 understand, apps may be more aggressively unloaded during times when
 the overall traffic to app engine itself is high.  What you are
 describing sounds like this could be the issue.

 Look in your apps info log for messages like:
   This request caused a new process to be started for your
 application, and thus caused your application code to be loaded for
 the first time. This request may thus take longer and use more CPU
 than a typical request for your application.





  The application is not a very high traffic one because of its nature.
  However after receiving high amount of load for almost two hours it went
  down. Also it has performed very well with more traffic in the past. So I
 am
  not sure it could be the Cold Start.

 This is almost the definition of the 'cold start' problem:  it does
 well under load, but once there is a drop in traffic you get
 performance issues.



  Thanks and Regards,
  Anupam M.
 
 
 
 
  On Wed, Apr 28, 2010 at 9:31 AM, Robert Kluin robert.kl...@gmail.com
  wrote:
 
  Anupam,
   Are you saying that you have other clients (customers) running the
  same code on different deployments, or are you saying you have loaded
  this app more heavily while running the current code?  When you say
  the log shows latency issues I assume you mean the requests are taking
  a lot of CPU time?
 
  It sounds like the app is not very high traffic.  Could this be the
  cold start issue?  If you hit the site a lot (once every couple
  seconds) does it respond OK?
 
 
  Robert
 
 
 
 
 
 
 
  On Tue, Apr 27, 2010 at 11:35 PM, WeShine Tech
  intelltest.ad...@gmail.com wrote:
   I did look into the problem and have been suggested that it could be
 due
   to
   latency issues. Please could you guide me through as to how to fix
 this.
   I
   have used the same code with more number of clients before but never
   faced a
   problem like this.
   The logs also show latency issues. And I did run the older version of
 my
   application using the appspot url. The older version performed just
   fine.
   However I did not try running the application using the
   appname.appspot.com url.
  
  
   On Tue, Apr 27, 2010 at 11:44 PM, Robert Kluin 
 robert.kl...@gmail.com
   wrote:
  
   Were there any actual exceptions in the app's log?
  
   Did you see the requests in the request log?
  
   If you were using a custom domain, could you access the site directly
   at the 'appname'.appspot.com url?
  
   Robert
  
  
  
  
  
  
   On Mon, Apr 26, 2010 at 9:52 AM, 

[google-appengine] do not reflect changes in the server

2010-04-28 Thread Pablo Moretti
Hello everyone, since the maintenance work carried out I have trouble
doing upload files and do not reflect changes in the server.

Help !

-- 
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: You haven't set the DATABASE_ENGINE setting yet

2010-04-28 Thread fedex1
Hi Greg and Everyone,

Do you happen to know where the documentation on this is.

The odd thing is the code works fine with the DATABASE_ENGINE set to
'' 99% of the time.

It's only a few times that it fails.

I suspect it's a write failure and I simply have to perform a retest,
but I don't see the recommended solution for this.

Also I tried what you said sqlite3

But the error now is:
class 'django.core.exceptions.ImproperlyConfigured': Error loading
sqlite3 module: No module named pysqlite2
Traceback (most recent call last):
  File /base/data/home/apps/race-reviews/1.341587830625416005/
django_bootstrap.py, line 70, in module
main()
  File /base/data/home/apps/race-reviews/1.341587830625416005/
django_bootstrap.py, line 67, in main
util.run_wsgi_app(application)
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/webapp/util.py, line 97, in run_wsgi_app
run_bare_wsgi_app(add_wsgi_middleware(application))
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/webapp/util.py, line 115, in run_bare_wsgi_app
result = application(env, _start_response)
  File /base/python_runtime/python_lib/versions/third_party/
django-0.96/django/core/handlers/wsgi.py, line 184, in __call__
self.load_middleware()
  File /base/python_runtime/python_lib/versions/third_party/
django-0.96/django/core/handlers/base.py, line 29, in load_middleware
mod = __import__(mw_module, {}, {}, [''])
  File /base/python_runtime/python_lib/versions/third_party/
django-0.96/django/contrib/sessions/middleware.py, line 2, in
module
from django.contrib.sessions.models import Session
  File /base/python_runtime/python_lib/versions/third_party/
django-0.96/django/contrib/sessions/models.py, line 3, in module
from django.db import models
  File /base/python_runtime/python_lib/versions/third_party/
django-0.96/django/db/__init__.py, line 11, in module
backend = __import__('django.db.backends.%s.base' %
settings.DATABASE_ENGINE, {}, {}, [''])
  File /base/python_runtime/python_lib/versions/third_party/
django-0.96/django/db/backends/sqlite3/base.py, line 18, in module
raise ImproperlyConfigured, Error loading %s module: %s %
(module, e)
class 'django.core.exceptions.ImproperlyConfigured': Error loading
sqlite3 module: No module named pysqlite2

Thanks,
Ralph

On Apr 28, 6:38 pm, Greg g.fawc...@gmail.com wrote:
 Not sure which thread this is the tail of, but it seems obvious to me
 that you haven't set theDATABASE_ENGINE. Try eding your settings.py
 and changing the line to:

    DATABASE_ENGINE= sqllite3

 Sorry if I haven't understood your problem correctly.

 Cheers
 Greg.

 On Apr 29, 9:41 am,fedex1fed...@gmail.com wrote:

  The settings.py file is:
  ...
 DATABASE_ENGINE= ''           # 'postgresql_psycopg2', 'postgresql', 
 'mysql', 'sqlite3' or 'ado_mssql'.
  ...
  django-0.96/django/db/backends/dummy/base.py, line 13, in complain
            raise ImproperlyConfigured, You haven't set 
  theDATABASE_ENGINEsetting yet.

 --
 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 
 athttp://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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] Accessing the Datastore

2010-04-28 Thread Mr. Rajiv Bakulesh Shah
Hi, Ray.

urlfetch is a way for a Google App Engine app to download web content.  In 
other words, it's a way to get data into your GAE app, not a way to get data 
out of your GAE app.

If I understand you correctly, you need to write some request handlers within 
your GAE app.  Your GAE request handlers can accept URL query parameters, then 
fetch the appropriate data, then return the data in some nice format to whoever 
made the request (presumably your AWS app).  Your request handlers can return 
HTML, or JSON, or plain text (whatever is most convenient for you).

Now, your AWS app can use urlfetch (or some equivalent function) to query your 
GAE app.  Then your AWS app can crunch that data per your needs.

I hope that clarifies things,
Raj

On Apr 28, 2010, at 9:41 PM, Rayomand wrote:

 Hiya!
 
 just a little help,
 
 I have a good amount of data up on my GAE application datastore,
 mostly numbers.
 
 I need to access them using java, in order to carry out some number
 crunchin calculations.
 
 I intend hosting this java application on another cloud platform, say
 AWS.
 
 I wanted to know, about using the URLFetch option, i'm confused as to
 what I have to pass as the URL to my java application.
 
 I have been trying to find it on the google documentation, but haven't
 been able to find what I am looking for.
 
 and help, suggestions, will be greatly appreciated.
 
 regards
 
 Ray
 
 -- 
 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.
 

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