Re: [appengine-java] Re: FinalizableReferenceQueue error

2009-12-11 Thread Toby Reyelts
Correlation is not causation. The warning is not slowing down your code.

This harmless warning is generated during the static initialization of some
protobuffer code. That static initialization is happening, because your
application is being loaded in a new JVM by a loading
requesthttp://code.google.com/appengine/kb/java.html#What_Is_A_Loading_Request.
We discussed performance implications of loading requests in a recent App
Engine blog 
posthttp://googleappengine.blogspot.com/2009/12/request-performance-in-java.html
.

If you're seeing long loading requests, please enable
precompilationhttp://code.google.com/appengine/kb/java.html#How_Is_Google_Improving_Loading_Requests
as
a first step. It's not a cure-all, but it typically provides a significant
improvement.

On Fri, Dec 11, 2009 at 2:46 AM, fhtino fht...@gmail.com wrote:

 Yes. I'm quite sure.  A couple of examples.

 A tipical request with normal execution time and without
 FinalizableReferenceQueue
 12-10 10:40PM 32.484 /url  200 83ms 160cpu_ms 85api_cpu_ms

 A request with FinalizableReferenceQueue:
 12-10 10:36PM 22.306 /url 200 4888ms 7280cpu_ms 85api_cpu_ms


   fabrizio


 On Dec 11, 6:17 am, Rusty Wright rwright.li...@gmail.com wrote:
  Are you sure the slowness is caused by whatever is generating this
 exception?
 
 
 
  fhtino wrote:
   Vince,
 
   ok, it's harmless, but the response is very slow.  5000ms or more
   instead of 200ms.
   In my case it's a problem.
 
   Any idea/solution?
 
fabrizio
 
   On Dec 5, 7:07 pm, Vince Bonfanti vbonfa...@gmail.com wrote:
   The exception is harmless. Add this to your logging.properties file to
 hide
   it:
 
  
 com.google.appengine.repackaged.com.google.common.base.FinalizableReference
 Queue.level=WARNING
 
   There was previous discussion of this (search
   for FinalizableReferenceQueue).
 
   Vince
 
   --
 
   You received this message because you are subscribed to the Google
 Groups Google App Engine for Java group.
   To post to this group, send email to
 google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
   For more options, visit this group athttp://
 groups.google.com/group/google-appengine-java?hl=en.

 --

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




--

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




[appengine-java] Re: Getting datastoretimeout exception more frequent today...

2009-12-11 Thread mar_novice
Glad also to know that i'm not the only one i can't even do a
single query... it always return a datastoreexception...

On Dec 11, 3:49 pm, Jeff Schnitzer j...@infohazard.org wrote:
 Ok, glad to know it's not just me.  Unfortunately I'm getting large
 numbers of these exceptions, pretty much bringing my app to its knees.
  The related code and data haven't changed:

 Caused by: com.google.appengine.api.datastore.DatastoreTimeoutException: 
 Unknown
         at 
 com.google.appengine.api.datastore.DatastoreApiHelper.translateError(DatastoreApiHelper.java:42)
         at 
 com.google.appengine.api.datastore.DatastoreApiHelper.makeSyncCall(DatastoreApiHelper.java:60)
         at 
 com.google.appengine.api.datastore.DatastoreServiceImpl$PreparedQueryImpl.runQuery(DatastoreServiceImpl.java:388)
         at 
 com.google.appengine.api.datastore.DatastoreServiceImpl$PreparedQueryImpl.asIterator(DatastoreServiceImpl.java:349)
         at 
 com.google.appengine.api.datastore.DatastoreServiceImpl$PreparedQueryImpl$1.iterator(DatastoreServiceImpl.java:326)
         at us.mobcasting.server.rest.Worker.prune(Worker.java:84)

 On Thu, Dec 10, 2009 at 10:13 PM, mar_novice mariocape1...@gmail.com wrote:
  Is there something wrong with the datastore today?? I am always
  getting datastoretimeout and DeadlineExceededException...

  --

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



--

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




[appengine-java] Error: No action instance for path /login could be created

2009-12-11 Thread Qi
 I meet a trouble  Error: No action instance for path /login could be
created
when I run the basic struts based login
what is the meaning no action instance could be created?

--

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: problems with SDK 1.2.8 and (local) task queues timing out...

2009-12-11 Thread Heyali
I am also facing simmilar problem. Any clue?

--

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: Querying parent side of unowned relationship

2009-12-11 Thread m seleron
Hi,
Though it doesn't understand how to register
I think that I can be likely to do if it is not JDO but lowlevelAPI.

Please examine
[com.google.storage.onestore.v3.OnestoreEntity.Entity#getParent].
If this is not good, it might have to change the model.


thanks.


On 12月6日, 午前2:36, Jeffrey jeffreywin...@gmail.com wrote:
 What is the most efficient way of querying the many side of an
 unowned relationship.  E.g., assuming the standard JDO annotations are
 applied:

 class Person
 {
    SetKey foods;

 }

 classFood
 {
     Key key;
     String name; // unique

 }

 Given the name of aFood, how can I best get the list of Person
 objects that reference it in it'sfoodSet?

--

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: Eclipse start server error after update to 1.2.6

2009-12-11 Thread sgodard
Thx a lot for this tip ;)

On 7 déc, 01:23, Larry Cable larry.ca...@gmail.com wrote:
 In eclipse select Run Configurations... from the Run main menu ...

 in the dialog that pops up, you you see a G icon in the tree view on
 the left and a list of configurations
 under that, (at least one), select your personal favorite, click on
 the(x) arguements tab and add the
 appropriate config, on my system it's:

 -javaagent:C:\Program Files\eclipse\plugins
 \com.google.appengine.eclipse.sdkbundle_1.2.8.v200912040616\appengine-
 java-sdk-1.2.8\lib\agent\appengine-agent.jar

 On Dec 6, 3:21 pm, Tahir Akram tahirakra...@gmail.com wrote:



  Hi guys;

  I am getting the same issue as I just upgraded my sdk to 1.2.8.

  Where can I find the launch configurations for app engine. Please
  help.

  I am getting following exception while running the server.

  Unable to locate the App Engine agent. Please use dev_appserver,
  KickStart,  or set the jvm flag: -javaagent:sdk_root/lib/agent/
  appengine-agent.jar

  On Oct 20, 3:00 am, Kris Carle kbca...@gmail.com wrote:

   Hi Keith and Peter,

   This helped me, thanks. It would help others if the release notes of
   the eclipse pluginhttp://code.google.com/eclipse/mentionedthat
   upgrading would break existing projects. I was assuming that I had
   broken something until I remembered that I upgraded recently.

   In case it helps here is the VM argument I used.

   -javaagent:/Applications/eclipse/plugins/
   com.google.appengine.eclipse.sdkbundle_1.2.6.v200910131704/appengine-
   java-sdk-1.2.6/lib/agent/appengine-agent.jar

   Thanks,

   -Kris

   On Oct 14, 2:13 pm, Keith Platfoot kplatf...@google.com wrote:

Hi Peter,
As the message indicates, the local development server in App 
Engine1.2.6
now requires the use of a Java agent.  If you're using the Google 
plugin,
this is easy to correct.

Open your existing launch configuration.  You should see an error 
message at
the top about the missing Java agent.  Copy and paste the entire 
-javaagent
argument from the error message into the VM Arguments field on the 
launch
configuration's Arguments tab.  The error should disappear, and you 
should
then able to save and run the launch configuration successfully.

Let me know if you run into any other problems,

Keith

On Tue, Oct 13, 2009 at 9:12 PM, Peter Liu tinyee...@gmail.com wrote:

 I update eclipse plugin and downloaded the new SDK, changed the
 project settings to use the new SDK, and get this error when starting
 the server. Switching back to 1.2.5 fixes the problem.

 Did I missed some steps?

 java.lang.RuntimeException: Unable to locate the App Engine agent.
 Please use dev_appserver, KickStart,  or set the jvm flag: -
 javaagent:sdk_root/lib/agent/appengine-agent.jar
        at

 com.google.appengine.tools.development.DevAppServerFactory.testAgentIsInsta
  ­lled
 (DevAppServerFactory.java:102)
        at

 com.google.appengine.tools.development.DevAppServerFactory.createDevAppServ
  ­er
 (DevAppServerFactory.java:77)
        at

 com.google.appengine.tools.development.DevAppServerFactory.createDevAppServ
  ­er
 (DevAppServerFactory.java:38)
        at com.google.appengine.tools.development.DevAppServerMain
 $StartAction.apply(DevAppServerMain.java:153)
        at com.google.appengine.tools.util.Parser$ParseResult.applyArgs
 (Parser.java:48)
        at 
 com.google.appengine.tools.development.DevAppServerMain.init
 (DevAppServerMain.java:113)
        at com.google.appengine.tools.development.DevAppServerMain.main
 (DevAppServerMain.java:89)
 Caused by: java.lang.NoClassDefFoundError: com/google/appengine/tools/
 development/agent/AppEngineDevAgent
        at

 com.google.appengine.tools.development.DevAppServerFactory.testAgentIsInsta
  ­lled
 (DevAppServerFactory.java:98)
        ... 6 more
 Caused by: java.lang.ClassNotFoundException:
 com.google.appengine.tools.development.agent.AppEngineDevAgent
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
        at 
 sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
        at 
 java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
        ... 7 more- Hide quoted text -

  - Show quoted text -

--

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 

[appengine-java] Re: FinalizableReferenceQueue error

2009-12-11 Thread fhtino
Tony,

thank you for the tips. I'll test them as soon as possible.

I've a question. You said the warning is not slowing down your code.
But it increases the response time of the page. So the user waits for
a longer time before receiving the page. Do you confirm?  Have I
correctly understood?

  fabrizio


On Dec 11, 9:07 am, Toby Reyelts to...@google.com wrote:
 Correlation is not causation. The warning is not slowing down your code.

 This harmless warning is generated during the static initialization of some
 protobuffer code. That static initialization is happening, because your
 application is being loaded in a new JVM by a loading
 requesthttp://code.google.com/appengine/kb/java.html#What_Is_A_Loading_Request.
 We discussed performance implications of loading requests in a recent App
 Engine blog 
 posthttp://googleappengine.blogspot.com/2009/12/request-performance-in-ja...
 .

 If you're seeing long loading requests, please enable
 precompilationhttp://code.google.com/appengine/kb/java.html#How_Is_Google_Improving...
 as
 a first step. It's not a cure-all, but it typically provides a significant
 improvement.



 On Fri, Dec 11, 2009 at 2:46 AM, fhtino fht...@gmail.com wrote:
  Yes. I'm quite sure.  A couple of examples.

  A tipical request with normal execution time and without
  FinalizableReferenceQueue
  12-10 10:40PM 32.484 /url  200 83ms 160cpu_ms 85api_cpu_ms

  A request with FinalizableReferenceQueue:
  12-10 10:36PM 22.306 /url 200 4888ms 7280cpu_ms 85api_cpu_ms

    fabrizio

  On Dec 11, 6:17 am, Rusty Wright rwright.li...@gmail.com wrote:
   Are you sure the slowness is caused by whatever is generating this
  exception?

   fhtino wrote:
Vince,

ok, it's harmless, but the response is very slow.  5000ms or more
instead of 200ms.
In my case it's a problem.

Any idea/solution?

     fabrizio

On Dec 5, 7:07 pm, Vince Bonfanti vbonfa...@gmail.com wrote:
The exception is harmless. Add this to your logging.properties file to
  hide
it:

  com.google.appengine.repackaged.com.google.common.base.FinalizableReference
  Queue.level=WARNING

There was previous discussion of this (search
for FinalizableReferenceQueue).

Vince

--

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

  --

  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%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: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-11 Thread Jonathan 'J5' Cook
Thanks for the fix, Max and perfect timing for me :)  I just upgraded
to 1.2.8 and started having this issue last night.

For those who don't/didn't already know (like myself), here is a link
to instructions Max wrote on how to install a new plugin version into
the SDK:

http://code.google.com/p/datanucleus-appengine/wiki/HowToUpdateTheSDKWithANewPluginVersion

Regards,
J5

On Dec 10, 11:59 am, Max Ross (Google) maxr+appeng...@google.com
wrote:
 I've posted a bug fix release candidate containing this fix 
 here:http://datanucleus-appengine.googlecode.com/files/appengine-orm-1.0.4...

 On Tue, Dec 8, 2009 at 5:26 PM, bryce cottam bcot...@gmail.com wrote:
  That's great news Max! Thanks so much for looking into this and getting a
  solution in the works so fast.

  Thanks,
  -bryce

  On Dec 8, 2009 5:20 PM, Max Ross (Google) 
  maxr+appeng...@google.commaxr%2bappeng...@google.com
  wrote:

  I've filed bug
 http://code.google.com/p/datanucleus-appengine/issues/detail?id=169to
  track the problem with non-persistent base classes.  I have a fix in the
  works.  I'll be posting a release candidate with this fix and hopefully a
  few others in the next day or two.

  Thanks,
  Max

  On Tue, Dec 8, 2009 at 11:29 AM, bryce cottam bcot...@gmail.com wrote:

It's all good, we're just trying to get to the bottom of the issue.
  I'm sure the use of the word...

  --

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

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

   --
  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] What is the missing argument error after upgrade to 1.2.8

2009-12-11 Thread Emmanuel
After the upgrade to App engine 1.2.8 (and therefore to Google Web
Toolkit 2.0.0), my previously working application now does not start
and is blocked with the following error:

Missing required argument 'module[s]'
Google Web Toolkit 2.0.0
DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist-
string] [-blacklist blacklist-string] [-logdir directory] [-logLevel
level] [-gen dir] [-codeServerPort port-number | auto] [-server
servletContainerLauncher] [-startupUrl url] [-war dir] [-extra dir] [-
workDir dir] module[s]

where
  -noserverPrevents the embedded web server from running
  -portSpecifies the TCP port for the embedded web server
(defaults to )
  -whitelist   Allows the user to browse URLs that match the
specified regexes (comma or space separated)
  -blacklist   Prevents the user browsing URLs that match the
specified regexes (comma or space separated)
  -logdir  Logs to a file in the given directory, as well as
graphically
  -logLevelThe level of logging detail: ERROR, WARN, INFO,
TRACE, DEBUG, SPAM, or ALL
  -gen Debugging: causes normally-transient generated
types to be saved in the specified directory
  -codeServerPort  Specifies the TCP port for the code server
(defaults to 9997)
  -server  Specify a different embedded web server to run
(must implement ServletContainerLauncher)
  -startupUrl  Automatically launches the specified URL
  -war The directory into which deployable output files
will be written (defaults to 'war')
  -extra   The directory into which extra files, not intended
for deployment, will be written
  -workDir The compiler's working directory for internal use
(must be writeable; defaults to a system temp dir)
and
  module[s]Specifies the name(s) of the module(s) to host

