[appengine-java] GAE response returns null randomly

2011-03-11 Thread sri
Randomly the response is coming as null although the required DB save/Update 
is successful

Scenario:

I am using Rest web services(Restlet) for client-server communication

1URLFetchService as client (as HTTPClient is not supported)

URL url = new URL(http://localhost:8080; + path);
URLFetchService urlFetchService = 
URLFetchServiceFactory.getURLFetchService();
HTTPRequest httpRequest = new HTTPRequest(url, HTTPMethod.POST);
httpRequest.setPayload(payload.getBytes());
resp = urlFetchService.fetch(httpRequest);

2Sending the data as an XML and on the server side unmarshalling it using 
JAXB.

3After saving/updating the JDO , i am returning an appropriate status 
message as a Representation in response.
e.g - new StringRepresentation(User already exists., 
MediaType.TEXT_PLAIN);

The problem is that many times the response is coming as null even though an 
status with a proper Representation is returned.

I came to many assumptions to justify the above issue 
1May be the URLFetchService times out (as i read somewhere that it times 
out in 5sec)
2The web layer calling REST services  the app layer responding are on the 
same GAE server.

Also tried using urlFetchService.fetchAsync()..

Struggling with this issue for past one week

Any insights...Please update

Thanks
Sri

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



[appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-11 Thread jesbox
I'm not sure about the idea. Sounds like giving a rocket launcher to a
kid.

You let the adaptation happen in the full development environment made
for professional programmers. If the re-deployment does not work out,
will your framework reset the GAE invisibly to the user? And so on.

Then there is this UI you made that I presume limits what the user can
specify quite a lot. So you could instead make a GAE application that
receives the settings from the UI and makes the appropriate brancings
accordingly. Like you write a program that adapts it behavior
depending on some parameter file, just that the parameters comes from
the UI.

Besides, I think that dynamic classloading is not possible in GAE.

/J

On Mar 7, 9:13 am, Rick Smith rick@gmail.com wrote:
 Hi all

 Can I create and compile a java class at run time on goolge
 appengine.
 Use case: I have given a UI to my application user that they can
 define their own business logic.Now what is going to be main challenge
 is that I need to make new deployment each time when some one need to
 modify its business logic. As an alternate I want to store source code
 in data base and compile it when required.

 Regards

 Rick

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



[appengine-java] question on high-throughput data pipelines googleio 2010 talk

2011-03-11 Thread Luke
for the example given regarding group count.

1.student market is incremented from 16 to 17 and saved()
2.the incremented value 17 is passed to 2 task queues .
3. each task queue has this checkingmarker.sequence [from
marker.get() ]  = sequence [from value passed in  through task queue]

if before reach step3, we do another update on student and marker and
sequence is now incremented to 18 and follow by step 3 is run
we will have17 = 18

arent this will break the consistency of the data. as now task queue
no longer able to execute task as marker.get() will be value
18,19,20 , but the first task sequence number is 17 not yet execute
and cannot execute as marker.get() return 18 ?


is this the reason Brett mentioned transaction must be 1 transaction/s
to minimize this from happening?

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



[appengine-java] question on high-throughput data pipelines googleio 2010 talk

2011-03-11 Thread Luke
1.let say student is updated and marker is incremented from 16 to
17 .  2 tasks are fired call taskA, and taskB
2. then student is update again and market is incremented from 17 to
18.   another 2 tasks are fired call task C, and task D.


Is there any gurantee task set (A, B) will be execute before task set
(C, D) ?  because task queue wiki mentioned there is no guarantee for
the sequence of execution . if this ordering is not gurantee, in mean
in high load side, if task C and D are executed before task A, B.
data consistency has problem.

Is this the reason, in Brett''s talk, he suggested do transaction 1/
second to minimize this from happening?

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



[appengine-java] Blobstore Java API - people can upload whatever they want with no control

2011-03-11 Thread Luca Matteis
I have started using the Bloblstore Java API:
http://code.google.com/appengine/docs/java/blobstore/overview.html

It seems like the upload form goes to something like:

form action=/_ah/upload/agRtaWx1chsLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18YTww

This is part of appengine, it's not my code. This means I can't
prevent uploads of a given type or uploads of a given length. They get
loaded into my datastore under __BlobInfo__ no matter what.
Isn't this sort of bad? I don't want to have my datastore be filled
with things even though it's google storing the data. Bots would just
use it to upload spam. I want the upload to happen only by some means
of authentication.

Any ideas?

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



[appengine-java] Re: Blobstore Java API - people can upload whatever they want with no control

2011-03-11 Thread Didier Durand
Hi,

You're right: you can't control WHAT (size, etc...) the users upload
but you can control IF they upload: the key after /upload is generated
by App Engine and has to be a valid one (not too old, not used yet,
etc,,) to be usable for an update.

If you generate such an upload for authentified users, it gets pretty
secure.

What else you be looking for ? If it size, or content or something
equivalent that means anyway that you have to get out of the browser
sandbox in your application (via java applet, etc..) in order to do
the additional controls you need: a regular web app can't access and
check local files because of the sandbox.

regards

didier

On Mar 11, 12:07 pm, Luca Matteis lmatt...@gmail.com wrote:
 I have started using the Bloblstore Java 
 API:http://code.google.com/appengine/docs/java/blobstore/overview.html

 It seems like the upload form goes to something like:

     form action=/_ah/upload/agRtaWx1chsLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18YTww

 This is part of appengine, it's not my code. This means I can't
 prevent uploads of a given type or uploads of a given length. They get
 loaded into my datastore under __BlobInfo__ no matter what.
 Isn't this sort of bad? I don't want to have my datastore be filled
 with things even though it's google storing the data. Bots would just
 use it to upload spam. I want the upload to happen only by some means
 of authentication.

 Any ideas?

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



[appengine-java] SHA1 digest error

2011-03-11 Thread john abbott
Hi Everyone,

I'm having problems getting my app to run when deployed to GAE.  It runs 
fine through Eclipse locally.

At the moment I'm getting the following error in my log file:

java.lang.ExceptionInInitializerError

...

Caused by: java.lang.SecurityException: SHA1 digest error for 
org/apache/commons/logging/LogFactory.class

Does anyone have any ideas what I might be able to do to fix this?  I 
vaguely remember something on a previous forum post about removing  MANIFEST 
files to fix this error but cannot find that post, I've done this in any 
case and checked the app still run locally but am still getting these 
errors.

Thanks

John

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



Re: [appengine-java] Re: Blobstore Java API - people can upload whatever they want with no control

2011-03-11 Thread Luca Matteis
So you're saying I should only generate the upload key url if the
user is authenticated?
And that would make it secure? avoid spam and such?

On Fri, Mar 11, 2011 at 12:32 PM, Didier Durand durand.did...@gmail.com wrote:
 Hi,

 You're right: you can't control WHAT (size, etc...) the users upload
 but you can control IF they upload: the key after /upload is generated
 by App Engine and has to be a valid one (not too old, not used yet,
 etc,,) to be usable for an update.

 If you generate such an upload for authentified users, it gets pretty
 secure.

 What else you be looking for ? If it size, or content or something
 equivalent that means anyway that you have to get out of the browser
 sandbox in your application (via java applet, etc..) in order to do
 the additional controls you need: a regular web app can't access and
 check local files because of the sandbox.

 regards

 didier

 On Mar 11, 12:07 pm, Luca Matteis lmatt...@gmail.com wrote:
 I have started using the Bloblstore Java 
 API:http://code.google.com/appengine/docs/java/blobstore/overview.html

 It seems like the upload form goes to something like:

     form 
 action=/_ah/upload/agRtaWx1chsLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18YTww

 This is part of appengine, it's not my code. This means I can't
 prevent uploads of a given type or uploads of a given length. They get
 loaded into my datastore under __BlobInfo__ no matter what.
 Isn't this sort of bad? I don't want to have my datastore be filled
 with things even though it's google storing the data. Bots would just
 use it to upload spam. I want the upload to happen only by some means
 of authentication.

 Any ideas?

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



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



[appengine-java] Re: Blobstore Java API - people can upload whatever they want with no control

2011-03-11 Thread Didier Durand
Hi,

I don't exactly know what you mean by secure but having only the
logged in people be allowed to upload will already significantly
reduce spam.

And then, you can use captchas to make sure it's a human, etc.

regards

didier

On Mar 11, 1:58 pm, Luca Matteis lmatt...@gmail.com wrote:
 So you're saying I should only generate the upload key url if the
 user is authenticated?
 And that would make it secure? avoid spam and such?

 On Fri, Mar 11, 2011 at 12:32 PM, Didier Durand durand.did...@gmail.com 
 wrote:
  Hi,

  You're right: you can't control WHAT (size, etc...) the users upload
  but you can control IF they upload: the key after /upload is generated
  by App Engine and has to be a valid one (not too old, not used yet,
  etc,,) to be usable for an update.

  If you generate such an upload for authentified users, it gets pretty
  secure.

  What else you be looking for ? If it size, or content or something
  equivalent that means anyway that you have to get out of the browser
  sandbox in your application (via java applet, etc..) in order to do
  the additional controls you need: a regular web app can't access and
  check local files because of the sandbox.

  regards

  didier

  On Mar 11, 12:07 pm, Luca Matteis lmatt...@gmail.com wrote:
  I have started using the Bloblstore Java 
  API:http://code.google.com/appengine/docs/java/blobstore/overview.html

  It seems like the upload form goes to something like:

      form 
  action=/_ah/upload/agRtaWx1chsLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18YTww

  This is part of appengine, it's not my code. This means I can't
  prevent uploads of a given type or uploads of a given length. They get
  loaded into my datastore under __BlobInfo__ no matter what.
  Isn't this sort of bad? I don't want to have my datastore be filled
  with things even though it's google storing the data. Bots would just
  use it to upload spam. I want the upload to happen only by some means
  of authentication.

  Any ideas?

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



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



Re: [appengine-java] Re: Blobstore Java API - people can upload whatever they want with no control

2011-03-11 Thread Luca Matteis
Thanks, I think I got it. So basically you want to show the
%blobstoreService.createUploadUrl(/upload)% only to people that
should upload.

Luca

On Fri, Mar 11, 2011 at 2:21 PM, Didier Durand durand.did...@gmail.com wrote:
 Hi,

 I don't exactly know what you mean by secure but having only the
 logged in people be allowed to upload will already significantly
 reduce spam.

 And then, you can use captchas to make sure it's a human, etc.

 regards

 didier

 On Mar 11, 1:58 pm, Luca Matteis lmatt...@gmail.com wrote:
 So you're saying I should only generate the upload key url if the
 user is authenticated?
 And that would make it secure? avoid spam and such?

 On Fri, Mar 11, 2011 at 12:32 PM, Didier Durand durand.did...@gmail.com 
 wrote:
  Hi,

  You're right: you can't control WHAT (size, etc...) the users upload
  but you can control IF they upload: the key after /upload is generated
  by App Engine and has to be a valid one (not too old, not used yet,
  etc,,) to be usable for an update.

  If you generate such an upload for authentified users, it gets pretty
  secure.

  What else you be looking for ? If it size, or content or something
  equivalent that means anyway that you have to get out of the browser
  sandbox in your application (via java applet, etc..) in order to do
  the additional controls you need: a regular web app can't access and
  check local files because of the sandbox.

  regards

  didier

  On Mar 11, 12:07 pm, Luca Matteis lmatt...@gmail.com wrote:
  I have started using the Bloblstore Java 
  API:http://code.google.com/appengine/docs/java/blobstore/overview.html

  It seems like the upload form goes to something like:

      form 
  action=/_ah/upload/agRtaWx1chsLEhVfX0Jsb2JVcGxvYWRTZXNzaW9uX18YTww

  This is part of appengine, it's not my code. This means I can't
  prevent uploads of a given type or uploads of a given length. They get
  loaded into my datastore under __BlobInfo__ no matter what.
  Isn't this sort of bad? I don't want to have my datastore be filled
  with things even though it's google storing the data. Bots would just
  use it to upload spam. I want the upload to happen only by some means
  of authentication.

  Any ideas?

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



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



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



[appengine-java] Re: Remote_api in Java works in Development Server?

2011-03-11 Thread Greg
Carlos,

I am having the same problem.  This is a huge issue with the Google
App Engine. I chose this environment to develop on because it seemed
to be flexible and robust. The prices seem fair.

To not be able to develop on a local development platform in Java is a
deal killer.  I'm at my wits end.

I'm using a large data set and need to test things locally first.
That there is no easy way to ingest data locally is absurd.

I recommend you give http://appwrench.onpositive.com/ a try. You can
upload data, but it's a bit buggy.

On Feb 17, 12:23 pm, Carlos Aguilar c.aguim...@gmail.com wrote:
 I've been following all tutorials, but I always get the same error
 when trying to upload data to the Development Server:

 - Authentication Failed  at Terminal
 - Cookie name Path is a reserved token - in Server

 I'm having some troubles in my production app because the data so I
 would like to debug with the same data. Is this impossible with
 appengine?

 Carlos

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



[appengine-java] Over Quota?

2011-03-11 Thread speed
eg:
Resource   Over Quota
Requests Incoming Bandwidth 1.00 GBytes
UrlFetch Data Received   4.00 GBytes

But the system to calculate:

Requests Incoming Bandwidth = Requests Incoming Bandwidth +
UrlFetch Data Received

Over Quota of theUrlFetch Data Received   is  too big.


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



[appengine-java] Over Quota?

2011-03-11 Thread speed
Resource   Over Quota
Requests Incoming Bandwidth

Requests Incoming Bandwidth = Requests Incoming Bandwidth + UrlFetch
Data Received

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



[appengine-java] Re: Using BulkUpload into Local Java Dev Server on Mac

2011-03-11 Thread Greg
Brian,

I have beaten my head against the wall on this problem myself.

I agree with your assessment that it's likely a Mac issue. I'd really
like to see the dev team take a look at this.

Good luck. Have you filed a bug yet? I've only just joined the group
and it was to complain about this problem.

I've not explored the issue tracking system yet.  Hopefully they are
aware of this issue.



On Mar 9, 11:28 pm, Brian Conneen conn...@gmail.com wrote:
 I've seen a bunch of threads on this issue, but there doesn't seem to
 be a definitive example of getting this to work.

 Essentially I want to migrate my existing Python app to Java, and I
 know I can deploy both versions into production. But I want to do lots
 of testing locally before ever deploying a Java version.  And in order
 to test, I need to upload my data into my local Java dev server
 datastore.

 I can use bulkuploader to export the datastore from the production
 PYTHON app and load it into a local PYTHON dev server datastore no
 problem. I've done it hundreds of time.

 If I try to use the same export to load into my local JAVA dev server
 datastore, I always get an AuthenticationException [See stack below].
 Yes I've configured remote_api. Yes I can 
 accesshttp://localhost:/remote_api
 from a browser. It first takes me to the authentication page.  But
 bulkupload just won't work against my local JAVA dev datastore.

 I've now read every thread on this subject, and it seems like there
 might be a commonality.  Perhaps everyone running into this
 AuthenticationException is running on a Mac? I really don't know
 what's causing it, and I can't believe more people don't want to do
 the same thing.

 Stack Trace:

 [DEBUG   ] Bulkloader using app_id: bofprod
 [INFO    ] Connecting to localhost:8080/remote_api
 [ERROR   ] Exception during authentication
 Traceback (most recent call last):
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/bulkloader.py, line 3175, in Run
     self.request_manager.Authenticate()
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/bulkloader.py, line 1187, in Authenticate
     remote_api_stub.MaybeInvokeAuthentication()
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/ext/remote_api/remote_api_stub.py, line 540, in
 MaybeInvokeAuthentication
     datastore_stub._server.Send(datastore_stub._path, payload=None)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/tools/appengine_rpc.py, line 346, in Send
     f = self.opener.open(req)
   File /System/Library/Frameworks/Python.framework/Versions/2.6/lib/
 python2.6/urllib2.py, line 389, in open
     response = meth(req, response)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/ext/remote_api/throttle.py, line 473, in
 http_response
     self.AddResponse(BANDWIDTH_DOWN, res)
   File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
 GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
 google/appengine/ext/remote_api/throttle.py, line 414, in AddResponse
     content = res.read()
   File /System/Library/Frameworks/Python.framework/Versions/2.6/lib/
 python2.6/socket.py, line 327, in read
     data = self._sock.recv(rbufsize)
   File /System/Library/Frameworks/Python.framework/Versions/2.6/lib/
 python2.6/httplib.py, line 537, in read
     s = self.fp.read(amt)
   File /System/Library/Frameworks/Python.framework/Versions/2.6/lib/
 python2.6/socket.py, line 351, in read
     data = self._sock.recv(left)
 error: [Errno 54] Connection reset by peer
 [INFO    ] Authentication Failed

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



[appengine-java] GAE on Mac OS X not working on local Jetty

2011-03-11 Thread ThePablick
I ran into a strange problem: when I try to run the Web Application I
created using the SDK, it can not be run. It worked on Windows, but
when I switched to Mac, I keep getting this:

2011-03-11 11:49:55.487 java[2586:903] [Java CocoaComponent
compatibility mode]: Enabled
2011-03-11 11:49:55.489 java[2586:903] [Java CocoaComponent
compatibility mode]: Setting timeout for SWT to 0.10
Mar 11, 2011 10:49:56 AM com.google.apphosting.utils.jetty.JettyLogger
info
INFO: Logging to JettyLogger(null) via
com.google.apphosting.utils.jetty.JettyLogger
Mar 11, 2011 10:49:56 AM
com.google.apphosting.utils.config.AppEngineWebXmlReader
readAppEngineWebXml
INFO: Successfully processed /Users/thepablick/Documents/Eclipse/Test/
war/WEB-INF/appengine-web.xml
Mar 11, 2011 10:49:56 AM
com.google.apphosting.utils.config.AbstractConfigXmlReader
readConfigXml
INFO: Successfully processed /Users/thepablick/Documents/Eclipse/Test/
war/WEB-INF/web.xml
Mar 11, 2011 11:49:57 AM
com.google.appengine.tools.development.DevAppServerImpl start
INFO: The server is running at http://localhost:/

Then, after two seconds, the process just terminates, no output, no
stack trace, no error logs to be found.

The application is working when deployed to appspot.

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



[appengine-java] Re: Remote_api in Java works in Development Server?

2011-03-11 Thread Greg
Carlos,

I am having the same problem.  This is a huge issue with the Google
App Engine. I chose this environment to develop on because it seemed
to be flexible and robust. The prices seem fair.

To not be able to develop on a local development platform in Java is a
deal killer.  I'm at my wits end.

I'm using a large data set and need to test things locally first.
That there is no easy way to ingest data locally is absurd.

I recommend you give http://appwrench.onpositive.com/ a try. You can
upload data, but it's a bit buggy.

On Feb 17, 12:23 pm, Carlos Aguilar c.aguim...@gmail.com wrote:
 I've been following all tutorials, but I always get the same error
 when trying to upload data to the Development Server:

 - Authentication Failed  at Terminal
 - Cookie name Path is a reserved token - in Server

 I'm having some troubles in my production app because the data so I
 would like to debug with the same data. Is this impossible with
 appengine?

 Carlos

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



[appengine-java] Re: Login redirect failing all of a sudden /_ah/conflogin

2011-03-11 Thread Jayson Ragasa
Yes, an extra step is needed to do the offsite redirection because we
cannot just redirect using sendRedirect() method right after
createLoginURI();

is there any way of telling us that it was a successful login?

On Mar 7, 4:27 pm, Lars Rönnbäck lars.ronnb...@gmail.com wrote:
 Where and when was this change announced? It is causing a major
 inconvenience right now before we are able to push a new release with
 the suggested workaround. I don't want to end up in this situation
 ever again.

 We have built a client-side web application using HTML5 that stores
 information in the cloud using Google App Engine, and we need to
 redirect back to the site hosting the client app after the login. The
 funny thing is that after I see the error and go back to the site
 hosting the client app I am still not logged in, so I suppose that
 there is an extra step in the login procedure that does not got
 executed right now?

 Regards,
 Lars

 On Mar 4, 8:59 pm, Jon McAlister jon...@google.com wrote:







  The workaround is to have the app perform the redirect. That is,
  createLoginUrl only works when the continue url is a url for the app.
  If you need the user to be sent to another app/host after login, then
  your app needs to do that redirect.

  On Fri, Mar 4, 2011 at 11:47 AM, Glenn glenn.mur...@gmail.com wrote:
   What was the good workaround?  Our login is broken, too.

   We have two App Engine apps: one is the front end and one the back
   end,
   with a REST API.  When the user accesses the front end a call to the
   back end is made where

   redirect = userService.createLoginURL(gae front end);

   is called.  In this case both apps have appspot.com urls and
   it worked well.  We are dead in the water now.

   Please help!

   Thanks,
   Glenn

   On Mar 2, 12:31 pm, Jon McAlister jon...@google.com wrote:
   Looks like you pushed a good workaround already, but yes that was a
   result of a new login system yesterday, and looks like it is not
   handling this case like the prior system did.

   Specifically, calling createLoginUrl where the continue url is not the
   same as the url the app is hosted on. And, furthermore, the continue
   url is not an app engine url at all.

   For now, what you did was a good workaround. That is, use an app
   engine url as the continue url, and then have the app engine app
   redirect to the non-app-engine url.

   Need to think on this case some more.

   On Wed, Mar 2, 2011 at 7:53 AM, Joerg Weingarten 
   jbwinvest...@gmail.com wrote:
Since this morning my call to userservice.createLoginUrl produces a
url that doesn't work anymore. When selecting my Sign in link, which
has a url like:

   https://www.google.com/accounts/ServiceLogin?service=ahpassive=true;...

I get the error:

The requested URL /_ah/conflogin was not found on this server.

Somebody please help.

Thx
---Joerg---

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

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

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



[appengine-java] Re: Remote_api in Java works in Development Server?

2011-03-11 Thread Greg
Carlos,

I am having the same problem.  This is a huge issue with the Google
App Engine. I chose this environment to develop on because it seemed
to be flexible and robust. The prices seem fair.

To not be able to develop on a local development platform in Java is a
deal killer.  I'm at my wits end.

I'm using a large data set and need to test things locally first.
That there is no easy way to ingest data locally is absurd.

I recommend you give http://appwrench.onpositive.com/ a try. You can
upload data, but it's a bit buggy.

On Feb 17, 12:23 pm, Carlos Aguilar c.aguim...@gmail.com wrote:
 I've been following all tutorials, but I always get the same error
 when trying to upload data to the Development Server:

 - Authentication Failed  at Terminal
 - Cookie name Path is a reserved token - in Server

 I'm having some troubles in my production app because the data so I
 would like to debug with the same data. Is this impossible with
 appengine?

 Carlos

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



[appengine-java] Re: suggestions on template engine for GAE-java

2011-03-11 Thread Igor Mihálik
I've noticed appstats app uses some python-like templating in Java. It's 
clear from the appengine-api-labs-*.jar. There's 
apphosting/ext/appstats/templates with html files with the templates. Is 
this something Google could share with us? Also the classes in the package 
like com.google.appengine.tools.appstats.TemplateTool are package private so 
it's all hidden inside. Is it shared somewhere publicly or am I just missing 
something obvious?
- Igor

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



[appengine-java] Blobstore API vs Datastore API

2011-03-11 Thread Luca Matteis
After spending almost half a day implementing the Blobstore API
locally I realized only after uploading that it actually to have
billing enabled in order to work. I'm not exactly happy with that
because I wish the dev_appserver would've told me. Anyhow, I don't
feel like giving out my credit-card to Google for this feature since I
just want to test my little project and how it behaves, performance
wise, with Google's free option.

So after googling a bit I found this:
http://stackoverflow.com/questions/1513603/how-to-upload-and-store-an-image-with-google-app-engine-java
Which basically uses the datastore to store a Blob of the image. I'm
wondering, if this is possible, why is Google charging for the
Blobstore API?

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



[appengine-java] Re: Blobstore API vs Datastore API

2011-03-11 Thread Simon Knott
The datastore can handle blobs with a maximum size of 1MB, whereas the 
blobstore can handle blobs of 2GB.

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



Re: [appengine-java] Re: Weird performance problem last 3 days or so

2011-03-11 Thread Don Schwarz
I can look into this.  Can you reply privately with the real appids for foo
and bar?

On Thu, Mar 10, 2011 at 10:49 PM, mdt mixed.doubles.t...@gmail.com wrote:

 Some more information on this -- looking through the logs I didn't occur to
 me to expand the entries for the long latency queries, but when I did I
 found:


 The process handling this request unexpectedly died. This is likely to cause 
 a new process to be used for the next request to your application. (Error 
 code 203)


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


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



Re: [appengine-java] Re: Blobstore API vs Datastore API

2011-03-11 Thread Luca Matteis
Is it possible to store the image directly on disk, as a resource?

On 3/11/11, Simon Knott knott.si...@gmail.com wrote:
 The datastore can handle blobs with a maximum size of 1MB, whereas the
 blobstore can handle blobs of 2GB.

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



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



[appengine-java] Re: Using BulkUpload into Local Java Dev Server on Mac

2011-03-11 Thread Jason G
Hello Brian and Greg,

We're hitting the same issue, also on Macs against a Java app.  I
searched and didn't find an open issue, so I started one:
http://code.google.com/p/googleappengine/issues/detail?id=4721

If an issue already exists, please let me know so I don't duplicate
bug reports.  If not, please feel free to star it!

Thanks for posting!  Without knowing others are in the same boat, I
was convinced I was doing something wrong ;)

Cheers,
Jason

On Mar 10, 9:06 pm, Greg greg.crabt...@gmail.com wrote:
 Brian,

 I have beaten my head against the wall on this problem myself.

 I agree with your assessment that it's likely a Mac issue. I'd really
 like to see the dev team take a look at this.

 Good luck. Have you filed a bug yet? I've only just joined the group
 and it was to complain about this problem.

 I've not explored the issue tracking system yet.  Hopefully they are
 aware of this issue.

 On Mar 9, 11:28 pm, Brian Conneen conn...@gmail.com wrote:



  I've seen a bunch of threads on this issue, but there doesn't seem to
  be a definitive example of getting this to work.

  Essentially I want to migrate my existing Python app to Java, and I
  know I can deploy both versions into production. But I want to do lots
  of testing locally before ever deploying a Java version.  And in order
  to test, I need to upload my data into my local Java dev server
  datastore.

  I can use bulkuploader to export the datastore from the production
  PYTHON app and load it into a local PYTHON dev server datastore no
  problem. I've done it hundreds of time.

  If I try to use the same export to load into my local JAVA dev server
  datastore, I always get an AuthenticationException [See stack below].
  Yes I've configured remote_api. Yes I can 
  accesshttp://localhost:/remote_api
  from a browser. It first takes me to the authentication page.  But
  bulkupload just won't work against my local JAVA dev datastore.

  I've now read every thread on this subject, and it seems like there
  might be a commonality.  Perhaps everyone running into this
  AuthenticationException is running on a Mac? I really don't know
  what's causing it, and I can't believe more people don't want to do
  the same thing.

  Stack Trace:

  [DEBUG   ] Bulkloader using app_id: bofprod
  [INFO    ] Connecting to localhost:8080/remote_api
  [ERROR   ] Exception during authentication
  Traceback (most recent call last):
    File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
  GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
  google/appengine/tools/bulkloader.py, line 3175, in Run
      self.request_manager.Authenticate()
    File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
  GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
  google/appengine/tools/bulkloader.py, line 1187, in Authenticate
      remote_api_stub.MaybeInvokeAuthentication()
    File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
  GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
  google/appengine/ext/remote_api/remote_api_stub.py, line 540, in
  MaybeInvokeAuthentication
      datastore_stub._server.Send(datastore_stub._path, payload=None)
    File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
  GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
  google/appengine/tools/appengine_rpc.py, line 346, in Send
      f = self.opener.open(req)
    File /System/Library/Frameworks/Python.framework/Versions/2.6/lib/
  python2.6/urllib2.py, line 389, in open
      response = meth(req, response)
    File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
  GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
  google/appengine/ext/remote_api/throttle.py, line 473, in
  http_response
      self.AddResponse(BANDWIDTH_DOWN, res)
    File /Applications/GoogleAppEngineLauncher.app/Contents/Resources/
  GoogleAppEngine-default.bundle/Contents/Resources/google_appengine/
  google/appengine/ext/remote_api/throttle.py, line 414, in AddResponse
      content = res.read()
    File /System/Library/Frameworks/Python.framework/Versions/2.6/lib/
  python2.6/socket.py, line 327, in read
      data = self._sock.recv(rbufsize)
    File /System/Library/Frameworks/Python.framework/Versions/2.6/lib/
  python2.6/httplib.py, line 537, in read
      s = self.fp.read(amt)
    File /System/Library/Frameworks/Python.framework/Versions/2.6/lib/
  python2.6/socket.py, line 351, in read
      data = self._sock.recv(left)
  error: [Errno 54] Connection reset by peer
  [INFO    ] Authentication Failed

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

[appengine-java] Re: Getting Null pointer expection

2011-03-11 Thread hector rovira
try this instead:

if (!userService.isUserLoggedIn()) {
response.sendRedirect(userService.createLoginURL(url));
return null;
}

User user = userService.getCurrentUser();

JSONObject json = new JSONObject();
json.put(email, user.getEmail());

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



[appengine-java] Re: UserService error

2011-03-11 Thread hector rovira
do you check if the user is logged in anywhere in your stack?  for example:

if (!userService.isUserLoggedIn()) {
response.sendRedirect(userService.createLoginURL(url));
return null;
}

there's a way to enforce this in your web.xml but you may want some of your 
content to be available for users that are not logged in.

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



[appengine-java] Re: Design question for SOA / Facebook like Platform on GAE

2011-03-11 Thread hector rovira
You don't necessarily need to host the other apps on appspot, if what they 
are providing is web UIs... you can serve them from your appspot as a proxy. 
 The pages you serve will benefit from your authentication and will be able 
to access your REST APIs.

I've developed this open source project with a similar approach for research 
apps:  http://cloud.addama.org.  It ties a variety of apps running outside 
of GAE through a service registry running on GAE.  The registry provides the 
security concerns and standardizes the REST APIs.

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



[appengine-java] Re: Dudas sobre Aplicaciones con JPA

2011-03-11 Thread hector rovira
Necesitas dar mas informacion.  Provee ejemplos de tu configuracion 
(persistence.xml y web.xml) y de las clases.  Cual es la relacion entre 
Colleciones y Editoriales?

Cual es la naturaleza del problema?  En que parte piensas que falla?  En 
persist o en retrieve?

Has utilizado JPA anteriormente, sin GAE?  Te funciona en el dev server?

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



Re: [appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-11 Thread Toby Reyelts
jesbox,

You can dynamically load classes using Class.forName or even your own custom
ClassLoader. As Jay noted, this is how dynamic languages like Groovy, JRuby,
and Rhino work, and they run perfectly well on App Engine.

Rick,

The real question is what compiler/runtime do you need to try to get running
in App Engine? You'll want one that is embeddable - i.e. designed to be
run as a library as opposed to just standalone. What language are your
custom business rules written in? You may have better luck finding an
embeddable compiler/runtime for scripting-based languages.

On Fri, Mar 11, 2011 at 3:25 AM, jesbox jesb...@gmail.com wrote:

 I'm not sure about the idea. Sounds like giving a rocket launcher to a
 kid.

 You let the adaptation happen in the full development environment made
 for professional programmers. If the re-deployment does not work out,
 will your framework reset the GAE invisibly to the user? And so on.

 Then there is this UI you made that I presume limits what the user can
 specify quite a lot. So you could instead make a GAE application that
 receives the settings from the UI and makes the appropriate brancings
 accordingly. Like you write a program that adapts it behavior
 depending on some parameter file, just that the parameters comes from
 the UI.

 Besides, I think that dynamic classloading is not possible in GAE.

 /J

 On Mar 7, 9:13 am, Rick Smith rick@gmail.com wrote:
  Hi all
 
  Can I create and compile a java class at run time on goolge
  appengine.
  Use case: I have given a UI to my application user that they can
  define their own business logic.Now what is going to be main challenge
  is that I need to make new deployment each time when some one need to
  modify its business logic. As an alternate I want to store source code
  in data base and compile it when required.
 
  Regards
 
  Rick

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



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



Re: [appengine-java] Can I set GAE's dev_appserver to automatically reload context when I change .class files?

2011-03-11 Thread Toby Reyelts
Luca,

If you're compiling from Ant, why can't you just make that task also ping
the server or touch appengine-web.xml? We don't think of the aforementioned
solutions as hacky. They are purposefully designed so that we don't start
loading a webapp context with half-compiled classes, jsps, etc...

On Fri, Mar 11, 2011 at 3:57 AM, Luca Matteis lmatt...@gmail.com wrote:

 Wow thanks for this really interesting framework. I'll have a look at
 it definitely!

 About the context-reloading part, I realized that you can just touch
 appengine-web.xml to force server context reload. Also loading the
 page under /_ah/reloadwebapp will reload the servers context - even if
 it gives you a 404, it will still reload the context. I wish there was
 a standard programmatic way of reloading context instead of these 2
 hacky solutions.

 Luca

 On Fri, Mar 11, 2011 at 3:33 AM, Yasuo Higa higaya...@gmail.com wrote:
  Hi Luca,
 
  Slim3 supports HOT reloading.
  https://sites.google.com/site/slim3appengine/
 
  Yasuo Higa
 
  On Thu, Mar 10, 2011 at 7:58 PM, Luca Matteis lmatt...@gmail.com
 wrote:
  Hello everybody!
 
  I'm using Google AppEngine with their built in web server. My
  development goes about in a simple way: I make changes to my .java
  sources or .jsp and compile using ant and to see the changes I have to
  restart the development server.
 
  I'm wondering if there's a way I can avoid this last step of
  restarting my development server - somehow refresh the cached classes
  context of my web-server. The options provided by Google on this dev
  server are quite limited and am wondering if there's a better way.
 
  I would like to avoid using something like JRebel which I could buy,
  but for this simple project I'm just wondering if I can remove the
  burden of restarting my web-server... otherwise I'll live with it.
 
  Thanks.
 
  Luca
 
  --
  You received this message because you are subscribed to the Google
 Groups Google App Engine for Java group.
  To post to this group, send email to
 google-appengine-java@googlegroups.com.
  To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.
 
 
 
  --
  You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
  To post to this group, send email to
 google-appengine-java@googlegroups.com.
  To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.
 
 

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



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



Re: [appengine-java] Server error when deleting a version

2011-03-11 Thread Ronoaldo José de Lana Pereira
I'm facing the same issue with my app, when deleting a specific version. Any 
updates?

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



Re: [appengine-java] Re: Blobstore API vs Datastore API

2011-03-11 Thread Ikai Lan (Google)
Yes, but not if you want to allow uploads.

If you enter your credit card, we will not charge it unless you go over the
free quota, even for blobstore. Based on your questions, however, I would
suggest further reading of the documentation to understand the limitations
and capabilities of App Engine, as we do describe the billing required
features. There's no way for us to know in the SDK whether you are billing
enabled or not, so it wouldn't make sense to put a nag screen for most users
that will just enable billing.

http://code.google.com/appengine/docs/quotas.html#Blobstore

Based on your feedback, however, we should probably mention that blobstore
is billing enabled on this page:

http://code.google.com/appengine/docs/python/blobstore/overview.html

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



On Fri, Mar 11, 2011 at 9:35 AM, Luca Matteis lmatt...@gmail.com wrote:

 Is it possible to store the image directly on disk, as a resource?

 On 3/11/11, Simon Knott knott.si...@gmail.com wrote:
  The datastore can handle blobs with a maximum size of 1MB, whereas the
  blobstore can handle blobs of 2GB.
 
  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
 google-appengine-java@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.com.
  For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
 

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



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



[appengine-java] Re: Blobstore API vs Datastore API

2011-03-11 Thread Jeff Knox
The datastore works well for storing images (assuming they are  1MB). So 
far I haven't had more than about 15 images in the database but I don't 
think that really matters in terms of speed. My images are 1000 pixels in 
their longest dimension.

I am also using the image API to do some manipulations. Passing the data 
around has been very quick and relatively painless.

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



[appengine-java] Re: Remote_api in Java works in Development Server?

2011-03-11 Thread Brian Conneen
I'm also having the same problem.  I'm pretty surprised we don't see
more people complaining about this. And I'm genuinely shocked that
there is so little official communication from Google. There are about
a dozen threads complaining about this issue and very few official
responses.

I'd very much like to migrate my Python GAE app to Java GAE, but if I
can't test using real data locally, then I can't do real development.

Brian

On Feb 17, 10:23 am, Carlos Aguilar c.aguim...@gmail.com wrote:
 I've been following all tutorials, but I always get the same error
 when trying to upload data to the Development Server:

 - Authentication Failed  at Terminal
 - Cookie name Path is a reserved token - in Server

 I'm having some troubles in my production app because the data so I
 would like to debug with the same data. Is this impossible with
 appengine?

 Carlos

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



[appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-11 Thread Rick Smith
Hi Toby
I know that I can dynamically load class using Class.forName But What
if I want to crate a new Java class at run time. What I said that I
want my developers(that is my clients too) to create Busienss Logic at
run time. and I do not want to re deployment of my application. For my
application user, they are not required to know abt google app engine.
Its completely invisible to them.
@Toby---The real question is what compiler/runtime do you need to try
to get running in App Engine
We are writing Business Logic in Java. So we may need javac command to
compile .




On Mar 12, 12:21 am, Toby Reyelts to...@google.com wrote:
 jesbox,

 You can dynamically load classes using Class.forName or even your own custom
 ClassLoader. As Jay noted, this is how dynamic languages like Groovy, JRuby,
 and Rhino work, and they run perfectly well on App Engine.

 Rick,

 The real question is what compiler/runtime do you need to try to get running
 in App Engine? You'll want one that is embeddable - i.e. designed to be
 run as a library as opposed to just standalone. What language are your
 custom business rules written in? You may have better luck finding an
 embeddable compiler/runtime for scripting-based languages.







 On Fri, Mar 11, 2011 at 3:25 AM, jesbox jesb...@gmail.com wrote:
  I'm not sure about the idea. Sounds like giving a rocket launcher to a
  kid.

  You let the adaptation happen in the full development environment made
  for professional programmers. If the re-deployment does not work out,
  will your framework reset the GAE invisibly to the user? And so on.

  Then there is this UI you made that I presume limits what the user can
  specify quite a lot. So you could instead make a GAE application that
  receives the settings from the UI and makes the appropriate brancings
  accordingly. Like you write a program that adapts it behavior
  depending on some parameter file, just that the parameters comes from
  the UI.

  Besides, I think that dynamic classloading is not possible in GAE.

  /J

  On Mar 7, 9:13 am, Rick Smith rick@gmail.com wrote:
   Hi all

   Can I create and compile a java class at run time on goolge
   appengine.
   Use case: I have given a UI to my application user that they can
   define their own business logic.Now what is going to be main challenge
   is that I need to make new deployment each time when some one need to
   modify its business logic. As an alternate I want to store source code
   in data base and compile it when required.

   Regards

   Rick

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

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



Re: [appengine-java] Re: Creating/Compiling new Java class at run time

2011-03-11 Thread Toby Reyelts
If you want users to type Java code directly into your webapp and then
compile it, you'll need an embeddable Java compiler, like
Janinohttp://docs.codehaus.org/display/JANINO/Home.
Another possible alternative might be JDT
http://www.eclipse.org/jdt/core/. One
other alternative you might consider is using
Beanshellhttp://www.beanshell.org/,
which is a scripting runtime for Java.

On Fri, Mar 11, 2011 at 10:55 PM, Rick Smith rick@gmail.com wrote:

 Hi Toby
 I know that I can dynamically load class using Class.forName But What
 if I want to crate a new Java class at run time. What I said that I
 want my developers(that is my clients too) to create Busienss Logic at
 run time. and I do not want to re deployment of my application. For my
 application user, they are not required to know abt google app engine.
 Its completely invisible to them.
 @Toby---The real question is what compiler/runtime do you need to try
 to get running in App Engine
 We are writing Business Logic in Java. So we may need javac command to
 compile .




 On Mar 12, 12:21 am, Toby Reyelts to...@google.com wrote:
  jesbox,
 
  You can dynamically load classes using Class.forName or even your own
 custom
  ClassLoader. As Jay noted, this is how dynamic languages like Groovy,
 JRuby,
  and Rhino work, and they run perfectly well on App Engine.
 
  Rick,
 
  The real question is what compiler/runtime do you need to try to get
 running
  in App Engine? You'll want one that is embeddable - i.e. designed to be
  run as a library as opposed to just standalone. What language are your
  custom business rules written in? You may have better luck finding an
  embeddable compiler/runtime for scripting-based languages.
 
 
 
 
 
 
 
  On Fri, Mar 11, 2011 at 3:25 AM, jesbox jesb...@gmail.com wrote:
   I'm not sure about the idea. Sounds like giving a rocket launcher to a
   kid.
 
   You let the adaptation happen in the full development environment made
   for professional programmers. If the re-deployment does not work out,
   will your framework reset the GAE invisibly to the user? And so on.
 
   Then there is this UI you made that I presume limits what the user can
   specify quite a lot. So you could instead make a GAE application that
   receives the settings from the UI and makes the appropriate brancings
   accordingly. Like you write a program that adapts it behavior
   depending on some parameter file, just that the parameters comes from
   the UI.
 
   Besides, I think that dynamic classloading is not possible in GAE.
 
   /J
 
   On Mar 7, 9:13 am, Rick Smith rick@gmail.com wrote:
Hi all
 
Can I create and compile a java class at run time on goolge
appengine.
Use case: I have given a UI to my application user that they can
define their own business logic.Now what is going to be main
 challenge
is that I need to make new deployment each time when some one need to
modify its business logic. As an alternate I want to store source
 code
in data base and compile it when required.
 
Regards
 
Rick
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-java@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.com.
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.

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



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



[appengine-java] Re: Blobstore API vs Datastore API

2011-03-11 Thread Didier Durand
Hi Luca,

1 thing before going in the new code: by using the blobs in datastore,
the interactive time limit (30s) apply (it does not for the blobstore)

I.e., the upload must be finished in 30s after that request is
cancelled by gae.

It may be harder to achieve even if your image is  1Mb if the
bandwidth is low: mobile, etc..

regards

didier

On Mar 11, 11:21 pm, Jeff Knox lairdk...@gmail.com wrote:
 The datastore works well for storing images (assuming they are  1MB). So
 far I haven't had more than about 15 images in the database but I don't
 think that really matters in terms of speed. My images are 1000 pixels in
 their longest dimension.

 I am also using the image API to do some manipulations. Passing the data
 around has been very quick and relatively painless.

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



Re: [google-appengine] 2 project talk internally with each other

2011-03-11 Thread Robert Kluin
Hi Jimmy,
  If you need two apps to communicate, your only real option is to
write some type of service.  You might want to evaluate your reasons
for using two separate apps though.  Using two apps will probably add
significant complexity (and possibly latency!) to your app.


  If you need to do this, look at the URL Fetch API.
if you're using Python:
  http://code.google.com/appengine/docs/python/urlfetch/
if you're using Java:
  http://code.google.com/appengine/docs/java/urlfetch/



Robert






On Thu, Mar 10, 2011 at 03:01, Jimmy Au ji...@mesixty.com wrote:
 How to do internal communication for 2 project and url rewrite stuff
 inside google 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-appengine@googlegroups.com.
 To unsubscribe from this group, send email to 
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at 
 http://groups.google.com/group/google-appengine?hl=en.



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



[google-appengine] Solutions to an Exploding Index Problem

2011-03-11 Thread Aaron
Hi, I'm currently running into an exploding index problem with the
following model:
class Keywords(db.Model):
owners_saved = db.ListProperty(db.Key)#list of user keys who saved
this keyword
topics = db.ListProperty(db.Key)#list of keys of topic objects
sort1property = db.IntegerProperty#need to sort by this

Keywords can mark as saved, and I need to be able to query for
keywords a user has saved that are in a specific topic area.  I'm
running into an exploding index problem because I need to be able to
query by a composite index on two list properties (owners_saved and
topics)...both list properties can potentially become really long.

Can anyone suggest a way for me to be able to avoid the exploding
index problem AND be able to sort by property?

Thanks in advance!

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



[google-appengine] High CPU Warning - Is it really an issue?

2011-03-11 Thread mscwd01
Hey,

I recently finished my app and have since began testing. One of my
main resources makes 14 RPCs, I have made every effort to decrease CPU
time I.e. marking properties as unindexed, however I really cannot
reduce the number of GETs, PUTs and queries that occur in the request.

The average CPU times associated with the request today is:
ms=381 cpu_ms=1192 api_cpu_ms=1122 cpm_usd=0.033597

This does fluctuate and can be less, however it rarely falls low
enough to have the high CPU warnings removed.

I've noticed my app still scales fine, I have about 15 instances
running whilst testing.

So my question is, should I be concerned at the high CPU warnings or
is it something most people experience?

Thanks

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



Re: [google-appengine] Problem on trying to post a video

2011-03-11 Thread Leo - אריאל
Hi Robert, thank you for answering.

The user get 403 when trying to connect to post a video on youtube-direct in
my website. On that screen that ask for connecting user's account with
youtube-direct account.
I ses this error on log several times:


   1. 2011-03-10 18:32:19.564 /AuthsubHandler?articleUrl=http%3A%2F%
   2Fwww.joaonetoefrederico.com.br
   %2Fcompor%2FsessionId=ahFzdWFjaGFuY2VkZWNvbXBvcnITCxILVXNlclNlc3Npb24Yu_IBDA
   500 26ms 46cpu_ms  0kb Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR;
   rv:1.9.2.15) Gecko/20110303 Firefox/3.6.15,gzip(gfe)

   201.86.158.155 - - [10/Mar/2011:18:32:19 -0800] GET
/AuthsubHandler?articleUrl=http%3A%2F%2Fwww.joaonetoefrederico.com.br%2Fcompor%2FsessionId=ahFzdWFjaGFuY2VkZWNvbXBvcnITCxILVXNlclNlc3Npb24Yu_IBDA
HTTP/1.1 500 0
http://www.youtube.com/auth_sub_request?scope=http%3A%2F%2Fgdata.youtube.comsession=1next=http%3A%2F%2Fsuachancedecompor.appspot.com%2FAuthsubHandler%3FarticleUrl%3Dhttp%253A%252F%252Fwww.joaonetoefrederico.com.br%252Fcompor%252F%26sessionId%3DahFzdWFjaGFuY2VkZWNvbXBvcnITCxILVXNlclNlc3Npb24Yu_IBDAsecure=0;
Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.2.15)
Gecko/20110303 Firefox/3.6.15,gzip(gfe)
suachancedecompor.appspot.com ms=27 cpu_ms=47 api_cpu_ms=0
cpm_usd=0.001385

2.  W 2011-03-10 18:32:19.558

   /AuthsubHandler
   java.lang.NullPointerException
at java.net.URLDecoder.decode(URLDecoder.java:136)
at com.google.ytd.embed.AuthSubHandler.doGet(AuthSubHandler.java:61)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
at 
com.google.inject.servlet.ServletDefinition.doService(ServletDefinition.java:216)
at 
com.google.inject.servlet.ServletDefinition.service(ServletDefinition.java:141)
at 
com.google.inject.servlet.ManagedServletPipeline.service(ManagedServletPipeline.java:93)
at 
com.google.inject.servlet.FilterChainInvocation.doFilter(FilterChainInvocation.java:63)
at 
com.google.inject.servlet.ManagedFilterPipeline.dispatch(ManagedFilterPipeline.java:122)
at com.google.inject.servlet.GuiceFilter.doFilter(GuiceFilter.java:110)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:97)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
at 
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:238)
at 
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at 
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
at 
org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923)
at 
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at 
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:135)
at 
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:261)
at 
com.google.apphosting.base.RuntimePb$EvaluationRuntime$2.handleRequest(RuntimePb.java:8440)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:454)
at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java:572)
at 
com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:448)
at com.google.tracing.TraceContext.runInContext(TraceContext.java:688)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:326)
at 
com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:318)
at 
com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:446)
at 

