[appengine-java] Re: Best Java Web Frameworks for GAE (aka speed)

2010-09-09 Thread MS
Try http://www.playframework.org/ and http://www.sienaproject.com/ as
a persistence layer.
It's bigger weakness is that is not based on servlets. So needs hacks
sometimes.

But in my opinion Python frameworks are better suited to GAE.
For example we have JDO, JPA, Siena, Objectify and couple of other
persistence layers  for Java and none of this is perfect.
Storing data in Python is easier and there is no need to add another
framework.

I would like to have small, extensible, easy to use microframework
like Flask or Tipfy for Java.

Marek

On 9 Wrz, 06:20, Sergio Lopes slo...@gmail.com wrote:
 Hi everybody

 I use GAEJ for a year now, mainly with VRaptor and Spring IoC
 frameworks. As every GAE developer knows, we still have some issues
 with Cold Start, specially because context loading happens in the
 first request. So it seems to be a good thing to optimize that startup
 time, something that Java developers are not used to (we usually focus
 only in request processing time).

 And, for me, it seems that Spring isn't a good choice for GAE. In my
 projects, it seems that classpath scanning plus the container
 initialization are taking a very long time. So, what are you using?
 What's the best framework for GAE when talking about performance and
 low startup time?

 GWT?
 JSF?
 Spring?
 Struts2?
 Pure servlets? (joking :-)

 Thanks
 Sérgio

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



[appengine-java] Re: time triggered tasks

2010-09-09 Thread Francois Masurel
It looks like you can delay tasks via API :

 TaskOptionscountdownMillis(long countdownMillis)
  Set the number of milliseconds delay before execution of the
task.
 TaskOptionsetaMillis(long etaMillis)
  Sets the approximate absolute time to execute.

I also found a link : 
http://efreedom.com/Question/1-1049054/Task-Queue-API-ETA-Countdown

I have not tested it though.

Francois

On 9 sep, 05:29, Hariharan Anantharaman
hariharan.ananthara...@gmail.com wrote:
 Hi,
 Are you planning to have all users authenticated only using google accounts?
 If so, you can see if you can use google calendar. Just a thought. That
 might help you to acheieve few things out of box.

 ~hari

 On Sep 9, 2010 4:56 AM, Marco Alves marco.m.al...@gmail.com wrote:

 Hi Didier. Thanks for your input.

 I was hoping that it would be possible to schedule each task with an
 execution date. With that information, GAE would execute the task on
 the execution date, very much like an alarm clock.

 I guess I'll have to implement a cron job at a regular interval and
 use the task queues as you mentioned.

 On Sep 5, 4:56 pm, Didier Durand durand.did...@gmail.com wrote:  Hi
 marco,   One solution to t...

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



[appengine-java] Re: Spring WS on Google App Engine

2010-09-09 Thread tetsujin1979
I used the Release Candidate 2 for Spring-code 3.0 and release 1.5.8
for Spring-ws and Spring-oxm

On Sep 8, 5:05 pm, Shweta Deshpande shweta...@gmail.com wrote:
 Hi tetsujin,

 Thanks for your reply. I changed to an earlier version of Spring (2.5.6, to
 be precise), and version 1.5.1 for spring-ws. There is some change - earlier
 I used to get a 500 Internal Server Error for HTTP POST in the SOAP
 response, now I am getting 200 OK. But the contents are still empty, and I
 can still see the same exception logged on the server as below.

 Which versions did you use when it worked for you?

 Thanks,
 Shweta

 On Wed, Sep 8, 2010 at 5:27 AM, tetsujin1979 tetsujin1...@gmail.com wrote:
  I'm having the same problem, but I've noticed that the service
  function is called and processed before the exception is thrown
  it appears that the exception is in the marshal stage of the SOAP
  call, i.e. when the return value is wrapped in an xml message

  I followed the same article a few months ago and it worked fine with
  an older version of Spring, maybe try running the service with an
  older set of the jar files?

  On Sep 7, 7:45 pm, Shweta Deshpande shweta...@gmail.com wrote:
   Can anyone please help?

   On Wed, Sep 1, 2010 at 2:16 PM, Shweta Deshpande shweta...@gmail.com
  wrote:

Hello,

I am trying to build a SOAP web service using Spring and deploy it on
App Engine. I followed the instructions in an article to build it.
Since there is no support for javax.xml.soap, I used
AxiomSoapMessageFactory, and also turned payloadCaching to false. When
I run the service and send a SOAP request (through soapUI), an
exception gets logged on the server, which is as follows:

java.security.AccessControlException: access denied
(java.lang.RuntimePermission getClassLoader)
       at

  com.google.appengine.runtime.Request.process-8fc4664f5661bc5b(Request.java)
       at

  java.security.AccessControlContext.checkPermission(AccessControlContext.jav­a:
355)
       at
java.security.AccessController.checkPermission(AccessController.java:
567)
       at
  java.lang.SecurityManager.checkPermission(SecurityManager.java:
549)
       at
  java.lang.ClassLoader.getSystemClassLoader(ClassLoader.java:1311)
       at

  org.apache.axiom.util.stax.dialect.StAXDialectDetector.getRootUrlForResourc­e(StAXDialectDetector.java:
89)
       at

  org.apache.axiom.util.stax.dialect.StAXDialectDetector.getRootUrlForClass(S­tAXDialectDetector.java:
109)
       at

  org.apache.axiom.util.stax.dialect.StAXDialectDetector.getDialect(StAXDiale­ctDetector.java:
148)
       at org.apache.axiom.om.util.StAXUtils$8.run(StAXUtils.java:591)
       at
java.security.AccessController.doPrivileged(AccessController.java:
34)
       at
org.apache.axiom.om.util.StAXUtils.newXMLOutputFactory(StAXUtils.java:
571)
       at

  org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory_perClassLoader(StAXU­tils.java:
621)
       at
org.apache.axiom.om.util.StAXUtils.getXMLOutputFactory(StAXUtils.java:
277)
       at

  org.apache.axiom.om.util.StAXUtils.createXMLStreamWriter(StAXUtils.java:
340)
       at

  org.apache.axiom.om.impl.MTOMXMLStreamWriter.init(MTOMXMLStreamWriter.jav­a:
122)
       at

  org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSeri­alizableImpl.java:
191)
       at

  org.springframework.ws.soap.axiom.AxiomSoapMessage.writeTo(AxiomSoapMessage­.java:
255)
       at

  org.springframework.ws.transport.AbstractWebServiceConnection.send(Abstract­WebServiceConnection.java:
42)
       at

  org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSup­port.handleConnection(WebServiceMessageReceiverObjectSupport.java:
97)
       at

  org.springframework.ws.transport.http.WebServiceMessageReceiverHandlerAdapt­er.handle(WebServiceMessageReceiverHandlerAdapter.java:
57)
       at

  org.springframework.ws.transport.http.MessageDispatcherServlet.doService(Me­ssageDispatcherServlet.java:
230)
       at

  org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkSe­rvlet.java:
636)
       at

  org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.ja­va:
556)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
       at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
511)
       at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1166)
       at

  com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo­bUploadFilter.java:
97)
       at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1157)
       at

  

[appengine-java] Re: removing element from list not persisted in datastore

2010-09-09 Thread Frederik Pfisterer
I experienced this with lists of complex objects in owned
relationships, not with lists of strings, see
http://code.google.com/p/datanucleus-appengine/issues/detail?id=218 .
Lists of strings should not be a problem since they're stored in the
same table, basically the listproperties Bret mentions in his talk.
Are you using GWT?

Fred

On 8 Sep., 11:50, androidDeveloper stepmas...@googlemail.com wrote:
 Hi all,

 I read the post

 http://groups.google.com/group/google-appengine-java/browse_thread/th...

 which describes a problem with the local datastore and empty lists.

 This problem seems to be fixed. But maybe I have found another one.

 I have a list ListString favoritesUserId in a index class to which
 I can add or remove keys (encoded Strings). So there is the
 possibility, that the list gets empty, after all items are removed.
 The class is a child of another class. The structure is kind of the
 index-class pattern introduced by Bret Slatkin (Building Scalable,
 complex Apps on App engine)

 So here is the problem. When I try to save an item in the list, it
 works fine. Removing items works fine too, as long the list after
 removing the item is not empty. When I remove the last item and save
 the object, the last item stays in the list. I have not tried it in
 production yet, cause I am not ready for testing prod. Maybe this is a
 local problem with the SDK?

 Does anyone know what the solution to this problem is?

 Thanks!

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



Re: [appengine-java] Re: removing element from list not persisted in datastore

2010-09-09 Thread Cyrille Vincey
Stepmas, please keep us informed with your tests on that particular point,
as we are currently changing our data model to match Brett's recommandation
about list properties in child object.

On 09/09/10 11:58, Frederik Pfisterer pfiste...@gmail.com wrote:

 I experienced this with lists of complex objects in owned
 relationships, not with lists of strings, see
 http://code.google.com/p/datanucleus-appengine/issues/detail?id=218 .
 Lists of strings should not be a problem since they're stored in the
 same table, basically the listproperties Bret mentions in his talk.
 Are you using GWT?
 
 Fred
 
 On 8 Sep., 11:50, androidDeveloper stepmas...@googlemail.com wrote:
 Hi all,
 
 I read the post
 
 http://groups.google.com/group/google-appengine-java/browse_thread/th...
 
 which describes a problem with the local datastore and empty lists.
 
 This problem seems to be fixed. But maybe I have found another one.
 
 I have a list ListString favoritesUserId in a index class to which
 I can add or remove keys (encoded Strings). So there is the
 possibility, that the list gets empty, after all items are removed.
 The class is a child of another class. The structure is kind of the
 index-class pattern introduced by Bret Slatkin (Building Scalable,
 complex Apps on App engine)
 
 So here is the problem. When I try to save an item in the list, it
 works fine. Removing items works fine too, as long the list after
 removing the item is not empty. When I remove the last item and save
 the object, the last item stays in the list. I have not tried it in
 production yet, cause I am not ready for testing prod. Maybe this is a
 local problem with the SDK?
 
 Does anyone know what the solution to this problem is?
 
 Thanks!


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



[appengine-java] Re: App Engine and Google Apps

2010-09-09 Thread Frederik Pfisterer
Hi Ikai,

can you give a pointer to a document that states what rules and
regulations GAE complies to?
e.g. where did you state the noncompliance to HIPAA? What does Google
prevent from complying?

Thanks,
Fred