Where are those parameters to be reconfigured ?

--

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: new in 1.2.8: relationship fields of type parent class that isn't even persisted. This is not yet supported.

2009-12-11 Thread bryce cottam
Thanks a million Max, I've been on the road for a few days but I'm looking
forward to trying this out when I get back. Thanks for the link Jonathan.

-bryce

On Dec 11, 2009 6:50 AM, Jonathan apos;J5apos; Cook 
jonathan.j5.c...@gmail.com wrote:

Thanks for the fix, Max and perfect timing for me :)  I just upgraded
to 1.2.8 and started having this issue last night.

For those who don't/didn't already know (like myself), here is a link
to instructions Max wrote on how to install a new plugin version into
the SDK:

http://code.google.com/p/datanucleus-appengine/wiki/HowToUpdateTheSDKWithANewPluginVersion

Regards,
J5

On Dec 10, 11:59 am, Max Ross (Google)
maxr+appeng...@google.commaxr%2bappeng...@google.com

wrote:
 I've posted a bug fix release candidate containing this fix here:
http://datanucleus-appengine.googlecode.com/files/appengine-orm-1.0.4...

  On Tue, Dec 8, 2009 at 5:26 PM, bryce cottam bcot...@gmail.com wrote:
  That's great news Ma...
  On Dec 8, 2009 5:20 PM, Max Ross (Google) 
  maxr+appeng...@google.commaxr%2bappeng...@google.com
maxr%2bappeng...@google.com maxr%252bappeng...@google.com

  wrote:I've filed bug  
http://code.google.com/p/datanucleus-appengine/issues/detail?id=1...

  On Tue, Dec 8, 2009 at 11:29 AM, bryce cottam bcot...@gmail.com wrote:
 It's all goo...
  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-j...

--

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: problems with SDK 1.2.8 and (local) task queues timing out...

2009-12-11 Thread Max Ross (Google)
Please re-read the thread leading up to your post.  The timeout shouldn't
impact the completion of the request on the server.  If you're seeing
something different please let me know.

Thanks,
Max

On Thu, Dec 10, 2009 at 10:26 PM, Heyali heyal...@gmail.com wrote:

 I am also facing simmilar problem. Any clue?

 --

 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: grails The filename or extension is too long

2009-12-11 Thread aldrinm
You might want to try the work-arounds mentioned in this issue
http://code.google.com/p/googleappengine/issues/detail?id=1862

--

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: Failed to startup after ver 1.2.8 update

2009-12-11 Thread Rajeev Dayal
Were you able to work around the problem, or are you still having trouble?

On Fri, Dec 11, 2009 at 5:40 AM, sgodard sebastien.god...@gmail.com wrote:

 I have the same problem with this update :(

 On 5 déc, 06:34, doc123 doc.u...@gmail.com wrote:
  Application does not start up after update ver 1.2.8
 
  Error Message is following
 
  Error occurred during initialization of VM
  agent library failed to init: instrument
  Error opening zip file or JAR manifest missing : C:\eclipse\plugins
  \com.google.appengine.eclipse.sdkbundle_1.2.6.v200910130758\appengine-
  java-sdk-1.2.6\lib\agent\appengine-agent.jar
 
  1.2.8 appengine-agent.jar is is exist following directory.
 
  C:\eclipse\plugins
  \com.google.appengine.eclipse.sdkbundle_1.2.8.v200912040616\appengine-
  java-sdk-1.2.8\lib\agent\appengine-agent.jar
 
  So problem look like that Eclipse startup program does not recognize
  1.2.6 to 1.2.8 update and searching sdk 1.2.6's appengine-agent.jar at
  old directory.
 
  I Changed Project=Propaty=Libralys to App Engine sdk[App Engine
  -1.2.8]
 
  Are there remaining portion to change setting?  How should I teach
  Eclipse of this update?

 --

 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] What is the missing argument error after upgrade to 1.2.8

2009-12-11 Thread Rajeev Dayal
Hi,

If you navigate to Project Properties - Google - Google Web Toolkit, do
you see any startup modules listed there?

If you edit the launch configuration that you're running, do you see any
startup modules listed on the GWT tab?

What are the program and VM arguments that are listed for the launch
configuration?


Thanks,
Rajeev


On Fri, Dec 11, 2009 at 9:52 AM, Emmanuel emmanuel.gon...@gem-up.comwrote:

 After the upgrade to App engine 1.2.8 (and therefore to Google Web
 Toolkit 2.0.0), my previously working application now does not start
 and is blocked with the following error:

 Missing required argument 'module[s]'
 Google Web Toolkit 2.0.0
 DevMode [-noserver] [-port port-number | auto] [-whitelist whitelist-
 string] [-blacklist blacklist-string] [-logdir directory] [-logLevel
 level] [-gen dir] [-codeServerPort port-number | auto] [-server
 servletContainerLauncher] [-startupUrl url] [-war dir] [-extra dir] [-
 workDir dir] module[s]

 where
  -noserverPrevents the embedded web server from running
  -portSpecifies the TCP port for the embedded web server
 (defaults to )
  -whitelist   Allows the user to browse URLs that match the
 specified regexes (comma or space separated)
  -blacklist   Prevents the user browsing URLs that match the
 specified regexes (comma or space separated)
  -logdir  Logs to a file in the given directory, as well as
 graphically
  -logLevelThe level of logging detail: ERROR, WARN, INFO,
 TRACE, DEBUG, SPAM, or ALL
  -gen Debugging: causes normally-transient generated
 types to be saved in the specified directory
  -codeServerPort  Specifies the TCP port for the code server
 (defaults to 9997)
  -server  Specify a different embedded web server to run
 (must implement ServletContainerLauncher)
  -startupUrl  Automatically launches the specified URL
  -war The directory into which deployable output files
 will be written (defaults to 'war')
  -extra   The directory into which extra files, not intended
 for deployment, will be written
  -workDir The compiler's working directory for internal use
 (must be writeable; defaults to a system temp dir)
 and
  module[s]Specifies the name(s) of the module(s) to host

 Where are those parameters to be reconfigured ?

 --

 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] Where do I find javax.servlet.http ?

2009-12-11 Thread Andreas
It's part of the very first tutorial, yet I come to an end already :)

I'm running intellij, not eclipse, but I guess that shouldn't matter.

--

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] Question about request from one app to another one through ajax

2009-12-11 Thread Allen Cheng
I created two apps, one app provides a restful web service( such as
abc001.appspot.com), and I want to make use of that web service in
another app page (such as abc002,appspot.com) through ajax. Through
setting the [ document.domain = appspot.com; ] in javascript, the
browser could allow the ajax request from abc002 to abc001, but the
request finally failed, from the log of abc001, I got the following
message:

java.security.AccessControlException: access denied
(java.lang.RuntimePermission accessDeclaredMembers)
at java.security.AccessControlContext.checkPermission
(AccessControlContext.java:355)
at java.security.AccessController.checkPermission
(AccessController.java:567)
at java.lang.SecurityManager.checkPermission(Unknown Source)
at
com.google.apphosting.runtime.security.CustomSecurityManager.checkPermission
(CustomSecurityManager.java:45)
...

Does anybody know the reason why the request failed? Google app engine
does not allow such request?

--

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] The request is invalid for an unspecified reason

2009-12-11 Thread Werner Kok
Hi,

I am trying to upload my application but keep getting an error.  The
same error is logged when deploying via Google Eclipse Plugin or the
appcfg.cmd command line tool.

The app runs 100% fine in Eclipse using the Google SDK.


The error is:

Unable to update:
java.io.IOException: Error posting to URL:
http://appengine.google.com/api/appversion/deploy?app_id=ereswebbookings-demoversion=1;
400 Bad Request

Client Error (400)
The request is invalid for an unspecified reason.

at com.google.appengine.tools.admin.ServerConnection.send
(ServerConnection.java:143)
at com.google.appengine.tools.admin.ServerConnection.post
(ServerConnection.java:81)
at com.google.appengine.tools.admin.AppVersionUpload.send
(AppVersionUpload.java:427)
at com.google.appengine.tools.admin.AppVersionUpload.deploy
(AppVersionUpload.java:386)
at com.google.appengine.tools.admin.AppVersionUpload.commit
(AppVersionUpload.java:349)
at com.google.appengine.tools.admin.AppVersionUpload.doUpload
(AppVersionUpload.java:114)
at com.google.appengine.tools.admin.AppAdminImpl.update
(AppAdminImpl.java:56)
at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy
(AppEngineBridgeImpl.java:271)
at
com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace
(DeployProjectJob.java:148)
at org.eclipse.core.internal.resources.InternalWorkspaceJob.run
(InternalWorkspaceJob.java:38)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
-


My appengine-web.xml content is:

?xml version=1.0 encoding=utf-8?
appengine-web-app xmlns=http://appengine.google.com/ns/1.0;
applicationereswebbookings-demo/application
version1/version

!-- Configure java.util.logging --
system-properties
property name=java.util.logging.config.file value=WEB-INF/
logging.properties/
/system-properties

sessions-enabledtrue/sessions-enabled

/appengine-web-app

--

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] Local Task queues not rate limited in 1.2.8

2009-12-11 Thread Sam Hasler
Local Task Queue are running tasks as fast as they can an not
honouring the maximum rate for the queue. on a 0.5/s queue I'm seeing
80+ tasks handled in a matter of seconds. This is a problem for me
because I am using the URLFetch service to fetch content that I am not
supposed to request more than once every 2 seconds.

I'd like to at least see the local queues honouring the maximum rate,
but it would be really useful to be able to pause the queues and
have the old method of manually triggering tasks in the queue to be
processed. Sometimes I just want to test that I'm queuing stuff up
correctly and don't necessarily want the tasks to run.

--

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




[appengine-java] java.lang.RuntimeException: Unable to replace JPACallbackHandler - Unit Testing

2009-12-11 Thread Thierry Golvanig
Hi All,

I am trying to write a bunch of tests with JUNIT for my JDO classes.

The package works when integrated in a appengine web application, but
I get a RunTimeException when testing in a Junit 'environment'.


I started with the JDODataSourceConfigTest source file in the
appengine test directory.
and It's ok with nothing included.

Then I tried to store some data within the two methods implemented:

 public void testTransactionalPMF() {
JDOPersistenceManagerFactory pmf = (JDOPersistenceManagerFactory)
JDOHelper
.getPersistenceManagerFactory(transactional);
DatastoreManager storeMgr = (DatastoreManager) pmf.getStoreManager
();
JDOPersistenceManager pm = (JDOPersistenceManager)
pmf.getPersistenceManager();
// assertTrue(storeMgr.connectionFactoryIsTransactional());

DomainGAE domain = new DomainGAE(Name, Description);

Transaction tx = pm.currentTransaction();
try {
  tx.begin();
  pm.makePersistent(domain);
  tx.commit();
} catch (Exception e) {
  System.out.println(Exception e:  + e);
  e.printStackTrace();

  if (tx != null) {
tx.rollback();
  }
}

pm.close();
pmf.close();
  }

---

DomainGAE  is a simple Class

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;
import com.google.appengine.api.datastore.Key;
import com.google.appengine.api.datastore.KeyFactory;
import 

@PersistenceCapable(table = domain, detachable = true)
public class DomainGAE implements Domain {
  @PrimaryKey
  @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
  private Key id;

  protected String name = null;
  protected String description = null;

  public DomainGAE(String name, String description) {
this.name = name;
this.description = description;
  }

.
}


Here is the error and the stackTrace:
Exception e: java.lang.RuntimeException: Unable to replace
JPACallbackHandler.
java.lang.RuntimeException: Unable to replace JPACallbackHandler.
at
org.datanucleus.store.appengine.DatastorePluginRegistry.getExtensionPoint
(DatastorePluginRegistry.java:67)
at org.datanucleus.plugin.PluginManager.getExtensionPoint
(PluginManager.java:65)
at
org.datanucleus.plugin.PluginManager.getConfigurationElementForExtension
(PluginManager.java:113)
at org.datanucleus.plugin.PluginManager.getAttributeValueForExtension
(PluginManager.java:230)
at org.datanucleus.ObjectManagerImpl.getCallbackHandler
(ObjectManagerImpl.java:3804)
at org.datanucleus.state.AbstractStateManager.getCallbackHandler
(AbstractStateManager.java:160)
at
org.datanucleus.state.JDOStateManagerImpl.initialiseForPersistentNew
(JDOStateManagerImpl.java:466)
at
org.datanucleus.state.StateManagerFactory.newStateManagerForPersistentNew
(StateManagerFactory.java:151)
at org.datanucleus.ObjectManagerImpl.persistObjectInternal
(ObjectManagerImpl.java:1297)
at org.datanucleus.ObjectManagerImpl.persistObject
(ObjectManagerImpl.java:1175)
at org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent
(JDOPersistenceManager.java:669)
at org.datanucleus.jdo.JDOPersistenceManager.makePersistent
(JDOPersistenceManager.java:694)
at
com.golvanig.projteam.JDODataSourceConfigTest.testNonTransactionalPMF
(JDODataSourceConfigTest.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at junit.framework.TestCase.runTest(TestCase.java:168)
at junit.framework.TestCase.runBare(TestCase.java:134)
at junit.framework.TestResult$1.protect(TestResult.java:110)
at junit.framework.TestResult.runProtected(TestResult.java:128)
at junit.framework.TestResult.run(TestResult.java:113)
at junit.framework.TestCase.run(TestCase.java:124)
at junit.framework.TestSuite.runTest(TestSuite.java:232)
at junit.framework.TestSuite.run(TestSuite.java:227)
at org.junit.internal.runners.JUnit38ClassRunner.run
(JUnit38ClassRunner.java:83)
at org.apache.maven.surefire.junit4.JUnit4TestSet.execute
(JUnit4TestSet.java:62)
at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet
(AbstractDirectoryTestSuite.java:140)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute
(AbstractDirectoryTestSuite.java:127)
at org.apache.maven.surefire.Surefire.run(Surefire.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke
(NativeMethodAccessorImpl.java:39)
at 

[appengine-java] Google App for Web Application

2009-12-11 Thread Rajesh
hi all ,

i'm new to google cloud computing .and  i have develooped my
Application with Struts,Spring and JPA/ Hibenate support.

since i knew GAE does'nt support hipernate.i use to go with JPA.but
how to specify the datasource .How can i create the table .

 bean id=dataSource
class=org.apache.commons.dbcp.BasicDataSource
property name=driverClassName
value=oracle.jdbc.OracleDriver /
property name=url value=jdbc:oracle:thin:@localhost:
1521:orcl /
property name=username value= /
property name=password value= /
/bean



please help me ,

Thanks in Advance,
Rajesh S
rajesh.tec...@gmail.com

--

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] Local Task queues not rate limited in 1.2.8

2009-12-11 Thread Max Ross (Google)
Hi Sam,

Please read this section of the docs:
http://code.google.com/appengine/docs/java/taskqueue/overview.html#Task_Queues_and_the_Development_Server

It describes the differences between production task queues and local task
queus and explains how to switch back to the old method of manually
triggering tasks.

Thanks,
Max

On Fri, Dec 11, 2009 at 4:02 AM, Sam Hasler sam.has...@gmail.com wrote:

 Local Task Queue are running tasks as fast as they can an not
 honouring the maximum rate for the queue. on a 0.5/s queue I'm seeing
 80+ tasks handled in a matter of seconds. This is a problem for me
 because I am using the URLFetch service to fetch content that I am not
 supposed to request more than once every 2 seconds.


 I'd like to at least see the local queues honouring the maximum rate,
 but it would be really useful to be able to pause the queues and
 have the old method of manually triggering tasks in the queue to be
 processed. Sometimes I just want to test that I'm queuing stuff up
 correctly and don't necessarily want the tasks to run.

 --

 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: gae log console

2009-12-11 Thread Ikai L (Google)
Ah, tailing in real time (or semi real time). This isn't currently possible.
You might want to write something up and create a feature request for it:
http://code.google.com/p/googleappengine/issues/list

On Thu, Dec 10, 2009 at 7:18 PM, asianCoolz second.co...@gmail.com wrote:

 its only copy the log to local pc. can it append so that i look like i
 use tail -f each time got new records in the log?

 --

 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

--

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: gae log console

2009-12-11 Thread Ikai L (Google)
I was just thinking about this. You might be able to do something by
creating your own wrapped logger and integrating it with the XMPP service,
though I am pretty sure this will send you over quota pretty quickly.

On Fri, Dec 11, 2009 at 10:06 AM, Ikai L (Google) ika...@google.com wrote:

 Ah, tailing in real time (or semi real time). This isn't currently
 possible. You might want to write something up and create a feature request
 for it: http://code.google.com/p/googleappengine/issues/list


 On Thu, Dec 10, 2009 at 7:18 PM, asianCoolz second.co...@gmail.comwrote:

 its only copy the log to local pc. can it append so that i look like i
 use tail -f each time got new records in the log?

 --

 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




-- 
Ikai Lan
Developer Programs Engineer, Google App Engine

--

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] Where do I find javax.servlet.http ?