[google-appengine] Help against GFW!

2011-03-11 Thread HELPME
Hi all! I'm a Chinese and I love GAE, but it's banned from within China by 
its government's funcking Greate Fire Wall! That means as a web user from 
within China mainland, one cannot access any web site hosted by GAE! I curse 
the god damn CCP! But it's helpless to solve my problem! I want to try to 
register a .com domain and buy a foreign host space to do a proxy for my GAE 
based web app, but I learned that recently that method doesn't work because 
the God Damned Chinese Government forbids access to most foreign web 
sites(including www.burst.net)! I can post a help here because I'm using a 
proxy but users of my web site based on GAE are not expected to use a proxy. 
So, is there any possibility on earth to solve this problem? I do hope the 
US Army could rush down the Beijing Goverment right now! It doesn't 
represent we Chinese people! It rapes us!

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



[google-appengine] StackExchange API endpoints urlfetch returns random DownloadError: ApplicationError: 5 timeouts

2011-03-11 Thread MLTrim
In Production using:

from google.appengine.api import urlfetch
urlfetch.fetch('http://api.fitness.stackexchange.com/1.0/questions/?
page=3', deadline = 10)

results in several DownloadError: ApplicationError: 5  timeouts;
probably more than the 50% of the calls.

The Stack Exchange team has looked into the problem that seems relate
to some Google App Engine routing fault to their end.

Any hints?

You can test it here if you want:
http://shell.appspot.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-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] High CPU Warning - Is it really an issue?

2011-03-11 Thread Robert Kluin
If you keep latency low you'll get new instances.  Those warnings are
left over from previous quotas and limits.  You can search the groups
for more info about it.




Robert






On Fri, Mar 11, 2011 at 05:53, mscwd01 mscw...@gmail.com wrote:
 Hey,

 I recently finished my app and have since began testing. One of my
 main resources makes 14 RPCs, I have made every effort to decrease CPU
 time I.e. marking properties as unindexed, however I really cannot
 reduce the number of GETs, PUTs and queries that occur in the request.

 The average CPU times associated with the request today is:
 ms=381 cpu_ms=1192 api_cpu_ms=1122 cpm_usd=0.033597

 This does fluctuate and can be less, however it rarely falls low
 enough to have the high CPU warnings removed.

 I've noticed my app still scales fine, I have about 15 instances
 running whilst testing.

 So my question is, should I be concerned at the high CPU warnings or
 is it something most people experience?

 Thanks

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



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



[google-appengine] High-level development tools for App Engine?

2011-03-11 Thread Mark Spencer
Hi there,

I'm running Google Apps Premier for a small (healthcare) business. We are 
looking to expand over the next twelve months and will be considering a 
database solution to help us improve our current methods of storage and 
management of our client clinical records.

As there isn't a cost-effective ready-made solution for us, I would like to 
consider developing a solution under the Google Apps Engine, as a possible 
option.

Can anyone suggest a development tool(s) which I could consider for the 
Google Apps Engine whilst I have a software engineering background, I 
would prefer not to have to do too much coding as there is much I currently 
have to focus on in running the business itself. The solution from 
SalesForce (Force.com) is the sort of development level which would be 
manageable for me. I would prefer to use Google Apps to host the solution as 
the integration will likely be tighter, and will also be far more cost 
effective for us.

Any help would be gratefully received

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



[google-appengine] Re: Exceeded soft process size limit ?

2011-03-11 Thread Akitoshi Abe
Hi,

I faced same error message when my code had infinite loop.
Can you check your code around loop?

Akitoshi Abe

On 2月26日, 午後10:17, sh haees...@gmail.com wrote:
 Since feb 25 i see the following entries in the logs for each request:

 C 2011-02-26 05:06:17.557 Exceeded soft process size limit with
 201.285 MB after servicing 1 requests total

 The application has been running without errors/warnings since 11 feb
 though...

 Any idea what could be going on ?

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



[google-appengine] Orphaned App Engine Account

2011-03-11 Thread Alexandro Mancusi
I had a Google Apps account as the owner of an App Engine account.
Now the Google Apps account is gone and I cannot enter the App Engine
anymore.
What to do?

Regards,

Alexandro

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



[google-appengine] Bug with online interactive server-side Python shell?

2011-03-11 Thread nik
Hi, i am new in python programming and i tried to use the online
Interactive server-side Python shell (http://shell.appspot.com) to
test the list data type and while it supposed to be changeable, this
is not the way is treated:

 x=[2,5,6]
 x[2]='111'
 print x
[2, 5, 6]

x[2] wasn't supposed to change? if so then is this a bug of the online
shell or it is the way that any deployed application in app engine is
treated?

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



Re: [google-appengine] Re: Deleting Data Really Expensive!

2011-03-11 Thread djidjadji
If would be better if the admin tool uses DatastoreKeyInputReader.
I think it will use it, and thus being the fastest way of deleting
large number of entities.

It would be more cost effective if we make every index needed explicit.
If for a single property you only need the ascending index you get a
descending index for penalty extra.

2011/3/10 David Mora dla.m...@gmail.com:
 why would it be cheaper if at the end, the datastore admin creates a map
 reduce that iterates thru the model via splitting the index and loading each
 entity per key name ? Each map is a task queue so it is exactly the same :)

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



Re: [google-appengine] Help against GFW!

2011-03-11 Thread yinhm
On Fri, Mar 11, 2011 at 10:50 PM, Gopal Patel patelgo...@gmail.com wrote:
 we have given blood for the democracy we haveyou must do the
 same.if you not earn it you wont enjoy it.


First, you did not given blood for democray( correct me is i was wrong ).
Second, you may or may not known the blood square, there was enough  blood,
and you should not encourage anyone like that.


-- 
Regards,
@yinhm

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



Re: [google-appengine] Help against GFW!

2011-03-11 Thread Zahari Petkov
I really doubt that GAE will be available in China any time soon. I
remember the time Google search engine showed filtered results on its
Chinese version, and now google.cn is not existing anymore, since
Google did not want to obey to the communist government policies,
which contradict basic values and rights. Nothing seems to change in
this regard.

You are quite brave in exposing the CCP crimes, and keep doing that
for the good of your people, but keep safe since they can take your
life literally. But I guess you know that already.. I would not put my
hopes in an external government these days, since they all seem quite
corrupted. US government is definitely giving a blind eye on the
genocide that is happening in your country and this is not the US
government we knew twenty years ago.

On Fri, Mar 11, 2011 at 1:49 PM, HELPME bietaixiaozh...@gmail.com wrote:
 Hi all! I'm a Chinese and I love GAE, but it's banned from within China by
 its government's funcking Greate Fire Wall! That means as a web user from
 within China mainland, one cannot access any web site hosted by GAE! I curse
 the god damn CCP! But it's helpless to solve my problem! I want to try to
 register a .com domain and buy a foreign host space to do a proxy for my GAE
 based web app, but I learned that recently that method doesn't work because
 the God Damned Chinese Government forbids access to most foreign web
 sites(including www.burst.net)! I can post a help here because I'm using a
 proxy but users of my web site based on GAE are not expected to use a proxy.
 So, is there any possibility on earth to solve this problem? I do hope the
 US Army could rush down the Beijing Goverment right now! It doesn't
 represent we Chinese people! It rapes us!

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


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



Re: [google-appengine] Bug with online interactive server-side Python shell?

2011-03-11 Thread Wim den Ouden
x = a list
x[2] a tuple
try print x[2] also see http://docs.python.org/tutorial/datastructures.html

2011/3/11 nik itoas...@gmail.com

 Hi, i am new in python programming and i tried to use the online
 Interactive server-side Python shell (http://shell.appspot.com) to
 test the list data type and while it supposed to be changeable, this
 is not the way is treated:

  x=[2,5,6]
  x[2]='111'
  print x
 [2, 5, 6]

 x[2] wasn't supposed to change? if so then is this a bug of the online
 shell or it is the way that any deployed application in app engine is
 treated?

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




-- 
gr,
Wim den Ouden
Custom Google App Engine http://code.google.com/intl/nl/appengine/ based
webapps https://neighborshare.appspot.com/.
Free open source neighborshare framework http://code.google.com/p/relat/.
Gae tips http://code.google.com/p/relat/wiki/gaetips Datastore
(async)http://code.google.com/p/relat/wiki/gaetips?ts=1299673682updated=gaetips#Datastore_plus_(async)

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



Re: [google-appengine] datastore.TimeProperty() sample value

2011-03-11 Thread Wim den Ouden
TIME('*HH:MM:SS*')
copy into your gql string
for date example at the end of
http://stackoverflow.com/questions/1162644/gql-query-on-date-equality-in-python

2011/3/11 Chathum Henegama chathu...@gmail.com

 Hi can anyone find me just a sample value for this datatype in GQL.
 what i am trying to do is i have a web-service which accepts a
 datetime.time value and it is not accepting the standard time values
 as documented in here
 http://code.google.com/appengine/docs/python/datastore/gqlreference.html
 can anyone help me with this..

 Thanks in advance

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




-- 
gr,
Wim den Ouden
Custom Google App Engine http://code.google.com/intl/nl/appengine/ based
webapps https://neighborshare.appspot.com/.
Free open source neighborshare framework http://code.google.com/p/relat/.
Gae tips http://code.google.com/p/relat/wiki/gaetips Datastore
(async)http://code.google.com/p/relat/wiki/gaetips?ts=1299673682updated=gaetips#Datastore_plus_(async)

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



Re: [google-appengine] datastore.TimeProperty() sample value

2011-03-11 Thread Chathum Henegama
Thanks a lot guys. Finally i got it working
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-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.



Re: [google-appengine] High-level development tools for App Engine?

2011-03-11 Thread Wim den Ouden
maybe some usefull tips http://code.google.com/p/relat/wiki/gaetips

2011/3/10 Mark Spencer m...@theotcentre.co.uk

 Hi there,

 I'm running Google Apps Premier for a small (healthcare) business. We are
 looking to expand over the next twelve months and will be considering a
 database solution to help us improve our current methods of storage and
 management of our client clinical records.

 As there isn't a cost-effective ready-made solution for us, I would like to
 consider developing a solution under the Google Apps Engine, as a possible
 option.

 Can anyone suggest a development tool(s) which I could consider for the
 Google Apps Engine whilst I have a software engineering background, I
 would prefer not to have to do too much coding as there is much I currently
 have to focus on in running the business itself. The solution from
 SalesForce (Force.com) is the sort of development level which would be
 manageable for me. I would prefer to use Google Apps to host the solution as
 the integration will likely be tighter, and will also be far more cost
 effective for us.

 Any help would be gratefully received

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




-- 
gr,
Wim den Ouden
Custom Google App Engine http://code.google.com/intl/nl/appengine/ based
webapps https://neighborshare.appspot.com/.
Free open source neighborshare framework http://code.google.com/p/relat/.
Gae tips http://code.google.com/p/relat/wiki/gaetips Datastore
(async)http://code.google.com/p/relat/wiki/gaetips?ts=1299673682updated=gaetips#Datastore_plus_(async)

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



Re: [google-appengine] StackExchange API endpoints urlfetch returns random DownloadError: ApplicationError: 5 timeouts

2011-03-11 Thread Robert Schuppenies
That's strange and annoying. Can you file a bug?

thanks,
robert

On Fri, Mar 11, 2011 at 5:01 AM, MLTrim michele.trimar...@gmail.com wrote:

 In Production using:

 from google.appengine.api import urlfetch
 urlfetch.fetch('http://api.fitness.stackexchange.com/1.0/questions/?
 page=3', deadline = 10)

 results in several DownloadError: ApplicationError: 5  timeouts;
 probably more than the 50% of the calls.

 The Stack Exchange team has looked into the problem that seems relate
 to some Google App Engine routing fault to their end.

 Any hints?

 You can test it here if you want:
 http://shell.appspot.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-appengine@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.



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



[google-appengine] task chaining why set taskname?

2011-03-11 Thread Lucas
task1  -- task2 -- task 3  ?
why need to manually set unique task name? Arent queue.add will auto
put in UUID for each task created already?  i'm referring to question
on Building high throughput data pipelines by Brett Slatkin

hope someone can help clarify

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



[google-appengine] Re: Solutions to an Exploding Index Problem

2011-03-11 Thread Jay
So you have the user and the topic, and want the key words? Do I have that 
right?

What about moving the saved keywords to the user? You might do something 
like cat them together in a list on user. How big do you expect the list to 
get per user?

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



[google-appengine] Re: Problems copying entities to the high replication datastore.

2011-03-11 Thread Petey
I found my workaround. I used the appcfg bulk loaders to accomplish
what I needed. I just did a appcfg.py download_data on each of the
kinds from the source app. Then I did appcfg.py upload_data to target
app and all of the entities got transferred successfully. For the
entity type that was about 2GB of data it took about an 1hr 20min to
download and about 3 hours to upload. The good news also is that it
only cost me $7 in CPU to upload. Previously when I did it through the
datastore admin tool it cost about $80.

I wish I had known that before so I could have saved the $80.

Hope this helps anyone with the same issue.

On Mar 10, 3:25 pm, Petey brianpeter...@gmail.com wrote:
 It does seem like it copied over some child entities so that isn't the
 exact issue.
 The main problem I have is that not everything gets copied. For
 example, I have one entity kind that only got 730,000 entities copied
 when the source app has 810,000 entities. I don't know how I would
 find the missing ones and just copy those over. I also am afraid to
 try it again because I don't want to get charged another $80.

 On Mar 10, 2:01 pm, Jamie H ja...@mhztech.com wrote:







  You are not alone.  I experienced the same issues you are experiencing
  when I did my migration.  I received no response from Google but this
  is no doubt an issue.  I received the same namespace error, along with
  several mappers just hanging idle.

  On Mar 10, 2:01 pm, Petey brianpeter...@gmail.com wrote:

   It looks like this happens to all child entities in an entity group. I
   can't get any entities that are children to copy over. I even tried
   altering the order in which I copied the parent and child entities.

   Does anyone have any workarounds? I really need this to work. I've
   noticed several other people have had this issue, but they also have
   gotten no response.

   On Mar 9, 9:02 pm, Petey brianpeter...@gmail.com wrote:

I just noticed these errors in the logs of my source application. I'm
guessing this might have something to do with it. Why is this
happening and how can I get around the issue?

The app/namespace arguments (sourceapp/) should match parent.app/
namespace() (s~targetapp/)
Traceback (most recent call last):
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/webapp/__init__.py, line 517, in __call__
    handler.post(*groups)
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/mapreduce/base_handler.py, line 59, in post
    self.handle()
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/mapreduce/handlers.py, line 172, in handle
    ctx.flush()
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/mapreduce/context.py, line 244, in flush
    pool.flush()
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/datastore_admin/copy_handler.py, line 221, in flush
    1, maxid)
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/db/__init__.py, line 1455, in allocate_id_range
    start_key = Key.from_path(key.kind(), start, parent=key.parent())
  File /base/python_runtime/python_lib/versions/1/google/appengine/
api/datastore_types.py, line 387, in from_path
    (app_id, namespace, parent.app(), parent.namespace()))
BadArgumentError: The app/namespace arguments (sourceapp/) should
match parent.app/namespace() (s~targetapp/)

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



[google-appengine] Re: Solutions to an Exploding Index Problem

2011-03-11 Thread Aaron
Hi Jay,

Exactly, I need to query for keywords based on user and topic.

That's an interesting suggestion, but the list of saved keywords can
get longer than 5000.  I also need to be able to sort by a number of
different integer properties that I didn't explicitly include in the
model.

On Mar 11, 9:40 am, Jay jbaker.w...@gmail.com wrote:
 So you have the user and the topic, and want the key words? Do I have that
 right?

 What about moving the saved keywords to the user? You might do something
 like cat them together in a list on user. How big do you expect the list to
 get per user?

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



Re: [google-appengine] App Engine TOS question

2011-03-11 Thread Jeff Knox
Excellent, thank you for the response.

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



[google-appengine] Re: Deleting Data Really Expensive!

2011-03-11 Thread Jeff Knox
If you want to keep costs down but not leave the data spinning around and 
around why not delete a subset every day? It may take an extremely long time 
but at least it would be better than paying storage costs forever.

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



Re: [google-appengine] Re: task chaining why set taskname?

2011-03-11 Thread Ikai Lan (Google)
By the way, if you're doing task queue chaining or need complex workflows,
check out Brett's Pipeline API:

http://code.google.com/p/appengine-pipeline/

An alternative is Fantasm:

http://code.google.com/appengine/articles/fantasm.html

I personally found Fantasm a bit more accessible for the types of simple
workflows I need (sorry Brett!). They're both great libraries, though.

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



On Fri, Mar 11, 2011 at 11:24 AM, vlad vlad.troyan...@gmail.com wrote:

 Explicit task naming is a technique to prevent fork bomb which is
 unwanted creation of duplicate tasks. You do not have to name your tasks.
 However If you have a long running task chain you should think of how you
 are going to prevent fork bomb. The problem arises when something inside
 your task fails and task is re-tried. Each time a task is retried is is
 going to fork another task. You can see how this gets out of control
 quickly. This is not just theory. I have seen it many times myself.

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


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



[google-appengine] Re: Problems copying entities to the high replication datastore.

2011-03-11 Thread Kaan Soral
thanks a lot for the info

On Mar 11, 8:25 pm, Petey brianpeter...@gmail.com wrote:
 I found my workaround. I used the appcfg bulk loaders to accomplish
 what I needed. I just did a appcfg.py download_data on each of the
 kinds from the source app. Then I did appcfg.py upload_data to target
 app and all of the entities got transferred successfully. For the
 entity type that was about 2GB of data it took about an 1hr 20min to
 download and about 3 hours to upload. The good news also is that it
 only cost me $7 in CPU to upload. Previously when I did it through the
 datastore admin tool it cost about $80.

 I wish I had known that before so I could have saved the $80.

 Hope this helps anyone with the same issue.

 On Mar 10, 3:25 pm, Petey brianpeter...@gmail.com wrote:

  It does seem like it copied over some child entities so that isn't the
  exact issue.
  The main problem I have is that not everything gets copied. For
  example, I have one entity kind that only got 730,000 entities copied
  when the source app has 810,000 entities. I don't know how I would
  find the missing ones and just copy those over. I also am afraid to
  try it again because I don't want to get charged another $80.

  On Mar 10, 2:01 pm, Jamie H ja...@mhztech.com wrote:

   You are not alone.  I experienced the same issues you are experiencing
   when I did my migration.  I received no response from Google but this
   is no doubt an issue.  I received the same namespace error, along with
   several mappers just hanging idle.

   On Mar 10, 2:01 pm, Petey brianpeter...@gmail.com wrote:

It looks like this happens to all child entities in an entity group. I
can't get any entities that are children to copy over. I even tried
altering the order in which I copied the parent and child entities.

Does anyone have any workarounds? I really need this to work. I've
noticed several other people have had this issue, but they also have
gotten no response.

On Mar 9, 9:02 pm, Petey brianpeter...@gmail.com wrote:

 I just noticed these errors in the logs of my source application. I'm
 guessing this might have something to do with it. Why is this
 happening and how can I get around the issue?

 The app/namespace arguments (sourceapp/) should match parent.app/
 namespace() (s~targetapp/)
 Traceback (most recent call last):
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 ext/webapp/__init__.py, line 517, in __call__
     handler.post(*groups)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 ext/mapreduce/base_handler.py, line 59, in post
     self.handle()
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 ext/mapreduce/handlers.py, line 172, in handle
     ctx.flush()
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 ext/mapreduce/context.py, line 244, in flush
     pool.flush()
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 ext/datastore_admin/copy_handler.py, line 221, in flush
     1, maxid)
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 ext/db/__init__.py, line 1455, in allocate_id_range
     start_key = Key.from_path(key.kind(), start, parent=key.parent())
   File /base/python_runtime/python_lib/versions/1/google/appengine/
 api/datastore_types.py, line 387, in from_path
     (app_id, namespace, parent.app(), parent.namespace()))
 BadArgumentError: The app/namespace arguments (sourceapp/) should
 match parent.app/namespace() (s~targetapp/)

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