On 8 Sep., 20:13, Ikai L (Google) ika...@google.com wrote:
 Yes, you can partition by namespace on domain. You shouldn't need OpenID to
 get this to work.

 Just be aware that we've stated in the fact we are not HIPAA compliant:

 http://www.hhs.gov/ocr/privacy/

 Check with your legal counsel before proceeding.



 On Wed, Sep 8, 2010 at 9:42 AM, Vishal Singh singh.vi...@gmail.com wrote:
  This is my use case. We are building a health care solution using App
  Engine. The idea is people would be able to add the health care app
  engine solution in their Google App Domain. The health care app engine
  solution will be able to differentiate there request from different
  Google Apps and store data using the new multi-tenancy NameSpace
  features. In short one deployment being accessed by multiple Google
  Apps and data partitioned according to name space. Is this possible ?

  As I understand one would need to get openid authentication working
  for Google Apps as Gmail Option or Google Apps authentication will not
  help me in my above mentioned scenario.

  If one gets open id working for Apps can there be one deployment of
  app engine serving multiple Google Apps user ? A clear answer will
  help

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

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

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



[appengine-java] Re: removing element from list not persisted in datastore

2010-09-09 Thread James
I posted on similar issues here -
http://groups.google.com/group/google-appengine-java/browse_thread/thread/e81658b708e92d9e

After spending (wasting) several days experimenting w/ the combination
of detached and owned entities, my apps now work fine, but I always
need to call JDOHelper.makeDirty before persisting to get things
working properly.  Otherwise I get special-case bugs saving an empty
list, or a list w/ one item in it.

So try JDOHelper.makeDirty(enhtityInstance, propertyNameAsString); and
let us know if that helps.

J



On Sep 8, 5:50 am, androidDeveloper stepmas...@googlemail.com wrote:
 Hi all,

 I read the post

 http://groups.google.com/group/google-appengine-java/browse_thread/th...

 which describes a problem with the local datastore and empty lists.

 This problem seems to be fixed. But maybe I have found another one.

 I have a list ListString favoritesUserId in a index class to which
 I can add or remove keys (encoded Strings). So there is the
 possibility, that the list gets empty, after all items are removed.
 The class is a child of another class. The structure is kind of the
 index-class pattern introduced by Bret Slatkin (Building Scalable,
 complex Apps on App engine)

 So here is the problem. When I try to save an item in the list, it
 works fine. Removing items works fine too, as long the list after
 removing the item is not empty. When I remove the last item and save
 the object, the last item stays in the list. I have not tried it in
 production yet, cause I am not ready for testing prod. Maybe this is a
 local problem with the SDK?

 Does anyone know what the solution to this problem is?

 Thanks!

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



[appengine-java] Need help choosing a frontend framework for a GAEj app, GWT seems like overkill

2010-09-09 Thread tempy
Hello all,

A little background... I'm mostly new to web frontend development, I
come from a mostly backend and desktop background.  I have a GAEj app
that provides the backend for a rather sophisticated desktop/mobile
app.  This backend will also drive a website in addition to the
desktop/mobile app.

The website will show a small subset of the data in the system.  I
started with GWT, but it doesn't seem to be quite right.  The website
is for presentation of a small subset of the system's data only, and
users do not interact with the data in any way other than searching
for it.  As the data is mostly unstructured text and some images, I
feel most comfortable formatting it with plain old html/css.  In fact,
the layout of the site will be minimal and look a lot like a blog.  As
such, the website should certainly not feel like a single-page web
application a la gmail.  With GWT, I have little use for widgets and
find myself constantly fighting with it to get a non-application look-
and-feel.

The only functionality that I thus really need from GWT is the RPC
component, the page should be AJAX, I don't want to do round trips to
the server for every navigation event.

So, I'm not quite sure which framework to use with the GAEj backend.
At first GWT seemed like a natural fit, but now seems like overkill.
I'm doing some research on jquery, but I haven't seen a list of
frontend frameworks that play well on GAEj anywhere.

Thanks for any advice,
Mike

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



[appengine-java] Re: Need help choosing a frontend framework for a GAEj app, GWT seems like overkill

2010-09-09 Thread Chris (Google Employee)
Hi Mike,

I think the reason we don't explicitly publish a list of frontend
frameworks that play well with App Engine is because there really is
no technical barrier between front end frameworks that work in the
browser such as JQuery, etc and the backend (App Engine). Many App
Engine users make full use of a myriad of front end technologies/
frameworks for UI creation ranging from HTML5/JS/CSS to flash etc.

JQuery is especially popular for a variety of Web app usages, so if
that works for you, I'd definitely continue trying it out.

Hope this helps,
-Chris



On Sep 9, 10:43 am, tempy fay...@gmail.com wrote:
 Hello all,

 A little background... I'm mostly new to web frontend development, I
 come from a mostly backend and desktop background.  I have a GAEj app
 that provides the backend for a rather sophisticated desktop/mobile
 app.  This backend will also drive a website in addition to the
 desktop/mobile app.

 The website will show a small subset of the data in the system.  I
 started with GWT, but it doesn't seem to be quite right.  The website
 is for presentation of a small subset of the system's data only, and
 users do not interact with the data in any way other than searching
 for it.  As the data is mostly unstructured text and some images, I
 feel most comfortable formatting it with plain old html/css.  In fact,
 the layout of the site will be minimal and look a lot like a blog.  As
 such, the website should certainly not feel like a single-page web
 application a la gmail.  With GWT, I have little use for widgets and
 find myself constantly fighting with it to get a non-application look-
 and-feel.

 The only functionality that I thus really need from GWT is the RPC
 component, the page should be AJAX, I don't want to do round trips to
 the server for every navigation event.

 So, I'm not quite sure which framework to use with the GAEj backend.
 At first GWT seemed like a natural fit, but now seems like overkill.
 I'm doing some research on jquery, but I haven't seen a list of
 frontend frameworks that play well on GAEj anywhere.

 Thanks for any advice,
 Mike

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



[appengine-java] UrlFetch api, gzip, and quota

2010-09-09 Thread MrManager
Hi,

I am making a lot of calls per day to parse html files, and already at
low activity notice that my Incoming Bandwidth quota is just being
eaten away.

After some debugging I noticed that my responses were being received
in plain text, and not gzip as I had expected. After some digging, and
from this thread:
http://groups.google.com/group/google-appengine-java/browse_thread/thread/5c5f2a7e2d2beadc/b0775619b02b27bb?lnk=gstq=urlfetch+gzip#b0775619b02b27bb
, I found out that GAE does behind the scenes work, and you actually
do receive it as gzip, it is just uncompressed before you get to
handle it yourself, correct?

If this is the case, and it is the gzip'ed bandwidth that is
accumulated to quota, I just can not get it to add up with the rate at
which it is increasing. The pages I hit average 5-8kb gzipped, yet if
I take the quota thus far, and divide by the UrlFetch api call
counter, I am seeing an average of around 22kb.

Anyone have any ideas here? Or run into similar issues?

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



[appengine-java] Catching HardDeadlineExceededError

2010-09-09 Thread armanuj
Hello,

I am using GAE with Java have been seeing HardDeadlineExceededError
for some tasks running in the task queue. I searched for ways of
catching this error, and have tried to catch it using
DeadlineExceededException in places where I query the datastore (esp.
delete queries with filters), as well as in the task Servlet.

However, the DeadlineExceededException never appears to be thrown, and
hence my catch blocks (which just log warnings) are not executed (the
warnings are not in the logs). I also tried to replace the
DeadlineExceededException with RuntimeException and tried to log the
messages in the catch block. Again, the GAE logs do not reflect any
such data.

Further, for many of the tasks another form of message (warning)
appears in the logs: Request was aborted after waiting too long to
attempt to service your request. This may happen sporadically when the
App Engine serving cluster is under unexpectedly high or uneven load.
If you see this message frequently, please contact the App Engine
team.

Appreciate any response on the best way to catch and proces the
HardDeadlineExceededError in Java?

Thanks,
Arun

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



[appengine-java] Help: How to enable src auto-update in eclipse using app engine plugin for eclipse?

2010-09-09 Thread Felix
Hello, guys. I'm using Google App Engine 1.3.7 eclipse plugin with
eclipse 3.5 on a Windows 32bit machine. It works great for me to
develop Java servlets and serve them at localhost. However, whenever I
modify the servlet source, I've to stop the previously running
instances of app engine at localhost, and then restart it to see
changes in my browser. If not, the changes will not take effect.
I'm wondering whether anyone eles have encountered this problem ever,
and thank you very much for digging into this post:)

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



[appengine-java] Re: Best Java Web Frameworks for GAE (aka speed)

2010-09-09 Thread Edufa
Hi Sergio

I like the VRaptor.
Is there any plan to improve the speed of the VRaptor in GAE?
maybe if you remove the dependency of spring.

Thanks


On 9 set, 01:20, Sergio Lopes slo...@gmail.com wrote:
 Hi everybody

 I use GAEJ for a year now, mainly with VRaptor and Spring IoC
 frameworks. As every GAE developer knows, we still have some issues
 with Cold Start, specially because context loading happens in the
 first request. So it seems to be a good thing to optimize that startup
 time, something that Java developers are not used to (we usually focus
 only in request processing time).

 And, for me, it seems that Spring isn't a good choice for GAE. In my
 projects, it seems that classpath scanning plus the container
 initialization are taking a very long time. So, what are you using?
 What's the best framework for GAE when talking about performance and
 low startup time?

 GWT?
 JSF?
 Spring?
 Struts2?
 Pure servlets? (joking :-)

 Thanks
 Sérgio

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



[appengine-java] Re: app eng java plugin not compatible with helios

2010-09-09 Thread Neverland
Hi,

do you use Ubuntu 10.04?
I use Ubuntu 10.04 and I had the same error.

The solution is described here:

http://digitalexplorations.wordpress.com/installing-google-app-engine-for-eclipse-3-5-on-ubuntu-10-04-lts/

Install the WST code from the Eclipse Galileo source.

The source is: http://download.eclipse.org/releases/galileo.

Select the Web, XML, and Java EE Development group for installation,
which includes the WST Server Adapters.

After the installation, Eclipse needs to be restarted and you can use
the Plugin from http://dl.google.com/eclipse/plugin/3.5  .

This worked for me.

Best Regards,
   Christian

On 8 Sep., 02:19, Jeroen Lapre' jeroen.la...@gmail.com wrote:
 Hi Rajeev,

 I'm using:

 http://dl.google.com/eclipse/plugin/3.5

 And get the following error in helios EE and JSE:

 Cannot complete the install because one or more required items could not be
 found.
   Software being installed: Google App Engine Java SDK 1.3.7
 1.3.7.v201008311405
 (com.google.appengine.eclipse.sdkbundle.e35.feature.1.3.7.feature.group
 1.3.7.v201008311405)
   Missing requirement: Google Plugin for Eclipse 3.5 1.3.3.v201006111302
 (com.google.gdt.eclipse.suite.e35.feature.feature.group 1.3.3.v201006111302)
 requires 'org.eclipse.platform.feature.group [3.5.0,3.6.0)' but it could not
 be found
   Cannot satisfy dependency:
     From: Google App Engine Java SDK 1.3.7 1.3.7.v201008311405
 (com.google.appengine.eclipse.sdkbundle.e35.feature.1.3.7.feature.group
 1.3.7.v201008311405)
     To: com.google.gdt.eclipse.suite.e35.feature.feature.group 1.3.3

 Any ideas?

 thanks
 -jeroen

 On Tue, Sep 7, 2010 at 12:51 PM, Rajeev Dayal rda...@google.com wrote:
  Hey synthetic,

  Which update site were you using?

  Rajeev

  On Tue, Sep 7, 2010 at 1:29 PM, syntheticperson 
  jeroen.la...@gmail.comwrote:

  Ok,

  good to know it works with helios.
  I'll give it another try.

  thanks

  synthetic p

  On Sep 6, 11:00 pm, Thomas P. vi...@pcb-dev.com wrote:
   I think you did something wrong ...

   I've been working with GAE+GWT with Helios for about 4 weeks now and
   everything works fine ...

   Best regards,
   Thomas

   On 05.09.2010 19:33, syntheticperson wrote:

I tried to install google app engine java plugin for eclipse, but it
does not appear to be compatible with the latest helios release of
eclipse.

Cannot complete the install because one or more required items could
not be found.
   Software being installed: Google Plugin for Eclipse 3.5
1.3.3.v201006111302
(com.google.gdt.eclipse.suite.e35.feature.feature.group
1.3.3.v201006111302)
   Missing requirement: Google Plugin for Eclipse 3.5
1.3.3.v201006111302
(com.google.gdt.eclipse.suite.e35.feature.feature.group
1.3.3.v201006111302) requires 'org.eclipse.platform.feature.group
[3.5.0,3.6.0)' but it could not be found

Are there any plans to upgrade google plugin for:

Eclipse Java EE IDE for Web Developers.

Version: Helios Release
Build id: 20100617-1415

?

thanks
-synthetic person

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

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

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



Re: [appengine-java] Replace an object in the datastore with another not currently in the datastore?

2010-09-09 Thread Ikai L (Google)
With the low-level API, you would just set the Key of the old object to the
one one and persist it. With managed persistence via PersistenceManager or
EntityManager, I believe you can set a key and merge (but I'm not sure off
the top of my head).

On Wed, Sep 8, 2010 at 12:43 PM, Shaun shaunc...@gmail.com wrote:

 This might be very obvious, but imagine you have an object in the
 datastore that you simply want to to replace with another, i.e. keep
 the same key, just replace all the field values. Is there any easy way
 to do this without setting each field value of the datastore object
 with field values of the other object?

 As an example I find myself doing this alot:

 ExpenseEntry lJsonExpenseEntry = gson.fromJson(pExpenseEntryJson,
 ExpenseEntry.class);
ExpenseEntry lExpenseEntry =
 pm.getObjectById(ExpenseEntry.class,
 expenseKey);


 lExpenseEntry.setExpenseamount(lJsonExpenseEntry.getExpenseamount());

 lExpenseEntry.setExpensecategory(lJsonExpenseEntry.getExpensecategory());

  lExpenseEntry.setExpensedate(lJsonExpenseEntry.getExpensedate());

  lExpenseEntry.setExpensename(lJsonExpenseEntry.getExpensename());

  lExpenseEntry.setExpensenotes(lJsonExpenseEntry.getExpensenotes());

  lExpenseEntry.setExpenseuser(lJsonExpenseEntry.getExpenseuser());

  lExpenseEntry.setProjectid(lJsonExpenseEntry.getProjectid());

 in order to update the datastore object, ideally I could do this all
 in a few lines by simply replacing the current datastore object with
 the new one. Maybe just removepersistence and then add it again?
 Thanks for the thoughts.

 Shaun

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




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

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



Re: [appengine-java] Catching HardDeadlineExceededError

2010-09-09 Thread Don Schwarz
There is no way to catch a HardDeadlineExceededError.  However, you
should be getting a DeadlineExceededException first.  Perhaps it is
being caught and not properly logged by your code or some third-party
library that you are using?

If you would like help debugging this let me know your application ID
privately and I will verify that everything looks correct on our end.

On Thu, Sep 9, 2010 at 8:27 AM, armanuj arun_rama...@yahoo.com wrote:
 Hello,

 I am using GAE with Java have been seeing HardDeadlineExceededError
 for some tasks running in the task queue. I searched for ways of
 catching this error, and have tried to catch it using
 DeadlineExceededException in places where I query the datastore (esp.
 delete queries with filters), as well as in the task Servlet.

 However, the DeadlineExceededException never appears to be thrown, and
 hence my catch blocks (which just log warnings) are not executed (the
 warnings are not in the logs). I also tried to replace the
 DeadlineExceededException with RuntimeException and tried to log the
 messages in the catch block. Again, the GAE logs do not reflect any
 such data.

 Further, for many of the tasks another form of message (warning)
 appears in the logs: Request was aborted after waiting too long to
 attempt to service your request. This may happen sporadically when the
 App Engine serving cluster is under unexpectedly high or uneven load.
 If you see this message frequently, please contact the App Engine
 team.

 Appreciate any response on the best way to catch and proces the
 HardDeadlineExceededError in Java?

 Thanks,
 Arun

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



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



Re: [appengine-java] Re: App Engine and Google Apps

2010-09-09 Thread Ikai L (Google)
There's no document (we are working on a general document for security,
audit processes, etc), but we do not make the statement that we are not
HIPAA compliant. I want to offer a quick disclaimer that I am not in a
position to make any legal statements, so if there are any specifics you
wish you discuss we can take this off list and I can point you to our legal
team.

On Thu, Sep 9, 2010 at 3:13 AM, Frederik Pfisterer pfiste...@gmail.comwrote:

 Hi Ikai,

 can you give a pointer to a document that states what rules and
 regulations GAE complies to?
 e.g. where did you state the noncompliance to HIPAA? What does Google
 prevent from complying?

 Thanks,
 Fred

 On 8 Sep., 20:13, Ikai L (Google) ika...@google.com wrote:
  Yes, you can partition by namespace on domain. You shouldn't need OpenID
 to
  get this to work.
 
  Just be aware that we've stated in the fact we are not HIPAA compliant:
 
  http://www.hhs.gov/ocr/privacy/
 
  Check with your legal counsel before proceeding.
 
 
 
  On Wed, Sep 8, 2010 at 9:42 AM, Vishal Singh singh.vi...@gmail.com
 wrote:
   This is my use case. We are building a health care solution using App
   Engine. The idea is people would be able to add the health care app
   engine solution in their Google App Domain. The health care app engine
   solution will be able to differentiate there request from different
   Google Apps and store data using the new multi-tenancy NameSpace
   features. In short one deployment being accessed by multiple Google
   Apps and data partitioned according to name space. Is this possible ?
 
   As I understand one would need to get openid authentication working
   for Google Apps as Gmail Option or Google Apps authentication will not
   help me in my above mentioned scenario.
 
   If one gets open id working for Apps can there be one deployment of
   app engine serving multiple Google Apps user ? A clear answer will
   help
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
  --
  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

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




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

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



Re: [appengine-java] Help: How to enable src auto-update in eclipse using app engine plugin for eclipse?

2010-09-09 Thread Ikai L (Google)
Is your server running in debug mode? Most classes should be hot reloadable.
You'll still need to restart your server for web.xml changes.

On Thu, Sep 9, 2010 at 12:56 AM, Felix longbiaoc...@gmail.com wrote:

 Hello, guys. I'm using Google App Engine 1.3.7 eclipse plugin with
 eclipse 3.5 on a Windows 32bit machine. It works great for me to
 develop Java servlets and serve them at localhost. However, whenever I
 modify the servlet source, I've to stop the previously running
 instances of app engine at localhost, and then restart it to see
 changes in my browser. If not, the changes will not take effect.
 I'm wondering whether anyone eles have encountered this problem ever,
 and thank you very much for digging into this post:)

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




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

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



Re: [appengine-java] Re: Best Java Web Frameworks for GAE (aka speed)

2010-09-09 Thread Sérgio Lopes
I'm wondering what's the best IoC container with the lowest startup time.
Guice? Pico? Spring?
(I guess Spring has the worst startup time)


On Thu, Sep 9, 2010 at 10:27, Edufa e...@edufa.com wrote:

 Hi Sergio

 I like the VRaptor.
 Is there any plan to improve the speed of the VRaptor in GAE?
 maybe if you remove the dependency of spring.

 Thanks


 On 9 set, 01:20, Sergio Lopes slo...@gmail.com wrote:
  Hi everybody
 
  I use GAEJ for a year now, mainly with VRaptor and Spring IoC
  frameworks. As every GAE developer knows, we still have some issues
  with Cold Start, specially because context loading happens in the
  first request. So it seems to be a good thing to optimize that startup
  time, something that Java developers are not used to (we usually focus
  only in request processing time).
 
  And, for me, it seems that Spring isn't a good choice for GAE. In my
  projects, it seems that classpath scanning plus the container
  initialization are taking a very long time. So, what are you using?
  What's the best framework for GAE when talking about performance and
  low startup time?
 
  GWT?
  JSF?
  Spring?
  Struts2?
  Pure servlets? (joking :-)
 
  Thanks
  Sérgio

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



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



[appengine-java] Re: Best Java Web Frameworks for GAE (aka speed)

2010-09-09 Thread Roberto Saccon
Slim3 is among the fastest appengine Java Web frameworks. Small
footprint, no reflection and pure low level API for datastore. I use
it together with Jamon template engine (which is lightweight and fast
as well, templates get compiled). And both provide excellent eclipse
integration.

--
Roberto

On Sep 9, 3:47 pm, Sérgio Lopes sergio.lo...@caelum.com.br wrote:
 I'm wondering what's the best IoC container with the lowest startup time.
 Guice? Pico? Spring?
 (I guess Spring has the worst startup time)







 On Thu, Sep 9, 2010 at 10:27, Edufa e...@edufa.com wrote:
  Hi Sergio

  I like the VRaptor.
  Is there any plan to improve the speed of the VRaptor in GAE?
  maybe if you remove the dependency of spring.

  Thanks

  On 9 set, 01:20, Sergio Lopes slo...@gmail.com wrote:
   Hi everybody

   I use GAEJ for a year now, mainly with VRaptor and Spring IoC
   frameworks. As every GAE developer knows, we still have some issues
   with Cold Start, specially because context loading happens in the
   first request. So it seems to be a good thing to optimize that startup
   time, something that Java developers are not used to (we usually focus
   only in request processing time).

   And, for me, it seems that Spring isn't a good choice for GAE. In my
   projects, it seems that classpath scanning plus the container
   initialization are taking a very long time. So, what are you using?
   What's the best framework for GAE when talking about performance and
   low startup time?

   GWT?
   JSF?
   Spring?
   Struts2?
   Pure servlets? (joking :-)

   Thanks
   Sérgio

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

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



[appengine-java] Re: Need help choosing a frontend framework for a GAEj app, GWT seems like overkill

2010-09-09 Thread tempy
Thanks for the explanation Chris!

Guess I'm learning jquery, golly, I'll be a real web programmer yet.
=)