2009-12-11 Thread Ikai L (Google)
If you're running IntelliJ IDEA with the Google App Engine plugin, it should
have been imported. Check Project Settings-Libraries and make sure you
have included APPENGINE_SDK_HOME/lib/user as a JAR directory. This'll import
Jetty and other dependencies you need.

On Fri, Dec 11, 2009 at 8:07 AM, Andreas andreas.anders...@gmail.comwrote:

 It's part of the very first tutorial, yet I come to an end already :)

 I'm running intellij, not eclipse, but I guess that shouldn't matter.

 --

 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

--

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] Where do I find javax.servlet.http ?

2009-12-11 Thread Toby Reyelts
It lives in
APP_ENGINE_SDK_ROOT/lib/shared/geronimo-servlet_2.5_spec-1.2.jar

If you're not using Eclipse, you can read our Ant
documentationhttp://code.google.com/appengine/docs/java/tools/ant.htmlto
get an idea of what jars you should be compiling against, and which
jars
you should be deploying with your webapp. Intellij also has a Google App
Engine plugin, which should help out with this.

On Fri, Dec 11, 2009 at 11:07 AM, Andreas andreas.anders...@gmail.comwrote:

 It's part of the very first tutorial, yet I come to an end already :)

 I'm running intellij, not eclipse, but I guess that shouldn't matter.

 --

 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: Local Task queues not rate limited in 1.2.8

2009-12-11 Thread Sam Hasler
Thanks Max! that's much better. That really should have been called
out in the release notes though.

Sam

On Dec 11, 5:57 pm, Max Ross (Google) maxr+appeng...@google.com
wrote:
 Hi Sam,

 Please read this section of the 
 docs:http://code.google.com/appengine/docs/java/taskqueue/overview.html#Ta...

 It describes the differences between production task queues and local task
 queus and explains how to switch back to the old method of manually
 triggering tasks.

 Thanks,
 Max



 On Fri, Dec 11, 2009 at 4:02 AM, Sam Hasler sam.has...@gmail.com wrote:
  Local Task Queue are running tasks as fast as they can an not
  honouring the maximum rate for the queue. on a 0.5/s queue I'm seeing
  80+ tasks handled in a matter of seconds. This is a problem for me
  because I am using the URLFetch service to fetch content that I am not
  supposed to request more than once every 2 seconds.

  I'd like to at least see the local queues honouring the maximum rate,
  but it would be really useful to be able to pause the queues and
  have the old method of manually triggering tasks in the queue to be
  processed. Sometimes I just want to test that I'm queuing stuff up
  correctly and don't necessarily want the tasks to run.

  --

  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: Servlet loading failing

2009-12-11 Thread Nicky
Nothing out of the ordinary. Here take a look.



package gov.ca.bdo.modeling.dsm2.map.server;

import java.io.IOException;
import java.io.PrintWriter;

import javax.servlet.Filter;
import javax.servlet.FilterChain;
import javax.servlet.FilterConfig;
import javax.servlet.ServletException;
import javax.servlet.ServletRequest;
import javax.servlet.ServletResponse;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.google.appengine.api.users.User;
import com.google.appengine.api.users.UserService;
import com.google.appengine.api.users.UserServiceFactory;

public class RoleFilter implements Filter {

private UserService userService;

public void destroy() {
// TODO Auto-generated method stub

}

public void doFilter(ServletRequest request, ServletResponse
response,
FilterChain chain) throws IOException, ServletException 
{
if (userService.isUserLoggedIn()) {
User currentUser = userService.getCurrentUser();
if (isAllowed(currentUser)) {
chain.doFilter(request, response);
} else {
PrintWriter writer = response.getWriter();
writer.println(h3Access denied/h3);
writer
.println(pPlease see admin 
for access to this app/p);
}
} else {
HttpServletRequest httpServletRequest = 
(HttpServletRequest)
request;
HttpServletResponse httpServletResponse = 
(HttpServletResponse)
response;
String requestURI = httpServletRequest.getRequestURI();
if (requestURI.contains(/login)) {
chain.doFilter(request, response);
} else {
httpServletResponse.sendRedirect(userService
.createLoginURL(requestURI));
}
}
}

private boolean isAllowed(User currentUser) {
if (userService.isUserAdmin()) {
return true;
}
if (currentUser == null) {
return false;
}
if (currentUser.getEmail().equals(?...@gmail.com)) {
return true;
} else {
return false;
}
}

public void init(FilterConfig filterConfig) throws ServletException {
userService = UserServiceFactory.getUserService();

}

}


On Dec 1, 2:21 pm, Ikai L (Google) ika...@google.com wrote:
 Nicky,

 What are you doing in RoleFilter? Is it something that would use this
 library?

 When deploying an App Engine application, you will need to place required
 external libraries under WEB-INF/lib so that they are also deployed
 correctly. The reverse of this is also true: you will need to add JAR files
 under WEB-INF/lib to your classpath when you run the development server.



 On Sun, Nov 29, 2009 at 7:15 PM, Nicky karajd...@gmail.com wrote:
  On deploying a version of my app, the log shows this failure
  htmlheadtitlewaterschematics : uncaught application failure/
  titlebodypre
  Uncaught exception from servlet
  java.lang.NoClassDefFoundError: org/apache/tools/ant/filters/
  StringInputStream
         at java.lang.Class.getDeclaredConstructors0(Native Method)
         at java.lang.Class.privateGetDeclaredConstructors(Unknown Source)
         at java.lang.Class.getConstructor0(Unknown Source)
         at java.lang.Class.newInstance0(Unknown Source)
         at java.lang.Class.newInstance(Unknown Source)
         at org.mortbay.jetty.servlet.Holder.newInstance(Holder.java:153)
         at org.mortbay.jetty.servlet.ServletHolder.getServlet
  (ServletHolder.java:339)
         at
  org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
  463)
         at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter
  (ServletHandler.java:1093)
         at gov.ca.bdo.modeling.dsm2.map.server.RoleFilter.doFilter
  (RoleFilter.java:33)

  However when running the local instance it works and I see the class
  in question being loaded as follows
  ...
  [Loaded
  com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException from
  file:/Users/nsandhu/dev/wk-3.5/dsm2-grid-map/war/WEB-INF/lib/gwt-
  servlet.jar]
  [Loaded java.text.ParseException from /System/Library/Frameworks/
  JavaVM.framework/Versions/1.5.0/Classes/classes.jar]
  [Loaded org.apache.tools.ant.util.ReaderInputStream from file:/Users/
  nsandhu/dev/appengine-java-sdk-1.2.6/lib/shared/jsp/repackaged-
  appengine-ant-1.6.5.jar]
  [Loaded org.apache.tools.ant.filters.StringInputStream 

Re: [appengine-java] Re: hat is a Blobstore

2009-12-11 Thread Ikai L (Google)
It's nothing you should have to worry about yet. We're putting in the
plumbing for upcoming features.

On Fri, Dec 11, 2009 at 11:17 AM, Toby tobias.ro...@sunnymail.mobi wrote:

 I accidently sent this before finishing.

 Can someone help me to understand this?

 Thank you,

 Toby


 On Dec 11, 8:16 pm, Toby tobias.ro...@sunnymail.mobi wrote:
  Hello,
 
  I got a strange thing apearing in my quota details. In fact it is a
  warning that I am using a limited ressource:
 
  Other Quotas With Warnings
 
  These quotas are only show when they have warnings
  Blobstore Bytes Stored
  0%
  0%  0.00 of 8589934592.00 GBytesLimited
 
  What is strange is:
- it is marked as Limited though I am not using anything
- I have no idea what a Blobstore is

 --

 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

--

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: Sending mail with the mail api

2009-12-11 Thread Werner Kok
Hi,

Any news on this issue, I'm having the same problem in my deployed
application.

Thanks!
Werner


On Dec 2, 5:30 pm, Ray archiv@googlemail.com wrote:
 Hi Jason,
           i have got the same problem too. the Code was copied and pasted
 fromhttp://code.google.com/appengine/docs/java/mail/usingjavamail.html. The 
 Mail
 was sended from a deployed application. I have not received any Mail, but
 the Quotas said that i have sent out mails. there is neither error message
 nor errorlogs. i also tried the code from Sadhasivam Jayabalaganesan's mail,
 it doesn't work for me either.

 -ray

 2009/9/11 Jason (Google) apija...@google.com



  Just to clarify, you are sending these from a deployed application,
  correct?

  - Jason

  On Tue, Sep 8, 2009 at 9:06 PM, king kingalpha...@gmail.com wrote:

  I have the same problem. I sent out 3 email and have been waiting for
  hours, still no email arrived at my inbox, there is no error message
  either. Does anyone have any update on this issue?

  On Aug 20, 12:00 pm, DrMorten morten.dalgaard.niel...@gmail.com
  wrote:
   Nothing in the log about failed messages. I've made a Grails Service
   sending my emails. Basiclly I just cut and pasted the info fromhttp://
  code.google.com/appengine/docs/java/mail/usingjavamail.html,
   and modified it to fit my needs. Just as a quick version to get it
   working. I pasted the service below.

   class MailService {

           boolean transactional = true

           def sendMail(subject, msgBody, from, fromText, too, tooText) {

                   Properties props = new Properties();
                   Session session = Session.getDefaultInstance(props,
  null);

                   try {
                           def msg = new MimeMessage(session);
                           msg.setFrom(new InternetAddress(from,
  fromText));
                           msg.addRecipient(Message.RecipientType.TO,
                                                           new
  InternetAddress(too, tooText));
                           msg.setSubject(subject);
                           msg.setText(msgBody);
                           Transport.send(msg);

                   } catch (AddressException e) {
                           log.error(address error sendingmail, e)
                   } catch (MessagingException e) {
                           log.error(messaging exception sendingmail, e)
                   }

           }

   }

   On Aug 20, 8:48 pm, Jason (Google) apija...@google.com wrote:

Did you check your application's logs to see if there were any errors
sending the messages? What code were you using to send the emails?
- Jason

On Wed, Aug 19, 2009 at 7:47 AM, DrMorten 
  morten.dalgaard.niel...@gmail.com

 wrote:

 I sent about 7 emails last night to my own email address. They havnt
 arrived, Ive checked the code and the addresses were right. The
  Quotas
 say that I've sent the e-mails.

 Anyone have an idea of how long it should take to send to a gmail
 address?

  --~--~-~--~~~---~--~~
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-java@googlegroups.com
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.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.




Re: [appengine-java] Re: Unable to run on local server after an upgrade to 1.2.8

2009-12-11 Thread Ikai L (Google)
Are you seeing this error on a new project? Can you provide steps to
reproduce?

2009/12/10 Viðar Svansson vidarsv...@gmail.com

 This seems to only happen if you are logged in.

 On Thu, Dec 10, 2009 at 12:58 PM, pjesi vidarsv...@gmail.com wrote:
  Hi
 
  I am getting a strange error after upgrading to 1.2.8:
 
  10.12.2009 12:54:47 com.google.apphosting.utils.jetty.JettyLogger warn
  WARNING: EXCEPTION
  java.lang.NullPointerException
 at java.util.concurrent.ConcurrentHashMap.put(Unknown Source)
 at
  com.google.appengine.tools.development.LocalHttpRequestEnvironment.init
  (LocalHttpRequestEnvironment.java:45)
 at com.google.appengine.tools.development.JettyContainerService
  $ApiProxyHandler.handle(JettyContainerService.java:348)
 at org.mortbay.jetty.handler.HandlerWrapper.handle
  (HandlerWrapper.java:139)
 at org.mortbay.jetty.Server.handle(Server.java:313)
 at org.mortbay.jetty.HttpConnection.handleRequest
  (HttpConnection.java:506)
 at org.mortbay.jetty.HttpConnection
  $RequestHandler.headerComplete(HttpConnection.java:830)
 at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:514)
 at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:
  211)
 at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:
  381)
 at org.mortbay.io.nio.SelectChannelEndPoint.run
  (SelectChannelEndPoint.java:396)
 at org.mortbay.thread.BoundedThreadPool$PoolThread.run
  (BoundedThreadPool.java:442)
  10.12.2009 12:54:47 com.google.apphosting.utils.jetty.JettyLogger warn
 
  This results in a blank page when I visit http://localhost:8080/
 
  Any idead?
 
  Viðar
 

 --

 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

--

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




Re: [appengine-java] error xerces not found when run as web app

2009-12-11 Thread Ikai L (Google)
I'm not able to reproduce this, though I am using 2.9.1. Were you able to
figure this out? You may need to tell your IDE to treat WEB-INF/lib as part
of your classpath, since putting it in this library just makes sure it is in
the classpath when deployed and not necessarily locally when you are running
the development server.