Re: [google-appengine] Bug with online interactive server-side Python shell?

2011-03-11 Thread Robert Kluin
This is a quirk of shell.appspot.com.  I've not dug into the code, but
perhaps it is something to do with how the session context updated and
stored.

Try this:
   x = [1, 2, 3]; x[2] = '345'
   print x

That will give you the result you expect, and will match the behavior
of a local Python interactive prompt.


Robert




On Fri, Mar 11, 2011 at 05:30, nik itoas...@gmail.com wrote:
 Hi, i am new in python programming and i tried to use the online
 Interactive server-side Python shell (http://shell.appspot.com) to
 test the list data type and while it supposed to be changeable, this
 is not the way is treated:

 x=[2,5,6]
 x[2]='111'
 print x
 [2, 5, 6]

 x[2] wasn't supposed to change? if so then is this a bug of the online
 shell or it is the way that any deployed application in app engine is
 treated?

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



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



Re: [google-appengine] Re: task chaining why set taskname?

2011-03-11 Thread Robert Kluin
I have to echo Ikai's sentiments on this.

I've used Fantasm to put together some semi-complex workflows very
quickly (within a couple hours of looking at Fantasm).  It is
definitely easy to pickup and start doing something productive.  Very
nice work Jason  Shawn.

That said, Brett's Pipeline API has some awesome capabilities.  If you
spend the time to learn it, you'll be able to put together very
powerful workflows.  If you're already familiar with 'yield'
semantics, you will get the idea quickly.




Robert



On Fri, Mar 11, 2011 at 17:15, Ikai Lan (Google) ika...@google.com wrote:
 By the way, if you're doing task queue chaining or need complex workflows,
 check out Brett's Pipeline API:
 http://code.google.com/p/appengine-pipeline/
 An alternative is Fantasm:
 http://code.google.com/appengine/articles/fantasm.html
 I personally found Fantasm a bit more accessible for the types of simple
 workflows I need (sorry Brett!). They're both great libraries, though.
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 Blog: http://googleappengine.blogspot.com
 Twitter: http://twitter.com/app_engine
 Reddit: http://www.reddit.com/r/appengine


 On Fri, Mar 11, 2011 at 11:24 AM, vlad vlad.troyan...@gmail.com wrote:

 Explicit task naming is a technique to prevent fork bomb which is
 unwanted creation of duplicate tasks. You do not have to name your tasks.
 However If you have a long running task chain you should think of how you
 are going to prevent fork bomb. The problem arises when something inside
 your task fails and task is re-tried. Each time a task is retried is is
 going to fork another task. You can see how this gets out of control
 quickly. This is not just theory. I have seen it many times myself.

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

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


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



Re: [google-appengine] question on high-throughput data pipelines googleio 2010 talk Options

2011-03-11 Thread Robert Kluin
The tasks can be run out-of-order (relative to how they were
inserted).  The marker number is used to identify and discard 'stale'
updates, so if the aggregation already contains the information at
state 18, when the information from state 17 arrives it will be
skipped.


Robert





On Fri, Mar 11, 2011 at 12:24, Lucas travalle...@gmail.com wrote:
 1.let say student is updated and marker is incremented from 16 to
 17 .  2 tasks are fired call taskA, and taskB
 2. then student is update again and market is incremented from 17 to
 18.   another 2 tasks are fired call task C, and task D.
 Is there any gurantee task set (A, B) will be execute before task set
 (C, D) ?  because task queue wiki mentioned there is no guarantee for
 the sequence of execution . if this ordering is not gurantee, in mean
 in high load side, if task C and D are executed before task A, B.
 data consistency has problem.
 Is this the reason, in Brett''s talk, he suggested do transaction 1/
 second to minimize this from happening?

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



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



[google-appengine] Re: High CPU Warning - Is it really an issue?

2011-03-11 Thread lp
 So my question is, should I be concerned at the high CPU warnings or
 is it something most people experience?


i am getting similar CPU times and very similar elapsed times as u.

but i get large variation in my CPU times for no apparent reason
( same query, params).
i am using 'Always-on' so it cant be warm up request.

all that i am concerned about is my elapsed time and my quota cost for
scalability. so far so it can scale.


-lp

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



[google-appengine] Re: task chaining why set taskname?

2011-03-11 Thread Lucas
the solution suggested was, when execute the task put a name+1 as
taskname. so all the chain tasks will have a incremented name+1 as
taskname.


 my question is before start executing this chaining task.   put
queue.add(  setTaskName(name,  randomUUI );  like this?   then  for
subsequent task we will have   randomUUI+1  ?  may i know is that
correct?

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



[google-appengine] Re: issue 777 inspection

2011-03-11 Thread Nick Rosencrantz
I tried diabling the sites funktion for alltfunkar.com and it still
goes 404.
eNom reports that DNS settings are exactly the same for http://koolbusiness.com
and http://alltfunkar.com
now that Kool B redirects well and alltfunkar.com won't. Do you have
another idea? Thanks

On Mar 6, 7:17 pm, Robert Kluin robert.kl...@gmail.com wrote:
 Perhaps you've got a conflict between sites and your app on alltfunkar.com?

 On Sun, Mar 6, 2011 at 06:11, Nick Rosencrantz nikla...@gmail.com wrote:
  Hi issue 777 appears somehow solved for one of my domains:
 http://koolbusiness.comgos onwards tohttp://www.koolbusiness.com
  However another domain with exactly the same DNS settings has the
  issue:
 http://alltfunkar.com(404=I lose)
 http://www.alltfunkar.com(for real)
  Maybe you know why and can tell what's going on with this.
  Thanks!
  Nick Rosencrantz

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

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



[google-appengine] Re: task chaining why set taskname?

2011-03-11 Thread Lucas
thank you for the explanation  @vlad,  @Ikai @Robert .

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



[google-appengine] Re: question on high-throughput data pipelines googleio 2010 talk Options

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



Re: [google-appengine] Re: task chaining why set taskname?

2011-03-11 Thread Robert Kluin
Incrementing an 'iteration number' that you append to a common task
name is a good (and common) approach, if that is what you are asking.




Robert




On Fri, Mar 11, 2011 at 23:06, Lucas travalle...@gmail.com wrote:
 the solution suggested was, when execute the task put a name+1 as
 taskname. so all the chain tasks will have a incremented name+1 as
 taskname    .


  my question is before start executing this chaining task.   put
 queue.add(  setTaskName(name,  randomUUI );  like this?   then  for
 subsequent task we will have   randomUUI+1  ?  may i know is that
 correct?

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



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



Re: [google-appengine] Re: issue 777 inspection

2011-03-11 Thread Robert Kluin
Where do you set up the redirects?  You need to have a server
redirecting from  alltfunkar.com to  www.alltfunkar.com.


Request URL:http://koolbusiness.com/
Request Method:GET
Status Code:302 Moved Temporarily
Response Headers
Connection:keep-alive
Content-Length:225
Content-Type:text/html; charset=UTF-8
Date:Sat, 12 Mar 2011 06:09:24 GMT
Location:http://www.koolbusiness.com/
Server:ghs
Via:1.0 localhost:3128 (squid/2.6.STABLE5)



Robert






On Sat, Mar 12, 2011 at 00:12, Nick Rosencrantz nikla...@gmail.com wrote:
 I tried diabling the sites funktion for alltfunkar.com and it still
 goes 404.
 eNom reports that DNS settings are exactly the same for 
 http://koolbusiness.com
 and http://alltfunkar.com
 now that Kool B redirects well and alltfunkar.com won't. Do you have
 another idea? Thanks

 On Mar 6, 7:17 pm, Robert Kluin robert.kl...@gmail.com wrote:
 Perhaps you've got a conflict between sites and your app on alltfunkar.com?

 On Sun, Mar 6, 2011 at 06:11, Nick Rosencrantz nikla...@gmail.com wrote:
  Hi issue 777 appears somehow solved for one of my domains:
 http://koolbusiness.comgos onwards tohttp://www.koolbusiness.com
  However another domain with exactly the same DNS settings has the
  issue:
 http://alltfunkar.com(404=I lose)
 http://www.alltfunkar.com(for real)
  Maybe you know why and can tell what's going on with this.
  Thanks!
  Nick Rosencrantz

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

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



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



[google-appengine] 'NoneType' object has no attribute 'active_jobs'

2011-03-11 Thread danpaik
Hi Everyone,

I am using App Engine 1.4.2 (1.4.2.1041) in Python.

I noticed a new error message in my logs.  It shows up every hour at
26 minutes past the hour.  Also, when I got into my App Engine
dashboard, the Datastore Admin section doesn't work (it's just
blank).

I tried re-installing App Engine but it didn't seem to help.  Has
anyone else seen this error before?

The logs say:

2011-03-11 14:26:16.196
'NoneType' object has no attribute 'active_jobs'
Traceback (most recent call last):
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/webapp/__init__.py, line 517, in __call__
handler.post(*groups)
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/datastore_admin/utils.py, line 349, in post
db.run_in_transaction(tx)
  File /base/python_runtime/python_lib/versions/1/google/appengine/
api/datastore.py, line 1977, in RunInTransaction
DEFAULT_TRANSACTION_RETRIES, function, *args, **kwargs)
  File /base/python_runtime/python_lib/versions/1/google/appengine/
api/datastore.py, line 2063, in RunInTransactionCustomRetries
ok, result = _DoOneTry(new_connection, function, args, kwargs)
  File /base/python_runtime/python_lib/versions/1/google/appengine/
api/datastore.py, line 2084, in _DoOneTry
result = function(*args, **kwargs)
  File /base/python_runtime/python_lib/versions/1/google/appengine/
ext/datastore_admin/utils.py, line 342, in tx
operation.active_jobs -= 1
AttributeError: 'NoneType' object has no attribute 'active_jobs'

When I do a grep within the Google App Engine installation folder I
see:

$ grep -R active_job *
Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/ext/datastore_admin/templates/
list_actions.html:  {{operation.active_jobs}} active)
Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/ext/datastore_admin/
utils.py:  operation.active_jobs -= 1
Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/ext/datastore_admin/
utils.py:  if not operation.active_jobs:
Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/ext/datastore_admin/utils.py:
active_jobs = db.IntegerProperty(default=0)
Contents/Resources/GoogleAppEngine-default.bundle/Contents/Resources/
google_appengine/google/appengine/ext/datastore_admin/utils.py:
operation.active_jobs += 1
Binary file Contents/Resources/GoogleAppEngine-default.bundle/Contents/
Resources/google_appengine/google/appengine/ext/datastore_admin/
utils.pyc matches

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