On Sep 9, 7:58 pm, Chris (Google Employee) api.ch...@google.com
wrote:
 Hi Mike,

 I think the reason we don't explicitly publish a list of frontend
 frameworks that play well with App Engine is because there really is
 no technical barrier between front end frameworks that work in the
 browser such as JQuery, etc and the backend (App Engine). Many App
 Engine users make full use of a myriad of front end technologies/
 frameworks for UI creation ranging from HTML5/JS/CSS to flash etc.

 JQuery is especially popular for a variety of Web app usages, so if
 that works for you, I'd definitely continue trying it out.

 Hope this helps,
 -Chris

 On Sep 9, 10:43 am, tempy fay...@gmail.com wrote:



  Hello all,

  A little background... I'm mostly new to web frontend development, I
  come from a mostly backend and desktop background.  I have a GAEj app
  that provides the backend for a rather sophisticated desktop/mobile
  app.  This backend will also drive a website in addition to the
  desktop/mobile app.

  The website will show a small subset of the data in the system.  I
  started with GWT, but it doesn't seem to be quite right.  The website
  is for presentation of a small subset of the system's data only, and
  users do not interact with the data in any way other than searching
  for it.  As the data is mostly unstructured text and some images, I
  feel most comfortable formatting it with plain old html/css.  In fact,
  the layout of the site will be minimal and look a lot like a blog.  As
  such, the website should certainly not feel like a single-page web
  application a la gmail.  With GWT, I have little use for widgets and
  find myself constantly fighting with it to get a non-application look-
  and-feel.

  The only functionality that I thus really need from GWT is the RPC
  component, the page should be AJAX, I don't want to do round trips to
  the server for every navigation event.

  So, I'm not quite sure which framework to use with the GAEj backend.
  At first GWT seemed like a natural fit, but now seems like overkill.
  I'm doing some research on jquery, but I haven't seen a list of
  frontend frameworks that play well on GAEj anywhere.

  Thanks for any advice,
  Mike

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



Re: [appengine-java] Re: Need help choosing a frontend framework for a GAEj app, GWT seems like overkill

2010-09-09 Thread John Patterson
You might want to look into Sitebricks which is a Google developed web app
framework built on top of Guice.  It is a simple request response processor
with no fancy component abstractions like Wicket or Tapestry.  This model
fits in very well with GWT (or other  client frameworks) which request data
via RPC or small snippets of rendered html to assemble on the client.

It is still very much in active development so you have to be prepared to
dig into the code and figure out the plumbing yourself.  The author, Dhanji,
has built a fantastic API here - simple, powerful and clever.

http://code.google.com/p/google-sitebricks/

John

On 10 September 2010 05:35, tempy fay...@gmail.com wrote:

 Thanks for the explanation Chris!

 Guess I'm learning jquery, golly, I'll be a real web programmer yet.
 =)

 On Sep 9, 7:58 pm, Chris (Google Employee) api.ch...@google.com
 wrote:
  Hi Mike,
 
  I think the reason we don't explicitly publish a list of frontend
  frameworks that play well with App Engine is because there really is
  no technical barrier between front end frameworks that work in the
  browser such as JQuery, etc and the backend (App Engine). Many App
  Engine users make full use of a myriad of front end technologies/
  frameworks for UI creation ranging from HTML5/JS/CSS to flash etc.
 
  JQuery is especially popular for a variety of Web app usages, so if
  that works for you, I'd definitely continue trying it out.
 
  Hope this helps,
  -Chris
 
  On Sep 9, 10:43 am, tempy fay...@gmail.com wrote:
 
 
 
   Hello all,
 
   A little background... I'm mostly new to web frontend development, I
   come from a mostly backend and desktop background.  I have a GAEj app
   that provides the backend for a rather sophisticated desktop/mobile
   app.  This backend will also drive a website in addition to the
   desktop/mobile app.
 
   The website will show a small subset of the data in the system.  I
   started with GWT, but it doesn't seem to be quite right.  The website
   is for presentation of a small subset of the system's data only, and
   users do not interact with the data in any way other than searching
   for it.  As the data is mostly unstructured text and some images, I
   feel most comfortable formatting it with plain old html/css.  In fact,
   the layout of the site will be minimal and look a lot like a blog.  As
   such, the website should certainly not feel like a single-page web
   application a la gmail.  With GWT, I have little use for widgets and
   find myself constantly fighting with it to get a non-application look-
   and-feel.
 
   The only functionality that I thus really need from GWT is the RPC
   component, the page should be AJAX, I don't want to do round trips to
   the server for every navigation event.
 
   So, I'm not quite sure which framework to use with the GAEj backend.
   At first GWT seemed like a natural fit, but now seems like overkill.
   I'm doing some research on jquery, but I haven't seen a list of
   frontend frameworks that play well on GAEj anywhere.
 
   Thanks for any advice,
   Mike

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



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



Re: [appengine-java] Re: Need help choosing a frontend framework for a GAEj app, GWT seems like overkill

2010-09-09 Thread John Patterson
BTW, you can use GWT in a manor very similar to JQuery.  Take a look a
GQuery by Ray Cromwell.  He has an incredible benchmark page which
dynamically shows how GQuery out performs JQuery in almost every measure.

On 10 September 2010 05:53, John Patterson jdpatter...@gmail.com wrote:

 You might want to look into Sitebricks which is a Google developed web app
 framework built on top of Guice.  It is a simple request response processor
 with no fancy component abstractions like Wicket or Tapestry.  This model
 fits in very well with GWT (or other  client frameworks) which request data
 via RPC or small snippets of rendered html to assemble on the client.

 It is still very much in active development so you have to be prepared to
 dig into the code and figure out the plumbing yourself.  The author, Dhanji,
 has built a fantastic API here - simple, powerful and clever.

 http://code.google.com/p/google-sitebricks/

 John


 On 10 September 2010 05:35, tempy fay...@gmail.com wrote:

 Thanks for the explanation Chris!

 Guess I'm learning jquery, golly, I'll be a real web programmer yet.
 =)

 On Sep 9, 7:58 pm, Chris (Google Employee) api.ch...@google.com
 wrote:
  Hi Mike,
 
  I think the reason we don't explicitly publish a list of frontend
  frameworks that play well with App Engine is because there really is
  no technical barrier between front end frameworks that work in the
  browser such as JQuery, etc and the backend (App Engine). Many App
  Engine users make full use of a myriad of front end technologies/
  frameworks for UI creation ranging from HTML5/JS/CSS to flash etc.
 
  JQuery is especially popular for a variety of Web app usages, so if
  that works for you, I'd definitely continue trying it out.
 
  Hope this helps,
  -Chris
 
  On Sep 9, 10:43 am, tempy fay...@gmail.com wrote:
 
 
 
   Hello all,
 
   A little background... I'm mostly new to web frontend development, I
   come from a mostly backend and desktop background.  I have a GAEj app
   that provides the backend for a rather sophisticated desktop/mobile
   app.  This backend will also drive a website in addition to the
   desktop/mobile app.
 
   The website will show a small subset of the data in the system.  I
   started with GWT, but it doesn't seem to be quite right.  The website
   is for presentation of a small subset of the system's data only, and
   users do not interact with the data in any way other than searching
   for it.  As the data is mostly unstructured text and some images, I
   feel most comfortable formatting it with plain old html/css.  In fact,
   the layout of the site will be minimal and look a lot like a blog.  As
   such, the website should certainly not feel like a single-page web
   application a la gmail.  With GWT, I have little use for widgets and
   find myself constantly fighting with it to get a non-application look-
   and-feel.
 
   The only functionality that I thus really need from GWT is the RPC
   component, the page should be AJAX, I don't want to do round trips to
   the server for every navigation event.
 
   So, I'm not quite sure which framework to use with the GAEj backend.
   At first GWT seemed like a natural fit, but now seems like overkill.
   I'm doing some research on jquery, but I haven't seen a list of
   frontend frameworks that play well on GAEj anywhere.
 
   Thanks for any advice,
   Mike

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




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



[google-appengine] Re: Static resources not updated?

2010-09-09 Thread Tonny
I used curl  - just to make sure, but still got the old file, evt. the
file updated though (by magic) after 5-10 minuttes.

On Sep 8, 7:50 pm, Ikai L (Google) ika...@google.com wrote:
 Can you try using curl or wget? It could be that they are still cached in
 your browser.





 On Wed, Sep 8, 2010 at 6:26 AM, Tonny 12br...@gmail.com wrote:
  I did and uploading 10 minuttes, but my static resources has not
  changed when i load them through the webserver?

  Does anybody have similar problems currently?

  Regards
  Tonny

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

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

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



[google-appengine] Re: Static resources not updated?

2010-09-09 Thread Tonny
This could what was happening, since the new files was available after
5-10 minuttes (as mentioned i used curl to look). I have no customized
expire times though.

On Sep 8, 10:26 pm, Peter Petrov onest...@gmail.com wrote:
 This generally happens when you set a custom expiration time for
 static files. This causes Google's frontend servers to cache the files
 for up to the specified time, and they don't update it even if you
 push a new version in the mean time. This is true both for
 *.appspot.com and for custom domains. You can take a look at the HTTP
 headers returned by your Google Frontend server, e.g. using Firebug,
 to see when the next refresh will happen.

 If you don't set custom expiration for static files, the frontend
 servers seem to fetch the resources every time (or at least very
 frequently). On the other hand, the browsers' caching behaviour is
 then undefined. In any case, you should use cache-busters.

 On Sep 8, 4:26 pm, Tonny 12br...@gmail.com wrote:



  I did and uploading 10 minuttes, but my static resources has not
  changed when i load them through the webserver?

  Does anybody have similar problems currently?

  Regards
  Tonny

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



[google-appengine] Re: Idempotence multiple task execution

2010-09-09 Thread hawkett
Hi Eli, notes below -

On Sep 8, 4:14 pm, Eli Jones eli.jo...@gmail.com wrote:
 Well, I've been doing named, chained tasks since November 2009, and I can
 point out three things:


Task names aren't especially relevant to the question - names stop the
same task being raised twice, not executed twice. I have been using
the task queue since it was released, and definitely noticed tasks
being executed more than once, but never concurrently.

 1.  I've had concurrent tasks execute at least once (that I noticed) when
 only one was supposed to run.. And, this appeared to happen when the
 subsystem first fired off the task (after it had already been added to the
 queue.. since TombstonedTaskError and TaskAlreadyExistsError seem to work
 nicely.).


Well, from Ikai's comment it would sound like google does not expect
this behaviour. I raised this thread through hypothetical analysis of
the technology, but if you have seen it happen, then that is
especially interesting. I personally can't see how it could
legitimately happen if it backs off for more than 30s - it would be a
bug in the system for the task to fire duplicates when it is first
raised, IMO. How did you determine the execution was concurrent?

 2.  The GAE doc that I linked to explicitly states it is possible in
 exceptional circumstances that a Task may execute multiple times.  I
 believe that this covers both cases of the same task running concurrently or
 sequentially.