On Thu, Dec 10, 2009 at 9:13 AM, asianCoolz second.co...@gmail.com wrote:

 i already included xercesImpl-2.8.1.jar inside /war/web/web-inf/lib/
 but i still get below error when run as web app in eclipse.  what did
 i miss out?

 p/s: i'm using gae1.2.6

 WARNING: failed
 com.google.apphosting.utils.jetty.devappenginewebappcont...@cf935a{/,/
 Users/user/work/project2/gae-jobportal/trunk/JobPortal/war}
 javax.xml.parsers.FactoryConfigurationError: Provider
 org.apache.xerces.jaxp.SAXParserFactoryImpl not found
at javax.xml.parsers.SAXParserFactory.newInstance
 (SAXParserFactory.java:113)
at org.mortbay.xml.XmlParser.init(XmlParser.java:69)
at org.mortbay.jetty.webapp.WebXmlConfiguration.webXmlParser
 (WebXmlConfiguration.java:83)
at org.mortbay.jetty.webapp.WebXmlConfiguration.init
 (WebXmlConfiguration.java:78)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
 (NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
 (DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.mortbay.jetty.webapp.WebAppContext.loadConfigurations
 (WebAppContext.java:838)
at
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 417)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:117)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:117)
at org.mortbay.jetty.Server.doStart(Server.java:217)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
at
 com.google.appengine.tools.development.JettyContainerService.startContainer
 (JettyContainerService.java:181)
at
 com.google.appengine.tools.development.AbstractContainerService.startup
 (AbstractContainerService.java:116)
at com.google.appengine.tools.development.DevAppServerImpl.start
 (DevAppServerImpl.java:217)
at com.google.appengine.tools.development.DevAppServerMain
 $StartAction.apply(DevAppServerMain.java:162)
at com.google.appengine.tools.util.Parser$ParseResult.applyArgs
 (Parser.java:48)
at com.google.appengine.tools.development.DevAppServerMain.init
 (DevAppServerMain.java:113)
at com.google.appengine.tools.development.DevAppServerMain.main
 (DevAppServerMain.java:89)
 Dec 10, 2009 5:10:41 PM com.google.apphosting.utils.jetty.JettyLogger
 warn
 WARNING: Nested in javax.xml.parsers.FactoryConfigurationError:
 Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found:
 java.lang.ClassNotFoundException: org/apache/xerces/jaxp/
 SAXParserFactoryImpl
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
 javax.xml.parsers.FactoryFinder.newInstance(FactoryFinder.java:85)
at javax.xml.parsers.FactoryFinder.findJarServiceProvider
 (FactoryFinder.java:278)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:185)
at javax.xml.parsers.SAXParserFactory.newInstance
 (SAXParserFactory.java:107)
at org.mortbay.xml.XmlParser.init(XmlParser.java:69)
at org.mortbay.jetty.webapp.WebXmlConfiguration.webXmlParser
 (WebXmlConfiguration.java:83)
at org.mortbay.jetty.webapp.WebXmlConfiguration.init
 (WebXmlConfiguration.java:78)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
 Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance
 (NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance
 (DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:501)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at org.mortbay.jetty.webapp.WebAppContext.loadConfigurations
 (WebAppContext.java:838)
at
 org.mortbay.jetty.webapp.WebAppContext.doStart(WebAppContext.java:
 417)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
at org.mortbay.jetty.handler.HandlerWrapper.doStart
 (HandlerWrapper.java:117)
at org.mortbay.component.AbstractLifeCycle.start
 (AbstractLifeCycle.java:40)
   

Re: [appengine-java] Google App for Web Application

2009-12-11 Thread Rusty Wright
http://code.google.com/appengine/docs/

Click on Storing Data under Java in the left menu.  Also click on Java in the 
Getting Started menu on the left.

You don't create the table; there are no tables, although JPA will pretend that 
there are.  Just start storing data.  Watch the videos from the previous google 
i/o conferences; e.g.,
http://www.youtube.com/watch?v=AgaL6NGpkB8


Rajesh wrote:
 hi all ,
 
 i'm new to google cloud computing .and  i have develooped my
 Application with Struts,Spring and JPA/ Hibenate support.
 
 since i knew GAE does'nt support hipernate.i use to go with JPA.but
 how to specify the datasource .How can i create the table .
 
  bean id=dataSource
 class=org.apache.commons.dbcp.BasicDataSource
 property name=driverClassName
 value=oracle.jdbc.OracleDriver /
 property name=url value=jdbc:oracle:thin:@localhost:
 1521:orcl /
 property name=username value= /
 property name=password value= /
 /bean
 
 
 
 please help me ,
 
 Thanks in Advance,
 Rajesh S
 rajesh.tec...@gmail.com
 
 --
 
 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: Fast MVC Framework for GAE?

2009-12-11 Thread Rusty Wright
http://googleappengine.blogspot.com/

See Dec 8 entry, Request performance in Java.


Brian wrote:
 I have 2 actions and something like 12 java classes total.. so don't
 think that is my problem.
 
 Nicolas: What is this pre-compilation you speak of? Anything under 5
 would be good enough for me...
 
 
 
 On Dec 10, 9:41 pm, Timothy Spear tsp...@green20now.com wrote:
 Brian,
 I moved away from traditional Java MVC frameworks in GAE. The  
 overhead is way to high for all of them.
 Instead I have moved to Flex for the front end with Java on the  
 backend. Very minimal server side structure with fast start times,  
 while the Flex application is downloaded the server is actually being  
 started via a javascript call to a bogus servlet. All of which make  
 the start/stop of the JVM on the GAE servers more transparent to the  
 user.

 Let me know if you need additional details.

 Good luck,

 Tim

 On Dec 10, 2009, at 3:46 PM, Brian wrote:

 I have a app that I thought would be perfect for the google app
 engine. Mostly idle, but for periods could be fairly high demand. Very
 simple workflow, no user request should take more than 2 seconds
 server side.
 To prototype it out, I used the stripes framework to get a simple MVC
 setup. This works very well when it is up (200ms server time per
 request), but is very very bad when the server needs to warm up to a
 new request (10-12 seconds).
 I know stripes is a very slow framework on server startup time, and
 apparently it needs to start up after being idle for a few minutes on
 GAE. Before I go down the patch of switching MVCs, I would be
 interested in
 a) What framework are you using
 b) What is the time taken from a cold start? (i.e. time to do a
 request when app is cold - time it normally takes to do the request).
 I am okay with a 3 or 5 second lag to get an instance going, but a
 10-12 second hit is too much.
 If no framework gets much better, then I guess I will switch to a
 static index.html that loads the page via JavaScript.
 --
 You received this message because you are subscribed to the Google  
 Groups Google App Engine for Java group.
 To post to this group, send email to google-appengine-java@googlegroups.com
 .
 To unsubscribe from this group, send email to 
 google-appengine-java+unsubscr...@googlegroups.com
 .
 For more options, visit this group 
 athttp://groups.google.com/group/google-appengine-java?hl=en
 .

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

--

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: Local Task queues not rate limited in 1.2.8

2009-12-11 Thread Sam Hasler
Where exactly do I put the --jvm_flag=-
Dtask_queue.disable_auto_task_execution=true flag? I'd assumed it
would be in Run configurations... (x)= Arguments tab, in the VM
Arguments pannel, but it says it's an Unrecognized option.

Sam

On Dec 11, 5:57 pm, Max Ross (Google) maxr+appeng...@google.com
wrote:
 Hi Sam,

 Please read this section of the 
 docs:http://code.google.com/appengine/docs/java/taskqueue/overview.html#Ta...

 It describes the differences between production task queues and local task
 queus and explains how to switch back to the old method of manually
 triggering tasks.

 Thanks,
 Max



 On Fri, Dec 11, 2009 at 4:02 AM, Sam Hasler sam.has...@gmail.com wrote:
  Local Task Queue are running tasks as fast as they can an not
  honouring the maximum rate for the queue. on a 0.5/s queue I'm seeing
  80+ tasks handled in a matter of seconds. This is a problem for me
  because I am using the URLFetch service to fetch content that I am not
  supposed to request more than once every 2 seconds.

  I'd like to at least see the local queues honouring the maximum rate,
  but it would be really useful to be able to pause the queues and
  have the old method of manually triggering tasks in the queue to be
  processed. Sometimes I just want to test that I'm queuing stuff up
  correctly and don't necessarily want the tasks to run.

  --

  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] enhance classes in eclipse plugin

2009-12-11 Thread asianCoolz


my properties-google--orm- already put /src   but i still get the
below error

i'm using jdk1.6 gae1.2.6. what did i do wrong?

01:38:22,793 ERROR [DataNucleus.MetaData] - Found Meta-Data for class
com.thepackage.class.domain.pojotest but this class is not enhanced!!
Please enhance the class before running DataNucleus.
org.datanucleus.exceptions.NucleusUserException: Found Meta-Data for
class com.thepackage.class.domain.pojotest  but this class is not
enhanced!! Please enhance the class before running DataNucleus.
at org.datanucleus.metadata.MetaDataManager.initialiseClassMetaData
(MetaDataManager.java:2225)
at org.datanucleus.metadata.MetaDataManager.initialiseFileMetaData
(MetaDataManager.java:2176)
at
org.datanucleus.metadata.MetaDataManager.initialiseFileMetaDataForUse
(MetaDataManager.java:881)
at org.datanucleus.metadata.MetaDataManager.loadPersistenceUnit
(MetaDataManager.java:794)
at org.datanucleus.jpa.EntityManagerFactoryImpl.initialisePMF
(EntityManagerFactoryImpl.java:488)
at org.datanucleus.jpa.EntityManagerFactoryImpl.init
(EntityManagerFactoryImpl.java:355)
at
org.datanucleus.store.appengine.jpa.DatastoreEntityManagerFactory.init
(DatastoreEntityManagerFactory.java:63)
at
org.datanucleus.store.appengine.jpa.DatastorePersistenceProvider.createEntityManagerFactory
(DatastorePersistenceProvider.java:35)
at javax.persistence.Persistence.createFactory(Persistence.java:172)
at javax.persistence.Persistence.createEntityManagerFactory
(Persistence.java:112)
at
org.springframework.orm.jpa.LocalEntityManagerFactoryBean.createNativeEntityManagerFactory
(LocalEntityManagerFactoryBean.java:91)
at
org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.afterPropertiesSet
(AbstractEntityManagerFactoryBean.java:291)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods
(AbstractAutowireCapableBeanFactory.java:1369)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean
(AbstractAutowireCapableBeanFactory.java:1335)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean
(AbstractAutowireCapableBeanFactory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference
(BeanDefinitionValueResolver.java:269)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary
(BeanDefinitionValueResolver.java:104)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues
(AbstractAutowireCapableBeanFactory.java:1245)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean
(AbstractAutowireCapableBeanFactory.java:1010)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean
(AbstractAutowireCapableBeanFactory.java:472)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory
$1.run(AbstractAutowireCapableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean
(AbstractAutowireCapableBeanFactory.java:380)
at org.springframework.beans.factory.support.AbstractBeanFactory
$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton
(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean
(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean
(AbstractBeanFactory.java:164)
at

[appengine-java] Re: gae log console

2009-12-11 Thread Roy
I log to xmpp and it works really well. I find the standard log viewer
with its foreign timestamps almost unusable for debugging.

On Dec 11, 6:07 pm, Ikai L (Google) ika...@google.com wrote:
 I was just thinking about this. You might be able to do something by
 creating your own wrapped logger and integrating it with the XMPP service,
 though I am pretty sure this will send you over quota pretty quickly.

 On Fri, Dec 11, 2009 at 10:06 AM, Ikai L (Google) ika...@google.com wrote:





  Ah, tailing in real time (or semi real time). This isn't currently
  possible. You might want to write something up and create a feature request
  for it:http://code.google.com/p/googleappengine/issues/list

  On Thu, Dec 10, 2009 at 7:18 PM, asianCoolz second.co...@gmail.comwrote:

  its only copy the log to local pc. can it append so that i look like i
  use tail -f each time got new records in the log?

  --

  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.

  --
  Ikai Lan
  Developer Programs Engineer, Google App Engine

 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine

--

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 MVC with annotations

2009-12-11 Thread asianCoolz
any update on this? can rc3 run on gae?

--

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: Fast MVC Framework for GAE?

2009-12-11 Thread Brian
Before: / 200 9743ms 11464cpu_ms 264api_cpu_ms
After: / 200 6894ms 7335cpu_ms 199api_cpu_ms


Better, but not really good enough.


On Dec 11, 4:22 pm, Rusty Wright rwright.li...@gmail.com wrote:
 http://googleappengine.blogspot.com/

 See Dec 8 entry, Request performance in Java.

 Brian wrote:
  I have 2 actions and something like 12 java classes total.. so don't
  think that is my problem.

  Nicolas: What is this pre-compilation you speak of? Anything under 5
  would be good enough for me...

  On Dec 10, 9:41 pm, Timothy Spear tsp...@green20now.com wrote:
  Brian,
          I moved away from traditional Java MVC frameworks in GAE. The  
  overhead is way to high for all of them.
          Instead I have moved to Flex for the front end with Java on the  
  backend. Very minimal server side structure with fast start times,  
  while the Flex application is downloaded the server is actually being  
  started via a javascript call to a bogus servlet. All of which make  
  the start/stop of the JVM on the GAE servers more transparent to the  
  user.

          Let me know if you need additional details.

  Good luck,

  Tim

  On Dec 10, 2009, at 3:46 PM, Brian wrote:

  I have a app that I thought would be perfect for the google app
  engine. Mostly idle, but for periods could be fairly high demand. Very
  simple workflow, no user request should take more than 2 seconds
  server side.
  To prototype it out, I used the stripes framework to get a simple MVC
  setup. This works very well when it is up (200ms server time per
  request), but is very very bad when the server needs to warm up to a
  new request (10-12 seconds).
  I know stripes is a very slow framework on server startup time, and
  apparently it needs to start up after being idle for a few minutes on
  GAE. Before I go down the patch of switching MVCs, I would be
  interested in
  a) What framework are you using
  b) What is the time taken from a cold start? (i.e. time to do a
  request when app is cold - time it normally takes to do the request).
  I am okay with a 3 or 5 second lag to get an instance going, but a
  10-12 second hit is too much.
  If no framework gets much better, then I guess I will switch to a
  static index.html that loads the page via JavaScript.
  --
  You received this message because you are subscribed to the Google  
  Groups Google App Engine for Java group.
  To post to this group, send email to 
  google-appengine-java@googlegroups.com
  .
  To unsubscribe from this group, send email to 
  google-appengine-java+unsubscr...@googlegroups.com
  .
  For more options, visit this group 
  athttp://groups.google.com/group/google-appengine-java?hl=en
  .

  --

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

--

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




[google-appengine] Current Datastore issues: DatastoreTimeoutException

2009-12-11 Thread broc
  Hello,

Since 12-10 09:36PM (2 hours and a half), I'm facing a lot of
problems with Datastore. I have not change/modify anything.

A lot of DatastoreTimeoutException that make my responses fail!

Even the admin console gives me a big Server Error when I browse the
logs...

I'm not the only one.
Cf. the second message of:
http://groups.google.com/group/google-appengine/browse_thread/thread/923725aa935624cd

Can somebody fix the problem ?

Thanks,
Sebastien.

--

You 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] Datastore down: _ToDatastoreError(err)

2009-12-11 Thread fedestabile
Hi,

does anyone else is having problems with the Datastore? raising
_ToDatastoreError(err)?

Also, does anyone know how to report an issue to the System Status
http://code.google.com/status/appengine;?

Thanks,
Fred

--

You 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] Paid appengine account still results in timeout