[google-appengine] Every request hits server twice in Appengine

2011-03-11 Thread natsabari
I have small app in appengine. Every request hits the server twice in my 
local dev server.
In debug mode i can see that the* get* method called twice.
Its happening in both chrome and firefox browsers. here is the log from my 
localserver..


INFO 2011-03-12 00:44:31,076 dev_appserver.py:3317] GET 
/movie/tanu_weds_manu/rating-review-video HTTP/1.1 200 -
INFO 2011-03-12 00:44:32,345 dev_appserver.py:3317] GET /css/fb.css 
HTTP/1.1 200 -
INFO 2011-03-12 00:44:32,588 dev_appserver.py:3317] GET 
/css/wianga-movie.0.1.css HTTP/1.1 200 -
INFO 2011-03-12 00:45:46,648 dev_appserver.py:3317] GET 
/movie/tanu_weds_manu/rating-review-video HTTP/1.1 200 -
INFO 2011-03-12 00:45:46,911 dev_appserver.py:3317] GET 
/img/wianga-fb-50.gif HTTP/1.1 200 -
INFO 2011-03-12 00:45:47,177 dev_appserver.py:3317] GET 
/img/arrow_green.gif HTTP/1.1 200 -
INFO 2011-03-12 00:45:47,470 dev_appserver.py:3317] GET 
/image/movie/tanu_weds_manu HTTP/1.1 200 -
INFO 2011-03-12 00:45:47,717 dev_appserver.py:3317] GET 
/js/jquery.qtip-1.0.0-rc3.min.js HTTP/1.1 200 -
INFO 2011-03-12 00:45:47,970 dev_appserver.py:3317] GET 
/js/wianga.0.1.js HTTP/1.1 200 -
INFO 2011-03-12 00:46:37,473 dev_appserver.py:3317] GET 
/movie/tanu_weds_manu/rating-review-video HTTP/1.1 200 -

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