I don't think it does, but this is specifically the point of this
thread - it is not clear. I don't want to engineer significant
overhead into my application based on interpretation of unclear
documentation. To me, the same task id executing at the same time in
app engine, if it is possible, is something that needs to be
explicitly documented, because it has significant impact on app
architecture. Again, Ikai's comment above seems to imply Google does
not expect this to happen. So if the documentation is unclear, and
google seems to suggest the opposite of your interpretation, that's a
good reason to be wary of the assumption you are making.


 3.  For my failed tasks, I'm pretty sure the backoff has always been more
 than 30 seconds (if the task failed in the middle of running).  Generally,
 if a task failed in the middle of running, it would run again 60 seconds -
 120 seconds later.


It hasn't. Absolutely, definitely used to retry immediately and back
off at incrementally larger intervals that were initially  30s.
Worked like this for quite a long while. Indeed, people other than me
suggested this behaviour should be changed to 30s plus to deal with
the issue in this thread. I had many, many situations where I had a
bug in a task, and the work it generated straight after failure would
fill up the error logs almost instantly. It was a real hassle for a
while there, and one of the reasons why I raised this issue in June
last year - http://code.google.com/p/googleappengine/issues/detail?id=1771
(among a bunch of others). I wouldn't have suggested backoff should be
changed to  30s if it was already the case.

 I can see how one would like the doc to explicitly address the potential for
 concurrent execution.. but you should presume that it is possible since the
 doc infers it.. and the doc doesn't say it can't happen.. and (less
 importantly) some guy on an internet news group is telling you that it has
 occurred in the past.


I don't think the docs infer it. I think it is ambiguous, especially
in relation to Ikai's comment.

 I personally cannot imagine how one could guarantee that this would never
 happen without bogging down the entire taskqueue subsystem with triple and
 quadruple checks and adding in random (1-3 second) wait times for exactly
 when any task would execute.. (but, I have a limited imagination).. and it
 seems like even then.. you cannot guarantee 100% that a task would not
 execute twice at once if a drastic system error occurred.

Executing twice is fine, I get that. Executing the same task id
concurrently seems to be something that can be avoided - I don't see
anything other than the 30s+ backoff being required to achieve this.
Maybe that's wrong, but its sufficient for me, and was the suggestion
I made to address it. Unless someone highlights another reason why it
could occur, I'm glad to avoid the additional architecture.


 On Wed, Sep 8, 2010 at 4:18 AM, hawkett hawk...@gmail.com wrote:
  Hi Eli,

  Thanks for the info - the question was definitely trying to get a
  specific statement about whether app engine could run the same task id
  at the same time. Ikai's post seems to suggest that google did not
  think this is possible, but did not seem to address the failure
  scenarios I outlined.

  It was about the time that I queried Ikai'a response that re-executed
  tasks started backing off for a significant period (over 30s) - they
  used to go immediately, and then get slower and slower. e.g. 1s, 2s,
  4s, 8s type behaviour. Probably co-incidence, but the 

[google-appengine] CSS3

2010-09-09 Thread Massimiliano
Hi,
I don't know if this is an Off Topic.
In one Google's video on youtube there is css3 animation editor, do you
know something more? Has Adobe released it?

Thanks for the info.

Max

-- 

My email: massimiliano.pietr...@gmail.com
My Google Wave: massimiliano.pietr...@googlewave.com

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



Re: [google-appengine] Re: Idempotence multiple task execution

2010-09-09 Thread Eli Jones
How did I determine concurrent execution?

I determined that I had concurrent task execution because you can see the
task_name in the logs, and a named task successfully ran twice.  And, the
one that ran last threw a TaskAlreadyExists error when trying to add the
next chained task to the queue since each named task has a specifically
defined name for the next task in the chain and the version that finished
first had already added the next named task to the queue. (This is why it is
absolutely important to use named tasks when chaining.. some sort of random
error can fork your tasks).

Why do I suggest tasks do not just retry immediately (or in less than 30
seconds after failure).. and have done so in the time before your April 23rd
e-mail.

Here are some logs showing a task retry on Feb 22nd (it's hard to find many
examples since Appengine Logs only keep error logs after a few months.. so I
need to find two errors in a row for a task to see the retry).

The task's first run was at 12:20:00.026 PM.  It ran for 29 seconds and
failed at 12:20:29.275 PM with Deadline Exceeded.. then it retried at
12:21:07.596 PM (37 seconds after failure):