2009-12-11 Thread oliverox
Hi,

Everything was working fine, till today. Seems like appengine doesnt
like any of my requests anymore.

http://fanvenues1.appspot.com/seatwave/12505/360x227/circle.jpg

This request is suppose to return a jpg image (about 17KB) stored in
the datastore. It used to work fine earlier but now I get the
following:

Traceback (most recent call last):
  File /base/python_lib/versions/1/google/appengine/ext/webapp/
__init__.py, line 507, in __call__
handler.get(*groups)
  File /base/data/home/apps/fanvenues1/1.338340892144330219/main.py,
line 105, in get
currenthits = section.layout.hits
  File /base/python_lib/versions/1/google/appengine/ext/db/
__init__.py, line 2907, in __get__
instance = get(reference_id)
  File /base/python_lib/versions/1/google/appengine/ext/db/
__init__.py, line 1182, in get
entities = datastore.Get(keys)
  File /base/python_lib/versions/1/google/appengine/api/
datastore.py, line 257, in Get
raise _ToDatastoreError(err)
Timeout


Why is this happening when I actually have a paid account?

Thanks
Oliver

--

You 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: Error: Server Error

2009-12-11 Thread fedestabile
I'm having troubles with my app too. I think this seems to be some
kind of system disruption :(

On Dec 11, 2:56 pm, thepeppersstu...@gmail.com
thepeppersstu...@gmail.com wrote:
 Got the following server error just now:

 Error: Server Error

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

 I didn't change any code, and it works fine on my local machine. Does
 any one know what the problem it is?

 The app address ishttp://syd.appspot.com/

--

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

2009-12-11 Thread oliverox
Yea me too... that sucks!

On Dec 11, 4:06 pm, fedestabile stabile.feder...@gmail.com wrote:
 I'm having troubles with my app too. I think this seems to be some
 kind of system disruption :(

 On Dec 11, 2:56 pm, thepeppersstu...@gmail.com



 thepeppersstu...@gmail.com wrote:
  Got the following server error just now:

  Error: Server Error

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

  I didn't change any code, and it works fine on my local machine. Does
  any one know what the problem it is?

  The app address ishttp://syd.appspot.com/

--

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

2009-12-11 Thread fedestabile
Hi Sebastien,

I'm experiencing the same kind of issues.

Have you checked the System Status http://code.google.com/status/appengine;?
It says that everything seems to be fine. Do you know how to report an
issue?

Cheers,
Fred

On Dec 11, 3:02 pm, broc sebastien.peroc...@gmail.com wrote:
   Hello,

 Since 12-10 09:36PM (2 hours and a half), I'm facing a lot of
 problems with Datastore. I have not change/modify anything.

 A lot of DatastoreTimeoutException that make my responses fail!

 Even the admin console gives me a big Server Error when I browse the
 logs...

 I'm not the only one.
 Cf. the second message 
 of:http://groups.google.com/group/google-appengine/browse_thread/thread/...

 Can somebody fix the problem ?

 Thanks,
 Sebastien.

--

You 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: Error: Server Error

2009-12-11 Thread fedestabile
I took a page, opened in Opera using the auto refresh feature, and
hopefully Google will track all these errors. If you have any way to
auto refresh one of your pages and generate the error, maybe will be a
good idea to do it.

On Dec 11, 3:08 pm, oliverox oliver.oxen...@gmail.com wrote:
 Yea me too... that sucks!

 On Dec 11, 4:06 pm, fedestabile stabile.feder...@gmail.com wrote:



  I'm having troubles with my app too. I think this seems to be some
  kind of system disruption :(

  On Dec 11, 2:56 pm, thepeppersstu...@gmail.com

  thepeppersstu...@gmail.com wrote:
   Got the following server error just now:

   Error: Server Error

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

   I didn't change any code, and it works fine on my local machine. Does
   any one know what the problem it is?

   The app address ishttp://syd.appspot.com/

--

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

2009-12-11 Thread fedestabile
I took a page, opened in Opera using the auto refresh feature, and
hopefully Google will track all these errors. If you have any way to
auto refresh one of your pages and generate the error, maybe will be
a
good idea to do it.

On Dec 11, 3:05 pm, fedestabile stabile.feder...@gmail.com wrote:
 Hi,

 does anyone else is having problems with the Datastore? raising
 _ToDatastoreError(err)?

 Also, does anyone know how to report an issue to the System 
 Statushttp://code.google.com/status/appengine;?

 Thanks,
 Fred

--

You 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: Current Datastore issues: DatastoreTimeoutException

2009-12-11 Thread broc
Hi Fred,

Yes, I checked the Status that say everything is fine but is it NOT!
I don't think there is an issue tracker, you just have to wait and
hope someone will read our messages and correct the problem...

On 11 déc, 09:10, fedestabile stabile.feder...@gmail.com wrote:
 Hi Sebastien,

 I'm experiencing the same kind of issues.

 Have you checked the System Statushttp://code.google.com/status/appengine;?
 It says that everything seems to be fine. Do you know how to report an
 issue?

 Cheers,
 Fred

 On Dec 11, 3:02 pm, broc sebastien.peroc...@gmail.com wrote:

    Hello,

  Since 12-10 09:36PM (2 hours and a half), I'm facing a lot of
  problems with Datastore. I have not change/modify anything.

  A lot of DatastoreTimeoutException that make my responses fail!

  Even the admin console gives me a big Server Error when I browse the
  logs...

  I'm not the only one.
  Cf. the second message 
  of:http://groups.google.com/group/google-appengine/browse_thread/thread/...

  Can somebody fix the problem ?

  Thanks,
  Sebastien.

--

You 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: Current Datastore issues: DatastoreTimeoutException

2009-12-11 Thread fedestabile
I took a page, opened in Opera using the auto refresh feature, and
hopefully Google will track all these errors. If you have any way to
auto refresh one of your pages and generate the error, maybe will be
a
good idea to do it.

On Dec 11, 3:10 pm, fedestabile stabile.feder...@gmail.com wrote:
 Hi Sebastien,

 I'm experiencing the same kind of issues.

 Have you checked the System Statushttp://code.google.com/status/appengine;?
 It says that everything seems to be fine. Do you know how to report an
 issue?

 Cheers,
 Fred

 On Dec 11, 3:02 pm, broc sebastien.peroc...@gmail.com wrote:



    Hello,

  Since 12-10 09:36PM (2 hours and a half), I'm facing a lot of
  problems with Datastore. I have not change/modify anything.

  A lot of DatastoreTimeoutException that make my responses fail!

  Even the admin console gives me a big Server Error when I browse the
  logs...

  I'm not the only one.
  Cf. the second message 
  of:http://groups.google.com/group/google-appengine/browse_thread/thread/...

  Can somebody fix the problem ?

  Thanks,
  Sebastien.

--

You 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: Current Datastore issues: DatastoreTimeoutException

2009-12-11 Thread fedestabile
Yes Broc,

I've checking the System Status, and many times instead of Normal,
said Abnormal. But after a couple of minutes returned back to
Normal and as you said: it is not

On Dec 11, 3:18 pm, fedestabile stabile.feder...@gmail.com wrote:
 I took a page, opened in Opera using the auto refresh feature, and
 hopefully Google will track all these errors. If you have any way to
 auto refresh one of your pages and generate the error, maybe will be
 a
 good idea to do it.

 On Dec 11, 3:10 pm, fedestabile stabile.feder...@gmail.com wrote:



  Hi Sebastien,

  I'm experiencing the same kind of issues.

  Have you checked the System Statushttp://code.google.com/status/appengine;?
  It says that everything seems to be fine. Do you know how to report an
  issue?

  Cheers,
  Fred

  On Dec 11, 3:02 pm, broc sebastien.peroc...@gmail.com wrote:

     Hello,

   Since 12-10 09:36PM (2 hours and a half), I'm facing a lot of
   problems with Datastore. I have not change/modify anything.

   A lot of DatastoreTimeoutException that make my responses fail!

   Even the admin console gives me a big Server Error when I browse the
   logs...

   I'm not the only one.
   Cf. the second message 
   of:http://groups.google.com/group/google-appengine/browse_thread/thread/...

   Can somebody fix the problem ?

   Thanks,
   Sebastien.

--

You 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: Current Datastore issues: DatastoreTimeoutException

2009-12-11 Thread broc
The System Status http://code.google.com/status/appengine; is now
indicating Anomaly!
I Hope this is for our problem...

On 11 déc, 09:18, fedestabile stabile.feder...@gmail.com wrote:
 I took a page, opened in Opera using the auto refresh feature, and
 hopefully Google will track all these errors. If you have any way to
 auto refresh one of your pages and generate the error, maybe will be
 a
 good idea to do it.

 On Dec 11, 3:10 pm, fedestabile stabile.feder...@gmail.com wrote:

  Hi Sebastien,

  I'm experiencing the same kind of issues.

  Have you checked the System Statushttp://code.google.com/status/appengine;?
  It says that everything seems to be fine. Do you know how to report an
  issue?

  Cheers,
  Fred

  On Dec 11, 3:02 pm, broc sebastien.peroc...@gmail.com wrote:

     Hello,

   Since 12-10 09:36PM (2 hours and a half), I'm facing a lot of
   problems with Datastore. I have not change/modify anything.

   A lot of DatastoreTimeoutException that make my responses fail!

   Even the admin console gives me a big Server Error when I browse the
   logs...

   I'm not the only one.
   Cf. the second message 
   of:http://groups.google.com/group/google-appengine/browse_thread/thread/...

   Can somebody fix the problem ?

   Thanks,
   Sebastien.

--

You 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: Current Datastore issues: DatastoreTimeoutException

2009-12-11 Thread broc
Mine too.

Cool !!!

Have good work and nice app !

On 11 déc, 09:24, fedestabile stabile.feder...@gmail.com wrote:
 My application just started to work fine again. How about yours?

 On Dec 11, 3:22 pm, broc sebastien.peroc...@gmail.com wrote:

  The System Statushttp://code.google.com/status/appengine; is now
  indicating Anomaly!
  I Hope this is for our problem...

  On 11 déc, 09:18, fedestabile stabile.feder...@gmail.com wrote:

   I took a page, opened in Opera using the auto refresh feature, and
   hopefully Google will track all these errors. If you have any way to
   auto refresh one of your pages and generate the error, maybe will be
   a
   good idea to do it.

   On Dec 11, 3:10 pm, fedestabile stabile.feder...@gmail.com wrote:

Hi Sebastien,

I'm experiencing the same kind of issues.

Have you checked the System 
Statushttp://code.google.com/status/appengine;?
It says that everything seems to be fine. Do you know how to report an
issue?

Cheers,
Fred

On Dec 11, 3:02 pm, broc sebastien.peroc...@gmail.com wrote:

   Hello,

 Since 12-10 09:36PM (2 hours and a half), I'm facing a lot of
 problems with Datastore. I have not change/modify anything.

 A lot of DatastoreTimeoutException that make my responses fail!

 Even the admin console gives me a big Server Error when I browse the
 logs...

 I'm not the only one.
 Cf. the second message 
 of:http://groups.google.com/group/google-appengine/browse_thread/thread/...

 Can somebody fix the problem ?

 Thanks,
 Sebastien.

--

You 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: Current Datastore issues: DatastoreTimeoutException

2009-12-11 Thread fedestabile
Great :)

On Dec 11, 3:26 pm, broc sebastien.peroc...@gmail.com wrote:
 Mine too.

 Cool !!!

 Have good work and nice app !

 On 11 déc, 09:24, fedestabile stabile.feder...@gmail.com wrote:



  My application just started to work fine again. How about yours?

  On Dec 11, 3:22 pm, broc sebastien.peroc...@gmail.com wrote:

   The System Statushttp://code.google.com/status/appengine; is now
   indicating Anomaly!
   I Hope this is for our problem...

   On 11 déc, 09:18, fedestabile stabile.feder...@gmail.com wrote:

I took a page, opened in Opera using the auto refresh feature, and
hopefully Google will track all these errors. If you have any way to
auto refresh one of your pages and generate the error, maybe will be
a
good idea to do it.

On Dec 11, 3:10 pm, fedestabile stabile.feder...@gmail.com wrote:

 Hi Sebastien,

 I'm experiencing the same kind of issues.

 Have you checked the System 
 Statushttp://code.google.com/status/appengine;?
 It says that everything seems to be fine. Do you know how to report an
 issue?

 Cheers,
 Fred

 On Dec 11, 3:02 pm, broc sebastien.peroc...@gmail.com wrote:

    Hello,

  Since 12-10 09:36PM (2 hours and a half), I'm facing a lot of
  problems with Datastore. I have not change/modify anything.

  A lot of DatastoreTimeoutException that make my responses fail!

  Even the admin console gives me a big Server Error when I browse 
  the
  logs...

  I'm not the only one.
  Cf. the second message 
  of:http://groups.google.com/group/google-appengine/browse_thread/thread/...

  Can somebody fix the problem ?

  Thanks,
  Sebastien.

--

You 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: Datastore down: _ToDatastoreError(err)

2009-12-11 Thread fedestabile
Works fine now :)

On Dec 11, 3:17 pm, fedestabile stabile.feder...@gmail.com wrote:
 I took a page, opened in Opera using the auto refresh feature, and
 hopefully Google will track all these errors. If you have any way to
 auto refresh one of your pages and generate the error, maybe will be
 a
 good idea to do it.

 On Dec 11, 3:05 pm, fedestabile stabile.feder...@gmail.com wrote:



  Hi,

  does anyone else is having problems with the Datastore? raising
  _ToDatastoreError(err)?

  Also, does anyone know how to report an issue to the System 
  Statushttp://code.google.com/status/appengine;?

  Thanks,
  Fred

--

You 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] Datastore contention

2009-12-11 Thread Nickolas Daskalou
After reading these two articles:

Avoiding datastore contention: 
http://code.google.com/appengine/articles/scaling/contention.html
Sharding counters: 
http://code.google.com/appengine/articles/sharding_counters.html

I'm a little confused at to what causes datastore contention, and how
to design around this.