[google-appengine] Re: High CPU Warning - Is it really an issue?

2011-03-11 Thread Miles
So how do you ensure latency is kept low? And what is considered a
high latency?

On Mar 11, 1:58 pm, Robert Kluin robert.kl...@gmail.com wrote:
 If you keep latency low you'll get new instances.  Those warnings are
 left over from previous quotas and limits.  You can search the groups
 for more info about it.

 Robert



 On Fri, Mar 11, 2011 at 05:53, mscwd01 mscw...@gmail.com wrote:
  Hey,

  I recently finished my app and have since began testing. One of my
  main resources makes 14 RPCs, I have made every effort to decrease CPU
  time I.e. marking properties as unindexed, however I really cannot
  reduce the number of GETs, PUTs and queries that occur in the request.

  The average CPU times associated with the request today is:
  ms=381 cpu_ms=1192 api_cpu_ms=1122 cpm_usd=0.033597

  This does fluctuate and can be less, however it rarely falls low
  enough to have the high CPU warnings removed.

  I've noticed my app still scales fine, I have about 15 instances
  running whilst testing.

  So my question is, should I be concerned at the high CPU warnings or
  is it something most people experience?

  Thanks

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

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



[google-appengine] Billing for other countries

2011-03-11 Thread javabuddy
If I am hosting an application for users in India how will be my
billing will be. Does it need to be in dollars or in Indian rupees.