02-22 12:21PM 07.596 /myTask 500 28548ms 306cpu_ms 160api_cpu_ms 2kb
AppEngine-Google; (+http://code.google.com/appengine)
E 02-22 12:21PM 36.140 class
'google.appengine.runtime.DeadlineExceededError': Traceback (most recent
call last): File /base/data/home/apps/myApp/1.34005759049070

02-22 12:20PM 00.026 /myTask 500 29255ms 2777cpu_ms 193api_cpu_ms 2kb
AppEngine-Google; (+http://code.google.com/appengine)
E 02-22 12:20PM 29.275 class
'google.appengine.runtime.DeadlineExceededError': Traceback (most recent
call last): File /base/data/home/apps/myApp/1.34005759049070

The general behaviour for my app is more like.. the task will fail, and then
it will retry in 120 seconds (I have error logs showing this occurring back
in February as well.)

Maybe non-named tasks that are set to run immediately have retried on a
different timeframe in the past.. but the retry time has not just been some
generic sub-30 second time.

As for Ikai's comment, it says what it says: The same task should not be
executed multiple times concurrently.

It does not say that the same task cannot be executed multiple times
concurrently.

Again, my money is on the reality that one cannot guarantee 100% that an
error will never occur that could lead to concurrent task execution... you
would cripple the task queu subsytem if you put in a bunch of preventative
checks.  Though, one can state with reasonable confidence that it is highly
improbable that a task will execute concurrently.  But, good luck getting a
literal answer to your question.


On Thu, Sep 9, 2010 at 5:26 AM, hawkett hawk...@gmail.com wrote:

 Hi Eli, notes below -

 On Sep 8, 4:14 pm, Eli Jones eli.jo...@gmail.com wrote:
  Well, I've been doing named, chained tasks since November 2009, and I can
  point out three things:
 

 Task names aren't especially relevant to the question - names stop the
 same task being raised twice, not executed twice. I have been using
 the task queue since it was released, and definitely noticed tasks
 being executed more than once, but never concurrently.

  1.  I've had concurrent tasks execute at least once (that I noticed) when
  only one was supposed to run.. And, this appeared to happen when the
  subsystem first fired off the task (after it had already been added to
 the
  queue.. since TombstonedTaskError and TaskAlreadyExistsError seem to work
  nicely.).
 

 Well, from Ikai's comment it would sound like google does not expect
 this behaviour. I raised this thread through hypothetical analysis of
 the technology, but if you have seen it happen, then that is
 especially interesting. I personally can't see how it could
 legitimately happen if it backs off for more than 30s - it would be a
 bug in the system for the task to fire duplicates when it is first
 raised, IMO. How did you determine the execution was concurrent?

  2.  The GAE doc that I linked to explicitly states it is possible in
  exceptional circumstances that a Task may execute multiple times.  I
  believe that this covers both cases of the same task running concurrently
 or
  sequentially.

 I don't think it does, but this is specifically the point of this
 thread - it is not clear. I don't want to engineer significant
 overhead into my application based on interpretation of unclear
 documentation. To me, the same task id executing at the same time in
 app engine, if it is possible, is something that needs to be
 explicitly documented, because it has significant impact on app
 architecture. Again, Ikai's comment above seems to imply Google does
 not expect this to happen. So if the documentation is unclear, and
 google seems to suggest the opposite of your interpretation, that's a
 good reason to be wary of the assumption you are making.

 
  3.  For my failed tasks, I'm pretty sure the backoff has always been more
  than 30 seconds (if the 

[google-appengine] Re: Datastore Optimisation

2010-09-09 Thread Christopher Staite
I've removed the ReferenceProperty (it wasn't really needed anyway)
I'm now just storing the id as an IntegerProperty.  This hasn't speed
things up at all.  I've managed to optimise it even further by looking
at every call I make, but these are still taking forever.  I think
it's because I have the DateTimeProperty's in there.  I am using
AppStats at the moment, that's how I know it's these calls that are
causing the issue.

Thanks, Chris.

On 9 Sep, 07:27, Fredrik Bonander carl.fredrik.bonan...@gmail.com
wrote:
 It's little off topic, but a good thing to know is that the 
 db.ReferanceProperty doesn't behave like in same fashion one migth think (at 
 least I didn't). Accessing the  ReferanceProperty will make a new call 
 against the datastore.

 A good you can do if you want look in to what's eating the CPU quota is to 
 use appstats.

 http://googleappengine.blogspot.com/2010/03/easy-performance-profilin...

 ..fredrik

 Sent from my iPad

 On 8 sep 2010, at 19.46, Eli Jones eli.jo...@gmail.com wrote:



  One way to find out would be to just do a test.. create a model called 
  PotMemberDeux and make pot = db.StringProperty() in that one.. then test 
  how long those puts take by assigning pot=p and use the same put code.

  I'd guess that both of the puts referencing the same pot=p could be what is 
  slowing it down.. granted, I don't use ReferenceProperty at all... so, what 
  do I know..

  On Wed, Sep 8, 2010 at 9:24 AM, Christopher Staite 
  christophersta...@googlemail.com wrote:
  Hi guys,

  I've been trying write my first real application for the app engine.
  After multiple re-writes I've finally got the hang of things.  I think
  that I've got something efficient and correct.  However, it's still
  not performing particularly quickly and I'd like to speed it up a
  little more.

  The main issue is that most calls have to place two entries into the
  datastore:

  class PotMember(db.Model):
         pot = db.ReferenceProperty(Pot)
         member_id = db.IntegerProperty()
         count = db.IntegerProperty()
         second_pot = db.BooleanProperty()
         purchase_time = db.DateTimeProperty(auto_now_add=True)
         process_time = db.DateTimeProperty(auto_now=True)

  newMembers = []
  newMembers.append(PotMember(pot=p, member_id=member_id, count=count,
  second_pot=False))
  newMembers.append(PotMember(pot=p, member_id=member_id,
  count=second_count, second_pot=True))
  db.put(newMembers)

  This operation takes ~300-400ms, which is enough for App Engine to
  complain that my application is executing too slowly and needs to be
  optimised.  What exactly is taking so long to place these entries?
  Most other put() operations take ~10ms to complete.  Is it the use of
  the DateTimeProperty or the use of the ReferenceProperty that is
  slowing this call down?

  Any help would be appreciated.

  Many Thanks, Chris.

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

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

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



[google-appengine] Re: Channel API - accessing from web page not hosted on app engine

2010-09-09 Thread Andrew Gee
Have you tried referencing http://127.0.0.1:80/yourappname/_ah/
channel/ for the script src attribute?



On Aug 27, 12:16 pm, Juha juha.palom...@gmail.com wrote:
 I would like to create a Javascript that:
 - Could be included on any web page
 - Would connect to my App Engine application and retrieve data via the
 Channel API

 For example
 - 127.0.0.1:8000 Regular web server, hosting an example web page
 - 127.0.0.1:80 App Engine dev server with the channels and with the
 script

 To my understanding this should be possible, as my script and the
 Channel API Javascripts are hosted on App Engine. So cross-site
 limitations should not be an issue. Correct?

 With the current dev-channel-js.js that comes with the SDK I can't get
 this working. The dev-channel-js.js does not explicitly specify the
 hostname (and port) of the App Engine dev server. Instead just
 specifies the url (/_ah/channel/).  This means that in my example
 case, it tries to connect tohttp://127.0.0.1:8000/_ah_channel/dev
 [...]

 Is this a use case that will be supported on production, once the
 channel API becomes publicly available?

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



[google-appengine] FileOutPutStream in GAE

2010-09-09 Thread Bit Liner
I know that the classes of java.io like FileOutputStream are not
supported in GAE.
But i have seen this: http://code.google.com/p/appengine-java-io/, api
that allow support of java.io classes.
So i have a GAE project that i want to deploy on GAE, and this project
needs FileOutputstream, but importing the appengine-java-io API the
error message java.io.FileOutputStream is not suported by GAE
remains.

How can i remove the message and use java.io classes in GAE?

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



[google-appengine] Simultaneous asynchronous URL Fetch calls limit

2010-09-09 Thread IgorNovak
Hi, I'm new here, so excuse me if my question is a bit dummy

GAE references say that the app can have up to 10 simultaneous
asynchronous URL Fetch calls: 
http://code.google.com/appengine/docs/python/urlfetch/overview.html#Requests

I didn't unterstand, does it mean 10 calls for one user request or for
the whole application?

I've made the app that calls several async requests to different
services for one user request. It seems working well but I'm not sure
how it will behave with large number of users.

Thanks

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



[google-appengine] charset for static served files

2010-09-09 Thread elias_naur
Hi,

It seems that both the development server and the production servers
by default serves static html files with the Content-type:text/html
response header. That's fine, except that I'd like a charset = utf-8
appended to that. The relevant app.yaml entry looks like this:


- url: /
  static_files: index.html
  upload: index.html

it's possible to include the encoding in the html headers with a
Content-Type meta tag, but I'd like to specify the utf-8 encoding
globally, without worrying that some random html file didn't include
the header. It's also possible to use a python handler to output the
html file and set the encoding explicitly, but then my static files
are no longer static, and will incur a higher overhead.

So my question is: Can charset be set for static files through
app.yaml or some other means?

 - elias

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



[google-appengine] What are these logging metrics?

2010-09-09 Thread gholler
Hi All,
We've been doing some performance testing with our app using JMeter
and looking at our logs.
If you expand a web call's log messages, at the top you see a bunch of
metrics, e.g. ms=1332 cpu_ms=822 api_cpu_ms=86 cpm_usd=0.024510
Sometimes I see a metric 'pending_ms' but I can't find a definition
anywhere.
I assume it's some kind of latency. In the call I looked at all the
logging messages occurred in the course of 300ms but there was a
pending_ms=9800, so the reporting ms time was over 10 seconds.  In
this call there was no cold startup, I've also noticed a
loading_request=1 when a request initiates a cold startup.
I've also seen a metric, or flag, called throttle_code, that would be
nice to understand.

Anybody know what these are or where they are defined?

Thanks,
George Holler

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



[google-appengine] Failed to deploy my codes

2010-09-09 Thread zhaiduo
hi guys,

I failed to deploy my codes, get this error:
//
2010-09-09 17:19:24,640 ERROR appcfg.py:1658 An unexpected error
occurred. Aborting.
urllib2.URLError: urlopen error [Errno 10054] An existing connection
was forcibly closed by the remote host
2010-09-09 17:19:24 (Process exited with code 1)

You can close this window now.

Any solution to resolve this? or another way to upload?

I will very appreciate your help. Thanks!~



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



Re: [google-appengine] Hi group! My App Engine App is finally launching today.

2010-09-09 Thread Jean-Luc T
Hello,

2010/9/8 Julian Namaro namarojul...@gmail.com
 After a lot of work, and quite a bit of testing, I am happy today to
 present you my app.

Your app is superb and I think about use it for documentation of my game

But what about your business model? I have seen neither price nor advertising.
Is that documents posted today will remain freely hosted tomorrow?

JLT.

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



[google-appengine] Re: How use myself domain

2010-09-09 Thread marguin
Someone maintains a list of ghs IPs which are still usable in China.
It is helpful and valuable. Now the famous group of these guys is
you8g.com. You submit your domain, and change your domain CNAME record
to ghs.you8g.com. It will work.

Wish you luck.

On 9月8日, 上午10时15分, YF CAO caoyongfeng0...@gmail.com wrote:
 I understand.
 the reason is China government blocked google dns.
 how to solve it ?

 2010/9/7 Robert Kluin robert.kl...@gmail.com

  Try this:
 http://code.google.com/appengine/docs/domain.html

  On Sat, Sep 4, 2010 at 16:42, MD caoyongfeng0...@gmail.com wrote:
   hello everyone.
   i hope use myself domain.
   i buy a domain from google, my app setted the domain, but i can not
   access my app use the domain.
   please help me.

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

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

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



[google-appengine] Re: Using OR statement in datastore

2010-09-09 Thread timwhunt
Hey Google folks (Nick?), can you comment on any potential methods for
asynchronous datastore calls (in Java)?

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



[google-appengine] Re: Hi group! My App Engine App is finally launching today.

2010-09-09 Thread colin
Holy Cow!
Your app is simply awesome. I use gDocs at present to collaborate with
others on my projects. Your app offers a far richer environment. Love
the simple table approach and the professional look and feel of the UI
- especially the home page! I assume it's commercial. What's the
pricelist like?
Colin

On Sep 8, 12:17 pm, Julian Namaro namarojul...@gmail.com wrote:
 After a lot of work, and quite a bit of testing, I am happy today to
 present you my app.
 It's called memobuild, and it's basically an editor for large online
 documents (e.g. documentation, reports, e-books).


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



[google-appengine] How can I revert my Application after 72 hours

2010-09-09 Thread tyskin
I disabled one of my applications a few days ago BUT I think I
misunderstand this operation. I can't find that app nor recreate it
now. I thought it is just a way to reset that application and I
expected a None Deployed. So is there some way to get that ID back
or it will stop forever... There were many friend using that domain,
it is not easy to change.
Just want to  revert the app ,I want that domain name plz

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



[google-appengine] google search result for appspot

2010-09-09 Thread Andy V
Hello,

Recently, I've moved one or two simple PHP pages to a Google App
Engine account.
Unfortunately, when you do a google search for the site, you will find
XYZ.appspot.com instead of www.XYZ.com

Any idea how to fix this?
I did associate my own domain XYZ.com with the account via Google
Apps, so I'd expect that as a result.

Best regards,
Andy.

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



[google-appengine] BUSINESS APP OR NOT?

2010-09-09 Thread colin
I am confused by the two pricing policies (app engine for business and
app engine).

I have a small business. I wrote a workflow, invoicing and payment
tracking software using MS Access and VB. It gets accessed about once
a day. It has about six tables and maybe 2000 records among all of
them. I want to put it in a cloud and look forward to learning Python.
In the future maybe three users in different citties will access the
on-line version. If I have time and the application works well, I may
want to create a service we can sell to other companies in our segment
because the app is very useful - especially the invoicing module.

Which pricing policy applies to me?

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



Re: [google-appengine] Re: Static resources not updated?

2010-09-09 Thread Ikai L (Google)
Are you using a YAML file configuration for static assets? There's a place
to set expires times. At any rate, next time this happens, take note of the
headers returned and post them.

As a best practice, in your URLs to your static assets, you should have
cache busters since this'll also cover the case of folks with weird local
browser cache settings.

On Thu, Sep 9, 2010 at 12:49 AM, Tonny 12br...@gmail.com wrote:

 This could what was happening, since the new files was available after
 5-10 minuttes (as mentioned i used curl to look). I have no customized
 expire times though.

 On Sep 8, 10:26 pm, Peter Petrov onest...@gmail.com wrote:
  This generally happens when you set a custom expiration time for
  static files. This causes Google's frontend servers to cache the files
  for up to the specified time, and they don't update it even if you
  push a new version in the mean time. This is true both for
  *.appspot.com and for custom domains. You can take a look at the HTTP
  headers returned by your Google Frontend server, e.g. using Firebug,
  to see when the next refresh will happen.
 
  If you don't set custom expiration for static files, the frontend
  servers seem to fetch the resources every time (or at least very
  frequently). On the other hand, the browsers' caching behaviour is
  then undefined. In any case, you should use cache-busters.
 
  On Sep 8, 4:26 pm, Tonny 12br...@gmail.com wrote:
 
 
 
   I did and uploading 10 minuttes, but my static resources has not
   changed when i load them through the webserver?
 
   Does anybody have similar problems currently?
 
   Regards
   Tonny

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




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

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



Re: [google-appengine] Simultaneous asynchronous URL Fetch calls limit

2010-09-09 Thread Ikai L (Google)
The limit of 10 applies to asynchronous urlfetches in a single request as
describe here:

http://code.google.com/appengine/docs/python/urlfetch/asynchronousrequests.html

That being said, if a large proportion of your requests are making URLFetch
requests and this causes your user facing round trips to be 800ms+, App
Engine will not autoscale the number of instances you have running. It's
best to move these operations to task queues.

On Thu, Sep 9, 2010 at 7:50 AM, IgorNovak beze...@gmail.com wrote:

 Hi, I'm new here, so excuse me if my question is a bit dummy

 GAE references say that the app can have up to 10 simultaneous
 asynchronous URL Fetch calls:
 http://code.google.com/appengine/docs/python/urlfetch/overview.html#Requests

 I didn't unterstand, does it mean 10 calls for one user request or for
 the whole application?

 I've made the app that calls several async requests to different
 services for one user request. It seems working well but I'm not sure
 how it will behave with large number of users.

 Thanks

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




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

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



Re: [google-appengine] Re: Using OR statement in datastore

2010-09-09 Thread Ikai L (Google)
Asynchronous datastore calls are coming in a future release. Stay tuned.

On Thu, Sep 9, 2010 at 11:13 AM, timwhunt timwh...@gmail.com wrote:

 Hey Google folks (Nick?), can you comment on any potential methods for
 asynchronous datastore calls (in Java)?

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




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

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



Re: [google-appengine] BUSINESS APP OR NOT?

2010-09-09 Thread Ikai L (Google)
Normal pricing. GAE4B pricing applies if you are writing an application that
is only accessible for Google Apps (Gmail, Docs) users and not the general
public. Here's an example:

Google App Engine (current)

You create an image sharing service anyone can use.

Google App Engine for Business

You create an expense reporting tool that you want tied to a specific Google
Apps Domain, say, ikaicorp.com that only us...@ikaicorp.com can use. This
application can be administered via the ikaicorp.com domain console.

On Wed, Sep 8, 2010 at 12:15 PM, colin nos...@carter.es wrote:

 I am confused by the two pricing policies (app engine for business and
 app engine).

 I have a small business. I wrote a workflow, invoicing and payment
 tracking software using MS Access and VB. It gets accessed about once
 a day. It has about six tables and maybe 2000 records among all of
 them. I want to put it in a cloud and look forward to learning Python.
 In the future maybe three users in different citties will access the
 on-line version. If I have time and the application works well, I may
 want to create a service we can sell to other companies in our segment
 because the app is very useful - especially the invoicing module.

 Which pricing policy applies to me?

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




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

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



[google-appengine] Application stuck in awaiting recurring charge cancellation for 2 months.

2010-09-09 Thread David W.
My card number changed, leaving an outstanding charge of 1 cent for my
application, that I cannot clear or request more quota since disabling
billing.

Can someone poke it, add interest to the cent, or whatever? AppId is
twitdiff. :)


David

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



[google-appengine] Problem with creation of file and folder: not exception, but the file doesn't create

2010-09-09 Thread Bit Liner
in my app i create a folder, and then one file in this folder.
The execution of this app doesn't throw exception, included the
creation
of folder and of the file that don't throw exception.
But when, after the creation of folder and file, i try to access to
the file in folder, the result is file not found.

Why?
Where do i wrong?

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



[google-appengine] gaevfs: problem with creation of file and folder: not exception, but the file doesn't create

2010-09-09 Thread Bit Liner
in my app i use gae-VirtualFileSystem to create a folder, and then one
file in this folder.
The execution of this app doesn't throw exception, included the
creation
of folder and of the file that don't throw exception.
But when, after the creation of folder and file, i try to access to
the file in folder, the result is file not found.

Why?
Where do i wrong?

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



Re: [google-appengine] Re: Datastore Optimisation

2010-09-09 Thread Robert Kluin
So have you removed the DateTimeProperty or changed it to a
StringProperty to see if the performance improved?



Robert





On Thu, Sep 9, 2010 at 13:32, Christopher Staite
christophersta...@googlemail.com wrote:
 I've removed the ReferenceProperty (it wasn't really needed anyway)
 I'm now just storing the id as an IntegerProperty.  This hasn't speed
 things up at all.  I've managed to optimise it even further by looking
 at every call I make, but these are still taking forever.  I think
 it's because I have the DateTimeProperty's in there.  I am using
 AppStats at the moment, that's how I know it's these calls that are
 causing the issue.

 Thanks, Chris.

 On 9 Sep, 07:27, Fredrik Bonander carl.fredrik.bonan...@gmail.com
 wrote:
 It's little off topic, but a good thing to know is that the 
 db.ReferanceProperty doesn't behave like in same fashion one migth think (at 
 least I didn't). Accessing the  ReferanceProperty will make a new call 
 against the datastore.

 A good you can do if you want look in to what's eating the CPU quota is to 
 use appstats.

 http://googleappengine.blogspot.com/2010/03/easy-performance-profilin...

 ..fredrik

 Sent from my iPad

 On 8 sep 2010, at 19.46, Eli Jones eli.jo...@gmail.com wrote:



  One way to find out would be to just do a test.. create a model called 
  PotMemberDeux and make pot = db.StringProperty() in that one.. then test 
  how long those puts take by assigning pot=p and use the same put code.

  I'd guess that both of the puts referencing the same pot=p could be what 
  is slowing it down.. granted, I don't use ReferenceProperty at all... so, 
  what do I know..

  On Wed, Sep 8, 2010 at 9:24 AM, Christopher Staite 
  christophersta...@googlemail.com wrote:
  Hi guys,

  I've been trying write my first real application for the app engine.
  After multiple re-writes I've finally got the hang of things.  I think
  that I've got something efficient and correct.  However, it's still
  not performing particularly quickly and I'd like to speed it up a
  little more.

  The main issue is that most calls have to place two entries into the
  datastore:

  class PotMember(db.Model):
         pot = db.ReferenceProperty(Pot)
         member_id = db.IntegerProperty()
         count = db.IntegerProperty()
         second_pot = db.BooleanProperty()
         purchase_time = db.DateTimeProperty(auto_now_add=True)
         process_time = db.DateTimeProperty(auto_now=True)

  newMembers = []
  newMembers.append(PotMember(pot=p, member_id=member_id, count=count,
  second_pot=False))
  newMembers.append(PotMember(pot=p, member_id=member_id,
  count=second_count, second_pot=True))
  db.put(newMembers)

  This operation takes ~300-400ms, which is enough for App Engine to
  complain that my application is executing too slowly and needs to be
  optimised.  What exactly is taking so long to place these entries?
  Most other put() operations take ~10ms to complete.  Is it the use of
  the DateTimeProperty or the use of the ReferenceProperty that is
  slowing this call down?

  Any help would be appreciated.

  Many Thanks, Chris.

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

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

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



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