The Avoiding datastore contention article states that datastore
contention occurs when a single entity or entity group is updated too
rapidly. Yet the Sharding counters article seems to suggest that you
can rapidly update entities of the same kind (and hence entity group),
as long as they have different key names.

Which it is?

For example, if I am expecting 100 comments/second to an article I've
written (let's assume I'm a really good writer), and the Comment class
is its own entity group, can I safely put() all comments into the
datastore as they arrive using this Comment class, or am I better off
sharding them into separate classes (eg. Comment1, Comment2, ...,
CommentN) so that the comments are distributed across N entity groups?

--

You 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] Datastore contention

2009-12-11 Thread Jeff Schnitzer
An entity group is a group of objects, not classes.  If Article#1237
and its comments are in a single entity group, then yes you'll have
trouble with more 100 comments per second.  Simple solution:  Don't
put the comments in the article's entity group.

Jeff

On Fri, Dec 11, 2009 at 12:31 AM, Nickolas Daskalou n...@daskalou.com wrote:
 After reading these two articles:

 Avoiding datastore contention: 
 http://code.google.com/appengine/articles/scaling/contention.html
 Sharding counters: 
 http://code.google.com/appengine/articles/sharding_counters.html

 I'm a little confused at to what causes datastore contention, and how
 to design around this.

 The Avoiding datastore contention article states that datastore
 contention occurs when a single entity or entity group is updated too
 rapidly. Yet the Sharding counters article seems to suggest that you
 can rapidly update entities of the same kind (and hence entity group),
 as long as they have different key names.

 Which it is?

 For example, if I am expecting 100 comments/second to an article I've
 written (let's assume I'm a really good writer), and the Comment class
 is its own entity group, can I safely put() all comments into the
 datastore as they arrive using this Comment class, or am I better off
 sharding them into separate classes (eg. Comment1, Comment2, ...,
 CommentN) so that the comments are distributed across N entity groups?

 --

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




--

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




[google-appengine] Re: Current Datastore issues: DatastoreTimeoutException

2009-12-11 Thread Taro Morimoto
Hi,

I'm had the same problem and now everything is fine agin. It would be
nice to know why this is happening.


Taro

On Dec 11, 10:21 am, fedestabile stabile.feder...@gmail.com wrote:
 Yes Broc,

 I've checking the System Status, and many times instead of Normal,
 said Abnormal. But after a couple of minutes returned back to
 Normal and as you said: it is not

 On Dec 11, 3:18 pm, fedestabile stabile.feder...@gmail.com wrote:

  I took a page, opened in Opera using the auto refresh feature, and
  hopefully Google will track all these errors. If you have any way to
  auto refresh one of your pages and generate the error, maybe will be
  a
  good idea to do it.

  On Dec 11, 3:10 pm, fedestabile stabile.feder...@gmail.com wrote:

   Hi Sebastien,

   I'm experiencing the same kind of issues.

   Have you checked the System 
   Statushttp://code.google.com/status/appengine;?
   It says that everything seems to be fine. Do you know how to report an
   issue?

   Cheers,
   Fred

   On Dec 11, 3:02 pm, broc sebastien.peroc...@gmail.com wrote:

  Hello,

Since 12-10 09:36PM (2 hours and a half), I'm facing a lot of
problems with Datastore. I have not change/modify anything.

A lot of DatastoreTimeoutException that make my responses fail!

Even the admin console gives me a big Server Error when I browse the
logs...

I'm not the only one.
Cf. the second message 
of:http://groups.google.com/group/google-appengine/browse_thread/thread/...

Can somebody fix the problem ?

Thanks,
Sebastien.

--

You 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: Datastore contention

2009-12-11 Thread Nickolas Daskalou


On Dec 11, 7:37 pm, Jeff Schnitzer j...@infohazard.org wrote:
 An entity group is a group of objects, not classes.

Ah, this makes more sense. Thanks Jeff!

Nick

--

You 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: Current Datastore issues: DatastoreTimeoutException

2009-12-11 Thread Maneesh
my app is also having the same problem , someone in google please wake
up 

On Dec 11, 1:18 pm, fedestabile stabile.feder...@gmail.com wrote:
 I took a page, opened in Opera using the auto refresh feature, and
 hopefully Google will track all these errors. If you have any way to
 auto refresh one of your pages and generate the error, maybe will be
 a
 good idea to do it.

 On Dec 11, 3:10 pm, fedestabile stabile.feder...@gmail.com wrote:



  Hi Sebastien,

  I'm experiencing the same kind of issues.

  Have you checked the System Statushttp://code.google.com/status/appengine;?
  It says that everything seems to be fine. Do you know how to report an
  issue?

  Cheers,
  Fred

  On Dec 11, 3:02 pm, broc sebastien.peroc...@gmail.com wrote:

     Hello,

   Since 12-10 09:36PM (2 hours and a half), I'm facing a lot of
   problems with Datastore. I have not change/modify anything.

   A lot of DatastoreTimeoutException that make my responses fail!

   Even the admin console gives me a big Server Error when I browse the
   logs...

   I'm not the only one.
   Cf. the second message 
   of:http://groups.google.com/group/google-appengine/browse_thread/thread/...

   Can somebody fix the problem ?

   Thanks,
   Sebastien.

--

You 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: Current Datastore issues: DatastoreTimeoutException

2009-12-11 Thread Maneesh
it is working now , It would be nice to know what caused this..

Thanks

On Dec 11, 1:21 pm, Maneesh madanmane...@gmail.com wrote:
 my app is also having the same problem , someone in google please wake
 up 

 On Dec 11, 1:18 pm, fedestabile stabile.feder...@gmail.com wrote:



  I took a page, opened in Opera using the auto refresh feature, and
  hopefully Google will track all these errors. If you have any way to
  auto refresh one of your pages and generate the error, maybe will be
  a
  good idea to do it.

  On Dec 11, 3:10 pm, fedestabile stabile.feder...@gmail.com wrote:

   Hi Sebastien,

   I'm experiencing the same kind of issues.

   Have you checked the System 
   Statushttp://code.google.com/status/appengine;?
   It says that everything seems to be fine. Do you know how to report an
   issue?

   Cheers,
   Fred

   On Dec 11, 3:02 pm, broc sebastien.peroc...@gmail.com wrote:

  Hello,

Since 12-10 09:36PM (2 hours and a half), I'm facing a lot of
problems with Datastore. I have not change/modify anything.

A lot of DatastoreTimeoutException that make my responses fail!

Even the admin console gives me a big Server Error when I browse the
logs...

I'm not the only one.
Cf. the second message 
of:http://groups.google.com/group/google-appengine/browse_thread/thread/...

Can somebody fix the problem ?

Thanks,
Sebastien.

--

You 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: Current Datastore issues: DatastoreTimeoutException

2009-12-11 Thread siham sentissi
My app is also having the same problem... one get request have a timeout
error for all users, but on Dataviewer I have no problem to query this get
request.

2009/12/11 Maneesh madanmane...@gmail.com

 my app is also having the same problem , someone in google please wake
 up 

 On Dec 11, 1:18 pm, fedestabile stabile.feder...@gmail.com wrote:
  I took a page, opened in Opera using the auto refresh feature, and
  hopefully Google will track all these errors. If you have any way to
  auto refresh one of your pages and generate the error, maybe will be
  a
  good idea to do it.
 
  On Dec 11, 3:10 pm, fedestabile stabile.feder...@gmail.com wrote:
 
 
 
   Hi Sebastien,
 
   I'm experiencing the same kind of issues.
 
   Have you checked the System Statushttp://
 code.google.com/status/appengine?
   It says that everything seems to be fine. Do you know how to report an
   issue?
 
   Cheers,
   Fred
 
   On Dec 11, 3:02 pm, broc sebastien.peroc...@gmail.com wrote:
 
  Hello,
 
Since 12-10 09:36PM (2 hours and a half), I'm facing a lot of
problems with Datastore. I have not change/modify anything.
 
A lot of DatastoreTimeoutException that make my responses fail!
 
Even the admin console gives me a big Server Error when I browse
 the
logs...
 
I'm not the only one.
Cf. the second message of:
 http://groups.google.com/group/google-appengine/browse_thread/thread/...
 
Can somebody fix the problem ?
 
Thanks,
Sebastien.

 --

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





-- 
Siham SENTISSI

--

You 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] this URI uses a high amount of cpu and may soon exceed its quota

2009-12-11 Thread Iap
In the dashboard, there is a yellow triangle shown on the right side of the
Avg CPU column on the line of a URI.
What I can not understand is on the Billing Status table, the CPU Time
row shows that the usages of CPU Time is 4%.
What does it means?
Does it mean that we have to set the CPU Time quota for every single URI?
Can we make that cpu-consuming URI takes resource from the other URIs and
all shares a common resource quota?

Thanks in advance.

--

You received this message because you are subscribed to the Google Groups 
Google App Engine group.
To post to this group, send email to google-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] this URI uses a high amount of cpu and may soon exceed its quota

2009-12-11 Thread Nick Johnson (Google)
Hi,

On Fri, Dec 11, 2009 at 10:58 AM, Iap iap...@gmail.com wrote:

 In the dashboard, there is a yellow triangle shown on the right side of the
 Avg CPU column on the line of a URI.
 What I can not understand is on the Billing Status table, the CPU Time
 row shows that the usages of CPU Time is 4%.
 What does it means?


The text is somewhat out of date. Originally, individual URIs could be
limited based on CPU consumption. This is no longer the case, and the error
serves only to warn about particularly expensive URIs that may be slow and
could do with optimisation. You don't have to worry about hitting any
per-URI quota limit.

-Nick Johnson


 Does it mean that we have to set the CPU Time quota for every single URI?
 Can we make that cpu-consuming URI takes resource from the other URIs and
 all shares a common resource quota?

 Thanks in advance.

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




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

--

You 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: Inconsistencies in remote api data retrieval

2009-12-11 Thread bsb
I doubt that, I did get some explixcit timeouts from the fetch, which
went away when I reduced the limit from 500 to 300. So, I think if it
was a timeout, I'd get an exception thrown, no?

Best,
ben

On Dec 10, 2:48 pm, Eli Jones eli.jo...@gmail.com wrote:
 Maybe one of the fetches times out and it just silently fails.. And
 prints out its current count?

 On 12/10/09, bsb b...@pearcomp.com wrote:





  No ideas? Noone? I just don't understand why not all keys are
  retrieved every time. It doesn't make any sense...

  Thanks in advance,
  Ben

  On Dec 8, 6:47 pm, bsb b...@pearcomp.com wrote:
  I am trying to cycle through all elements of a table via the remote
  API, using a modification of the code snippet
  fromhttp://code.google.com/appengine/articles/remote_api.html:

  # SNIP
  
  query = db.GqlQuery(SELECT __key__ FROM Model_mobileapp ORDER BY
  __key__)
  apps = query.fetch(500)
  total = 0
  while apps:
     total = total + len(apps)
     query2 = db.GqlQuery(SELECT __key__ FROM Model_mobileapp WHERE
  __key__  :1 ORDER BY __key__, apps[-1])
     apps = query2.fetch(500)

  print %d % total
  # SNAP
  

  However, I'm getting unpredictable behaviour. Sometimes I get the
  correct number (104512), sometimes I get 15999, 30999 and all sorts of
  other values.

  Does anyone have any clue what this could be caused by? Is there some
  sort of magic caching going on for the fetch() command, that return
  some keys which are not in the correct sorting order? Could the
  (automatic) ascending key index be broken? Any ideas?

  Thanks,
  Ben

  --

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

 --
 Sent from my mobile device

--

You 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] implementation of in queries

2009-12-11 Thread Nick Johnson (Google)
Hi Andy,

IN and != queries are broken up into individual queries and executed in the
SDK code. Currently they're executed serially, but in future they're likely
to be modified to execute in parallel.

-Nick

On Thu, Dec 10, 2009 at 6:48 PM, Andy Freeman ana...@earthlink.net wrote:

 I know that both IN and != queries are implemented with multiple
 queries.

 Are those multiple queries executed in the datastore or in the
 application?

 I'm interested in whether an IN query is has less latency than the
 corresponding sequence of queries.  (For my specific application, the
 sequence is more convenient and requires no de-duping, but if IN has
 less latency, I'll use it.)

 ps - This should be documented somewhere

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





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

--

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




Re: [google-appengine] Small sharp traffic dips: Why?

2009-12-11 Thread Nick Johnson (Google)
Hi Jason,

This is a known bug in the graphing of the traffic data. Your actual traffic
is not affected.

-Nick

On Fri, Dec 11, 2009 at 3:40 AM, Jason Smith j...@proven-corporation.comwrote:

 Does anybody else see sharp drops in reported traffic admin console
 chart? I see these drops in reported traffic every few hours.

 I am certain the true rate of queries from users is unchanged. Is this
 a reporting bug, or is service actually insufficient during that
 duration? I see a sharp drop, 30-50% below the normal traffic rate in
 what appears to be a single data point, and then a quick return. It's
 disconcerting.

 What is going on there?

 --

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





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

--

You 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] Property order in indexes

2009-12-11 Thread Nick Johnson (Google)
Hi Karthi,

On Thu, Dec 10, 2009 at 2:22 PM, Karthi
karthi.palanis...@orangescape.comwrote:

 hi,
   I am facing problem in index, i already have an index
 - kind: PrimaryData
  properties:
  - name: CellMetadata_9fd8bfa0_2694_4e1a_9d9e_81216f96998d
  - name: CellMetadata_3b80aec6_b55c_4ece_a5e7_4ee06836c4c9
  - name: SheetMetadataId
 but it is throwing error no matching index found.
 - kind: PrimaryData
  properties:
  - name: CellMetadata_9fd8bfa0_2694_4e1a_9d9e_81216f96998d
  - name: SheetMetadataId
  - name: CellMetadata_3b80aec6_b55c_4ece_a5e7_4ee06836c4c9


 Is order of index is need to be preserved.


These two indexes are not equivalent. Properties are ordered.

-Nick Johnson



 -
 Karthi


 --

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





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

--

You 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: re-use phone number for SMS?

2009-12-11 Thread Nick Johnson (Google)
Hi,

If you are having trouble with SMS verification, or want an additional
account activated, please fill out the following form:

http://appengine.google.com/waitlist/sms_issues