Also whtat are the restrictions for Application targeted for non US
countries.

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



[google-appengine] Indexes stuck in 'Building' state for days

2011-03-11 Thread Sander Steffann
Hi,

I have about 16 indexes stuck in 'Building' state for days now. Vacuum
doesn't remove them. Does anybody know the best way to fix this (and
prevent this from happening in the future)?

Thanks,
Sander

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



[google-appengine] Re: Where can I find commercial successfully websites created using GAE?

2011-03-11 Thread Mars
Since everyone's plugging their GAE websites here I thought it's only
appropriate for me to talk about mine as well :)

http://askmymob.com

It's a newly launched social network that helps people to make
decisions based on collective wisdom.

It's completely built on GAE using Python. And to be honest, I
wouldn't be able to build this from scratch within 30 days if it were
a different platform. The performance and scalability of GAE is simply
amazing. The occasional hiccups, like the ones we had a couple of days
back, are less than ideal but hey nothing's perfect.

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



[google-appengine] How to monitoring error/exceptions of the code?

2011-03-11 Thread RickardP
I whant to some how get a log of all error/exceptions that been logged
from the application on AppEngine, i dont whant to go throw all
requests att check if there is any error.

I thinking about to build something by my self but most be other that
has the same problem?

How do you monitoring error messages?

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