Re: [google-appengine] google search result for appspot

2010-09-09 Thread 'Αλκης Ευλογημένος
You should make all requests to xyz.appspot.com redirect to www.appspot.com.
That's easy with middleware if you are using python.

- alkis (mobile)
On Sep 9, 2010 8:14 PM, Andy V nexar.servi...@gmail.com wrote:
 Hello,

 Recently, I've moved one or two simple PHP pages to a Google App
 Engine account.
 Unfortunately, when you do a google search for the site, you will find
 XYZ.appspot.com instead of www.XYZ.com

 Any idea how to fix this?
 I did associate my own domain XYZ.com with the account via Google
 Apps, so I'd expect that as a result.

 Best regards,
 Andy.

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


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



[google-appengine] Re: BUSINESS APP OR NOT?

2010-09-09 Thread alf
ok but if your GAE4B is used in a mixed enviroment one part  by
internal user @ikaicorp.com  and othere part of same applications is
used for other user outside @ikaicorp.com ?

thanks



On Sep 9, 8:52 pm, Ikai L (Google) ika...@google.com wrote:
 Normal pricing. GAE4B pricing applies if you are writing an application that
 is only accessible for Google Apps (Gmail, Docs) users and not the general
 public. Here's an example:

 Google App Engine (current)

 You create an image sharing service anyone can use.

 Google App Engine for Business

 You create an expense reporting tool that you want tied to a specific Google
 Apps Domain, say, ikaicorp.com that only us...@ikaicorp.com can use. This
 application can be administered via the ikaicorp.com domain console.









 On Wed, Sep 8, 2010 at 12:15 PM, colin nos...@carter.es wrote:
  I am confused by the two pricing policies (app engine for business and
  app engine).

  I have a small business. I wrote a workflow, invoicing and payment
  tracking software using MS Access and VB. It gets accessed about once
  a day. It has about six tables and maybe 2000 records among all of
  them. I want to put it in a cloud and look forward to learning Python.
  In the future maybe three users in different citties will access the
  on-line version. If I have time and the application works well, I may
  want to create a service we can sell to other companies in our segment
  because the app is very useful - especially the invoicing module.

  Which pricing policy applies to me?

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

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

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



Re: [google-appengine] Re: BUSINESS APP OR NOT?

2010-09-09 Thread Ikai L (Google)
No. Login will always be required. It'll be similar to Google Docs for your
domain.

On Thu, Sep 9, 2010 at 1:35 PM, alf alberto@gmail.com wrote:

 ok but if your GAE4B is used in a mixed enviroment one part  by
 internal user @ikaicorp.com  and othere part of same applications is
 used for other user outside @ikaicorp.com ?

 thanks



 On Sep 9, 8:52 pm, Ikai L (Google) ika...@google.com wrote:
  Normal pricing. GAE4B pricing applies if you are writing an application
 that
  is only accessible for Google Apps (Gmail, Docs) users and not the
 general
  public. Here's an example:
 
  Google App Engine (current)
 
  You create an image sharing service anyone can use.
 
  Google App Engine for Business
 
  You create an expense reporting tool that you want tied to a specific
 Google
  Apps Domain, say, ikaicorp.com that only us...@ikaicorp.com can use.
 This
  application can be administered via the ikaicorp.com domain console.
 
 
 
 
 
 
 
 
 
  On Wed, Sep 8, 2010 at 12:15 PM, colin nos...@carter.es wrote:
   I am confused by the two pricing policies (app engine for business and
   app engine).
 
   I have a small business. I wrote a workflow, invoicing and payment
   tracking software using MS Access and VB. It gets accessed about once
   a day. It has about six tables and maybe 2000 records among all of
   them. I want to put it in a cloud and look forward to learning Python.
   In the future maybe three users in different citties will access the
   on-line version. If I have time and the application works well, I may
   want to create a service we can sell to other companies in our segment
   because the app is very useful - especially the invoicing module.
 
   Which pricing policy applies to me?
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine group.
   To post to this group, send email to google-appengine@googlegroups.com
 .
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib
 e...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.
 
  --
  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

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




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

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



[google-appengine] Re: Idempotence multiple task execution

2010-09-09 Thread hawkett
Thanks Eli - couple more comments below

On Sep 9, 5:41 pm, Eli Jones eli.jo...@gmail.com wrote:
 How did I determine concurrent execution?

 I determined that I had concurrent task execution because you can see the
 task_name in the logs, and a named task successfully ran twice.  And, the
 one that ran last threw a TaskAlreadyExists error when trying to add the
 next chained task to the queue since each named task has a specifically
 defined name for the next task in the chain and the version that finished
 first had already added the next named task to the queue. (This is why it is
 absolutely important to use named tasks when chaining.. some sort of random
 error can fork your tasks).

I might have misunderstood something, but this example seems to only
show multiple execution, not concurrent?

 Why do I suggest tasks do not just retry immediately (or in less than 30
 seconds after failure).. and have done so in the time before your April 23rd
 e-mail.