(This is from the following FAQ http://code.google.com/appengine/kb/sms
.html#error )

Once you fill out this form, you should receive access within a day or two.

Happy coding,

Nick Johnson



On Wed, Dec 9, 2009 at 7:11 PM, Jean-Marc (M2i3.com) 
jean-marc.lag...@m2i3.net wrote:

 Got a similar problem  except I changed my email address for my
 account and altough it now says I have 10 applications available
 (which is not true I got one running) I can no longer add application
 to my account since it is asking me to enter a mobile phone number
 again which has already been used on my business account.

 any help would be appreciated thanks!

 Jean-Marc Lagacé
 M2i3.com

 On Oct 13, 7:56 am, Nick Johnson (Google) nick.john...@google.com
 wrote:
  Hi kiren,
  Let us know both emails involved and we'll activate the second account
 for
  you.
 
  -Nick Johnson
 
  On Mon, Oct 12, 2009 at 9:36 PM, kiren kirense...@gmail.com wrote:
 
   Hello,
 
   I have an app engine account for personal use.  Now I want to create a
   new account for my company.  However, when I try to verify my new
   account by SMS, it complains because my phone number has already been
   used to confirm an account (I only have one mobile phone for both
   personal and work.)  Is there a workaround for this?
 
   Thanks
   Kiren
 
  --
  Nick Johnson, Developer Programs Engineer, App Engine
  Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration
 Number:
  368047

 --

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





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

--

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




Re: [google-appengine] Verify Your Account by SMS problem

2009-12-11 Thread Nick Johnson (Google)
Hi,

If you are having trouble with SMS verification, or want an additional
account activated, please fill out the following form:

http://appengine.google.com/waitlist/sms_issues

(This is from the following FAQ http://code.google.com/appengine/kb/sms
.html#error )

Once you fill out this form, you should receive access within a day or two.

Happy coding,

Nick Johnson



On Wed, Dec 9, 2009 at 11:21 AM, Dennis Madsen den...@demaweb.dk wrote:

 When typing my mobile number and pressing send I got:
 The phone number has been sent too many messages or has already been
 used to confirm an account.

 I've already been send a code for weeks ago. But it looks like I
 haven't got that one registered correctly. Where can I do so - I still
 got the old code?

 --

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





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

--

You 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: Tragedy of the Commons, and Cold Starts

2009-12-11 Thread Toby Reyelts
On Wed, Dec 9, 2009 at 2:11 PM, Devel63 danstic...@gmail.com wrote:

 Toby,

 In the past, it was several minutes before an active instance would be
 swapped out.  Of late, I have seen it repeatedly/regularly happening
 within several seconds.


This is something we monitor fairly closely. The average lifetime of an idle
VM varies as the load across App Engine varies, but they do not timeout
within several seconds. One thing you might be seeing is that a burst of
several requests can cause more than one VM to be loaded simultaneously.


 I've avoided (so far) the auto-ping approach; your idea to auto-ping
 only when a user is on a page is intriguing.  Still wasteful and
 wrong, but perhaps necessary.


Sending a single ping a few seconds ahead of time for a user is very low
waste.


 Yes, I have voted for the paid warm instance :-)

 Finally, I don't understand how I can significantly reduce my warm up
 time. I suppose I could split each page into a separate app.yaml
 handler (already done for admin versus user tasks), but then the user
 would even more certainly run into startup issues when navigating
 within the site.  Besides, most of the time is spent importing Django
 and system stuff I can't control.


You can control whether or not you use Django. I also don't understand how
splitting your app into separate handlers would cause more startup issues
for you.


 The only reason I'm using Dango (0.96) is for translations ... is
 there a built-in way to handle translations via webapp?


Sorry, I'm not that familiar with what's available for Python, but my
understanding is that Django is aggressive about up front initialization.

On Dec 9, 9:26 am, Toby Reyelts to...@google.com wrote:
  Responses inline.
 
  On Sun, Dec 6, 2009 at 7:49 PM, Devel63 danstic...@gmail.com wrote:
   Toby, you write that it doesn't usually pay to optimize loading
   requests.
 
   I agree with this whole-heartedly when you have your own server, and
   only load once per day or month.  It's probably true using GAE when
   you have 100K+ page views per day.
 
  I think there's a misunderstanding here. What I said was that it's not
 worth
  optimizing loading requests in regards to quota. Latency is a separate
  concern.
 
   But for lower-volume web sites, GAE performance is atrocious.  In my
   personal case, we have optimized in all sorts of ways (js
   minification, liberal use of memcache, image sprites, sticking with
   Django 0.96, etc.) ... but the typical user experience is quite poor.
   It takes 3-10 seconds for the first page to load, and then often the
   instance is swapped out while the user reads the current page, so that
   the next request experiences the same thing.   If the app is warm,
   performance is fine.
 
  If your VM is timing out while a user is actively visiting the site, then
  your site is extremely low traffic. VM timeouts are measured on the order
 of
  minutes, not seconds. So, for example, that means that you didn't receive
  any traffic to your VM at all for several minutes between the time the
 user
  fetched the first and second pages.
 
   Maybe this gets appreciably better as traffic improves, but of course,
   I can't see that at present.
 
  Yes, as stated above, VMs are not aggressively collected. In the normal
  case, if you have an active user of your website, you shouldn't see a
  cold-start per request. Maybe in your particular case you can
 asynchronously
  ping your backend (for example, with an AJAX request) a few seconds
 before
  they continue onto the next page?
 
  I love GAE in theory, but it's getting
 
   harder to ignore the reality of low-volume performance.
 
  As stated above, I think you're falling into a particularly bad extreme
  (continuous cold requests for an active user). This might require some
  creativity (for example, as above) to work around.
 
  In terms of speeding up the loading request itself, the good news that
 the
  bulk of of that time is directly under your control. As an existence
 proof
  of this, you should be able to write a Hello World python app that
  responds from a cold start on the order of 100ms. This means you might
 try
  doing things like paring down the dependencies that you load on cold
  requests. You can also take advantage of the fact that requests for
 static
  content bypass your VM and are never cold. So, for example, you can
 serve
  a page that is comprised mostly of static content almost instantly, and
 let
  it make AJAX requests to asynchronously fill in its dynamic content as
 your
  VM warms up.
 
  If you'd rather just pay to have us maintain a warm VM for you, you can
 vote
  on that issue.
 
   On Dec 4, 3:38 pm, Toby Reyelts to...@google.com wrote:
On Oct 23, 3:02 pm, bugaco ice...@gmail.com wrote:
 
 I had a bit weird experience with this...
 
 So I wrote app (http://analytics.bugaco.com) that runs on App
 Engine.
 Than I looked at the request logs to see how it is running.
 Request logs 

Re: [google-appengine] Re: Tragedy of the Commons, and Cold Starts

2009-12-11 Thread Toby Reyelts
On Thu, Dec 10, 2009 at 8:19 AM, bFlood bflood...@gmail.com wrote:

 hi toby

 you said: VM timeouts are measured on the order of minutes, not
 seconds - I have not seen this in practice since over a year ago when
 GAE will still young. currently, every site I've measured is collected
 in seconds (10, maybe 20)


Do you have the appids of specific sites that you believe are timing out
every 10 seconds? This is not what we're seeing. Are you sure you aren't
seeing loading requests to several different VMs in parallel?

also: to write a Hello World python app that responds from a cold
 start on the order of 100m - again, I have not seen this in practice
 for quite some time. the simplest of python sites, with no imports and
 very little code seem to start in the  500ms  to 1s range (and
 sometimes, much longer). Please note Nick's post here, where he
 changed his original cold-start metrics: http://bit.ly/6Fsoxv


Nick's example is not Hello World. He's cold-starting his blogging app in
less than 500ms. (I personally believe that is quite acceptably responsive).

What I'm driving at is that there's a minimum startup time which you can not
control as a developer, and that startup time is very low for python  (on
the order of 100ms). Everything else is under your control: What
dependencies you have, what web framework you use, whether you push static
content and use ajax requests, etc...


 I'm now under the impression that slow VM startups is a GAE issue and
 while user imports are critical to keep them reasonable once they are
 started, there is a lot of overhead that is completely out of our
 control. The only way I've found to keep low traffic sites bearable is
 to use polling from the task queue, so IMO, the title of this post is
 quite appropriate

 cheers
 brian




 On Dec 9, 12:26 pm, Toby Reyelts to...@google.com wrote:
  Responses inline.
 
  On Sun, Dec 6, 2009 at 7:49 PM, Devel63 danstic...@gmail.com wrote:
   Toby, you write that it doesn't usually pay to optimize loading
   requests.
 
   I agree with this whole-heartedly when you have your own server, and
   only load once per day or month.  It's probably true using GAE when
   you have 100K+ page views per day.
 
  I think there's a misunderstanding here. What I said was that it's not
 worth
  optimizing loading requests in regards to quota. Latency is a separate
  concern.
 
   But for lower-volume web sites, GAE performance is atrocious.  In my
   personal case, we have optimized in all sorts of ways (js
   minification, liberal use of memcache, image sprites, sticking with
   Django 0.96, etc.) ... but the typical user experience is quite poor.
   It takes 3-10 seconds for the first page to load, and then often the
   instance is swapped out while the user reads the current page, so that
   the next request experiences the same thing.   If the app is warm,
   performance is fine.
 
  If your VM is timing out while a user is actively visiting the site, then
  your site is extremely low traffic. VM timeouts are measured on the order
 of
  minutes, not seconds. So, for example, that means that you didn't receive
  any traffic to your VM at all for several minutes between the time the
 user
  fetched the first and second pages.
 
   Maybe this gets appreciably better as traffic improves, but of course,
   I can't see that at present.
 
  Yes, as stated above, VMs are not aggressively collected. In the normal
  case, if you have an active user of your website, you shouldn't see a
  cold-start per request. Maybe in your particular case you can
 asynchronously
  ping your backend (for example, with an AJAX request) a few seconds
 before
  they continue onto the next page?
 
  I love GAE in theory, but it's getting
 
   harder to ignore the reality of low-volume performance.
 
  As stated above, I think you're falling into a particularly bad extreme
  (continuous cold requests for an active user). This might require some
  creativity (for example, as above) to work around.
 
  In terms of speeding up the loading request itself, the good news that
 the
  bulk of of that time is directly under your control. As an existence
 proof
  of this, you should be able to write a Hello World python app that
  responds from a cold start on the order of 100ms. This means you might
 try
  doing things like paring down the dependencies that you load on cold
  requests. You can also take advantage of the fact that requests for
 static
  content bypass your VM and are never cold. So, for example, you can
 serve
  a page that is comprised mostly of static content almost instantly, and
 let
  it make AJAX requests to asynchronously fill in its dynamic content as
 your
  VM warms up.
 
  If you'd rather just pay to have us maintain a warm VM for you, you can
 vote
  on that issue.
 
 
 
   On Dec 4, 3:38 pm, Toby Reyelts to...@google.com wrote:
On Oct 23, 3:02 pm, bugaco ice...@gmail.com wrote:
 
 I had a bit weird experience with this...
 
 So I wrote app 

[google-appengine] Re: Data Store Timeouts that are Random

2009-12-11 Thread Ray Malone
Thank you very much.   I've added it to my project and hope it helps.
It's embarrassing for our clients to see these random errors.

On Dec 5, 10:08 pm, Robin B robi...@gmail.com wrote:
 Spurious DB Timeouts are pretty common on GAE.  If you want to
 autoretry timeouts, use this:

 http://appengine-cookbook.appspot.com/recipe/autoretry-datastore-time...

 Robin

 On Dec 4, 2:19 pm, gae123 pa...@gae123.com wrote:



  Same experience here. In fact, a user just yesterday called me about
  this, I looked at the logs and it was a timeout... I have now removed
  the Sever Error message and replaced it with a very polite these
  things happen just retry in a few seconds and only call me if it
  happens every time

  On Dec 4, 10:40 am, Ray Malone rayish...@gmail.com wrote:

   My app has been running for almost a year now and runs great.  The
   speed of app engine compared to hosting anywhere else has been great.
   However, I get random timeouts for simple gets.  These queries are the
   exact same that run all day long several time a day and as you can see
   from my logs there was no activity between for over 20 seconds before
   or after the issue.

   12-04 09:24AM 57.445 /find?city=baltimorerss=1 200 338ms 390cpu_ms
   255api_cpu_ms 0kb TwitterFeed 3,gzip(gfe),gzip(gfe)
   12-04 09:24AM 36.325 /find?city=martinsburgrss=1 500 4651ms 575cpu_ms
   12api_cpu_ms 1kb TwitterFeed 3,gzip(gfe),gzip(gfe)
   12-04 09:20AM 53.315 / 973ms 745cpu_ms 629api_cpu_ms 0kb Mozilla/4.0
   (compatible; MSIE 5.01; Windows NT 5.0),gzip(gfe)

--

You 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] Model attribute help

2009-12-11 Thread hyn
Let's say I have a Tag(db.Model) class and a Content(db.Model)
I'm trying to create a list of Tags as an attribute of Content.
How do I go about doing this?

Accoring to the docs ListProperty item_type must be one of the
Property subclasses, so I can't use my Tag class as item_type.

I'm new to Python and server side in general... I appreciate your
help.

--

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




[google-appengine] Hello, I am sorry that I have some problem

2009-12-11 Thread 颖 陈
  I am sorry that my telephone number(+8615992688659) has a wrong
use,The phone number has been sent too many messages or has already
been used to confirm an account.  but the fact is I have not verify
my account by SMS successful. because when I have received the SMS,I
have been waiting more than 2 hours and I have closed the web page.
I just want to know  whether Google can tell me how to solve the
problem about this telephone number,and I can verify my account by
this number.  I also don't want to use my brother's number to lie to
you.  So,please help me and I am waiting for your answer. It's my mail
in below:

gmail: chenying5...@gmail.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] Re: Staying authenticated

2009-12-11 Thread Benjamin
Thanks for your reply Ikai,