[google-appengine] Youtube direct authsub not working

2011-03-11 Thread Bishop Lafer
I am getting an error message when I try to authenticate my youtube
direct application. Youtube tells me that another website is trying to
access my page and has misformed request.

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



Re: [google-appengine] Re: High CPU Warning - Is it really an issue?

2011-03-11 Thread Robert Kluin
lp,
  If you haven't already, you might want to use Appstats to verify
that the variations are not actually caused by RPC calls.

  Always on doesn't mean you'll never get a loading request; instances
have to be started, which will be a loading request.  If you get
enough traffic to need additional instances you could see loading
requests (they are indicated in the logs).




Robert




On Fri, Mar 11, 2011 at 22:59, lp lucio.picc...@gmail.com wrote:
 So my question is, should I be concerned at the high CPU warnings or
 is it something most people experience?


 i am getting similar CPU times and very similar elapsed times as u.

 but i get large variation in my CPU times for no apparent reason
 ( same query, params).
 i am using 'Always-on' so it cant be warm up request.

 all that i am concerned about is my elapsed time and my quota cost for
 scalability. so far so it can scale.


 -lp

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



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



Re: [google-appengine] How to monitoring error/exceptions of the code?

2011-03-11 Thread Robert Kluin
You can download and parse the logs:
  