Well I guess our experience differs then. For me, it sometimes backed
off for longer, but generally retried immediately, and frequently,
until the backoff time reached a decent level. Way too much energy
spent on it to forget it :)


 Here are some logs showing a task retry on Feb 22nd (it's hard to find many
 examples since Appengine Logs only keep error logs after a few months.. so I
 need to find two errors in a row for a task to see the retry).

 The task's first run was at 12:20:00.026 PM.  It ran for 29 seconds and
 failed at 12:20:29.275 PM with Deadline Exceeded.. then it retried at
 12:21:07.596 PM (37 seconds after failure):

 02-22 12:21PM 07.596 /myTask 500 28548ms 306cpu_ms 160api_cpu_ms 2kb
 AppEngine-Google; (+http://code.google.com/appengine)
 E 02-22 12:21PM 36.140 class
 'google.appengine.runtime.DeadlineExceededError': Traceback (most recent
 call last): File /base/data/home/apps/myApp/1.34005759049070

 02-22 12:20PM 00.026 /myTask 500 29255ms 2777cpu_ms 193api_cpu_ms 2kb
 AppEngine-Google; (+http://code.google.com/appengine)
 E 02-22 12:20PM 29.275 class
 'google.appengine.runtime.DeadlineExceededError': Traceback (most recent
 call last): File /base/data/home/apps/myApp/1.34005759049070

 The general behaviour for my app is more like.. the task will fail, and then
 it will retry in 120 seconds (I have error logs showing this occurring back
 in February as well.)

 Maybe non-named tasks that are set to run immediately have retried on a
 different timeframe in the past.. but the retry time has not just been some
 generic sub-30 second time.

 As for Ikai's comment, it says what it says: The same task should not be
 executed multiple times concurrently.

 It does not say that the same task cannot be executed multiple times
 concurrently.

 Again, my money is on the reality that one cannot guarantee 100% that an
 error will never occur that could lead to concurrent task execution... you
 would cripple the task queu subsytem if you put in a bunch of preventative
 checks.  Though, one can state with reasonable confidence that it is highly
 improbable that a task will execute concurrently.  But, good luck getting a
 literal answer to your question.



 On Thu, Sep 9, 2010 at 5:26 AM, hawkett hawk...@gmail.com wrote:
  Hi Eli, notes below -

  On Sep 8, 4:14 pm, Eli Jones eli.jo...@gmail.com wrote:
   Well, I've been doing named, chained tasks since November 2009, and I can
   point out three things:

  Task names aren't especially relevant to the question - names stop the
  same task being raised twice, not executed twice. I have been using
  the task queue since it was released, and definitely noticed tasks
  being executed more than once, but never concurrently.

   1.  I've had concurrent tasks execute at least once (that I noticed) when
   only one was supposed to run.. And, this appeared to happen when the
   subsystem first fired off the task (after it had already been added to
  the
   queue.. since TombstonedTaskError and TaskAlreadyExistsError seem to work
   nicely.).

  Well, from Ikai's comment it would sound like google does not expect
  this behaviour. I raised this thread through hypothetical analysis of
  the technology, but if you have seen it happen, then that is
  especially interesting. I personally can't see how it could
  legitimately happen if it backs off for more than 30s - it would be a
  bug in the system for the task to fire duplicates when it is first
  raised, IMO. How did you determine the execution was concurrent?

   2.  The GAE doc that I linked to explicitly states it is possible in
   exceptional circumstances that a Task may execute multiple times.  I
   believe that this covers both cases of the same task running concurrently
  or
   sequentially.

  I don't think it does, but this is specifically the point of this
  thread - it is not clear. I don't want to engineer significant
  overhead into my application based on interpretation of unclear
  documentation. To me, the same task id executing at the 

Re: [google-appengine] Python 50% faster than Java

2010-09-09 Thread Jaroslav Záruba
On Thu, Sep 9, 2010 at 11:19 PM, Francois Masurel fm2...@mably.com wrote:

 I've just found this article about App Engine :


 http://moderndeveloper.blogspot.com/2010/09/google-app-engine-scaling-cost.html

 They say that Python is 50% faster than Java for their specific use
 case.

 Does that mean that we should preferably use Python for heavy traffic
 services ?


I think the #1 reason GAE works the way it does is to serve heavy traffic
services at general, isn't it? That's why we all go through the
scalability-related videos and try to get along with Datastore.*
So it seems to me that we can change that question to 'Does that mean that
we should preferably use Python?'

*) I'd actually prefer Datastore over RDBMS if such choice was to arise in
the future; mainly due how I feel about Objectify and Hibernate.


 Francois

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



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



Re: [google-appengine] Help -- non-specific InternalError started today!

2010-09-09 Thread Wesley C (Google)
this is a late reply, but hopefully we did resolve the situation
before your demo. here is a link with more info on what happened:
http://groups.google.com/group/google-appengine/msg/f014532b4068ba81

thanks!
-- wesley
 - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Core Python Programming, Prentice Hall, (c)2007,2001
Python Fundamentals, Prentice Hall, (c)2009
   http://corepython.com

wesley.chun : wesc+api at google.com : @wescpy
developer relations :: google app engine
@app_engine :: googleappengine.blogspot.com

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



[google-appengine] ETA on Ability to reserve instances to reduce application loading overhead

2010-09-09 Thread Spines
Any idea when Ability to reserve instances to reduce application
loading overhead will be coming? Its been on the road map for about 6
months i think.

The reason I ask is that I'm considering using Grails for a new app
engine project.  I deployed a sample application and the cold starts
were taking almost 30 seconds, so I figure that once I add more code
to it, cold starts will take longer than the 30 second deadline.

So if that feature will be coming out within the next 3 months or so,
I figure I'll go with Grails, if not, then I'll do something else.

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



Re: [google-appengine] Index build stuck Server Error 500 when trying to view Datastore Indexes page in admin console

2010-09-09 Thread Ikai L (Google)
The indexes all look to be serving to me.

On Thu, Sep 9, 2010 at 2:07 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 I have 1 index that was building for quite a while though there was no data
 associated with the index. When I clicked on the Datastore Indexes link in
 the admin console I am directed to a error page that says:

 Server Error (500)

 A server error has occurred.

 Return to Applications screen » http://appengine.google.com/


 My application's id is i-emote and its version is 1.


 Can anyone fix this for me and as soon as posible? Thanks in advance.

 Jeff

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




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

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



Re: [google-appengine] Index build stuck Server Error 500 when trying to view Datastore Indexes page in admin console

2010-09-09 Thread Ikai L (Google)
By the way - how long did you wait? There have been a few reports about
index building slowness.

On Thu, Sep 9, 2010 at 6:39 PM, Ikai L (Google) ika...@google.com wrote:

 The indexes all look to be serving to me.


 On Thu, Sep 9, 2010 at 2:07 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 I have 1 index that was building for quite a while though there was no
 data associated with the index. When I clicked on the Datastore Indexes link
 in the admin console I am directed to a error page that says:

 Server Error (500)

 A server error has occurred.

 Return to Applications screen » http://appengine.google.com/


 My application's id is i-emote and its version is 1.


 Can anyone fix this for me and as soon as posible? Thanks in advance.

 Jeff

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




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




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

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



Re: [google-appengine] Index build stuck Server Error 500 when trying to view Datastore Indexes page in admin console

2010-09-09 Thread Jeff Schwartz
Soon after I posted the issue it was fixed. I don't know how or by whom but
somehow it got resolved. I waited a few hours for the index to build even
though there was no data to which the index was referring to. Thank you,
Ikai.

On Thu, Sep 9, 2010 at 9:39 PM, Ikai L (Google) ika...@google.com wrote:

 The indexes all look to be serving to me.

 On Thu, Sep 9, 2010 at 2:07 PM, Jeff Schwartz jefftschwa...@gmail.comwrote:

 I have 1 index that was building for quite a while though there was no
 data associated with the index. When I clicked on the Datastore Indexes link
 in the admin console I am directed to a error page that says:

 Server Error (500)

 A server error has occurred.

 Return to Applications screen » http://appengine.google.com/


 My application's id is i-emote and its version is 1.


 Can anyone fix this for me and as soon as posible? Thanks in advance.

 Jeff

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




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

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




-- 
--
Jeff

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



[google-appengine] Question about sort order on id on entities of the same kind but having different parents

2010-09-09 Thread Jeff Schwartz
Hi All,

I think I know the answer to this but I'd like someone from the app engine
team to provide a definitive answer if possible. When querying on a single
entity type where the result set contains instances of entities that are
children of different parents (thus belonging to different entity groups)
will ordering on their ids though specified be ignored? My instinct tells me
that ordering will be ignored. In other words, is the rule then the
following:

Ordering is allowed on key ids only if all entities have the same kind _and_
parent

In addition, I would also assume that filtering works the same way, having
the same restriction. Correct?

Thanks in advance for your response.

-- 
--
Jeff

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



[google-appengine] Cron Job and Cursors

2010-09-09 Thread Sumer Cip
Hi,
I have a very basic problem. Below is my model:

class DummyModel:
id:Integer
info:Integer
added:DateTime

What I need to do is to have a cron job running per day to filter on
added field and do something with the info field, but I have many
entities and I want to make this process in batches maybe continue
another day. How to do that efficiently? Cursors? Can we use them with
cron jobs?

Any example suggestion would be appreciated.

Thanks,

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



[google-appengine] Re: Python 50% faster than Java

2010-09-09 Thread Dmitriy T.
The author of this article just underqualified.

For example:
So I took to writing the service in Python. I quickly realized that
Python had much more control over the datastore. It was really easy to
pick which fields to index and which fields to ignore. In Java, all
fields were indexed.

He even don't know how to make unindexed property in Java. About Java
GAE low-level API or about Objectify he probably know nothing.


On Sep 10, 1:19 am, Francois Masurel fm2...@mably.com wrote:
 I've just found this article about App Engine :

 http://moderndeveloper.blogspot.com/2010/09/google-app-engine-scaling...

 They say that Python is 50% faster than Java for their specific use
 case.

 Does that mean that we should preferably use Python for heavy traffic
 services ?

 Francois

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



[google-appengine] Re: Python 50% faster than Java

2010-09-09 Thread Niklasro
I think 4 cases that can depend on context makes ambigiously
1) A is a faster interpretator than B
2) A is a faster VM than B
3) Specific solution with A is faster than with B
4) Development times are much quicker some way compared to other less
regarding execution time
Cheers
Nick Rosencrantz

On Sep 10, 3:11 am, Dmitriy T. 403...@gmail.com wrote:
 The author of this article just underqualified.

 For example:
 So I took to writing the service in Python. I quickly realized that
 Python had much more control over the datastore. It was really easy to
 pick which fields to index and which fields to ignore. In Java, all
 fields were indexed.

 He even don't know how to make unindexed property in Java. About Java
 GAE low-level API or about Objectify he probably know nothing.

 On Sep 10, 1:19 am, Francois Masurel fm2...@mably.com wrote:

  I've just found this article about App Engine :

 http://moderndeveloper.blogspot.com/2010/09/google-app-engine-scaling...

  They say that Python is 50% faster than Java for their specific use
  case.

  Does that mean that we should preferably use Python for heavy traffic
  services ?

  Francois

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



Re: [google-appengine] Cron Job and Cursors

2010-09-09 Thread Robert Kluin
What is many entities, is it 100, 1,000, 1,000,000, more?  What are
you doing with the info field?  Are you aggregating something?
Transforming it?  Writing one new model for each entity?

What do you mean continue another day?  Do you mean process some
entities then stop and continue processing on another day?



Robert








On Thu, Sep 9, 2010 at 22:34, Sumer Cip sum...@gmail.com wrote:
 Hi,
 I have a very basic problem. Below is my model:

 class DummyModel:
    id:Integer
    info:Integer
    added:DateTime

 What I need to do is to have a cron job running per day to filter on
 added field and do something with the info field, but I have many
 entities and I want to make this process in batches maybe continue
 another day. How to do that efficiently? Cursors? Can we use them with
 cron jobs?

 Any example suggestion would be appreciated.

 Thanks,

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



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