I understand what you're saying - my question is that i'm trying to
allow a user who is logged into their google doc speadsheet and use
=ImportData(http://app.myapp.com/Service/value;)  in a cell to pull
in data from an app engine service.  This works just fine - i was
hoping that
since the user logged into the app engine app and then logged into the
google doc that the authentication cookie they got for that session
would somehow get passed along in the header of data request.  It
seems like, having logged into both places, the browser session stays
authenticated to both places, but the importdata request doesn't
provide the header.

It makes sense that this dosn't work - but just in case there is a way
to do this - here is the scenario. Say http://app.myapp.com/Service/value
is a rest service that calls a function that returns true or false if
the user is logged in

1. user logs into the app engine app.myapp.com
2. user navigates to their google docs and logs into that.
3. user navigates to http://app.myapp.com/Service/value - returns true
4. user navigates back to spreadsheet and puts this value in a cell
ImportData(http://app.myapp.com/Service/value;)
5. returns false.

just seems like the authentication cookie isn't available from the doc



On Dec 10, 8:02 pm, Ikai L (Google) ika...@google.com wrote:
 Benjamin,

 If I understand you correctly, what you are seeing is that a user that logs
 into your application will have to log in again for Google Docs. This sounds
 like expected behavior. A user may wish to log in to an application without
 logging into their docs account. Logging into an App Engine application with
 a Google login does not log a user into any Google services automatically.





 On Wed, Dec 9, 2009 at 2:02 PM, Benjamin bsaut...@gmail.com wrote:
  I'm struggling with behavior with authentication. A user logs into my
  app engine app through normal means and from that point on

         public static User getUser() {
                 com.google.appengine.api.users.UserService u =
  UserServiceFactory.getUserService();
                 return u.getCurrentUser();
         }

  returns a valid user object. If the user opens a new browser window
  and types in the url of a service on my app they get data back and the
  above function keeps returning the user. If they open a google doc
  associated with their user id, and paste that url in a importweb
  function, the app returns a not logged in exception.

  the way i see it, they are logged in to the point where they can work
  with the app engine app and open their google docs, why would the user
  service call return not logged in when responding to a http request
  from a google doc spreadhsheet.

  So you're logged in and can run the app, open your google docs, past
  this url in a browser and get XML

 http://app.myapp.com/Service/value

  but in a google doc, the same url returns not logged in...

  =ImportData(http://app.myapp.com/Service/value;)

  --

  You 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

--

You 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] Model attribute help

2009-12-11 Thread Robert Kluin
You could add a StringListProperty called tags to the content model.  Or,
when you create a new Tag you could make a Content  model its parent. So,

class Content(db.Model):
   content = db.TextProperty()
   tags = StringListProperty()


or,
class Content(db.Model):
   content = db.TextProperty()

class Tags(db.Model):
   tags = StringListProperty()


content  = Content(content=Some content)
content.put()

tags = Tags(tags=['tag1','tag2','tag3'], parent=content)
tags.put()


There are a number of other ways to handle tags as well.  It just depends on
your intended usage.  If you search the list you will find some recent posts
referencing a taggable mixin.  I have not used it yet, but it looks
interesting.

Robert




On Fri, Dec 11, 2009 at 11:52 AM, hyn hisaoki.nish...@gmail.com wrote:

 Let's say I have a Tag(db.Model) class and a Content(db.Model)
 I'm trying to create a list of Tags as an attribute of Content.
 How do I go about doing this?

 Accoring to the docs ListProperty item_type must be one of the
 Property subclasses, so I can't use my Tag class as item_type.

 I'm new to Python and server side in general... I appreciate your
 help.

 --

 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 To post to this group, send email to google-appeng...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine+unsubscr...@googlegroups.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] Hello, I am sorry that I have some problem

2009-12-11 Thread Ikai L (Google)
Can you add your request to the SMS waitlist?

https://appengine.google.com/waitlist/sms_issues

On Fri, Dec 11, 2009 at 5:39 AM, 颖 陈 chenying5...@gmail.com wrote:

  I am sorry that my telephone number(+8615992688659) has a wrong
 use,The phone number has been sent too many messages or has already
 been used to confirm an account.  but the fact is I have not verify
 my account by SMS successful. because when I have received the SMS,I
 have been waiting more than 2 hours and I have closed the web page.
 I just want to know  whether Google can tell me how to solve the
 problem about this telephone number,and I can verify my account by
 this number.  I also don't want to use my brother's number to lie to
 you.  So,please help me and I am waiting for your answer. It's my mail
 in below:

 gmail: chenying5...@gmail.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.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

--

You 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] RSS feed on Google App Engine for java

2009-12-11 Thread Rahul Jha
Can some one help me setting up RSS feed on google app engine java
Any related code will be of great help.

Regards
Rahul Jha

--

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




[google-appengine] Re: Data Store Timeouts that are Random

2009-12-11 Thread Al Murauski
Is there a Java solution? I'm facing the same sporadic datastore
timeouts.
Thanks in advance.

On 6 дек, 05:08, Robin B robi...@gmail.com wrote:
 Spurious DB Timeouts are pretty common on GAE.  If you want to
 autoretry timeouts, use this:

 http://appengine-cookbook.appspot.com/recipe/autoretry-datastore-time...

 Robin

 On Dec 4, 2:19 pm, gae123 pa...@gae123.com wrote:



  Same experience here. In fact, a user just yesterday called me about
  this, I looked at the logs and it was a timeout... I have now removed
  the Sever Error message and replaced it with a very polite these
  things happen just retry in a few seconds and only call me if it
  happens every time

  On Dec 4, 10:40 am, Ray Malone rayish...@gmail.com wrote:

   My app has been running for almost a year now and runs great.  The
   speed of app engine compared to hosting anywhere else has been great.
   However, I get random timeouts for simple gets.  These queries are the
   exact same that run all day long several time a day and as you can see
   from my logs there was no activity between for over 20 seconds before
   or after the issue.

   12-04 09:24AM 57.445 /find?city=baltimorerss=1 200 338ms 390cpu_ms
   255api_cpu_ms 0kb TwitterFeed 3,gzip(gfe),gzip(gfe)
   12-04 09:24AM 36.325 /find?city=martinsburgrss=1 500 4651ms 575cpu_ms
   12api_cpu_ms 1kb TwitterFeed 3,gzip(gfe),gzip(gfe)
   12-04 09:20AM 53.315 / 973ms 745cpu_ms 629api_cpu_ms 0kb Mozilla/4.0
   (compatible; MSIE 5.01; Windows NT 5.0),gzip(gfe)

--

You 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 do i flush the memcache on production?

2009-12-11 Thread Evgeny
I can do it from my console.. but how can i do it from production? am
i missing something?

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: Property order in indexes

2009-12-11 Thread Sharp-Developer.Net
Nick, I was assuming that when we do queries framework will check
WHERE condition and make request to datastore using index with
properties alphabetically sorted.

So if I query
  Foo.all().filter(col1, 1).filter(col2, 2)
or
  Foo.all().filter(col2, 1).filter(col1, 2)

it will use the same index:
-kind: Foo
properties:
 - name: col1
 - name: col2

Isn't it the case?
--
Alex

On Dec 11, 4:03 pm, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi Karthi,

 On Thu, Dec 10, 2009 at 2:22 PM, Karthi
 karthi.palanis...@orangescape.comwrote:





  hi,
    I am facing problem in index, i already have an index
  - kind: PrimaryData
   properties:
   - name: CellMetadata_9fd8bfa0_2694_4e1a_9d9e_81216f96998d
   - name: CellMetadata_3b80aec6_b55c_4ece_a5e7_4ee06836c4c9
   - name: SheetMetadataId
  but it is throwing error no matching index found.
  - kind: PrimaryData
   properties:
   - name: CellMetadata_9fd8bfa0_2694_4e1a_9d9e_81216f96998d
   - name: SheetMetadataId
   - name: CellMetadata_3b80aec6_b55c_4ece_a5e7_4ee06836c4c9

  Is order of index is need to be preserved.

 These two indexes are not equivalent. Properties are ordered.

 -Nick Johnson







  -
  Karthi

  --

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

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

--

You 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: Datastore down: _ToDatastoreError(err)

2009-12-11 Thread Kjartan
Yes, I had this problem earlier today, but it resolved it self in just
a few minutes.  I'm experiencing some other problems as well,
incorrect calculations at random and such...which is very strange.

KS

On Dec 11, 8:05 am, fedestabile stabile.feder...@gmail.com wrote:
 Hi,

 does anyone else is having problems with the Datastore? raising
 _ToDatastoreError(err)?

 Also, does anyone know how to report an issue to the System 
 Statushttp://code.google.com/status/appengine;?

 Thanks,
 Fred

--

You 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] RSS feed on Google App Engine for java

2009-12-11 Thread OvermindDL1
On Fri, Dec 11, 2009 at 11:12 AM, Rahul Jha rahul@tetrastorm.com wrote:
 Can some one help me setting up RSS feed on google app engine java
 Any related code will be of great help.

RSS is a very simple format, just stream out your RSS text with the
appropriate content type header, very simple.

--

You 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: Uploading application using proxy with authentication

2009-12-11 Thread deepesh reja
Please help me

On Dec 11, 12:43 am, deepesh reja drejao...@gmail.com wrote:
 I have my development environment behind the http proxy which requires
 authentication. A method is given 
 onhttp://code.google.com/appengine/docs/java/tools/uploadinganapp.html#...
 for uploading the application, but this doesn't tell me how to give
 authentication. Error is:

 Unable to update app: Error posting to 
 URL:http://appengine.google.com/api/appversion/create?app_id=my-basicver...
 407 Proxy Authentication Required 

 Tell me what to do.
 Thank you

--

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




Re: [google-appengine] 2 memcache.incr questions

2009-12-11 Thread Ikai L (Google)
INCR is atomic. An application should not be connected to multiple memcache
servers because key sharding will cause certain keys to have an affinity for
certain instances of memcache.

Expiration works in Memcache lazily if items have not been evicted from the
cache in according with LRU (Least Recently Used): on a GET of a value, the
client checks the expiration to see if the item has expired or not. If so,
the value is not returned to the user and is explicitly expired. Incremented
values are stored in Memcache as Strings, so in your example, what *should*
happen is that an expiration is set such that when you do a GET, if the
value is past its expiration time, it will not return. Have you been seeing
different behavior in your testing?

On Thu, Dec 10, 2009 at 12:26 PM, N Panar infinityminusn...@gmail.comwrote:

 memcache.incr() is supposed to increment a key transactionally, so
 that two clients can't clobber each other ... but can the application
 expect to be connected to ever be connected to more than one memcache
 server that each have different values? (it is expected that is
 possible that it will be connected to zero memcache servers).


 Also, how does expiration interact with incr()? There isn't a time
 flag for incr(), but what happens if I add the key with another call
 rather than using the initial_value flag, like so:

memcache.add('rlcnt-%s-%s' % (op, ip_h), 0, time=60*90)
newcnt = memcache.incr('rlcnt-%s-%s' % (op, ip_h))

 --

 You 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

--

You 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: Tragedy of the Commons, and Cold Starts

2009-12-11 Thread Devel63
Toby,

Here's a site that gets almost no traffic (not yet publicized):
www.lifehints.com

Try it Monday morning at 9am PST and see how quickly it times out.
I've been seeing it apparently time out in a few seconds during the
workday.  I suppose it's possible that what I'm seeing is Google
firing up another instance, but that sounds unlikely given that
there's no one else on the site most of the time.

On a Friday evening (now), it's staying warm for quite some time.


On Dec 11, 8:57 am, Toby Reyelts to...@google.com wrote:
 On Thu, Dec 10, 2009 at 8:19 AM, bFlood bflood...@gmail.com wrote:
  hi toby

  you said: VM timeouts are measured on the order of minutes, not
  seconds - I have not seen this in practice since over a year ago when
  GAE will still young. currently, every site I've measured is collected
  in seconds (10, maybe 20)

 Do you have the appids of specific sites that you believe are timing out
 every 10 seconds? This is not what we're seeing. Are you sure you aren't
 seeing loading requests to several different VMs in parallel?

 also: to write a Hello World python app that responds from a cold

  start on the order of 100m - again, I have not seen this in practice
  for quite some time. the simplest of python sites, with no imports and
  very little code seem to start in the  500ms  to 1s range (and
  sometimes, much longer). Please note Nick's post here, where he
  changed his original cold-start metrics:http://bit.ly/6Fsoxv

 Nick's example is not Hello World. He's cold-starting his blogging app in
 less than 500ms. (I personally believe that is quite acceptably responsive).

 What I'm driving at is that there's a minimum startup time which you can not
 control as a developer, and that startup time is very low for python  (on
 the order of 100ms). Everything else is under your control: What
 dependencies you have, what web framework you use, whether you push static
 content and use ajax requests, etc...

  I'm now under the impression that slow VM startups is a GAE issue and
  while user imports are critical to keep them reasonable once they are
  started, there is a lot of overhead that is completely out of our
  control. The only way I've found to keep low traffic sites bearable is
  to use polling from the task queue, so IMO, the title of this post is
  quite appropriate

  cheers
  brian

  On Dec 9, 12:26 pm, Toby Reyelts to...@google.com wrote:
   Responses inline.

   On Sun, Dec 6, 2009 at 7:49 PM, Devel63 danstic...@gmail.com wrote:
Toby, you write that it doesn't usually pay to optimize loading
requests.

I agree with this whole-heartedly when you have your own server, and
only load once per day or month.  It's probably true using GAE when
you have 100K+ page views per day.

   I think there's a misunderstanding here. What I said was that it's not
  worth
   optimizing loading requests in regards to quota. Latency is a separate
   concern.

But for lower-volume web sites, GAE performance is atrocious.  In my
personal case, we have optimized in all sorts of ways (js
minification, liberal use of memcache, image sprites, sticking with
Django 0.96, etc.) ... but the typical user experience is quite poor.
It takes 3-10 seconds for the first page to load, and then often the
instance is swapped out while the user reads the current page, so that
the next request experiences the same thing.   If the app is warm,
performance is fine.

   If your VM is timing out while a user is actively visiting the site, then
   your site is extremely low traffic. VM timeouts are measured on the order
  of
   minutes, not seconds. So, for example, that means that you didn't receive
   any traffic to your VM at all for several minutes between the time the
  user
   fetched the first and second pages.

Maybe this gets appreciably better as traffic improves, but of course,
I can't see that at present.

   Yes, as stated above, VMs are not aggressively collected. In the normal
   case, if you have an active user of your website, you shouldn't see a
   cold-start per request. Maybe in your particular case you can
  asynchronously
   ping your backend (for example, with an AJAX request) a few seconds
  before
   they continue onto the next page?

   I love GAE in theory, but it's getting

harder to ignore the reality of low-volume performance.

   As stated above, I think you're falling into a particularly bad extreme
   (continuous cold requests for an active user). This might require some
   creativity (for example, as above) to work around.

   In terms of speeding up the loading request itself, the good news that
  the
   bulk of of that time is directly under your control. As an existence
  proof
   of this, you should be able to write a Hello World python app that
   responds from a cold start on the order of 100ms. This means you might
  try
   doing things like paring down the dependencies that you load on cold
   requests. You can also 

[google-appengine] Re: CancelledError: The API call taskqueue.Add() was explicitly cancelled.

2009-12-11 Thread Alex Popescu
On Dec 10, 1:44 pm, Alex Popescu the.mindstorm.mailingl...@gmail.com
wrote:
 Hi guys,

 Can anyone explain the meaning of the CancelledError? I read the
 documentation and I must confess that I'm not very sure what triggers
 it (at least I don't agree it is explicitly).

 Here is the scenario in which I'm seeing this error:

 - I have a set of tasks that are executed

 - the tasks are expensive so sometimes they may reach the
 DeadlineExceededError

 - in case the DeadlineExceededError occurs, I am attempting to create
 a new task to signal that processing was not completed and should
 continue at a later moment

 While I could probably code around this issue, it will definitely make
 my app code more messy and complex. Right now things are clear:

 - there is a list of objects that must be processed

 - once new objects get appended to that list a new task is created for
 taking care of them

 - if the task cannot empty the list of objects to be processed it is
 scheduling a new task to continue the processing later

 Any comments, ideas, help are much appreciated,

 ./.alex

Guys, it is hard to believe that nobody knows what this exception
really means or how my approach above should be changed to go around
such issues.

./.alex

--

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