http://code.google.com/appengine/docs/python/tools/uploadinganapp.html#Downloading_Logs

Matthew Blain wrote a little script you might find useful:
  
http://code.google.com/p/google-app-engine-samples/source/browse/trunk/logparser/logparser.py




Robert





On Fri, Mar 11, 2011 at 13:06, RickardP rickar...@gmail.com wrote:
 I whant to some how get a log of all error/exceptions that been logged
 from the application on AppEngine, i dont whant to go throw all
 requests att check if there is any error.

 I thinking about to build something by my self but most be other that
 has the same problem?

 How do you monitoring error messages?

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



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



Re: [google-appengine] Re: High CPU Warning - Is it really an issue?

2011-03-11 Thread David Mora
There are a couple of things you can still do:

   - Try always to send high expensive operations to the background (task
   queues). And also an expensive operation does not mean a lot of processing
   time in your side. If you notice your API CPU usage is high, this could be a
   delete/put operation on an Entity that has, either many indexes, exploding
   problems or data contention due to a not well designed entity group. A
   simple delete/put could take a lot of time or create a bottleneck in your
   application.
   - Don't burst out the task queue operations, play around with the Stored
   Task Queue bytes and tasks execution rate, try to find the limit of tasks
   per second for a operation before it creates contention problems.

Doing so, we were able to diagnose the limits on terms of request per second
of our system (protecting it by task queues) and now we take those alarms as
new designs we need to apply for that specific resource to consume less and
split it in different executions. Just to give you a reference, we load
tested a resource pretty much in the same conditions as yours, and we are
able to scale it 10x times what it does right now before the serving cluster
warned us with throttling. But dont take this as a this would go beyond, i
would not worry but as a notice to keep looking for new
designs/architectures.


On 12 March 2011 00:19, Robert Kluin robert.kl...@gmail.com wrote:

 lp,
  If you haven't already, you might want to use Appstats to verify
 that the variations are not actually caused by RPC calls.

  Always on doesn't mean you'll never get a loading request; instances
 have to be started, which will be a loading request.  If you get
 enough traffic to need additional instances you could see loading
 requests (they are indicated in the logs).




 Robert




 On Fri, Mar 11, 2011 at 22:59, lp lucio.picc...@gmail.com wrote:
  So my question is, should I be concerned at the high CPU warnings or
  is it something most people experience?
 
 
  i am getting similar CPU times and very similar elapsed times as u.
 
  but i get large variation in my CPU times for no apparent reason
  ( same query, params).
  i am using 'Always-on' so it cant be warm up request.
 
  all that i am concerned about is my elapsed time and my quota cost for
  scalability. so far so it can scale.
 
 
  -lp
 
  --
  You received this message because you are subscribed to the Google Groups
 Google App Engine group.
  To post to this group, send email to google-appengine@googlegroups.com.
  To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.com.
  For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.
 
 

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




-- 
http://about.me/david.mora

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



Re: [google-appengine] Re: Where can I find commercial successfully websites created using GAE?

2011-03-11 Thread David Mora
all those sites/apps looks great! quite amazing.

I see GAE as an emerging platform, the fact google is exposing via API or
modified solutions of their own infrastructure have a lot to think about. The
occasional hiccups are because of the same emerging platform that has to
deal with all our/business ideas that sometimes creates new problems (as
technology should). Just looking at the hello async world work im
speechless and i do believe that the combination of that work plus HR, one
can be comfortable with a 99.99% SLA.

On 11 March 2011 16:56, Mars mars...@askmymob.com wrote:

 The occasional hiccups




-- 
http://about.me/david.mora

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



[google-appengine] Re: Solutions to an Exploding Index Problem

2011-03-11 Thread Denis Volokhovskiy
Hi Aaron,

Your may roll down Keywords model
to KeywordsOwnerTopic:

class KeywordsOwnerTopic(db.Model):
owner_saved = db.ReferenceProperty()  #though I prefer to use
StringProperty and store key_name, and query by it
topic = db.ReferenceProperty()
sort1property = db.IntegerProperty

Does original Keywords store some more data?

Then you may avoid duplication by referencing to it:

class KeywordsOwnerTopic(db.Model):
owner_saved = db.ReferenceProperty()  #though I prefer to use
StringProperty and store key_name, and query by it
topic = db.ReferenceProperty()
sort1property = db.IntegerProperty()
keywords_ref = db.ReferenceProperty() #Keywords model key

class Keywords(db.Model):
some_other_data = db.SomeProperty()
...


Also if you querying some model only by properties, not the keys/
key_names,
you have an option to store short data (500 bytes) in key_name (+
adding some unique number as prefix)
and querying with keys_only=True - this will be much faster
This may be used E.g. if Keywords particular entity represent only one
keyword, and its length  500
(may be I misunderstood your data model though)

Best regards,
Den




On Mar 11, 11:23 pm, Aaron aaron.t.che...@gmail.com wrote:
 Hi Jay,

 Exactly, I need to query for keywords based on user and topic.

 That's an interesting suggestion, but the list of saved keywords can
 get longer than 5000.  I also need to be able to sort by a number of
 different integer properties that I didn't explicitly include in the
 model.

 On Mar 11, 9:40 am, Jay jbaker.w...@gmail.com wrote:







  So you have the user and the topic, and want the key words? Do I have that
  right?

  What about moving the saved keywords to the user? You might do something
  like cat them together in a list on user. How big do you expect the list to
  get per user?

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



[google-appengine] emails are not received

2011-03-11 Thread Binu vm
Hello,
Hello,

I have one domain.That domain has been mapped to google app engine.
Now we have successfully created 2-3 email accounts. Now the problem
is
those email accounts are not able to receive any mails from any
domain. But we are able to
send mail to any domain. The problem what I have noticed is the domain
name which is
hosted on a free domain hosting. There it does not support free email
accounts.
Could that be a problem?

In the application settings- Configured Services it is showing two
serivces has been enabled.

1. Incomeing Email
2. Warmup Requests



Request you to help on this issue.

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



[google-appengine] Localization question

2011-03-11 Thread Nick Rosencrantz
Hi what's the change between GAE+django 0.96 and GAE+django 1.2 with
respect to localization? Putting .po and .mo files in APP_NAME/
conf ... used to work and upgraded to django 1.2 it won't work
anymore. Having upgraded from django 0.96 to 1.2 the i18n translations
I got that are in addition to the builtin translations bugged out. I
started a a question here about it
http://stackoverflow.com/questions/5271687/how-to-make-gae-django-pic...
ie How to make GAE+ django pick up my .po and .mo translations. I got
translations ready in .po and .mo files. How can I make django 1.2
display these? I can use the builtin translations and now I want to
enable in addition the ones I keep in [application-name]/conf/locale/
[Language_Code]/LC_MESSAGES'

Is there a way? It used to work with django 0.96 and after the upgrade
only the builtin translations work. I tried moving to APP_DIR/locale/
LANG_CODE/LC_MESSAGES/django.po and it won't work for me. Maybe I
missed something. Do I have to recompile .po files?

Folowing the instructions from answers, I put my .po and .mo files in

APP_DIR/locale/LANG_CODE/LC_MESSAGES/django.po

It still won't work. I'm considering why and welcoming any more advice
or recommendation how to enable i18n features with django for google
app engine.

If any know-how is on this issue then kindly instruct here how to
proceed.
Regards,
Nick Rosencrantz

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



Re: [google-appengine] emails are not received

2011-03-11 Thread VTR Ravi Kumar
Hi Binu,

Does the domain provider allow you to create the cname entries like
mail.domainname.com - ghs.google.com

Thanks

Ravi

On Sat, Mar 12, 2011 at 1:22 PM, Binu vm binu...@gmail.com wrote:

 Hello,
 Hello,

 I have one domain.That domain has been mapped to google app engine.
 Now we have successfully created 2-3 email accounts. Now the problem
 is
 those email accounts are not able to receive any mails from any
 domain. But we are able to
 send mail to any domain. The problem what I have noticed is the domain
 name which is
 hosted on a free domain hosting. There it does not support free email
 accounts.
 Could that be a problem?

 In the application settings- Configured Services it is showing two
 serivces has been enabled.

 1. Incomeing Email
 2. Warmup Requests



 Request you to help on this issue.

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




-- 
Thanks  Regards
VTR Ravi Kumar,
---
If everything seems under control, you're not going fast enough
  - Mario Andretti

http://www.firststop.in
http://www.box.net/shared/hf82389ky7

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