[appengine-java] how to encrypt a blob before uploading via blobstoreservice

2010-03-03 Thread Valentino Hankypants
hello together,

i read and tried the following codepart out of the google.code...
(http://code.google.com/appengine/docs/java/blobstore/overview.html)
with the given code out of this example the upload of the blob happens
immediately after clicking the submit button.

i want to encrypt the file to upload before it will be saved in the
storage via BlobstoreService.createUploadUrl(). How can this be done?

greatz
flo

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



[appengine-java] Re: App Engine cold starts and overly aggressive cycling

2010-03-03 Thread SRF
I'm also seeing my app being cycled too quickly.

- What is your application ID?

wicket-gae-template

- How do you know it is being cycled out? You'll need to insert some
code
that only gets called when the app cold starts.

startup is logged in a filter init() method; also logged in a static
initializer just to be sure

- How much time of inactivity does it take before your application is
cycled
out?

a couple of minutes, sometimes less

- What time or days does this seem to happen?

all the time

- What frameworks or libraries are you loading?

wicket

On Jan 15, 6:32 pm, Ikai Lan i...@google.com wrote:
 Hey everybody,

 We've been seeing more and more reports of applications being cycled out
 overly aggressively, resulting in some folks implementing (discouraged)
 workarounds to keep their application from being cycled out. The primary
 symptom of this problem is that your application will see lots of loading
 requests that fire up a new JVM, which, as many of you know can take
 anywhere from a few seconds with naked servlets to as much as twenty seconds
 when loading something like Spring MVC, JRuby on Rails or Grails.

 In theory, there is enough capacity such that as long as you get some
 traffic every few hours, you should not be getting cycled out, but we have
 been seeing reports of applications being cycled after only a minute or
 less. To help us figure out if these are app specific issues or App Engine
 issues, can you post the following information if you believe this is
 happening to you?

 - What is your application ID?
 - How do you know it is being cycled out? You'll need to insert some code
 that only gets called when the app cold starts.
 - How much time of inactivity does it take before your application is cycled
 out?
 - What time or days does this seem to happen?
 - What frameworks or libraries are you loading?

 Any other information you can provide would be helpful.

 --
 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] How do you transfer a ListJdoObject from server to client?

2010-03-03 Thread Chummar Maly
 All you need to do is put this code in a servlet and then call the servlet
as the button's action. Having said that is always good to learn the basics.
 Here is a link for app engine JDO implementation :
http://code.google.com/appengine/docs/java/gettingstarted/usingdatastore.html.
 The easiest way to learn JDO is to use the sample app. called guestbook and
see how it works.
Best of luck.

Maly
http://servetube.appspot.com

On Wed, Mar 3, 2010 at 2:04 AM, Stephen Wills stephenmwi...@gmail.comwrote:

 Hello,
 I have been wanting to know how to do this for a while now, but don't know
 where to find information on how to do this. I simply want to know how to
 setup my project so I can have a JDO object in the server package (so I
 can use classes like com.google.appengine.api.datastore.Key and
 javax.jdo.listener.StoreCallback), and request a list of those objects from
 my client side code. Currently I store my JDO object in my client package.
 So when a user clicks a button to retrieve all the People objects I can get
 back a ListPeople. I'm sure these are some fundamentally basic steps I
 just don't know to acheive. Do you need a persistent object on the server
 side and a transfer object on the client? If so how do you send the data to
 the transfer object. Thanks

 currently have: (and want it instead in com.myapp.server but also to
 retrieve say ListPeople )
 in com.myapp.client

 import javax.jdo.annotations.IdGeneratorStrategy;
 import javax.jdo.annotations.IdentityType;
 import javax.jdo.annotations.PersistenceCapable;
 import javax.jdo.annotations.Persistent;
 import javax.jdo.annotations.PrimaryKey;

 import com.google.gwt.user.client.rpc.IsSerializable;

 @PersistenceCapable(identityType = IdentityType.APPLICATION)
 public class People implements IsSerializable {

 @PrimaryKey
 @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
 private Long pKeyRiderID;

 @Persistent
 private String lastName;
 ...


 currently in com.myapp.server:
 private ListPeople get() {
 PersistenceManager pm = PMF.get().getPersistenceManager();

 ListPeople result = null;
 try {
 String q = select from  + People.class.getName();
 result = new ArrayListPeople((ListPeople)
 pm.newQuery(q).execute());
 } finally {
 pm.close();
 }
 return result;
 }

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




-- 
Chummar Maly
http://www.tricolormusic.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.



[appengine-java] How to get application version from within code ?

2010-03-03 Thread JD
Is there anyway to get the application version  (from appengine-
web.xml) ?

In python the version is put in os environment, wondering if java has
something similar.

Thx

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



Re: [appengine-java] How to get application version from within code ?

2010-03-03 Thread Sandeep Sathaye
Try

com.google.apphosting.api.ApiProxy.getCurrentEnvironment()

On Wed, Mar 3, 2010 at 9:04 AM, JD liva...@gmail.com wrote:

 Is there anyway to get the application version  (from appengine-
 web.xml) ?

 In python the version is put in os environment, wondering if java has
 something similar.

 Thx

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



-- 
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: Eclipse hangs at startup, Ubuntu

2010-03-03 Thread Rajeev Dayal
Yeah, it is only a guess that the version control plugins are causing some
sort of interference. Sorry that you had to go through this. The changes in
GPE 1.3 should alleviate this issue.

On Tue, Mar 2, 2010 at 2:27 PM, Jeff Schnitzer j...@infohazard.org wrote:

 The projects that cause the problem started life as Subclipse projects
 but I were converted to Subversive with the detach, share process.  My
 eclipse install is a new one with Subversive installed but not
 Subclipse.  However, the conversion to Subversive happened quite a
 while before the OS upgrade.

 I finally couldn't take it anymore and created a whole new workspace
 from scratch.  A very painful solution.

 Jeff

 On Tue, Mar 2, 2010 at 8:17 AM, Rajeev Dayal rda...@google.com wrote:
  That message corresponds to GPE's attempt to update your project's
  war/WEB-INF/lib folder on project classpath initialization, which occurs
 on
  Eclipse startup.
  Sometimes, problems can occur if there is some sort of lock being held on
  the files in that directory (such as by a version control plugin). Do you
  have any version control plugins installed in Eclipse?
  We've actually made some changes so that the update of war/WEB-INF/lib
  occurs on classpath change instead of classpath init. That should
 alleviate
  this sporadic issue. The fix will be available in a forthcoming version
 of
  GPE.
 
  On Mon, Mar 1, 2010 at 2:34 AM, Jeff Schnitzer j...@infohazard.org
 wrote:
 
  Did anyone ever resolve this in a consistent way?
 
  I recently upgraded from OSX 10.5 to 10.6, and now my Eclipse (Cocoa
  64-bit, as I was using before) hangs on most startups.  I see the
  Updating MyProje... - 1.3.1 in the bottom right corner and the
  entire window is locked up.  Only way out is to Force Quit.
 
  It doesn't happen on every startup.  I can often get it working after
  a few tries.
 
  This was a brand-new OS install on a new HD.  I did, however, copy my
  eclipse directory over by hand, and the workspace was imported as part
  of my user data.
 
  Jeff
 
  On Jan 14, 12:49 am, pgoetz pgo...@pgoetz.de wrote:
   Hi group,
  
   I have a problem with the Google Eclipse Plugin. I am developing an
   application for the Google App Engine (Eclipse JEE Galileo, Google
   Plugin 1.2.0, Google App Engine SDK 1.3.0, OS Ubuntu 9.10). Yesterday
   I reinstalled the Google Plugin and Google App Engine SDK after I got
   the same problem with an older version of the SDK.
   Today I started Eclipse and after the workspace comes up, I see the
   message Updating myproject/...ne - 1.3.0 in the status bar of
   Eclipse. I suspect that it means Updating myproject/Google App
   Engine - 1.3.0. With this message my whole Eclipse freezes and I can
   only kill the process.
   Does anybody know why that happens? And how can I prevent the plugin
   from performing the update?
   I had the same problem yesterday with the old setup and the solution
   was to remove the folders for the plugin from Eclipse plugins and
   features directories and to reinstall the plugin. Then it worked
   yesterday and crashed this morning.
  
   Thank you very much for your help!
  
   Greetings,
  
   Peter
 
  --
  You received this message because you are subscribed to the Google
 Groups
  Google App Engine for Java group.
  To post to this group, send email to
  google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
 
  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine for Java group.
  To post to this group, send email to
 google-appengine-j...@googlegroups.com.
  To unsubscribe from this group, send email to
  google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
  For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.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: Request was aborted after waiting too long to attempt to service your request.

2010-03-03 Thread Don Schwarz
Here's some good advice:

http://googleappengine.blogspot.com/2009/12/request-performance-in-java.html

On Tue, Mar 2, 2010 at 5:41 PM, Kroc vincent.legen...@gmail.com wrote:


  I have found I usually get this error when my app is loading and takes
  more than 10 seconds while another request come in.  Does your app
  take longer than 10 seconds to load?

 Hum yes it may be this...
 But I don't know how to measure the loading time and how to reduce it.
 If a remove some useless jar file ?

 Vincent

 --
 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: App Engine cold starts and overly aggressive cycling

2010-03-03 Thread Wong

 I am experiencing the same problem. I am using Spring MVC. When is
the expected date for solution? I am waiting for solution for long. If
this problem persists, I have to switch to other platform.



On Mar 3, 6:41 pm, SRF srfar...@gmail.com wrote:
 I'm also seeing my app being cycled too quickly.

 - What is your application ID?

 wicket-gae-template

 - How do you know it is being cycled out? You'll need to insert some
 code
 that only gets called when the app cold starts.

 startup is logged in a filter init() method; also logged in a static
 initializer just to be sure

 - How much time of inactivity does it take before your application is
 cycled
 out?

 a couple of minutes, sometimes less

 - What time or days does this seem to happen?

 all the time

 - What frameworks or libraries are you loading?

 wicket

 On Jan 15, 6:32 pm, Ikai Lan i...@google.com wrote:

  Hey everybody,

  We've been seeing more and more reports of applications being cycled out
  overly aggressively, resulting in some folks implementing (discouraged)
  workarounds to keep their application from being cycled out. The primary
  symptom of this problem is that your application will see lots of loading
  requests that fire up a new JVM, which, as many of you know can take
  anywhere from a few seconds with naked servlets to as much as twenty seconds
  when loading something like Spring MVC, JRuby on Rails or Grails.

  In theory, there is enough capacity such that as long as you get some
  traffic every few hours, you should not be getting cycled out, but we have
  been seeing reports of applications being cycled after only a minute or
  less. To help us figure out if these are app specific issues or App Engine
  issues, can you post the following information if you believe this is
  happening to you?

  - What is your application ID?
  - How do you know it is being cycled out? You'll need to insert some code
  that only gets called when the app cold starts.
  - How much time of inactivity does it take before your application is cycled
  out?
  - What time or days does this seem to happen?
  - What frameworks or libraries are you loading?

  Any other information you can provide would be helpful.

  --
  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] Forwarding a request to a external URL preserve IP - Can it be done?

2010-03-03 Thread mscwd01
Hey,

Is there a method in which I can receive a request and then forward
the same request to an external URL (not redirect)?

Importantly, the IP address of the device which made the initial
request MUST be preserved. It must look, to the external URL, that the
request came from the device which made the initial request and NOT
from the app engine.

The reason I need to do this is the external URL returns data whose
representation changes regularly. My app engine application will parse
this data and return it to my Android application in a format it
expects.

So is this at all possible?

Thanks

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



[appengine-java] App Engine Plugin for Eclipse Stuck During Install Ubuntu 9.10

2010-03-03 Thread JD
I try to install the plugin for eclipse through eclipse's install new
software, however after it resolves dependencies and asks me to accept
the license, it hangs at 4% during the install.  Eclipse itself
doesn't hang, but the install never moves past 4%.  I've let it sit on
the install for about an hour now, but no progress is ever made.
Anyone else having this issue with eclipse and ubuntu 9.10?

-- 
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] CPU Limits using App for large scale processing

2010-03-03 Thread Graham
I've got a large computational problem that can be done in small
chunks 10sec and where the data required for each portion of the
simulation is very minimal.

What I was hoping to do was dump a whole bunch of tasks in a Task
Queue and then let the app engine scale up so that it can tear through
that queue.

Unfortunately i'm running into a problem where if i let the queue run
too quickly then my log fills up with stuff like

Request was aborted after waiting too long to attempt to service your
request. Most likely, this indicates that you have reached your
simultaneous dynamic request limit. This is almost always due to
excessively high latency in your app. Please see
http://code.google.com/appengine/docs/quotas.html for more details.


I have a paid account, so it seems that from the quota documents I
should be able to consume 72 CPU-minutes/minute - yet when i look in
my dashboard it rarely gets much about 3 cpu-seconds/second.

Unfortunately if I put shorter requests in the queue then i run into
the limit of 20 queue requests per second, and it's more efficient for
me to keep my requests in the 10 second range.

What's the best way to make this consume more resources at a higher
rate?

thanks,
Graham

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



[appengine-java] Re: App Engine cold starts and overly aggressive cycling

2010-03-03 Thread Robert Lancer
Me too App ID ArachnoDB loading GData and its dependencies, happens
about every 2 minutes on average, I will add in a logger and follow up
but I can tell a load request from a normal request.

On Jan 15, 6:32 pm, Ikai Lan i...@google.com wrote:
 Hey everybody,

 We've been seeing more and more reports of applications being cycled out
 overly aggressively, resulting in some folks implementing (discouraged)
 workarounds to keep their application from being cycled out. The primary
 symptom of this problem is that your application will see lots of loading
 requests that fire up a new JVM, which, as many of you know can take
 anywhere from a few seconds with naked servlets to as much as twenty seconds
 when loading something like Spring MVC, JRuby on Rails or Grails.

 In theory, there is enough capacity such that as long as you get some
 traffic every few hours, you should not be getting cycled out, but we have
 been seeing reports of applications being cycled after only a minute or
 less. To help us figure out if these are app specific issues or App Engine
 issues, can you post the following information if you believe this is
 happening to you?

 - What is your application ID?
 - How do you know it is being cycled out? You'll need to insert some code
 that only gets called when the app cold starts.
 - How much time of inactivity does it take before your application is cycled
 out?
 - What time or days does this seem to happen?
 - What frameworks or libraries are you loading?

 Any other information you can provide would be helpful.

 --
 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] Access Failure when authenticating to Restful API

2010-03-03 Thread ljgarcia
Hello everybody,

I want to access Delicious via Resftul API http://delicious.com/help/api
so I am using a Restful Connection (RestConnection.java) and I get
this error:

java.security.AccessControlException: access denied
(java.net.NetPermission setDefaultAuthenticator)
at
java.security.AccessControlContext.checkPermission(AccessControlContext.java:
264)
at
java.security.AccessController.checkPermission(AccessController.java:
427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
532)
at com.google.appengine.tools.development.DevAppServerFactory
$CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
at java.net.Authenticator.setDefault(Authenticator.java:110)
at java.net.Authenticator.setDefault(Authenticator.java:110)
at
org.netbeans.saas.RestConnection.setAuthenticator(RestConnection.java:
69)
at
delicious.controller.AjaxController.divRetrieveTags(AjaxController.java:
36)
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:592)
at
com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
100)
at
org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:
34)
at org.directwebremoting.impl.DefaultRemoter
$1.doFilter(DefaultRemoter.java:427)
at
org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:
430)
at
org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:
282)
at
org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:
52)
at
org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:
101)
at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:
146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1093)
at
com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
51)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1084)
at
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
43)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1084)
at
com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
121)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1084)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
360)
at
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
216)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
405)
at
com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
70)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
139)
at com.google.appengine.tools.development.JettyContainerService
$ApiProxyHandler.handle(JettyContainerService.java:352)
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.content(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
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)

I already tried what says in 
http://code.google.com/intl/zh-HK/appengine/kb/java.html#googledata
but it did not work.

I also tried to connect out Google App Engine and the connection works
fine.

Any ideas?

Thanks so much in advanced.

Best,

LJ

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

[appengine-java] FinalizableReferenceQueue

2010-03-03 Thread dominity
Hi, guys.

Some times I can see I the log something like that:

#
I 03-03 09:00AM 17.033

com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue
$SystemLoader loadFinalizer: Not allowed to access system class
loader.

#
I 03-03 09:00AM 17.050

com.google.appengine.repackaged.com.google.common.base.internal.Finalizer
getInheritableThreadLocalsField: Couldn't access
Thread.inheritableThreadLocals. Reference finalizer threads will
inherit thread local values.

#
I 03-03 09:00AM 17.053

com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue
init: Failed to start reference finalizer thread. Reference cleanup
will only occur when new references are created.
java.lang.reflect.InvocationTargetException
at
com.google.appengine.runtime.Request.process-82241ba22a815a34(Request.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Method.java:43)
at
com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue.init(FinalizableReferenceQueue.java:
127)
at com.google.appengine.repackaged.com.google.common.collect.Interners
$WeakInterner.clinit(Interners.java:118)
at
com.google.appengine.repackaged.com.google.common.collect.Interners.newWeakInterner(Interners.java:
59)
at
com.google.appengine.repackaged.com.google.io.protocol.ProtocolSupport.clinit(ProtocolSupport.java:
55)
at com.google.apphosting.api.DatastorePb
$Query.init(DatastorePb.java:1185)
at com.google.apphosting.api.DatastorePb$Query
$1.init(DatastorePb.java:2677)
at com.google.apphosting.api.DatastorePb
$Query.clinit(DatastorePb.java:2677)
at
com.google.appengine.api.datastore.QueryTranslator.convertToPb(QueryTranslator.java:
28)
at
com.google.appengine.api.datastore.PreparedQueryImpl.convertToPb(PreparedQueryImpl.java:
151)
at
com.google.appengine.api.datastore.PreparedQueryImpl.runQuery(PreparedQueryImpl.java:
111)
at
com.google.appengine.api.datastore.PreparedQueryImpl.asQueryResultIterator(PreparedQueryImpl.java:
89)
at com.google.appengine.api.datastore.BasePreparedQuery
$2.iterator(BasePreparedQuery.java:45)
at com.google.appengine.api.datastore.BasePreparedQuery
$2.iterator(BasePreparedQuery.java:42)
at
org.datanucleus.store.appengine.query.RuntimeExceptionWrappingIterable.iterator(RuntimeExceptionWrappingIterable.java:
42)
at
org.datanucleus.store.appengine.query.LazyResult.init(LazyResult.java:
67)
at
org.datanucleus.store.appengine.query.StreamingQueryResult.init(StreamingQueryResult.java:
63)
at
org.datanucleus.store.appengine.query.DatastoreQuery.newStreamingQueryResultForEntities(DatastoreQuery.java:
399)
at
org.datanucleus.store.appengine.query.DatastoreQuery.wrapEntityQueryResult(DatastoreQuery.java:
372)
at
org.datanucleus.store.appengine.query.DatastoreQuery.fulfillEntityQuery(DatastoreQuery.java:
364)
at
org.datanucleus.store.appengine.query.DatastoreQuery.executeQuery(DatastoreQuery.java:
265)
at
org.datanucleus.store.appengine.query.DatastoreQuery.performExecute(DatastoreQuery.java:
228)
at
org.datanucleus.store.appengine.query.JDOQLQuery.performExecute(JDOQLQuery.java:
85)
at org.datanucleus.store.query.Query.executeQuery(Query.java:1489)
at org.datanucleus.store.query.Query.executeWithArray(Query.java:
1371)
at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:243)
at
com.dominity.apac.transfer.dao.impl.AbstractBasicDAO.getByField(AbstractBasicDAO.java:
162)
at
com.dominity.apac.transfer.dao.impl.GoogleUserDAO.getByField(GoogleUserDAO.java:
35)
at
com.dominity.apac.transfer.service.impl.AbstractEntityService.getByField(AbstractEntityService.java:
185)
at
com.dominity.apac.transfer.servlet.ServletUtil.obtainAllEventsForUser(ServletUtil.java:
790)
at
com.dominity.apac.transfer.servlet.ReportGenerationServlet.doPost(ReportGenerationServlet.java:
200)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
487)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1093)
at
com.dominity.apac.transfer.servlet.DeadlineExceededFilter.doFilter(DeadlineExceededFilter.java:
37)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1084)
at
com.dominity.apac.transfer.servlet.AuthenticationFilter.doFilter(AuthenticationFilter.java:
205)
at org.mortbay.jetty.servlet.ServletHandler
$CachedChain.doFilter(ServletHandler.java:1084)
at

Re: [appengine-java] FinalizableReferenceQueue

2010-03-03 Thread Chau Huynh
Quote: You can ignore it. It's a red herring
http://tinyurl.com/y8tlejthttp://www.google.com/url?sa=Dq=http://tinyurl.com/y8tlejtusg=AFQjCNFIMnUbbdgwZwSca1czKxGrbQFz8Q.
(
https://groups.google.com/group/google-appengine-java/browse_thread/thread/9d019bda2070e382
)

On Thu, Mar 4, 2010 at 12:04 AM, dominity domin...@gmail.com wrote:

 Hi, guys.

 Some times I can see I the log something like that:

 #
 I 03-03 09:00AM 17.033


 com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue
 $SystemLoader loadFinalizer: Not allowed to access system class
 loader.

 #
 I 03-03 09:00AM 17.050

 com.google.appengine.repackaged.com.google.common.base.internal.Finalizer
 getInheritableThreadLocalsField: Couldn't access
 Thread.inheritableThreadLocals. Reference finalizer threads will
 inherit thread local values.

 #
 I 03-03 09:00AM 17.053


 com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue
 init: Failed to start reference finalizer thread. Reference cleanup
 will only occur when new references are created.
 java.lang.reflect.InvocationTargetException
at
 com.google.appengine.runtime.Request.process-82241ba22a815a34(Request.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Method.java:43)
at

 com.google.appengine.repackaged.com.google.common.base.FinalizableReferenceQueue.init(FinalizableReferenceQueue.java:
 127)
at
 com.google.appengine.repackaged.com.google.common.collect.Interners
 $WeakInterner.clinit(Interners.java:118)
at

 com.google.appengine.repackaged.com.google.common.collect.Interners.newWeakInterner(Interners.java:
 59)
at

 com.google.appengine.repackaged.com.google.io.protocol.ProtocolSupport.clinit(ProtocolSupport.java:
 55)
at com.google.apphosting.api.DatastorePb
 $Query.init(DatastorePb.java:1185)
at com.google.apphosting.api.DatastorePb$Query
 $1.init(DatastorePb.java:2677)
at com.google.apphosting.api.DatastorePb
 $Query.clinit(DatastorePb.java:2677)
at

 com.google.appengine.api.datastore.QueryTranslator.convertToPb(QueryTranslator.java:
 28)
at

 com.google.appengine.api.datastore.PreparedQueryImpl.convertToPb(PreparedQueryImpl.java:
 151)
at

 com.google.appengine.api.datastore.PreparedQueryImpl.runQuery(PreparedQueryImpl.java:
 111)
at

 com.google.appengine.api.datastore.PreparedQueryImpl.asQueryResultIterator(PreparedQueryImpl.java:
 89)
at com.google.appengine.api.datastore.BasePreparedQuery
 $2.iterator(BasePreparedQuery.java:45)
at com.google.appengine.api.datastore.BasePreparedQuery
 $2.iterator(BasePreparedQuery.java:42)
at

 org.datanucleus.store.appengine.query.RuntimeExceptionWrappingIterable.iterator(RuntimeExceptionWrappingIterable.java:
 42)
at
 org.datanucleus.store.appengine.query.LazyResult.init(LazyResult.java:
 67)
at

 org.datanucleus.store.appengine.query.StreamingQueryResult.init(StreamingQueryResult.java:
 63)
at

 org.datanucleus.store.appengine.query.DatastoreQuery.newStreamingQueryResultForEntities(DatastoreQuery.java:
 399)
at

 org.datanucleus.store.appengine.query.DatastoreQuery.wrapEntityQueryResult(DatastoreQuery.java:
 372)
at

 org.datanucleus.store.appengine.query.DatastoreQuery.fulfillEntityQuery(DatastoreQuery.java:
 364)
at

 org.datanucleus.store.appengine.query.DatastoreQuery.executeQuery(DatastoreQuery.java:
 265)
at

 org.datanucleus.store.appengine.query.DatastoreQuery.performExecute(DatastoreQuery.java:
 228)
at

 org.datanucleus.store.appengine.query.JDOQLQuery.performExecute(JDOQLQuery.java:
 85)
at org.datanucleus.store.query.Query.executeQuery(Query.java:1489)
at org.datanucleus.store.query.Query.executeWithArray(Query.java:
 1371)
at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:243)
at

 com.dominity.apac.transfer.dao.impl.AbstractBasicDAO.getByField(AbstractBasicDAO.java:
 162)
at

 com.dominity.apac.transfer.dao.impl.GoogleUserDAO.getByField(GoogleUserDAO.java:
 35)
at

 com.dominity.apac.transfer.service.impl.AbstractEntityService.getByField(AbstractEntityService.java:
 185)
at

 com.dominity.apac.transfer.servlet.ServletUtil.obtainAllEventsForUser(ServletUtil.java:
 790)
at

 com.dominity.apac.transfer.servlet.ReportGenerationServlet.doPost(ReportGenerationServlet.java:
 200)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 487)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1093)
at

 

[appengine-java] Made a Facebook Page For App Engine For Java Issues

2010-03-03 Thread Robert Lancer
Google Please Fix App Engine For Java

http://www.facebook.com/pages/Google-Please-Fix-App-Engine-For-Java/372774516220

Enough is enough! Sometimes app engine for java works like a dream,
other times your page takes two minutes to load or throws an error.
How could google even tolerate a load request and lecture people on
how the web needs to be faster.

-- 
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] Access Failure when authenticating to Restful API

2010-03-03 Thread Chummar Maly
can you pls. post the code.



On Wed, Mar 3, 2010 at 9:06 AM, ljgarcia leylaj...@gmail.com wrote:

 Hello everybody,

 I want to access Delicious via Resftul API http://delicious.com/help/api
 so I am using a Restful Connection (RestConnection.java) and I get
 this error:

 java.security.AccessControlException: access denied
 (java.net.NetPermission setDefaultAuthenticator)
at

 java.security.AccessControlContext.checkPermission(AccessControlContext.java:
 264)
at
 java.security.AccessController.checkPermission(AccessController.java:
 427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
 532)
at com.google.appengine.tools.development.DevAppServerFactory
 $CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
at java.net.Authenticator.setDefault(Authenticator.java:110)
 at java.net.Authenticator.setDefault(Authenticator.java:110)
at
 org.netbeans.saas.RestConnection.setAuthenticator(RestConnection.java:
 69)
at
 delicious.controller.AjaxController.divRetrieveTags(AjaxController.java:
 36)
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:592)
at

 com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
 100)
at

 org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:
 34)
at org.directwebremoting.impl.DefaultRemoter
 $1.doFilter(DefaultRemoter.java:427)
at
 org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:
 430)
at
 org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:
 282)
at

 org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:
 52)
at
 org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:
 101)
at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:
 146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 487)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1093)
at

 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
 51)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1084)
at

 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
 43)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1084)
at

 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
 121)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1084)
at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 360)
at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 181)
at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 405)
at

 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
 70)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 139)
at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:352)
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.content(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
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)

 I already tried what says in
 http://code.google.com/intl/zh-HK/appengine/kb/java.html#googledata
 but it did not work.

 I also tried to connect out Google App Engine and the connection works
 fine.

 Any ideas?

 Thanks so much in advanced.

 Best,

 LJ

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine for Java group.
 To post to 

[appengine-java] Re: Made a Facebook Page For App Engine For Java Issues

2010-03-03 Thread Corby
Somehow, I suspect that the continual, specific feedback on this group
is doing more to effect change in GAE/J than your MySpace band or
whatever.

Besides, your page sucks. Not enough hot ladies.

-- 
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: How to get testing working with anything other than the default queue

2010-03-03 Thread David Chandler
I found a way to invoke a task servlet using ServletUnit (but not
LocalTaskQueue.runTask(), alas) and wrote it up:

http://turbomanage.wordpress.com/2010/03/03/a-recipe-for-unit-testing-appengine-task-queues/

/dmc

On Mar 2, 11:42 pm, David Chandler turboman...@gmail.com wrote:
 I'm using the workaround above and it's reading my queue.xml
 correctly; however, when I call runTask() I am getting a connection
 refused exception. Does the AppEngine test environment provide a
 servlet container or mock thereof for running the task servlet? The
 task servlet is configured in my web.xml and works fine in dev and
 prod, but not in unit tests, so I'm guessing I need to wire in a
 lightweight servlet container in test also... would appreciate any
 pointers.

 INFO: Local task queue initialized with base urlhttp://localhost:8080
 Mar 2, 2010 11:33:05 PM
 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
 INFO: I/O exception (java.net.ConnectException) caught when processing
 request: Connection refused: connect
 Mar 2, 2010 11:33:05 PM
 org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
 INFO: Retrying request

 Thank you,
 /dmc

 On Feb 16, 6:08 pm, Max Ross (Google) maxr+appeng...@google.com
 wrote:

  Sorry Will, we look for ./WEB-INF/queue.xml by default.  Anyway glad you got
  it working with the workaround.  I'll get this straightened out for the next
  release.

  Max

  On Tue, Feb 16, 2010 at 11:41AM, Will Bunker w...@thebunkers.com wrote:
   I put in queue.xml in the test directory and it didn't seem to find
   it.

   On Feb 16, 10:47am, Max Ross (Google) 
   maxr+appeng...@google.commaxr%2bappeng...@google.com

   wrote:
I see.  In the test environment it looks in . by default so if you
   place
queue.xml in the directory from which you're executing the test it 
should
pick it up.I

On Tue, Feb 16, 2010 at 10:35AM, Will Bunker w...@thebunkers.com
   wrote:
 I am saying that it is not reading queue.xml.  I am testing to make
 sure a certain function puts x number tasks in a queue that is not
 the default.  It doesn't load the queue.xml file unless I use your
 workaround (then it works great.)

 On Feb 16, 10:21am, Max Ross (Google) 
 maxr+appeng...@google.commaxr%2bappeng...@google.com
   maxr%2bappeng...@google.com maxr%252bappeng...@google.com

 wrote:
  By default the LocalTaskQueueTestConfig configures the local task
   queue
  service to not automatically execute tasks:
http://code.google.com/appengine/docs/java/tools/localunittesting/jav.
   ..

  Or are you saying it's not reading queue.xml?

  On Tue, Feb 16, 2010 at 10:16AM, Will Bunker w...@thebunkers.com
 wrote:
   Actually it doesn't seem to be reading the queue at all.  It is
   coming
   from the standard directory in WAR, but doesn't seem to pick it 
   up.
    I
   am on Mac OS if that makes any difference.

   On Feb 16, 9:35am, Max Ross (Google) 
   maxr+appeng...@google.commaxr%2bappeng...@google.com
   maxr%2bappeng...@google.com maxr%252bappeng...@google.com
 maxr%2bappeng...@google.com maxr%252bappeng...@google.com 
   maxr%252bappeng...@google.com maxr%25252bappeng...@google.com

   wrote:
Hi Will,

You're loading queue.xml from a different location in your unit
 tests?
    This
is a use case I didn't thoroughly consider.  I can certainly fix
   this
 for
the next release but let me see if I can find a workaround for
   you.

Thanks,
Max

   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
   google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com

 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
   google-appengine-java%252bunsubscr...@googlegroups.comgoogle-appengine-java%25252bunsubscr...@googlegroups.com

   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.

 --
 You received this message because you are subscribed to the Google
   Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
   google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com

 .
 For more options, visit this group at

[appengine-java] Re: Made a Facebook Page For App Engine For Java Issues

2010-03-03 Thread Robert Lancer
Haha, I agree. But google groups lacks the key ability to post
pictures videos... Also a large number of fans on a group titled
Google Please Fix App Engine For Java  would send a loud message.

On Mar 3, 1:11 pm, Corby cep...@gmail.com wrote:
 Somehow, I suspect that the continual, specific feedback on this group
 is doing more to effect change in GAE/J than your MySpace band or
 whatever.

 Besides, your page sucks. Not enough hot ladies.

-- 
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: lost sub entity

2010-03-03 Thread Gunnar
Hi,
I finally found a solution like this:
list.add(first.copy());
where copy creates a new SubEntity and copies all fields except the
key to the new instance.
Do you regard this as a bug?
Gunnar


On 2 mar, 20:28, Gunnar gunnar@gmail.com wrote:
 I've uploaded my app to google with the same result, so it's not a
 problem with Eclipse or sdk version.
 Gunnar

 On 1 mar, 20:59, John Patterson jdpatter...@gmail.com wrote:

 http://lmgtfy.com/?q=appengine+jdo+%22default+fetch+group%22

  On 2 Mar 2010, at 02:50, Gunnar wrote:

   I don't jnow what you mean with look into default fetch group!.
   Please explain.
   Gunnar

   On 1 mar, 19:20, John Patterson jdpatter...@gmail.com wrote:
   Did you look into default fetch group?

   On 2 Mar 2010, at 01:04, Gunnar wrote:

   Hi,
   I followed Jakes advice to do e.setList(list) but no change.
   I've also stepped through my code, but there is no exception!
   Btw I use version 1.3.1 of the SDK.
   Gunnar

   On 1 mar, 15:28, John Patterson jdpatter...@gmail.com wrote:
   It is unusual that you see no  stack trace.  Are you sure you are  
   not
   catching it?  You could step through the code line by line to see
   what
   happens after the line with the problem.

   Could this be something to do with setting the fetch group to
   default?  That seems to be the problem with a lot of peoples JDO
   code :)

   On 1 Mar 2010, at 21:19, Jake wrote:

   If I recall, JDO is picky when it comes to being aware of changes
   made
   to a persisted object.  For example, changing fields directly
   (object.field = newValue;) doesn't work - you need to use a  
   getter/
   setter (object.setField(newValue);).  Perhaps you are encountering
   the
   same issue here?  Does the following type of thing work?

   LIstSubEntity list = e.getMyList();
   SubEntity first = list.remove(0);
   list.add(first);
   e.setMyList(list);
   pm.makePersistent(e);
   tx.commit();

   Jake

   On Feb 28, 11:05 am, Gunnar gunnar@gmail.com wrote:
   Hi,
   John and Karel, you are right about the placement of the commit
   statement.
   It worked in the test example because I only had one instance of
   MyEntity.
   I don't get any exception at all in the Eclipse console!
   When I add a second instance of MyEntity if fails with  
   Transaction
   is
   not active as expected.

   Now I've changed the code in the try statement like this, but  
   still
   the first sub entity is lost and no exception is thrown!
   (Of cause it would fail it the list is empty.)

   ListMyEntity results = (ListMyEntity) query.execute();
           if (results.iterator().hasNext()) {
                   tx.begin();
                   MyEntity e = results.iterator().next();
                   ListSubEntity list = e.getMyList();
                   SubEntity first = list.remove(0);
                   boolean ok = list.add(first);
                   if (!ok) {
                           System.err.println(could not add  
   first);
                   }
                   System.out.println(list);
                   pm.makePersistent(e);
                   tx.commit();
           }

   On 28 Feb, 02:51, John Patterson jdpatter...@gmail.com wrote:

   This should be throwing an exception.  The JavaDocs for
   Transaction.commit() say
   Commits the transaction. Whether this call succeeds or fails,  
   all
   subsequent method invocations on this object will throw
   IllegalStateException.

   When something does not work as you expect the first place to  
   look
   is
   the logs under your application console.

   On 28 Feb 2010, at 05:25, Karel Alvarez wrote:

   dont you get any exceptions stacktrace  in the server  
   console? it
   would help... also you are calling commit() inside the for  
   loop,
   although the transactions is started only once... that would
   crash
   in the second iteration in a normal db server, I am not sure  
   what
   GAE does with it, in any case I dont think it is what you
   intended...

   On Sat, Feb 27, 2010 at 2:52 PM, Gunnar gunnar@gmail.com
   wrote:
   Hi,
   I have problem with reordering a List.
   I created a test with an entity called MyEntity which have a
   ListSubEntity.
   First I persist one instance of MyEntity with a list  
   containing 3
   SubEntity.
   This works fine. Then I call a reorder servlet that moves the
   first
   SubEntity to the last position in the list.
   The result is that the first SubEntity is lost and the  
   datastore
   only
   contains 2 SubEntity instances.
   What can be wrong?
   Here is the reorder code:

   package com.google.appengine.demo;

   import java.io.IOException;
   import java.util.List;

   import javax.jdo.PersistenceManager;
   import javax.jdo.Query;
   import javax.jdo.Transaction;
   import javax.servlet.http.HttpServlet;
   import javax.servlet.http.HttpServletRequest;
   import javax.servlet.http.HttpServletResponse;

   @SuppressWarnings(serial)
   public class ReorderServlet extends HttpServlet {
   

[appengine-java] Re: Made a Facebook Page For App Engine For Java Issues

2010-03-03 Thread Guillermo Schwarz
So far I think GAE/J has been pretty responsive to most of the defects
found and request for new functionality/features.

For example you can host yourapp.com landing page somewhere so that
it loads an image from yourapp.appspot.com and therefore loads your
app. This way your users would see your app responsive all the time.

On 3 mar, 15:33, Robert Lancer robert.lan...@gmail.com wrote:
 Haha, I agree. But google groups lacks the key ability to post
 pictures videos... Also a large number of fans on a group titled
 Google Please Fix App Engine For Java  would send a loud message.

 On Mar 3, 1:11 pm, Corby cep...@gmail.com wrote:

  Somehow, I suspect that the continual, specific feedback on this group
  is doing more to effect change in GAE/J than your MySpace band or
  whatever.

  Besides, your page sucks. Not enough hot ladies.

-- 
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: Made a Facebook Page For App Engine For Java Issues

2010-03-03 Thread Robert Lancer
Granted thats a band-aid that might fix that one problem, but what do
you do when query latency is currently over 1200 ms,
http://code.google.com/status/appengine/detail/datastore/2010/03/03#ae-trust-detail-datastore-query-latency
I would like google to slow google.com down to 1200 ms query in
solidarity for us poor suckers who try to run our business on top of
app engine.

On Mar 3, 2:05 pm, Guillermo Schwarz guillermo.schw...@gmail.com
wrote:
 So far I think GAE/J has been pretty responsive to most of the defects
 found and request for new functionality/features.

 For example you can host yourapp.com landing page somewhere so that
 it loads an image from yourapp.appspot.com and therefore loads your
 app. This way your users would see your app responsive all the time.

 On 3 mar, 15:33, Robert Lancer robert.lan...@gmail.com wrote:



  Haha, I agree. But google groups lacks the key ability to post
  pictures videos... Also a large number of fans on a group titled
  Google Please Fix App Engine For Java  would send a loud message.

  On Mar 3, 1:11 pm, Corby cep...@gmail.com wrote:

   Somehow, I suspect that the continual, specific feedback on this group
   is doing more to effect change in GAE/J than your MySpace band or
   whatever.

   Besides, your page sucks. Not enough hot ladies.

-- 
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] http://www.w3.org/2010/Talks/0303-socialcloud-tbl/#(1

2010-03-03 Thread Leyla Jael García Castro
http://www.w3.org/2010/Talks/0303-socialcloud-tbl/#(1

On 3 March 2010 15:06, ljgarcia leylaj...@gmail.com wrote:

 Hello everybody,

 I want to access Delicious via Resftul API http://delicious.com/help/api
 so I am using a Restful Connection (RestConnection.java) and I get
 this error:

 java.security.AccessControlException: access denied
 (java.net.NetPermission setDefaultAuthenticator)
at

 java.security.AccessControlContext.checkPermission(AccessControlContext.java:
 264)
at
 java.security.AccessController.checkPermission(AccessController.java:
 427)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:
 532)
at com.google.appengine.tools.development.DevAppServerFactory
 $CustomSecurityManager.checkPermission(DevAppServerFactory.java:166)
at java.net.Authenticator.setDefault(Authenticator.java:110)
 at java.net.Authenticator.setDefault(Authenticator.java:110)
at
 org.netbeans.saas.RestConnection.setAuthenticator(RestConnection.java:
 69)
at
 delicious.controller.AjaxController.divRetrieveTags(AjaxController.java:
 36)
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:592)
at

 com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:
 100)
at

 org.directwebremoting.impl.ExecuteAjaxFilter.doFilter(ExecuteAjaxFilter.java:
 34)
at org.directwebremoting.impl.DefaultRemoter
 $1.doFilter(DefaultRemoter.java:427)
at
 org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:
 430)
at
 org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:
 282)
at

 org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:
 52)
at
 org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:
 101)
at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:
 146)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at
 org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:
 487)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1093)
at

 com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:
 51)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1084)
at

 com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:
 43)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1084)
at

 com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:
 121)
at org.mortbay.jetty.servlet.ServletHandler
 $CachedChain.doFilter(ServletHandler.java:1084)
at
 org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:
 360)
at
 org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:
 216)
at
 org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:
 181)
at
 org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:
 712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:
 405)
at

 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:
 70)
at
 org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:
 139)
at com.google.appengine.tools.development.JettyContainerService
 $ApiProxyHandler.handle(JettyContainerService.java:352)
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.content(HttpConnection.java:844)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644)
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)

 I already tried what says in
 http://code.google.com/intl/zh-HK/appengine/kb/java.html#googledata
 but it did not work.

 I also tried to connect out Google App Engine and the connection works
 fine.

 Any ideas?

 Thanks so much in advanced.

 Best,

 LJ

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

[appengine-java] charged for data we cannot delete?

2010-03-03 Thread Houston startup coder
If the Blobstore is not allowing us to delete files, will we be
charged for that data?

-- 
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: Expires header automatically added (bug?)

2010-03-03 Thread Ikai L (Google)
Browsers use the expires header in conjunction with a URL locally to
determine whether or not to request a resource. If this has expired or does
not exist, browsers will then do a conditional get. The web server will
return a 304 response if the resource has not been modified, so this will
add additional latency to overall page load performance. You can validate
these assertions using the Firebug and the web developer plugins for
Firefox.

In general, the rule is to not use Etags:
http://developer.yahoo.com/performance/rules.html I'll follow up to see if
the same restrictions apply on App Engine. My gut feeling is no, because
we probably have some consistent way of generating the Etags, but I can't
say with any certainty just yet.

There's a couple of caching rules here:
http://blog.tylerholmes.com/2008/05/http-headers-and-caching-cache-control.html


On Tue, Mar 2, 2010 at 8:08 AM, George Moschovitis 
george.moschovi...@gmail.com wrote:

 Yes, I am setting a cookie.

 The session leakage problem is interesting. I have a question though,
 does the Expires header have precedence over the LastModified/ETag
 headers?
 I would like to use the LastModified/ETag headers to implement
 conditional GET, are you sure that ETag has precedence over the
 Expires header? (I am using cache-control: private)

 btw, thanks for the answer.

 -g.

 On Mar 1, 8:39 pm, Ikai L (Google) ika...@google.com wrote:
  Are you setting a cookie? We force an expires header for any requests
 that
  have a set-cookie header. The reason for this is that many users access
  websites using HTTP proxies. Some proxies will cache the entire request,
  which may cause session leak (e.g. let you read someone else's email).
 
  On Mon, Mar 1, 2010 at 7:09 AM, George Moschovitis 
 
 
 
 
 
  george.moschovi...@gmail.com wrote:
   I don NOT want to set an Expires header. I am just curious with the
   header is added (and messes up with my caching scheme)
 
   -g.
 
Well, if you do not like what GAE sets as Expires value, why not set
yours?
 
On Mar 1, 11:18 am, George  Moschovitis 
 george.moschovi...@gmail.com
wrote:
 
  Could you provide some code please?
 
 What kind of code should I provide? I do NOT set the Expires header
 in
 my code, and still GAE automatically adds the Expires header.
 
 -g.
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B
 unsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
  --
  Ikai Lan
  Developer Programs Engineer, Google App Enginehttp://
 googleappengine.blogspot.com|http://twitter.com/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.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
http://googleappengine.blogspot.com | http://twitter.com/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] Receiving Email: url-pattern problem

2010-03-03 Thread Ikai L (Google)
Try setting the url-pattern to either string* or:

url-patternstr...@appid.appspotmail.com/url-pattern

On Sun, Feb 28, 2010 at 10:38 AM, Dimedrol zaharov.i...@gmail.com wrote:

 Hello there!

 I\m trying to setup a email reciever, with a little help of the
 following doc:
 http://code.google.com/appengine/docs/java/mail/receiving.html

 Everything looks fine except 1 annoying thing:
 I can only use url-pattern/_ah/mail/*/url-pattern setting.
 If I use the setting above, I CAN recieve email messages.
 But, if I try to specify an address, for example:
 str...@appid.appspotmail.com
 like this: url-pattern/_ah/mail/string/url-pattern
 or even  url-pattern/_ah/mail/string*/url-pattern - I cannot
 process an email,
 and in my LOGs I see - error 404 (not found):

 It says , that /_ah/mail/str...@appid.appspotmail.com - not found.

 What am I doing wrong?

 --
 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
http://googleappengine.blogspot.com | http://twitter.com/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] number of tasks in queue

2010-03-03 Thread Ikai L (Google)
You'll want to star this issue:

http://code.google.com/p/googleappengine/issues/detail?id=1948

On Tue, Mar 2, 2010 at 1:03 PM, Nichole nichole.k...@gmail.com wrote:

 Hello,

   In the near future will there be an API method to get the current
 number of tasks in a queue?

 Thanks for your time,
Nichole

 --
 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
http://googleappengine.blogspot.com | http://twitter.com/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: Expires header automatically added (bug?)

2010-03-03 Thread Don Schwarz
On Wed, Mar 3, 2010 at 1:52 PM, Ikai L (Google) ika...@google.com wrote:

 Browsers use the expires header in conjunction with a URL locally to
 determine whether or not to request a resource. If this has expired or does
 not exist, browsers will then do a conditional get. The web server will
 return a 304 response if the resource has not been modified, so this will
 add additional latency to overall page load performance. You can validate
 these assertions using the Firebug and the web developer plugins for
 Firefox.

 In general, the rule is to not use Etags:
 http://developer.yahoo.com/performance/rules.html I'll follow up to see if
 the same restrictions apply on App Engine. My gut feeling is no, because
 we probably have some consistent way of generating the Etags, but I can't
 say with any certainty just yet.


Yeah, none of this applies to App Engine.  We currently implement etags for
static files, and plan to give you some tools to generate and implement
etags when serving dynamic blobs via the blobstore API.  If you're serving
other files, you'll have to handle the ETag and If-None-Match headers
yourself, and I don't believe that we interfere with you doing this now.


 There's a couple of caching rules here:
 http://blog.tylerholmes.com/2008/05/http-headers-and-caching-cache-control.html


 On Tue, Mar 2, 2010 at 8:08 AM, George Moschovitis 
 george.moschovi...@gmail.com wrote:

 Yes, I am setting a cookie.

 The session leakage problem is interesting. I have a question though,
 does the Expires header have precedence over the LastModified/ETag
 headers?
 I would like to use the LastModified/ETag headers to implement
 conditional GET, are you sure that ETag has precedence over the
 Expires header? (I am using cache-control: private)

 btw, thanks for the answer.

 -g.

 On Mar 1, 8:39 pm, Ikai L (Google) ika...@google.com wrote:
  Are you setting a cookie? We force an expires header for any requests
 that
  have a set-cookie header. The reason for this is that many users access
  websites using HTTP proxies. Some proxies will cache the entire request,
  which may cause session leak (e.g. let you read someone else's email).
 
  On Mon, Mar 1, 2010 at 7:09 AM, George Moschovitis 
 
 
 
 
 
  george.moschovi...@gmail.com wrote:
   I don NOT want to set an Expires header. I am just curious with the
   header is added (and messes up with my caching scheme)
 
   -g.
 
Well, if you do not like what GAE sets as Expires value, why not set
yours?
 
On Mar 1, 11:18 am, George  Moschovitis 
 george.moschovi...@gmail.com
wrote:
 
  Could you provide some code please?
 
 What kind of code should I provide? I do NOT set the Expires
 header in
 my code, and still GAE automatically adds the Expires header.
 
 -g.
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B
 unsubscr...@googlegroups.com
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
  --
  Ikai Lan
  Developer Programs Engineer, Google App Enginehttp://
 googleappengine.blogspot.com|http://twitter.com/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.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
 http://googleappengine.blogspot.com | http://twitter.com/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.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] charged for data we cannot delete?

2010-03-03 Thread bimbo jones
Hi,

I have that problem too.. i can't delete them from the admin site, what i've
done is a small servlet that removes the blobs by key.

2010/3/3 Toby Reyelts to...@google.com

 What problems are you seeing deleting files from Blobstore?


 On Wed, Mar 3, 2010 at 2:32 PM, Houston startup coder 
 stephenh...@gmail.com wrote:

 If the Blobstore is not allowing us to delete files, will we be
 charged for that data?

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


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


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



[appengine-java] getting host headers in Java

2010-03-03 Thread deuce4
Hi, I would like to use the subdomains of my appspot.com domain to set
initial user parameters.
I'm not really sure how to do this in Java.  Google provides the
Python example self.request.headers[Host].

Can anyone help with the Java code to parsing and processing
subdomains in the appspot.com url?

thanks!

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



[appengine-java] Performance Issues

2010-03-03 Thread infoatdfx
I'm having a Google App Engine account for my applications, and I'm
also an administrator of an application which was not created under my
account.

The application that was not created under my account (but for which
I'm an administrator) doesn't have much traffic yet, but when it goes
live will probably have a few thousand requests per day. For now we
are having a cron job running every minute to keep the application
alive. But most of the time the cron job is not running on time. There
is a red message that displays that the job was run 5 seconds or more
too late. Even some cron jobs fail. With no traffic to my application
(only the cron job running) the graph on my dashboard isn't a nice
flat line with an average of 1 request per minute (0,0167 requests per
second). We see a lot of peeks going from 0,005 to 0,02 requests per
minute.

When I deploy the same application on my own account (greated a new
application in my account but deployed the same webapp), the
performance is like I would expect. With no traffic and only the cron
job running we get a nice graph with 0,0167 requests per second. The
line is almost flat and no cron jobs are running late. Even no cron
jobs fail.

Also for simple request I see a performance difference between the two
applications. I'm having a also a high CPU job that I need to run.
This work am I doing with queues. When I execute the work in both
applications, the slow application can only execute 3 to 4 tasks per
minute, with the other one can run the same task with the same data 5
to 6 times a minute.

I would expect that both apps would behave in the same way and almost
no notable performance difference, but this is clearly not the case.

Is anyone having the same issue? What can be done about this? How can
I increase the performance of the slow running application?

-- 
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] Deploying JavaFX application on Google App Engine for Java

2010-03-03 Thread Sanjeev
Hi All,

I am just looking for any tutorial or any standard process which can
be followed so as to deploy a JavaFX application on Appengine for
java ... Please help me in this regard. I already found 1 page
regarding this but it was dedicated for the Python appengine. Let me
know if deploying a JavaFx application is supported by Google App
Engine for Java.

Highly appreciate if somebody can help me.

Thanks

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



Re: [appengine-java] getting host headers in Java

2010-03-03 Thread Stephan Hartmann
It is part of the servlet spec:

javax.servlet.ServletRequest.getServerName()


2010/3/3 deuce4 lynx...@gmail.com

 Hi, I would like to use the subdomains of my appspot.com domain to set
 initial user parameters.
 I'm not really sure how to do this in Java.  Google provides the
 Python example self.request.headers[Host].

 Can anyone help with the Java code to parsing and processing
 subdomains in the appspot.com url?

 thanks!

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



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



[appengine-java] Re: App Engine and Spring slow start up

2010-03-03 Thread luijar
Thanks Toby,

 Can you point me to the threads you talk about?

 Thanks,
  Luijar

On Mar 2, 4:15 am, Toby toby.ro...@gmail.com wrote:
 Hi luijar,

 I had the same problem -but no time-out- and I got some better
 performance by removing all autowire and annotation-scan stuff and
 also by putting lazy-init=true on my beans. I even re-wrote a bean
 by a regular Servlet, without any Spring and the startup performance
 was as poor as with using spring. So I think the initialization
 overhead is not that big.Depends a lot on your application, though.

 What is the worst is that even once an instance is started up, it
 immediately seems to be suspended again. I think the cron-job is
 probably not the best way to do it even though it seems the only
 posibility for the moment. You will find a lot of threads on this
 topic.

 Toby

 On Mar 2, 3:27 am, yjun hu itswa...@gmail.com wrote:

  i got the same problem too, there is no better way to resolve it, i just try
  to hitting a url with cron job.

  On Tue, Mar 2, 2010 at 3:50 AM, luijar luis.j.aten...@gmail.com wrote:
   Thanks for the advice, I'll try that.

   On Mar 1, 2:31 pm, Rusty Wright rwright.li...@gmail.com wrote:
Try using the old way with xml configuration for wiring your beans
   together.  The word on the street is that Spring's component scanning 
   takes
   a lot of time.

luijar wrote:
 Nope, I am still seeing it. It's quite frustrating. I even tried to
 reduce Spring init time by removing schema validation from the
 application context init. But, that does not seem to work. I am using
 Spring annotations and component scanning to autowire my beans, I
 wonder if using plain XML configuration will make autowiring faster.

 On Feb 23, 9:14 pm, charming30 charmin...@gmail.com wrote:
 Has the above mentioned offline precompilatio in 1.3.1 been able to
 solve your issue, I plan to use Spring on Java for my Business App
 which is complex and could be based on SOA. Kindly let me know if 
 your
 issue was resolved or reduced by using the above fix.

 On Feb 20, 12:05 am, luijar luis.j.aten...@gmail.com wrote:

 I believe my development environment was on 1.3.0. That might be
 something to look at, although it seems that probably it's a very
 small overhead, do you have any metrics that would give some 
 evidence
 as to how much overhead is offline precompilation adding?
 Thanks
 On Feb 18, 2:04 pm, Don Schwarz schwa...@google.com wrote:
 Have you deployed your application with the 1.3.1 SDK?  That 
 release
   turned
 on offline precompilation by default, which is an optimization
   that may
 help.
 On Thu, Feb 18, 2010 at 7:59 AM, Alex chasov...@gmail.com wrote:
 Hi,
 It appeared that long init problem is well known for Grails users:
http://jira.codehaus.org/browse/GRAILSPLUGINS-1736
 I wasted couple of weeks to create app I cannot run. Hope that
 SpringSource and Google can solve the issue.
 On Feb 17, 7:41 pm, Stephan Hartmann hartm...@metamesh.de wrote:
 The problem is that the initialization of your app takes longer
   than 30
 seconds.
 Pinging your app doesn't help when the app is restarted due to
 redeployment
 or maintenance, or when high traffic demands a second instance.
 You should try to reduce your startup time.
 regards,
 Stephan
 2010/2/17 luijar luis.j.aten...@gmail.com
 Great, all of our projects areSpringenabled lol. But I guess 
 it's
 good that we are not the only ones seeing this, hopefully it 
 gets
   a
 little more visibility. We have a cron job (1 min) that tries to
   keep
 our application alive by hitting a URL, but it does not do a 
 very
   good
 job. It's frustrating and we don't even have access to the 500
   page to
 tell the user to retry or go somewhere else.
 On Feb 17, 11:21 am, oth other...@gmail.com wrote:
 Yes we have seen this problem a lot. Per our tests, an
   application
 becomes idle after a minute of non activity. So, the 
 unfortunate
 reality is that you need to keep your app alive by simulating
 activity
 on it. Or go the nonSpringroute.
 Thanks
 On Feb 16, 4:14 pm, luijar luis.j.aten...@gmail.com wrote:
 Hello Google App Engine forum,
   We have been seeing ever since we deployed our applications
 (currently 3 of them) that when our application instances
   become
 idle
 (they have not been hit for x amount of seconds) subsequent
 requests
 return with a 500 response. Logs show a hard deadline exceeded
 error
 com.google.apphosting.runtime.HardDeadlineExceededError: This
 request
 (32306ebe63b71ab0) started at 2010/02/12 20:39:11.984 UTC and
   was
 still executing at 2010/02/12 20:39:41.225 UTC.
         at

   com.google.appengine.runtime.Request.process-32306ebe63b71ab0(Request.java)
 And the first line of the log 

[appengine-java] Re: App Engine and Spring slow start up

2010-03-03 Thread luijar
I think it's insane that it takes this long:

org.springframework.web.context.ContextLoader
initWebApplicationContext: Root WebApplicationContext: initialization
completed in 17914 ms

The only reason I haven't taken Spring out and use Struts for MVC and
Guice for DI (or equivalent technologies) is that I am also using
Spring AOP, which I suspect adds a lot of overhead to the mix.




On Mar 3, 5:18 pm, luijar luis.j.aten...@gmail.com wrote:
 Thanks Toby,

  Can you point me to the threads you talk about?

  Thanks,
   Luijar

 On Mar 2, 4:15 am, Toby toby.ro...@gmail.com wrote:

  Hi luijar,

  I had the same problem -but no time-out- and I got some better
  performance by removing all autowire and annotation-scan stuff and
  also by putting lazy-init=true on my beans. I even re-wrote a bean
  by a regular Servlet, without any Spring and the startup performance
  was as poor as with using spring. So I think the initialization
  overhead is not that big.Depends a lot on your application, though.

  What is the worst is that even once an instance is started up, it
  immediately seems to be suspended again. I think the cron-job is
  probably not the best way to do it even though it seems the only
  posibility for the moment. You will find a lot of threads on this
  topic.

  Toby

  On Mar 2, 3:27 am, yjun hu itswa...@gmail.com wrote:

   i got the same problem too, there is no better way to resolve it, i just 
   try
   to hitting a url with cron job.

   On Tue, Mar 2, 2010 at 3:50 AM, luijar luis.j.aten...@gmail.com wrote:
Thanks for the advice, I'll try that.

On Mar 1, 2:31 pm, Rusty Wright rwright.li...@gmail.com wrote:
 Try using the old way with xml configuration for wiring your beans
together.  The word on the street is that Spring's component scanning 
takes
a lot of time.

 luijar wrote:
  Nope, I am still seeing it. It's quite frustrating. I even tried to
  reduce Spring init time by removing schema validation from the
  application context init. But, that does not seem to work. I am 
  using
  Spring annotations and component scanning to autowire my beans, I
  wonder if using plain XML configuration will make autowiring faster.

  On Feb 23, 9:14 pm, charming30 charmin...@gmail.com wrote:
  Has the above mentioned offline precompilatio in 1.3.1 been able 
  to
  solve your issue, I plan to use Spring on Java for my Business App
  which is complex and could be based on SOA. Kindly let me know if 
  your
  issue was resolved or reduced by using the above fix.

  On Feb 20, 12:05 am, luijar luis.j.aten...@gmail.com wrote:

  I believe my development environment was on 1.3.0. That might be
  something to look at, although it seems that probably it's a very
  small overhead, do you have any metrics that would give some 
  evidence
  as to how much overhead is offline precompilation adding?
  Thanks
  On Feb 18, 2:04 pm, Don Schwarz schwa...@google.com wrote:
  Have you deployed your application with the 1.3.1 SDK?  That 
  release
turned
  on offline precompilation by default, which is an optimization
that may
  help.
  On Thu, Feb 18, 2010 at 7:59 AM, Alex chasov...@gmail.com 
  wrote:
  Hi,
  It appeared that long init problem is well known for Grails 
  users:
 http://jira.codehaus.org/browse/GRAILSPLUGINS-1736
  I wasted couple of weeks to create app I cannot run. Hope that
  SpringSource and Google can solve the issue.
  On Feb 17, 7:41 pm, Stephan Hartmann hartm...@metamesh.de 
  wrote:
  The problem is that the initialization of your app takes longer
than 30
  seconds.
  Pinging your app doesn't help when the app is restarted due to
  redeployment
  or maintenance, or when high traffic demands a second instance.
  You should try to reduce your startup time.
  regards,
  Stephan
  2010/2/17 luijar luis.j.aten...@gmail.com
  Great, all of our projects areSpringenabled lol. But I guess 
  it's
  good that we are not the only ones seeing this, hopefully it 
  gets
a
  little more visibility. We have a cron job (1 min) that tries 
  to
keep
  our application alive by hitting a URL, but it does not do a 
  very
good
  job. It's frustrating and we don't even have access to the 500
page to
  tell the user to retry or go somewhere else.
  On Feb 17, 11:21 am, oth other...@gmail.com wrote:
  Yes we have seen this problem a lot. Per our tests, an
application
  becomes idle after a minute of non activity. So, the 
  unfortunate
  reality is that you need to keep your app alive by simulating
  activity
  on it. Or go the nonSpringroute.
  Thanks
  On Feb 16, 4:14 pm, luijar luis.j.aten...@gmail.com wrote:
  Hello Google App Engine forum,
    We have been seeing ever since we deployed our 
   

[appengine-java] Re: App Engine and Spring slow start up

2010-03-03 Thread Robert Lancer
The problem is one I face without even using spring, google loves to
lecture people on how the web should be fast but this doesn't apply to
their own app engine platform. Express your frustration at my fb page
http://www.facebook.com/pages/Google-Please-Fix-App-Engine-For-Java/372774516220
feel free to post screen captures something google groups doesn't
allow


On Mar 3, 5:23 pm, luijar luis.j.aten...@gmail.com wrote:
 I think it's insane that it takes this long:

 org.springframework.web.context.ContextLoader
 initWebApplicationContext: Root WebApplicationContext: initialization
 completed in 17914 ms

 The only reason I haven't taken Spring out and use Struts for MVC and
 Guice for DI (or equivalent technologies) is that I am also using
 Spring AOP, which I suspect adds a lot of overhead to the mix.

 On Mar 3, 5:18 pm, luijar luis.j.aten...@gmail.com wrote:



  Thanks Toby,

   Can you point me to the threads you talk about?

   Thanks,
    Luijar

  On Mar 2, 4:15 am, Toby toby.ro...@gmail.com wrote:

   Hi luijar,

   I had the same problem -but no time-out- and I got some better
   performance by removing all autowire and annotation-scan stuff and
   also by putting lazy-init=true on my beans. I even re-wrote a bean
   by a regular Servlet, without any Spring and the startup performance
   was as poor as with using spring. So I think the initialization
   overhead is not that big.Depends a lot on your application, though.

   What is the worst is that even once an instance is started up, it
   immediately seems to be suspended again. I think the cron-job is
   probably not the best way to do it even though it seems the only
   posibility for the moment. You will find a lot of threads on this
   topic.

   Toby

   On Mar 2, 3:27 am, yjun hu itswa...@gmail.com wrote:

i got the same problem too, there is no better way to resolve it, i 
just try
to hitting a url with cron job.

On Tue, Mar 2, 2010 at 3:50 AM, luijar luis.j.aten...@gmail.com wrote:
 Thanks for the advice, I'll try that.

 On Mar 1, 2:31 pm, Rusty Wright rwright.li...@gmail.com wrote:
  Try using the old way with xml configuration for wiring your beans
 together.  The word on the street is that Spring's component scanning 
 takes
 a lot of time.

  luijar wrote:
   Nope, I am still seeing it. It's quite frustrating. I even tried 
   to
   reduce Spring init time by removing schema validation from the
   application context init. But, that does not seem to work. I am 
   using
   Spring annotations and component scanning to autowire my beans, I
   wonder if using plain XML configuration will make autowiring 
   faster.

   On Feb 23, 9:14 pm, charming30 charmin...@gmail.com wrote:
   Has the above mentioned offline precompilatio in 1.3.1 been 
   able to
   solve your issue, I plan to use Spring on Java for my Business 
   App
   which is complex and could be based on SOA. Kindly let me know 
   if your
   issue was resolved or reduced by using the above fix.

   On Feb 20, 12:05 am, luijar luis.j.aten...@gmail.com wrote:

   I believe my development environment was on 1.3.0. That might be
   something to look at, although it seems that probably it's a 
   very
   small overhead, do you have any metrics that would give some 
   evidence
   as to how much overhead is offline precompilation adding?
   Thanks
   On Feb 18, 2:04 pm, Don Schwarz schwa...@google.com wrote:
   Have you deployed your application with the 1.3.1 SDK?  That 
   release
 turned
   on offline precompilation by default, which is an 
   optimization
 that may
   help.
   On Thu, Feb 18, 2010 at 7:59 AM, Alex chasov...@gmail.com 
   wrote:
   Hi,
   It appeared that long init problem is well known for Grails 
   users:
  http://jira.codehaus.org/browse/GRAILSPLUGINS-1736
   I wasted couple of weeks to create app I cannot run. Hope that
   SpringSource and Google can solve the issue.
   On Feb 17, 7:41 pm, Stephan Hartmann hartm...@metamesh.de 
   wrote:
   The problem is that the initialization of your app takes 
   longer
 than 30
   seconds.
   Pinging your app doesn't help when the app is restarted due 
   to
   redeployment
   or maintenance, or when high traffic demands a second 
   instance.
   You should try to reduce your startup time.
   regards,
   Stephan
   2010/2/17 luijar luis.j.aten...@gmail.com
   Great, all of our projects areSpringenabled lol. But I 
   guess it's
   good that we are not the only ones seeing this, hopefully 
   it gets
 a
   little more visibility. We have a cron job (1 min) that 
   tries to
 keep
   our application alive by hitting a URL, but it does not do 
   a very
 good
   job. It's frustrating and we don't even have 

[appengine-java] Re: charged for data we cannot delete?

2010-03-03 Thread Houston startup coder
Pardon, I kept getting sidetracked and had only been reading the prose
in the help docs--never saw the delete method in the API till just
now, so I didn't know I could easily just do this:

BlobstoreService blobstoreService =
BlobstoreServiceFactory.getBlobstoreService();
blobstoreService.delete(blobKey);


I get an error when I try to delete from the Blob Viewer in the Admin
site.  I've never been able to delete from there, but I no longer need
that ability, although I'm sure it could come in handy in the
future.

Thanks,
Stephen


On Mar 3, 3:19 pm, bimbo jones bimbojone...@gmail.com wrote:
 Hi,

 I have that problem too.. i can't delete them from the admin site, what i've
 done is a small servlet that removes the blobs by key.

 2010/3/3 Toby Reyelts to...@google.com

  What problems are you seeing deleting files from Blobstore?

  On Wed, Mar 3, 2010 at 2:32 PM, Houston startup coder 
  stephenh...@gmail.com wrote:

  If the Blobstore is not allowing us to delete files, will we be
  charged for that data?

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

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

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



[appengine-java] Google Plugin for Eclipse 1.3 Preview is now available

2010-03-03 Thread Keith Platfoot
Hi everyone,

Last month, I announced some of the changes we had planned for the 1.3
version of the Google Plugin for Eclipse. To recap, this release is focused
on making life easier for developers using GWT/App Engine alongside
third-party tools, including Maven and Eclipse for Java EE. In my post, I
promised we'd let you download a preview of 1.3 to get some hands-on testing
of the new features and provide us with your feedback before the official
release.

I'm happy to announce that the time has come. An early preview of 1.3 is now
available for download at the following URLs:

http://dl.google.com/eclipse/plugin/3.5/zips/com.google.gdt.eclipse.suite.e35.feature_1.2.101.v201003031407.zip

http://dl.google.com/eclipse/plugin/3.4/zips/com.google.gdt.eclipse.suite.e34.feature_1.2.101.v201003031407.zip

http://dl.google.com/eclipse/plugin/3.3/zips/com.google.gdt.eclipse.suite.e33.feature_1.2.101.v201003031407.zip

Note: Ensure that your version of Eclipse has Eclipse's Web Standard Tools
(WST) installed before installing the plugin. WST can be installed by
navigating to the Software Installation section, and selecting the the
appropriate WST feature from the update site for your version of Eclipse.
The update sites and feature names are provided below:


   - 3.5 (Galileo): Galileo  Web, XML, and Java EE Development  Eclipse
   Web Developer Tools
   - 3.4 (Ganymede): Ganymede Update Site  Web and Java EE Development 
   Web Developer Tools
   - 3.3 (Europa): Europa Discovery Site  Web and JEE Development  Web
   Standard Tools Project

This is a preview build, so the usual caveats and warnings apply: it is not
officially supported, and we recommend using a clean installation of Eclipse
and a new workspace. Also, we're distributing this preview as a zip file so
be sure to follow the instructions on our Installing the Google Plugin for
Eclipse from zip files page (
http://code.google.com/eclipse/docs/install-from-zip.html).

*Known Issues*


   - If you change settings in the Server or GWT tab in the launch
   configuration dialog, you'll need to switch to the Arguments tab before
   clicking Apply or Run/Debug.  This will be fixed in the final release.

That being said, we are very interested in your experience with this new
release, which we hope will allow the Google plugin to interoperate much
better with alternative project structures and third-party tools. The
tentative 1.3 release notes are as follows:

Enhancements


   - Configurable WAR directory to allow better integration with Eclipse for
   Java EE http://www.eclipse.org/downloads/moreinfo/jee.php and projects
   built with Maven http://maven.apache.org/
   - Web Application launch configurations now display and allow editing of
   generated Program and VM arguments
   - Errors/Warnings preference page for customizing the severity of any
   generated problem marker
   - Projects can reference GWT/App Engine SDKs directly via JARs instead of
   through SDK library
   - GWT+App Engine projects automatically configured for optimal caching

Fixes


   - GWT Issue 
3583http://code.google.com/p/google-web-toolkit/issues/detail?id=3583:
   Google Eclipse Plugin configuration is too strict
   - GWT Issue 
3592http://code.google.com/p/google-web-toolkit/issues/detail?id=3592:
   Eclipse plugin to add 'cache forever' configuration for new 'GWT + App
   Engine' projects
   - GWT Issue 
3902http://code.google.com/p/google-web-toolkit/issues/detail?id=3902:
   Allow users to configure the severity of problems reported by the eclipse
   plugin
   - App Engine Issue
1515http://code.google.com/p/googleappengine/issues/detail?id=1515:
   Eclipse plugin requires fixed location for war directory
   - App Engine Issue
2115http://code.google.com/p/googleappengine/issues/detail?id=2115:
   Using the @PersistenceAware annotation puts the Eclipse Enhancer in an
   Infinite Loop
   - App Engine Issue
1941http://code.google.com/p/googleappengine/issues/detail?id=1941:
   Plugin fails to enhance dependent classes on source level changes

For a complete list of fixed issues, see the GWT issue
trackerhttp://code.google.com/p/google-web-toolkit/issues/list?can=1q=label:GPE_1_3
 and App Engine issue
trackerhttp://code.google.com/p/googleappengine/issues/list?can=1q=label:GPE_1_3
.

We encourage all interested developers to take the preview build for a spin,
and let us know what you think. We'll do everything possible to incorporate
your feedback before the final release, slated for later this month. Thanks!

Keith, on behalf of the Google Plugin for Eclipse team

-- 
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: Performance Issues

2010-03-03 Thread Robert Lancer
Join the google dosent care about app engine performance club. To see
how much google dosent care just check out their own app engine status
page.

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

Isnt it funny how google lectures the whole world about how the web
should be faster?

Also some things you can do do fix performance to make it as
slow(fast) as google app engine will allow.

Override the DataStoreService interface making your own version that
logs each round trip to a console output. This will help you learn how
many round trips your making to datastore. Also google discourages
cron pinggers but with them not providing a decent solution who can
blame you.

Also feel free to join my Google Please Fix App Engine For Java
facebook group 
http://www.facebook.com/pages/Google-Please-Fix-App-Engine-For-Java/372774516220
and post screen captures of your app failing!


On Mar 3, 12:12 pm, infoatdfx i...@dimitrifrederickx.be wrote:
 I'm having a Google App Engine account for my applications, and I'm
 also an administrator of an application which was not created under my
 account.

 The application that was not created under my account (but for which
 I'm an administrator) doesn't have much traffic yet, but when it goes
 live will probably have a few thousand requests per day. For now we
 are having a cron job running every minute to keep the application
 alive. But most of the time the cron job is not running on time. There
 is a red message that displays that the job was run 5 seconds or more
 too late. Even some cron jobs fail. With no traffic to my application
 (only the cron job running) the graph on my dashboard isn't a nice
 flat line with an average of 1 request per minute (0,0167 requests per
 second). We see a lot of peeks going from 0,005 to 0,02 requests per
 minute.

 When I deploy the same application on my own account (greated a new
 application in my account but deployed the same webapp), the
 performance is like I would expect. With no traffic and only the cron
 job running we get a nice graph with 0,0167 requests per second. The
 line is almost flat and no cron jobs are running late. Even no cron
 jobs fail.

 Also for simple request I see a performance difference between the two
 applications. I'm having a also a high CPU job that I need to run.
 This work am I doing with queues. When I execute the work in both
 applications, the slow application can only execute 3 to 4 tasks per
 minute, with the other one can run the same task with the same data 5
 to 6 times a minute.

 I would expect that both apps would behave in the same way and almost
 no notable performance difference, but this is clearly not the case.

 Is anyone having the same issue? What can be done about this? How can
 I increase the performance of the slow running application?

-- 
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] Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread Wong

Hi,

I am using Spring MVC. The application being cycled out overly
aggressively (sometimes less than 1 min)

http://groups.google.com/group/google-appengine-java/browse_thread/thread/b57e6c4895333fa8/6ef609f7da203ab3?lnk=gstq=overly#6ef609f7da203ab3

I register an HttpSessionListener to listen for loading request
which takes more than 20 seconds.


Due to the long loading request/cold start time, some requests hit the
following  HardDeadlineExceededError exception.


Log seen in my Admin Console:
com.google.apphosting.runtime.HardDeadlineExceededError: This request
(eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was
still executing at 2010/03/03 16:41:37.260 UTC.

This request used a high amount of CPU, and was roughly 1.5 times over
the average request CPU limit. High CPU requests have a small quota,
and if you exceed this quota, your app will be temporarily disabled.


I am currently on free quota. If I enable billing and set to higher
CPU quota, will I be able to avoid the HardDeadlineExceededError
problem?

-- 
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] Using dynamic subdomains

2010-03-03 Thread John Patterson
Just use the HttpServletRequest.getServerName() method and parse the  
sub domain out.   On the local server perhaps you could just use a  
query parameter instead to override the sub domain or set up an entry  
in your hosts file like 127.0.0.1 user.domain.com


On 4 Mar 2010, at 04:25, DutrowLLC wrote:


I would like to use subdomains to create dynamic content

For example, I would like for users to be able to sign up online and
then to be able to access their accounts via a subdomain in this
fashion:

www.their_user_id.mywittydomainname.com

Then in the application, I could display a personal login page based
on their_user_id.

How would I go about doing this?  Would this work when debugging
locally?

Thanks!

Chris

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




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



[appengine-java] Re: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread Wong

I enable billing the set the quota to 3 times over the free quota for
CPU Time. However, sometimes the request still fails with HTTP 500
error after app is being cycled out and loading request is being
performed.

In the log I see the following message:

This request used a high amount of CPU, and was roughly 1.4 times over
the average request CPU limit. High CPU requests have a small quota,
and if you exceed this quota, your app will be temporarily disabled.

I understand that solving long loading time problem for Spring MVC
should solve the problem. I just want to keep my app running properly
meanwhile waiting for Google for solution.


On Mar 4, 8:57 am, Wong lhw...@gmail.com wrote:
 Hi,

 I am using Spring MVC. The application being cycled out overly
 aggressively (sometimes less than 1 min)

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

 I register an HttpSessionListener to listen for loading request
 which takes more than 20 seconds.

 Due to the long loading request/cold start time, some requests hit the
 following  HardDeadlineExceededError exception.

 Log seen in my Admin Console:
 com.google.apphosting.runtime.HardDeadlineExceededError: This request
 (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was
 still executing at 2010/03/03 16:41:37.260 UTC.

 This request used a high amount of CPU, and was roughly 1.5 times over
 the average request CPU limit. High CPU requests have a small quota,
 and if you exceed this quota, your app will be temporarily disabled.

 I am currently on free quota. If I enable billing and set to higher
 CPU quota, will I be able to avoid the HardDeadlineExceededError
 problem?

-- 
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 is my stack trace?

2010-03-03 Thread David Peters
I haven't been able to find my exception stack traces in the app
engine logs (from e.printStackTrace()).  Checked error, info, warning,
etc..  Where should they be logged?

-- 
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: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread John Patterson
Hi Wong, I had this problem a while back when I was doing some  
intensive computations in my code.  Eventually the entire app would  
become blocked for some minutes.  The limit for API CPU is a lot  
higher than for CPU usage in your own code.  I didn't come up with a  
solution to the problem - I am waiting for inspiration to figure out a  
more efficient algorithm.


BTW, the daily CPU quota you increased is different from the per  
minute quota that you are running into.


On 4 Mar 2010, at 08:31, Wong wrote:



I enable billing the set the quota to 3 times over the free quota for
CPU Time. However, sometimes the request still fails with HTTP 500
error after app is being cycled out and loading request is being
performed.

In the log I see the following message:

This request used a high amount of CPU, and was roughly 1.4 times over
the average request CPU limit. High CPU requests have a small quota,
and if you exceed this quota, your app will be temporarily disabled.

I understand that solving long loading time problem for Spring MVC
should solve the problem. I just want to keep my app running properly
meanwhile waiting for Google for solution.


On Mar 4, 8:57 am, Wong lhw...@gmail.com wrote:

Hi,

I am using Spring MVC. The application being cycled out overly
aggressively (sometimes less than 1 min)

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


I register an HttpSessionListener to listen for loading request
which takes more than 20 seconds.

Due to the long loading request/cold start time, some requests hit  
the

following  HardDeadlineExceededError exception.

Log seen in my Admin Console:
com.google.apphosting.runtime.HardDeadlineExceededError: This request
(eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was
still executing at 2010/03/03 16:41:37.260 UTC.

This request used a high amount of CPU, and was roughly 1.5 times  
over

the average request CPU limit. High CPU requests have a small quota,
and if you exceed this quota, your app will be temporarily disabled.

I am currently on free quota. If I enable billing and set to higher
CPU quota, will I be able to avoid the HardDeadlineExceededError
problem?


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




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



Re: [appengine-java] Where is my stack trace?

2010-03-03 Thread John Patterson
Try java.util.logging.Logger.log(Level level, String msg, Throwable  
thrown)


On 4 Mar 2010, at 08:40, David Peters wrote:


I haven't been able to find my exception stack traces in the app
engine logs (from e.printStackTrace()).  Checked error, info, warning,
etc..  Where should they be logged?

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




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



[appengine-java] Re: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread gholler
No, the 30 second limit is a hard limit. If a request can't finish in
30 seconds (or somewhat earlier), you get an exception. You then have
an undetermined amount of time before the app engine kills your
request and returns a 500 status code. You wouldn't happen to be using
Spring, would you?

On Mar 3, 7:57 pm, Wong lhw...@gmail.com wrote:
 Hi,

 I am using Spring MVC. The application being cycled out overly
 aggressively (sometimes less than 1 min)

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

 I register an HttpSessionListener to listen for loading request
 which takes more than 20 seconds.

 Due to the long loading request/cold start time, some requests hit the
 following  HardDeadlineExceededError exception.

 Log seen in my Admin Console:
 com.google.apphosting.runtime.HardDeadlineExceededError: This request
 (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was
 still executing at 2010/03/03 16:41:37.260 UTC.

 This request used a high amount of CPU, and was roughly 1.5 times over
 the average request CPU limit. High CPU requests have a small quota,
 and if you exceed this quota, your app will be temporarily disabled.

 I am currently on free quota. If I enable billing and set to higher
 CPU quota, will I be able to avoid the HardDeadlineExceededError
 problem?

-- 
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: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread gholler
Okay, the first thing mentioned was that you are using Spring. We are
doing an experiment removing Spring in our app to see what impact it
has on startup time.

On Mar 3, 7:57 pm, Wong lhw...@gmail.com wrote:
 Hi,

 I am using Spring MVC. The application being cycled out overly
 aggressively (sometimes less than 1 min)

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

 I register an HttpSessionListener to listen for loading request
 which takes more than 20 seconds.

 Due to the long loading request/cold start time, some requests hit the
 following  HardDeadlineExceededError exception.

 Log seen in my Admin Console:
 com.google.apphosting.runtime.HardDeadlineExceededError: This request
 (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was
 still executing at 2010/03/03 16:41:37.260 UTC.

 This request used a high amount of CPU, and was roughly 1.5 times over
 the average request CPU limit. High CPU requests have a small quota,
 and if you exceed this quota, your app will be temporarily disabled.

 I am currently on free quota. If I enable billing and set to higher
 CPU quota, will I be able to avoid the HardDeadlineExceededError
 problem?

-- 
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] Spring breaks in GAE 1.3.1 - ClassPathXmlApplicationContext - Security Constraint

2010-03-03 Thread niraj
My app seems to be getting an Error in Loading Spring. Note the
exception below.

Conditions:
1. The Code works fine in Local Environment - No problem.
2. the Problem is only on the AppEngine Physical instance.
3. Seems like there is a new Security Constraint introduced that is
causing the problem
4. I am using ClassPathXmlApplicationContext from Spring to Load the
Context.

Please advise.



org.webscale.json.JSONServlet init: access denied
(java.lang.RuntimePermission getClassLoader)
java.security.AccessControlException: access denied
(java.lang.RuntimePermission getClassLoader)
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)
at java.lang.ClassLoader.getSystemClassLoader(Unknown Source)
at
org.springframework.beans.BeanUtils.findEditorByConvention(BeanUtils.java:
368)
at
org.springframework.beans.TypeConverterDelegate.findDefaultEditor(TypeConverterDelegate.java:
262)
at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:
171)
at
org.springframework.beans.TypeConverterDelegate.convertIfNecessary(TypeConverterDelegate.java:
107)
at
org.springframework.beans.BeanWrapperImpl.convertIfNecessary(BeanWrapperImpl.java:
362)
at
org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:
548)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:
193)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:
925)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:
835)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:
440)
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.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:
429)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:
728)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:
380)
at
org.springframework.context.support.ClassPathXmlApplicationContext.init(ClassPathXmlApplicationContext.java:
139)
at
org.springframework.context.support.ClassPathXmlApplicationContext.init(ClassPathXmlApplicationContext.java:
93)
at
org.webscale.ApplicationController.loadSpring(ApplicationController.java:
143)
at org.webscale.ApplicationController.init(ApplicationController.java:
90)
at org.webscale.ApplicationController.init(ApplicationController.java:
80)
at org.webscale.json.JSONServlet.init(JSONServlet.java:40)

-- 
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: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread Wong

This problem normally happens In the case of loading requests,
though, the execution time is artificially longer due to the extra
application initialization required..
http://code.google.com/appengine/kb/java.html#Do_I_Need_To_Be_Concerned_About_High_CPU_Warnings

I am using Spring MVC version 3.0.0 RC1. I can't really do much to
reduce the loading request or application/framework initialization
time. And, since this is a hard limit, I think I can't do anything
other than switching to other framework or plain servlet. However, I
also see a lot of posts by other on loading request issue even in
plain servlet.
http://groups.google.com/group/google-appengine-java/browse_thread/thread/b57e6c4895333fa8/6ef609f7da203ab3?lnk=gstq=overly#6ef609f7da203ab3

Can anyone confirm that Spring MVC version 2.5.6 is working fine on
GAE?



On Mar 4, 9:51 am, gholler georgehol...@gmail.com wrote:
 No, the 30 second limit is a hard limit. If a request can't finish in
 30 seconds (or somewhat earlier), you get an exception. You then have
 an undetermined amount of time before the app engine kills your
 request and returns a 500 status code. You wouldn't happen to be using
 Spring, would you?

 On Mar 3, 7:57 pm, Wong lhw...@gmail.com wrote:

  Hi,

  I am using Spring MVC. The application being cycled out overly
  aggressively (sometimes less than 1 min)

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

  I register an HttpSessionListener to listen for loading request
  which takes more than 20 seconds.

  Due to the long loading request/cold start time, some requests hit the
  following  HardDeadlineExceededError exception.

  Log seen in my Admin Console:
  com.google.apphosting.runtime.HardDeadlineExceededError: This request
  (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was
  still executing at 2010/03/03 16:41:37.260 UTC.

  This request used a high amount of CPU, and was roughly 1.5 times over
  the average request CPU limit. High CPU requests have a small quota,
  and if you exceed this quota, your app will be temporarily disabled.

  I am currently on free quota. If I enable billing and set to higher
  CPU quota, will I be able to avoid the HardDeadlineExceededError
  problem?

-- 
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: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread yjun hu
Can anyone confirm that Spring MVC version 2.5.6 is working fine on
GAE?

No, the same problem is also in spring2.5

there is no better way to avoid that, you can try to run cron job to make
your application reactive .

Hitting a url every 1 miute, i did this ,that's all i did.

On Thu, Mar 4, 2010 at 10:16 AM, Wong lhw...@gmail.com wrote:


 This problem normally happens In the case of loading requests,
 though, the execution time is artificially longer due to the extra
 application initialization required..

 http://code.google.com/appengine/kb/java.html#Do_I_Need_To_Be_Concerned_About_High_CPU_Warnings

 I am using Spring MVC version 3.0.0 RC1. I can't really do much to
 reduce the loading request or application/framework initialization
 time. And, since this is a hard limit, I think I can't do anything
 other than switching to other framework or plain servlet. However, I
 also see a lot of posts by other on loading request issue even in
 plain servlet.

 http://groups.google.com/group/google-appengine-java/browse_thread/thread/b57e6c4895333fa8/6ef609f7da203ab3?lnk=gstq=overly#6ef609f7da203ab3

 Can anyone confirm that Spring MVC version 2.5.6 is working fine on
 GAE?



 On Mar 4, 9:51 am, gholler georgehol...@gmail.com wrote:
  No, the 30 second limit is a hard limit. If a request can't finish in
  30 seconds (or somewhat earlier), you get an exception. You then have
  an undetermined amount of time before the app engine kills your
  request and returns a 500 status code. You wouldn't happen to be using
  Spring, would you?
 
  On Mar 3, 7:57 pm, Wong lhw...@gmail.com wrote:
 
   Hi,
 
   I am using Spring MVC. The application being cycled out overly
   aggressively (sometimes less than 1 min)
 
  http://groups.google.com/group/google-appengine-java/browse_thread/th.
 ..
 
   I register an HttpSessionListener to listen for loading request
   which takes more than 20 seconds.
 
   Due to the long loading request/cold start time, some requests hit the
   following  HardDeadlineExceededError exception.
 
   Log seen in my Admin Console:
   com.google.apphosting.runtime.HardDeadlineExceededError: This request
   (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was
   still executing at 2010/03/03 16:41:37.260 UTC.
 
   This request used a high amount of CPU, and was roughly 1.5 times over
   the average request CPU limit. High CPU requests have a small quota,
   and if you exceed this quota, your app will be temporarily disabled.
 
   I am currently on free quota. If I enable billing and set to higher
   CPU quota, will I be able to avoid the HardDeadlineExceededError
   problem?

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




-- 
dream or truth

-- 
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: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread Wong



I used to run cron to make request every 1 min to a jsp which only
write out a line of text. I uses a HttpSessionListener to listen for
any loading request/startup. Even ping every 1 min the loading
request still happens. I still got 500 error due to the request CPU is
is over the limit.


On Mar 4, 10:21 am, yjun hu itswa...@gmail.com wrote:
 Can anyone confirm that Spring MVC version 2.5.6 is working fine on
 GAE?

 No, the same problem is also in spring2.5

 there is no better way to avoid that, you can try to run cron job to make
 your application reactive .

 Hitting a url every 1 miute, i did this ,that's all i did.



 On Thu, Mar 4, 2010 at 10:16 AM, Wong lhw...@gmail.com wrote:

  This problem normally happens In the case of loading requests,
  though, the execution time is artificially longer due to the extra
  application initialization required..

 http://code.google.com/appengine/kb/java.html#Do_I_Need_To_Be_Concern...

  I am using Spring MVC version 3.0.0 RC1. I can't really do much to
  reduce the loading request or application/framework initialization
  time. And, since this is a hard limit, I think I can't do anything
  other than switching to other framework or plain servlet. However, I
  also see a lot of posts by other on loading request issue even in
  plain servlet.

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

  Can anyone confirm that Spring MVC version 2.5.6 is working fine on
  GAE?

  On Mar 4, 9:51 am, gholler georgehol...@gmail.com wrote:
   No, the 30 second limit is a hard limit. If a request can't finish in
   30 seconds (or somewhat earlier), you get an exception. You then have
   an undetermined amount of time before the app engine kills your
   request and returns a 500 status code. You wouldn't happen to be using
   Spring, would you?

   On Mar 3, 7:57 pm, Wong lhw...@gmail.com wrote:

Hi,

I am using Spring MVC. The application being cycled out overly
aggressively (sometimes less than 1 min)

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

I register an HttpSessionListener to listen for loading request
which takes more than 20 seconds.

Due to the long loading request/cold start time, some requests hit the
following  HardDeadlineExceededError exception.

Log seen in my Admin Console:
com.google.apphosting.runtime.HardDeadlineExceededError: This request
(eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was
still executing at 2010/03/03 16:41:37.260 UTC.

This request used a high amount of CPU, and was roughly 1.5 times over
the average request CPU limit. High CPU requests have a small quota,
and if you exceed this quota, your app will be temporarily disabled.

I am currently on free quota. If I enable billing and set to higher
CPU quota, will I be able to avoid the HardDeadlineExceededError
problem?

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

 --
 dream or truth

-- 
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: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread yjun hu
maybe you'd better run hitting an action class, not a simple jsp page.

On Thu, Mar 4, 2010 at 11:01 AM, Wong lhw...@gmail.com wrote:




 I used to run cron to make request every 1 min to a jsp which only
 write out a line of text. I uses a HttpSessionListener to listen for
 any loading request/startup. Even ping every 1 min the loading
 request still happens. I still got 500 error due to the request CPU is
 is over the limit.


 On Mar 4, 10:21 am, yjun hu itswa...@gmail.com wrote:
  Can anyone confirm that Spring MVC version 2.5.6 is working fine on
  GAE?
 
  No, the same problem is also in spring2.5
 
  there is no better way to avoid that, you can try to run cron job to make
  your application reactive .
 
  Hitting a url every 1 miute, i did this ,that's all i did.
 
 
 
  On Thu, Mar 4, 2010 at 10:16 AM, Wong lhw...@gmail.com wrote:
 
   This problem normally happens In the case of loading requests,
   though, the execution time is artificially longer due to the extra
   application initialization required..
 
  http://code.google.com/appengine/kb/java.html#Do_I_Need_To_Be_Concern.
 ..
 
   I am using Spring MVC version 3.0.0 RC1. I can't really do much to
   reduce the loading request or application/framework initialization
   time. And, since this is a hard limit, I think I can't do anything
   other than switching to other framework or plain servlet. However, I
   also see a lot of posts by other on loading request issue even in
   plain servlet.
 
  http://groups.google.com/group/google-appengine-java/browse_thread/th.
 ..
 
   Can anyone confirm that Spring MVC version 2.5.6 is working fine on
   GAE?
 
   On Mar 4, 9:51 am, gholler georgehol...@gmail.com wrote:
No, the 30 second limit is a hard limit. If a request can't finish in
30 seconds (or somewhat earlier), you get an exception. You then have
an undetermined amount of time before the app engine kills your
request and returns a 500 status code. You wouldn't happen to be
 using
Spring, would you?
 
On Mar 3, 7:57 pm, Wong lhw...@gmail.com wrote:
 
 Hi,
 
 I am using Spring MVC. The application being cycled out overly
 aggressively (sometimes less than 1 min)
 

 http://groups.google.com/group/google-appengine-java/browse_thread/th.
   ..
 
 I register an HttpSessionListener to listen for loading request
 which takes more than 20 seconds.
 
 Due to the long loading request/cold start time, some requests hit
 the
 following  HardDeadlineExceededError exception.
 
 Log seen in my Admin Console:
 com.google.apphosting.runtime.HardDeadlineExceededError: This
 request
 (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was
 still executing at 2010/03/03 16:41:37.260 UTC.
 
 This request used a high amount of CPU, and was roughly 1.5 times
 over
 the average request CPU limit. High CPU requests have a small
 quota,
 and if you exceed this quota, your app will be temporarily
 disabled.
 
 I am currently on free quota. If I enable billing and set to higher
 CPU quota, will I be able to avoid the HardDeadlineExceededError
 problem?
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine for Java group.
   To post to this group, send email to
   google-appengine-j...@googlegroups.com.
   To unsubscribe from this group, send email to
   google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine-java?hl=en.
 
  --
  dream or truth

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




-- 
dream or truth

-- 
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: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread Wong
I am not sure what do you mean by action class. Could you please give
me a pointer?

I made change to ping a Controller class every 1 min. Same problem
persists.

On Mar 4, 11:06 am, yjun hu itswa...@gmail.com wrote:
 maybe you'd better run hitting an action class, not a simple jsp page.



 On Thu, Mar 4, 2010 at 11:01 AM, Wong lhw...@gmail.com wrote:

  I used to run cron to make request every 1 min to a jsp which only
  write out a line of text. I uses a HttpSessionListener to listen for
  any loading request/startup. Even ping every 1 min the loading
  request still happens. I still got 500 error due to the request CPU is
  is over the limit.

  On Mar 4, 10:21 am, yjun hu itswa...@gmail.com wrote:
   Can anyone confirm that Spring MVC version 2.5.6 is working fine on
   GAE?

   No, the same problem is also in spring2.5

   there is no better way to avoid that, you can try to run cron job to make
   your application reactive .

   Hitting a url every 1 miute, i did this ,that's all i did.

   On Thu, Mar 4, 2010 at 10:16 AM, Wong lhw...@gmail.com wrote:

This problem normally happens In the case of loading requests,
though, the execution time is artificially longer due to the extra
application initialization required..

   http://code.google.com/appengine/kb/java.html#Do_I_Need_To_Be_Concern.
  ..

I am using Spring MVC version 3.0.0 RC1. I can't really do much to
reduce the loading request or application/framework initialization
time. And, since this is a hard limit, I think I can't do anything
other than switching to other framework or plain servlet. However, I
also see a lot of posts by other on loading request issue even in
plain servlet.

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

Can anyone confirm that Spring MVC version 2.5.6 is working fine on
GAE?

On Mar 4, 9:51 am, gholler georgehol...@gmail.com wrote:
 No, the 30 second limit is a hard limit. If a request can't finish in
 30 seconds (or somewhat earlier), you get an exception. You then have
 an undetermined amount of time before the app engine kills your
 request and returns a 500 status code. You wouldn't happen to be
  using
 Spring, would you?

 On Mar 3, 7:57 pm, Wong lhw...@gmail.com wrote:

  Hi,

  I am using Spring MVC. The application being cycled out overly
  aggressively (sometimes less than 1 min)

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

  I register an HttpSessionListener to listen for loading request
  which takes more than 20 seconds.

  Due to the long loading request/cold start time, some requests hit
  the
  following  HardDeadlineExceededError exception.

  Log seen in my Admin Console:
  com.google.apphosting.runtime.HardDeadlineExceededError: This
  request
  (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and was
  still executing at 2010/03/03 16:41:37.260 UTC.

  This request used a high amount of CPU, and was roughly 1.5 times
  over
  the average request CPU limit. High CPU requests have a small
  quota,
  and if you exceed this quota, your app will be temporarily
  disabled.

  I am currently on free quota. If I enable billing and set to higher
  CPU quota, will I be able to avoid the HardDeadlineExceededError
  problem?

--
You received this message because you are subscribed to the Google
  Groups
Google App Engine for Java group.
To post to this group, send email to
google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to
google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
  google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com

.
For more options, visit this group at
   http://groups.google.com/group/google-appengine-java?hl=en.

   --
   dream or truth

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

 --
 dream or truth

-- 
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: Enable billing to avoid HardDeadlineExceededError?

2010-03-03 Thread yjun hu
Sorry, i'm using spring+struts , action class means controller in spring
mvc.
run cron job to make reactive, it's a temporary way, just make this problem
always be happen

On Thu, Mar 4, 2010 at 11:51 AM, Wong lhw...@gmail.com wrote:

 I am not sure what do you mean by action class. Could you please give
 me a pointer?

 I made change to ping a Controller class every 1 min. Same problem
 persists.

 On Mar 4, 11:06 am, yjun hu itswa...@gmail.com wrote:
  maybe you'd better run hitting an action class, not a simple jsp page.
 
 
 
  On Thu, Mar 4, 2010 at 11:01 AM, Wong lhw...@gmail.com wrote:
 
   I used to run cron to make request every 1 min to a jsp which only
   write out a line of text. I uses a HttpSessionListener to listen for
   any loading request/startup. Even ping every 1 min the loading
   request still happens. I still got 500 error due to the request CPU is
   is over the limit.
 
   On Mar 4, 10:21 am, yjun hu itswa...@gmail.com wrote:
Can anyone confirm that Spring MVC version 2.5.6 is working fine on
GAE?
 
No, the same problem is also in spring2.5
 
there is no better way to avoid that, you can try to run cron job to
 make
your application reactive .
 
Hitting a url every 1 miute, i did this ,that's all i did.
 
On Thu, Mar 4, 2010 at 10:16 AM, Wong lhw...@gmail.com wrote:
 
 This problem normally happens In the case of loading requests,
 though, the execution time is artificially longer due to the extra
 application initialization required..
 

 http://code.google.com/appengine/kb/java.html#Do_I_Need_To_Be_Concern.
   ..
 
 I am using Spring MVC version 3.0.0 RC1. I can't really do much to
 reduce the loading request or application/framework
 initialization
 time. And, since this is a hard limit, I think I can't do anything
 other than switching to other framework or plain servlet. However,
 I
 also see a lot of posts by other on loading request issue even in
 plain servlet.
 

 http://groups.google.com/group/google-appengine-java/browse_thread/th.
   ..
 
 Can anyone confirm that Spring MVC version 2.5.6 is working fine on
 GAE?
 
 On Mar 4, 9:51 am, gholler georgehol...@gmail.com wrote:
  No, the 30 second limit is a hard limit. If a request can't
 finish in
  30 seconds (or somewhat earlier), you get an exception. You then
 have
  an undetermined amount of time before the app engine kills your
  request and returns a 500 status code. You wouldn't happen to be
   using
  Spring, would you?
 
  On Mar 3, 7:57 pm, Wong lhw...@gmail.com wrote:
 
   Hi,
 
   I am using Spring MVC. The application being cycled out overly
   aggressively (sometimes less than 1 min)
 
  http://groups.google.com/group/google-appengine-java/browse_thread/th.
 ..
 
   I register an HttpSessionListener to listen for loading
 request
   which takes more than 20 seconds.
 
   Due to the long loading request/cold start time, some requests
 hit
   the
   following  HardDeadlineExceededError exception.
 
   Log seen in my Admin Console:
   com.google.apphosting.runtime.HardDeadlineExceededError: This
   request
   (eb11499c97029f78) started at 2010/03/03 16:41:08.062 UTC and
 was
   still executing at 2010/03/03 16:41:37.260 UTC.
 
   This request used a high amount of CPU, and was roughly 1.5
 times
   over
   the average request CPU limit. High CPU requests have a small
   quota,
   and if you exceed this quota, your app will be temporarily
   disabled.
 
   I am currently on free quota. If I enable billing and set to
 higher
   CPU quota, will I be able to avoid the
 HardDeadlineExceededError
   problem?
 
 --
 You received this message because you are subscribed to the Google
   Groups
 Google App Engine for Java group.
 To post to this group, send email to
 google-appengine-j...@googlegroups.com.
 To unsubscribe from this group, send email to
 google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 
   google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com
 google-appengine-java%252bunsubscr...@googlegroups.comgoogle-appengine-java%25252bunsubscr...@googlegroups.com
 
 
 .
 For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.
 
--
dream or truth
 
   --
   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
 

[appengine-java] Multiple transactions at the same time

2010-03-03 Thread DutrowLLC
I was hoping to have several transactions going at the same time and
if anything failed in anyone of them, then I could roll back all of
them.

I set up some code to do this, looks something like the code below,
there may be some other problems, but the one that I see is that what
if there is an Exception thrown in the loop where I commit the
transactions, then I've already committed some of them, but not
others?  Is this not something that I should be doing?  If not, how
should I handle this sort of situation?

VectorTransaction txnVector = new VectorTransaction();
DatastoreService ds;
Transaction txn;

try{
ds = DatastoreServiceFactory.getDatastoreService();
txn = ds.beginTransaction();
txnVector.add(txn);
ds.put( entity, txn );

ds = DatastoreServiceFactory.getDatastoreService();
txn = ds.beginTransaction();
txnVector.add(txn);
ds.put( entity2, txn );
}
// ROLL BACK IF THERE IS A PROBLEM
catch( Exception e ){
   for( Transaction txn : txnVector ){
 if( txn.isActive() ){
   txn.rollback();
 }
   }
}
// COMMIT ALL
for( Transaction txn : txnVector ){
 if( txn.IsActive() ){
   txn.commit();
 }
}




-- 
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] Is there any roadmap for app engine xmpp service.

2010-03-03 Thread xiuxiu
Want the customize username and domain name so much~~!!!
Looks forward to the timeframe of it.

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



[appengine-java] Programmatically schedule cron jobs

2010-03-03 Thread Thomas Oldervoll
Is there a way to programmatically schedule new cron jobs, preferably
using the Java API? I would like to offer my users the chance to
schedule actions to happen at a later time, but from reading
http://code.google.com/appengine/docs/java/config/cron.html it sounds
like the only way to add a new cron job is to edit cron.xml. Is there
a way to do this in code?

Thomas

-- 
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] Programmatically schedule cron jobs

2010-03-03 Thread yjun hu
By visitting one url in cron.xml, and i think you can do anything for this
url.

On Thu, Mar 4, 2010 at 11:04 AM, Thomas Oldervoll 
thomas.olderv...@gmail.com wrote:

 Is there a way to programmatically schedule new cron jobs, preferably
 using the Java API? I would like to offer my users the chance to
 schedule actions to happen at a later time, but from reading
 http://code.google.com/appengine/docs/java/config/cron.html it sounds
 like the only way to add a new cron job is to edit cron.xml. Is there
 a way to do this in code?

 Thomas

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




-- 
dream or truth

-- 
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] Deploying JavaFX application on Google App Engine for Java

2010-03-03 Thread Sanjeev Singh
Here is the link ..
http://110j.wordpress.com/2008/12/31/javafx-on-google-app-engine/
Seems we have to register static folder in app.yaml and followed by other
process .. Don't what is applicable in App-engine for java.

It seems that folder or some files I have to declare in web.xml or some
other file.


On Thu, Mar 4, 2010 at 6:26 AM, Ikai L (Google) ika...@google.com wrote:

 Can you post the URL to the Python example?

 On Wed, Mar 3, 2010 at 12:44 PM, Sanjeev isanjeevsi...@gmail.com wrote:

 Hi All,

 I am just looking for any tutorial or any standard process which can
 be followed so as to deploy a JavaFX application on Appengine for
 java ... Please help me in this regard. I already found 1 page
 regarding this but it was dedicated for the Python appengine. Let me
 know if deploying a JavaFx application is supported by Google App
 Engine for Java.

 Highly appreciate if somebody can help me.

 Thanks

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




 --
 Ikai Lan
 Developer Programs Engineer, Google App Engine
 http://googleappengine.blogspot.com | http://twitter.com/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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine-java?hl=en.




-- 
Sanjeev Singh
Application Engineer
Oracle EBiz Suite
+91-9000406180

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



[google-appengine] Re: non sms activation, then app creation issues

2010-03-03 Thread sjh
Wesley hi,

When i go to http://appengine.google.com I get the Welcome to Google
App Engine screen  the create an application button,

App identifiers i have tried are sjh-vimrc, v1m-rc  vimrcdotcom

Thanks

--
sjh


On Mar 2, 11:40 pm, Wesley Chun (Google) wesc+...@google.com
wrote:
 what is/are the app identifier(s) you have already used? are you sure
 they don't show up in your list of applications now? (just go 
 tohttp://appengine.google.comand check.)

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

 wesley.j.chun :: wesc+...@google.com
 developer relations :: 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] Different logs

2010-03-03 Thread Flips
Hi,

I have an application that communicates with several servers. These
servers are flooding my logs and it is quite complicated to get the
real requests from real users. I thought that I could create a new
version and use its sub-domain for the communication with my servers.
This would result in two different logs, one for my server-
communication and one for the real requests from users, spiders and
anything else.

Should I do this or are there any side-effects?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
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: What is wrong with my URL mapping? (app.yaml)

2010-03-03 Thread Andi Albrecht
On Tue, Mar 2, 2010 at 8:13 PM, Pydevil pyde...@gmail.com wrote:

 i tried as you wrote here... and it doesn't work for me
 app.yaml:
 handlers:
 - url: /scripts/.*
  script: vtip.py
 - url: /.*
  script: main.py

 vtip.py:
 application = webapp.WSGIApplication([('/scripts/.*', MainHandler)],
   debug=True)

 i cannot execute vtip.py
 http://localhost:8080/scripts   ...throws error 404
 http://localhost:8080/scripts/ or http://localhost:8080/scripts/vtip.py
 ...  throw:

 Traceback (most recent call last):
  File C:\Program Files\Google\google_appengine\google\appengine\tools
 \dev_appserver.py, line 3180, in _HandleRequest
self._Dispatch(dispatcher, self.rfile, outfile, env_dict)
  File C:\Program Files\Google\google_appengine\google\appengine\tools
 \dev_appserver.py, line 3123, in _Dispatch
base_env_dict=env_dict)
  File C:\Program Files\Google\google_appengine\google\appengine\tools
 \dev_appserver.py, line 515, in Dispatch
base_env_dict=base_env_dict)
  File C:\Program Files\Google\google_appengine\google\appengine\tools
 \dev_appserver.py, line 2382, in Dispatch
 .. and so on


That traceback doesn't help much. The interesting stuff is in the last lines
of a traceback... :)

Andi



 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 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] Proximity search

2010-03-03 Thread Barry Hunter
Mutiny is a slightly refined of (and better version) than geohash

http://appgallery.appspot.com/about_app?app_id=agphcHBnYWxsZXJ5chQLEgxBcHBsaWNhdGlvbnMYjekBDA

Dont know how easy would be to port to java.

On 3 March 2010 05:59, Robert Kluin robert.kl...@gmail.com wrote:
 Have you looked into the geohash method?  It is not perfect but I think
 there are a number of people using that technique.

 Robert



 On Mar 2, 2010, at 16:52, vendor.net vendor@gmail.com wrote:

 I read many articles about geocaching and etc, but I still can`t find
 a way to do this:

 I have a DB:
 - id
 - latitude
 - longitude

 I have a latitude-x and longitud-y and I want to search my DB for
 records which are in 10 miles radius of the given latitude-x and
 longitud-y on Java.

 Thanks!

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


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


-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
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 column limit ?

2010-03-03 Thread Nick Johnson (Google)
Hi,

What error/issue are you experiencing? Up to several thousand properties
should be possible.

-Nick Johnson

On Wed, Mar 3, 2010 at 4:16 AM, redsox2005 mganley2...@gmail.com wrote:

 I have a class model with 100 integer columns.  I cannot store and
 retrieve more than 65 columns to and from the datastore.  Is this a
 known issue?  Is there a limit to the number of properties a model can
 have (aka columns) ?

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 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] server error on random occasions

2010-03-03 Thread Nick Johnson (Google)
Hi Manny,

It's impossible to say based on your description what the problem might be.
Most likely, your application is throwing an exception - you need to check
the request logs in your admin console to determine what went wrong.

-Nick Johnson

On Tue, Mar 2, 2010 at 5:25 PM, Manny S manny.m...@gmail.com wrote:

 I have my application deployed onto App Engine.  When I access my
 application at times I get a server error. If I refresh the page the server
 error goes away.  Another time the app worked perfectly for me but a friend
 based out of a different city tried to access it and it kept giving him the
 server error for about half an hour. And then he was able to access the
 application.

 The error -  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 did a search and there were a couple of posts that mentioned app.yaml
 formatting issues. I work on the Java side and so far my web.xml seems to be
 well formatted. If the formatting is bad wouldn't the error at least be
 consistent. Not sure why it happens occasionally. Any explanations or inputs
 on this issue would be greatly appreciated.

 Manny





  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 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: Proximity search

2010-03-03 Thread bFlood
and GeoModel:
http://code.google.com/apis/maps/articles/geospatial.html



On Mar 3, 4:53 am, Barry Hunter barrybhun...@googlemail.com wrote:
 Mutiny is a slightly refined of (and better version) than geohash

 http://appgallery.appspot.com/about_app?app_id=agphcHBnYWxsZXJ5chQLEg...

 Dont know how easy would be to port to java.

 On 3 March 2010 05:59, Robert Kluin robert.kl...@gmail.com wrote:



  Have you looked into the geohash method?  It is not perfect but I think
  there are a number of people using that technique.

  Robert

  On Mar 2, 2010, at 16:52, vendor.net vendor@gmail.com wrote:

  I read many articles about geocaching and etc, but I still can`t find
  a way to do this:

  I have a DB:
  - id
  - latitude
  - longitude

  I have a latitude-x and longitud-y and I want to search my DB for
  records which are in 10 miles radius of the given latitude-x and
  longitud-y on Java.

  Thanks!

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

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

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
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: Calling a web service from JSP

2010-03-03 Thread midi
Pls post the code that is used for calling the URI.

Maly
http://servetube.appspot.com



On Mar 2, 11:37 am, Kirth kirt...@gmail.com wrote:
 I am doing a project on RESTful web services on Google App Engine
 (Java) in Netbeans IDE. The problem is, after creating a RESTful web
 service in Netbeans, error comes while attempting to test the service
 using the option TEST RESTFUL WEB SERVICES. I get ERROR 400 or ERROR
 500.
 The HTTP Error 500 says like this:
 Need to specify class name in environment or system property, or as
 an applet parameter or in an application resource file:
 java.naming.factory.initial

 I have created RESTful web service from a newly created database. Now,
 when I run the project, the JSP page I have created appears on the
 browser. But, I need to know WHAT THE CODE IS to CONNECT THE JSP page
 with the Service. Meaning, how can I call the web service from the JSP
 page or how do I connect the JSP page and the WEB SERVICE.

 For example, if I click on the SUBMIT button on the JSP output page on
 the browser, the details that I have entered on in the browser page
 must contact the HTTP Methods of the RESTful web service and update in
 the database correspondingly. So, is there any tutorial or any
 specific code to be inserted so that my project works flawlessly?

 URGENT!!! PLS HELP...

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



[google-appengine] Re: App Engine Status Page Almost as Slow as my app

2010-03-03 Thread Robert Lancer
Hi Wesly thank you for your reply! Overall its not just about the
status page showing up or not, I am very upset with the overall
performance of app engine. Just this past night query latency spiked
to over 1200ms. Google seems to not be properly addressing these
issues and or treating them with the amount of severity they deserves.
I have spend the past 5 months developing my application and have been
recently doing everything possible to optimize my code but when a
single query takes over a second to run this becomes impossible. When
the Feb 24th outage accord Google replied swiftly and treated the
problem with a war room like mentality, I would like the same
treatment for these performance issues.

Thanks

On Mar 2, 6:50 pm, Wesley Chun (Google) wesc+...@google.com wrote:
 robert, are you still experiencing a slow response? i was able to get
 it to come up in about 5-6s (not speedy but it does return). also, at
 this time, 11:40p GMT/UTC, we are experiencing some datastore issues
 that are being investigated.

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

 wesley.j.chun :: wesc+...@google.com
 developer relations :: 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: Datastore column limit ?

2010-03-03 Thread redsox2005
If I initialize the 96 integer property columns that I defined with a
default value of zero (default=0), then everything works fine - the
datastore viewer and the query in my application work as expected.

I will post a better set of information on this shortly.  What I
experienced was actually easily reproducible in the development
environment.

It was almost as if the model was forgetting about the null (None)
columns, since they were so far to the right of the row.  As if they
were not there.  So, initializing to zero made sure that there was
something there (as if it were a placeholder almost.)


On Mar 3, 5:01 am, Nick Johnson (Google) nick.john...@google.com
wrote:
 Hi,

 What error/issue are you experiencing? Up to several thousand properties
 should be possible.

 -Nick Johnson





 On Wed, Mar 3, 2010 at 4:16 AM, redsox2005 mganley2...@gmail.com wrote:
  I have a class model with 100 integer columns.  I cannot store and
  retrieve more than 65 columns to and from the datastore.  Is this a
  known issue?  Is there a limit to the number of properties a model can
  have (aka columns) ?

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  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...@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- Hide quoted text -

 - Show quoted text -

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
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] I can run my doFilter() method?

2010-03-03 Thread fige257
hello:

I use struct for my app engine, my web.xml config like part 1,the whole 
web.xml in the attachment.
but when deploy it to app engine,it can't filter,engine error like part 
2,it's can't run my filter class(com.zefei.appforum.filter.OnlineFilter)!
when i run on local it work fine,like part 3!
I need dofilter init data else data will be null
my website is http://myappforum.appspot.com/ 

thanks
part 1:
  filter
filter-nameOnlineFilter/filter-name
filter-classcom.zefei.appforum.filter.OnlineFilter/filter-class
  /filter
  filter-mapping
filter-nameOnlineFilter/filter-name
url-pattern*.jsp/url-pattern
  /filter-mapping
  filter-mapping
filter-nameOnlineFilter/filter-name
url-pattern*.do/url-pattern
  /filter-mapping
  filter-mapping
filter-nameOnlineFilter/filter-name
url-pattern*.html/url-pattern
  /filter-mapping
  filter
filter-nameFileCaptureFilter/filter-name
filter-classcom.zefei.appforum.filter.FileCaptureFilter/filter-class
  /filter
  filter-mapping
filter-nameFileCaptureFilter/filter-name
url-pattern*.jsp/url-pattern
  /filter-mapping
  filter-mapping
filter-nameFileCaptureFilter/filter-name
url-pattern*.html/url-pattern
  /filter-mapping
  filter

part 2:
at org.apache.jsp.index_jsp._jspService(index_jsp.java:67)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:362)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268)
at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
at 
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093)
at 
com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:97)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43)
at 
org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084)
at 
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360)
at 
org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
at 
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at 
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712)
at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405)
at 
com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:238)
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 
com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381)
at 
com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:135)
at 
com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:235)
at 
com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5485)
at 
com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5483)
at 
com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:24)
at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:363)
at com.google.net.rpc.impl.Server$2.run(Server.java:837)
at 
com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:56)
at 

Re: [google-appengine] Re: Proximity search

2010-03-03 Thread Robert Kluin
Nice I had seen the PubSchools demo app before, but I do not recall
seeing that article.

The logic behind most of these techniques is very similar, it is the
implementation of that logic that distinguishes them.  Personally I
would pick what ever is easiest for you to implement.

Robert




On Wed, Mar 3, 2010 at 6:58 AM, bFlood bflood...@gmail.com wrote:
 and GeoModel:
 http://code.google.com/apis/maps/articles/geospatial.html



 On Mar 3, 4:53 am, Barry Hunter barrybhun...@googlemail.com wrote:
 Mutiny is a slightly refined of (and better version) than geohash

 http://appgallery.appspot.com/about_app?app_id=agphcHBnYWxsZXJ5chQLEg...

 Dont know how easy would be to port to java.

 On 3 March 2010 05:59, Robert Kluin robert.kl...@gmail.com wrote:



  Have you looked into the geohash method?  It is not perfect but I think
  there are a number of people using that technique.

  Robert

  On Mar 2, 2010, at 16:52, vendor.net vendor@gmail.com wrote:

  I read many articles about geocaching and etc, but I still can`t find
  a way to do this:

  I have a DB:
  - id
  - latitude
  - longitude

  I have a latitude-x and longitud-y and I want to search my DB for
  records which are in 10 miles radius of the given latitude-x and
  longitud-y on Java.

  Thanks!

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

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

 --
 You received this message because you are subscribed to the Google Groups 
 Google App Engine group.
 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] GoogleAppEngine on Cluster

2010-03-03 Thread CarmineUnina2
Hy, i am new with Google App Engine. I have @ my university a cluster
and i would know if i can install google app engine on it and execute
apps locally.
Could you help me to understand how to integrate google app engine
with my cluster?

Best Regards,

Carmine

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
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] Need access to post the queries.

2010-03-03 Thread vasu
Hi,
 I am exploring GWT2.0 and Google App Engine. Want to post some
queries so need a access to this group.

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



[google-appengine] Re: Unable to delete an app version in app engine

2010-03-03 Thread esilver
I too am seeing this same behaviour. I have an undeletable version;
every attempt reports A server error occurred.

On Feb 18, 9:56 am, Satya mo.sa...@gmail.com wrote:
 I have 2 versions of my application. Version 1 and Version 2. This is
 a GWT application and using Datastore.

 Version 1 is the default and serving.

 When I tried to delete the Version 2, I got the below message.
 Server Error
 A server error has occurred.

 I tried to delete this version by disabling  enabling the
 application. But of no use.

 Any idea about what is stopping me from deleting this version?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
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] HTML Django

2010-03-03 Thread slenno1
Hey everyone,
 I am currently working with a section of a site that takes user
input using Django forms:

  description = forms.CharField(widget=forms.Textarea(attrs={'rows':
'10', 'cols': '80'}))

The only problem however is that this ignores any html tags that are
added in by the user and just prints them along with the text entered
in by the user. For example, a user may type in The quick brown fox
bjumps/b over the lazy dog, with the word 'jumps' intended to be
bold, but the html tags are just printed a long with the text. Is this
because I am possibly using the wrong widget? Any feedback is greatly
appreciated, thanks!

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



[google-appengine] -- App Engine Question

2010-03-03 Thread Tofui
Hi All!

I'm new to AE and was doing a bit of reading on the service. I was
surprised to find that AE does not support websockets? whats up with
that :).

I have a framework that I've built over the last two years that
depends on streaming connectivity. I HAVE read XMPP is supported by
AE, and that lead me to a few questions that I cant seem to find the
answers to - hence this post :) .

1. I have read that there is a max number of simultaneous connections.
Does this apply to idle connections via NIO , where in they do not
consume resources while waiting for a push, or does every connection
hanging in suspension count?

2. Has anyone here had any problems with XMPP on AE?

3. Is there anyway to suspend the connection for streaming over XHR
that I have overlooked? I have read that long polling is supported
now.

Any input is greatly appreciated.

--Richard Corsale
CEO, CTO, CIO, CFO, C++
toFui.com

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



Re: [google-appengine] server error on random occasions

2010-03-03 Thread Manny S
Nick,

The server error occurs when I try to load any of my three main (simple) jsp
pages (no database access etc). The error is not repeatable and the app
works fine now. The error occurred twice this week. And once it was loading
just fine for me but for a friend of mine based out of a different city it
just conked out and gave the server error message. I checked the request
logs in the admin console and it does not show me any errors. Plus my code
is peppered with try catches that would take me to an errorpage :).  Would
an exception cause such an erratic behavior. Would it not at the least be a
bit more consistent. Any inputs will be greatly appreciated.

Manny


On Wed, Mar 3, 2010 at 3:35 PM, Nick Johnson (Google) 
nick.john...@google.com wrote:

 Hi Manny,

 It's impossible to say based on your description what the problem might be.
 Most likely, your application is throwing an exception - you need to check
 the request logs in your admin console to determine what went wrong.

 -Nick Johnson

 On Tue, Mar 2, 2010 at 5:25 PM, Manny S manny.m...@gmail.com wrote:

 I have my application deployed onto App Engine.  When I access my
 application at times I get a server error. If I refresh the page the server
 error goes away.  Another time the app worked perfectly for me but a friend
 based out of a different city tried to access it and it kept giving him the
 server error for about half an hour. And then he was able to access the
 application.

 The error -  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 did a search and there were a couple of posts that mentioned app.yaml
 formatting issues. I work on the Java side and so far my web.xml seems to be
 well formatted. If the formatting is bad wouldn't the error at least be
 consistent. Not sure why it happens occasionally. Any explanations or inputs
 on this issue would be greatly appreciated.

 Manny





  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 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.comgoogle-appengine%2bunsubscr...@googlegroups.com
 .
 For more options, visit this group at
 http://groups.google.com/group/google-appengine?hl=en.


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



[google-appengine] JDO - how to fetch child object automatically when the child is in different parent classes?

2010-03-03 Thread anjolight
Hi,

I'm trying to create a Child class which is stored in both ParentA
class and ParentB class as below.

//-
// Both ParentA and ParentB class store a same Child object instance.
//-

Child c = new Child();
ParentA a = new ParentA();
ParentB b = new ParentB();
a.setChild(c); // child c is in a
b.setChild(c); // child c is also in b


//-
// Later I want to below
//-

ParentA a = pm.getObjectById(ParentA.class, keyA);
Child c = a.getChild(); // automatically fetched.

ParentB b = pm.getObjectById(ParentB.class, keyB);
Child c = a.getChild(); // also automatically fetched.


I don't want to store the Child's key in ParentA nor ParentB as I want
to fetch the child object automatically when ParentA object or ParentB
object is loaded. Is there a way to achieve this?

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
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: Proximity search

2010-03-03 Thread vendor.net
Thanks for all the answers. I was reading allot about geoshashing, but
unfortunately the PubSchools demo uses a python implementation of
geohash and there is no such port for java. I found a class
http://code.google.com/p/javageomodel/source/browse/trunk/geocell/test/com/beoui/utils/HowToUseGeocell.java
that is the java version of Geohash, but it has limited functionality.
For an example, you can only search in square and not in circle like
the radius search I am talking about, but it is still a solution and I
have to manually create the square lat and long.

If someone has a better solution :)

On 3 Март, 18:07, Robert Kluin robert.kl...@gmail.com wrote:
 Nice I had seen the PubSchools demo app before, but I do not recall
 seeing that article.

 The logic behind most of these techniques is very similar, it is the
 implementation of that logic that distinguishes them.  Personally I
 would pick what ever is easiest for you to implement.

 Robert

 On Wed, Mar 3, 2010 at 6:58 AM, bFlood bflood...@gmail.com wrote:
  and GeoModel:
 http://code.google.com/apis/maps/articles/geospatial.html

  On Mar 3, 4:53 am, Barry Hunter barrybhun...@googlemail.com wrote:
  Mutiny is a slightly refined of (and better version) than geohash

 http://appgallery.appspot.com/about_app?app_id=agphcHBnYWxsZXJ5chQLEg...

  Dont know how easy would be to port to java.

  On 3 March 2010 05:59, Robert Kluin robert.kl...@gmail.com wrote:

   Have you looked into the geohash method?  It is not perfect but I think
   there are a number of people using that technique.

   Robert

   On Mar 2, 2010, at 16:52, vendor.net vendor@gmail.com wrote:

   I read many articles about geocaching and etc, but I still can`t find
   a way to do this:

   I have a DB:
   - id
   - latitude
   - longitude

   I have a latitude-x and longitud-y and I want to search my DB for
   records which are in 10 miles radius of the given latitude-x and
   longitud-y on Java.

   Thanks!

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

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

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

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



Re: [google-appengine] HTML Django

2010-03-03 Thread Ross M Karchner
I think that's what the safe filter does?

http://docs.djangoproject.com/en/1.1/ref/templates/builtins/#safe

try replacing {{ form.description }}, with {{ form.description|safe }}

On Tue, Mar 2, 2010 at 11:48 PM, slenno1 slen...@gmail.com wrote:
 Hey everyone,
     I am currently working with a section of a site that takes user
 input using Django forms:

  description = forms.CharField(widget=forms.Textarea(attrs={'rows':
 '10', 'cols': '80'}))

 The only problem however is that this ignores any html tags that are
 added in by the user and just prints them along with the text entered
 in by the user. For example, a user may type in The quick brown fox
 bjumps/b over the lazy dog, with the word 'jumps' intended to be
 bold, but the html tags are just printed a long with the text. Is this
 because I am possibly using the wrong widget? Any feedback is greatly
 appreciated, thanks!

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



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



Re: [google-appengine] GoogleAppEngine on Cluster

2010-03-03 Thread Robert Kluin
You should go have a look at TyphoonAE or AppScale.
http://code.google.com/p/typhoonae/
http://code.google.com/p/appscale/


Robert






On Wed, Mar 3, 2010 at 11:08 AM, CarmineUnina2 carminede...@gmail.com wrote:
 Hy, i am new with Google App Engine. I have @ my university a cluster
 and i would know if i can install google app engine on it and execute
 apps locally.
 Could you help me to understand how to integrate google app engine
 with my cluster?

 Best Regards,

 Carmine

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



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



Re: [google-appengine] -- App Engine Question

2010-03-03 Thread Robert Kluin
1)  Based on discussions and responses I have seen, every connection counts.
2) It works well for us, other than there can sometimes be a little
bit of lag  But it is usually very small.
3) If you find a good way I am sure many people would like to know.
Where did you read that long-polling is supported?
  For more discussion have a look at (and star) this issue:
http://code.google.com/p/googleappengine/issues/detail?id=377


Robert





On Wed, Mar 3, 2010 at 11:27 AM, Tofui richardcors...@gmail.com wrote:
 Hi All!

 I'm new to AE and was doing a bit of reading on the service. I was
 surprised to find that AE does not support websockets? whats up with
 that :).

 I have a framework that I've built over the last two years that
 depends on streaming connectivity. I HAVE read XMPP is supported by
 AE, and that lead me to a few questions that I cant seem to find the
 answers to - hence this post :) .

 1. I have read that there is a max number of simultaneous connections.
 Does this apply to idle connections via NIO , where in they do not
 consume resources while waiting for a push, or does every connection
 hanging in suspension count?

 2. Has anyone here had any problems with XMPP on AE?

 3. Is there anyway to suspend the connection for streaming over XHR
 that I have overlooked? I have read that long polling is supported
 now.

 Any input is greatly appreciated.

 --Richard Corsale
 CEO, CTO, CIO, CFO, C++
 toFui.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.



-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
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] -- App Engine Question

2010-03-03 Thread Richard Corsale
Hi Robert,

I've read on Jean-Francis' blog that his new project Atmosphere
https://atmosphere.dev.java.net/   would work on App Engine. Also the
Servlet 3.0 spec has asynchronous comet built in. Not sure if thats an
option with AE yet.

I wonder why XMPP lags? I have noticed this on EVERY XMPP app and code
example that I have seen to date. Thats why I specifically asked about
performance :).  I just wonder if it's the protocol's much redundant
overhead data being gziped causing decompression woes (the bends) on both
ends? or perhaps the libraries. Though there are many of them and I doubt
all back up under load.  Have you noticed CPU spikes correlated with traffic
at a disproportionate ratio?

-- Thanks for the response.
Richard Corsale


On Wed, Mar 3, 2010 at 1:27 PM, Robert Kluin robert.kl...@gmail.com wrote:

 1)  Based on discussions and responses I have seen, every connection
 counts.
 2) It works well for us, other than there can sometimes be a little
 bit of lag  But it is usually very small.
 3) If you find a good way I am sure many people would like to know.
 Where did you read that long-polling is supported?
  For more discussion have a look at (and star) this issue:
 http://code.google.com/p/googleappengine/issues/detail?id=377


 Robert





 On Wed, Mar 3, 2010 at 11:27 AM, Tofui richardcors...@gmail.com wrote:
  Hi All!
 
  I'm new to AE and was doing a bit of reading on the service. I was
  surprised to find that AE does not support websockets? whats up with
  that :).
 
  I have a framework that I've built over the last two years that
  depends on streaming connectivity. I HAVE read XMPP is supported by
  AE, and that lead me to a few questions that I cant seem to find the
  answers to - hence this post :) .
 
  1. I have read that there is a max number of simultaneous connections.
  Does this apply to idle connections via NIO , where in they do not
  consume resources while waiting for a push, or does every connection
  hanging in suspension count?
 
  2. Has anyone here had any problems with XMPP on AE?
 
  3. Is there anyway to suspend the connection for streaming over XHR
  that I have overlooked? I have read that long polling is supported
  now.
 
  Any input is greatly appreciated.
 
  --Richard Corsale
  CEO, CTO, CIO, CFO, C++
  toFui.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.
 
 

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




-- 
If it seems too easy, it's probably foul.

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
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] Cannot deploy my app

2010-03-03 Thread Ikai L (Google)
Are you behind a proxy?

On Mon, Mar 1, 2010 at 3:28 PM, pythonTryout naval.dudho...@gmail.comwrote:

 Hey,
 I am trying to update my application, but am getting :
urllib2.URLError: urlopen error [Errno 110] Connection timed out
 I downloaded AppEngine's Python SDK source and directly updating from
 it. Am i missing something or something else has to be done before i
 try to update?

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 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
http://googleappengine.blogspot.com | http://twitter.com/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] I can't install my project

2010-03-03 Thread Ikai L (Google)
What does this JSP do? Are you making 2000 calls to the datastore?

On Tue, Mar 2, 2010 at 6:47 AM, fige...@hotmail.com fige...@hotmail.comwrote:

 hello:

 I upload my project to app engine but i can't init data,

 when i run install i get below error;

 my install page is http://myappforum.appspot.com/install.jsp

 when i do it on my workspace it's work well.and less then 30 seconds.

 tip:
 I have less than 2000 data init.

 Error for /install.jsp
 com.google.apphosting.runtime.HardDeadlineExceededError: This request
 (bea8a6558c35cf56) started at 2010/03/02 14:04:51.484 UTC and was
 still executing at 2010/03/02 14:05:20.379 UTC.

 mail me thanks, sometimes i can't visit this website.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 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
http://googleappengine.blogspot.com | http://twitter.com/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] More developers

2010-03-03 Thread Ikai L (Google)
Yes, but not that you can delete ununsed applications. Go ahead and add your
request here with an explanation:
http://code.google.com/support/bin/request.py?contact_type=AppEngineBillingSupport

On Tue, Mar 2, 2010 at 2:24 PM, Jairo Vasquez Moreno 
jairo.vasq...@gmail.com wrote:

 Hi all,

 Is there a way to increase the limit 15 developers?

 Thanks in advance

 --
 Jairo Vasquez Moreno
 Mentez Developer
 www.mentez.com
 Medellin - Colombia

  --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 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
http://googleappengine.blogspot.com | http://twitter.com/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] 1500 ms query latency

2010-03-03 Thread Robert Lancer
If you monitor App Engine Status you will notice that query latency
has been floating around 1500 ms today. How can we deliver a product
on top of app engine with this dismal level of performance? Google are
you going to fix this issue anytime soon? I would appreciate if you
treated these performance issues with the same level of concern as an
outage. I have spent the past five months developing my app.

http://code.google.com/status/appengine/detail/datastore/2010/03/03#ae-trust-detail-datastore-query-latency

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
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: Parallel access to appengine

2010-03-03 Thread Gary Orser
Eli,

Python as usual is sooo much more elegant than java.

I confirmed your test results on a billing enabled appspot.

Cheers, Gary

On Mar 2, 9:57 pm, Eli Jones eli.jo...@gmail.com wrote:
 I did my own testing in python.  And, I definitely couldn't get 30
 simultaneous requests to work.

 This was done on a test app that does not have Billing Enabled.. so not sure
 if that affects the Dynamic Request Limit.

 Either way, it seems that for this test, the effective Limit was 16
 simultaneous accesses.  As soon as I modified my code to try 17, it started
 throwing a few  Dynamic Request Limit errors.. though, the Logs page
 AppEngine just refers to it as another Request (with code 500 and a time of
 10 seconds).

 Here is the code for the handler.. after receiving a GET, it sleeps for 3
 seconds and the responds with a 'hello':

 from google.appengine.ext import webapp
 from google.appengine.ext.webapp.util import run_wsgi_app
 import time

 class meTest(webapp.RequestHandler):
     def get(self):
         time.sleep(3)
         meid = self.request.get('id')
         self.response.out.write('hi! foo%s'%meid)

 application = webapp.WSGIApplication([('/test/meTest',meTest)],
                                      debug = True)

 def main():
     run_wsgi_app(application)

 if __name__ == __main__:
     main()

 And here is they python code I am running on my local machine to test.  It
 fires off 17 threads.  Each thread requests a GET from the handler and
 prints the response, three times in a row:

 import httplib
 import threading

 class meThread(threading.Thread):
     def run(self):
         for i in range(3):
             conn = httplib.HTTPConnection('datastoretester.appspot.com')
             conn.request(GET,/test/meTest?id=%s % self.getName())
             response = conn.getresponse()
             print response.read()
             conn.close()

 for i in range(17):
     meThread(name=str(i+1)).start()

 As soon as I scale the range back to (16), no more Dynamic Request Error.

 Special notes:  I am not sure if there is some sort of built in
 rate-limiting for requests from the same IP address.. but when sending 17
 threads at the handler.. it is not responding in 3 seconds to their GETs..
 It takes about 11 seconds.

 If you look in the Logs, for a run with 17 threads, you see this:

 03-02 08:31PM 00.384 /test/meTest?id=16 200 12855ms 19cpu_ms 0kb gzip(gfe)
 03-02 08:31PM 01.266 /test/meTest?id=7 200 11973ms 19cpu_ms 0kb gzip(gfe)
 03-02 08:31PM 01.283 /test/meTest?id=15 500 10017ms 0cpu_ms 0kb gzip(gfe)
 03-02 08:30PM 58.280 /test/meTest?id=4 200 11952ms 0cpu_ms 0kb gzip(gfe)

 (Notice the 500 error in there as well.. that's the one that mentions the
 Dynamic Request Limit).

 Now, if I run the test with only 4 threads, it looks nice and quick like
 this:

 03-02 08:35PM 25.602 /test/meTest?id=1 200 3009ms 0cpu_ms 0kb gzip(gfe)
 03-02 08:35PM 22.637 /test/meTest?id=2 200 3008ms 0cpu_ms 0kb gzip(gfe)
 03-02 08:35PM 22.623 /test/meTest?id=3 200 3009ms 0cpu_ms 0kb gzip(gfe)
 03-02 08:35PM 22.603 /test/meTest?id=4 200 3008ms 0cpu_ms 0kb gzip(gfe)

 Once I start testing with more than 4 threads, it starts to slow down in its
 response time...

 So, I'd guess something would need to be clarified.. is there some internal
 limiting going on per ip address?  Does a long running process have a
 lower simultaneous request limit?

 On Tue, Mar 2, 2010 at 12:21 PM, Gary Orser garyor...@gmail.com wrote:
  Eli,

  You have the python request server.
  Here is the java client:
  You'll have to get the libraries yourself.

  Cheers, Gary

  import java.util.ArrayList;
  import java.util.concurrent.Callable;
  import java.util.concurrent.ExecutionException;
  import java.util.concurrent.ExecutorService;
  import java.util.concurrent.Executors;
  import java.util.concurrent.Future;

  import org.apache.commons.io.IOUtils;
  import org.apache.http.HttpHost;
  import org.apache.http.HttpResponse;
  import org.apache.http.HttpVersion;
  import org.apache.http.client.HttpClient;
  import org.apache.http.client.methods.HttpGet;
  import org.apache.http.conn.ClientConnectionManager;
  import org.apache.http.conn.params.ConnManagerParams;
  import org.apache.http.conn.params.ConnPerRouteBean;
  import org.apache.http.conn.scheme.PlainSocketFactory;
  import org.apache.http.conn.scheme.Scheme;
  import org.apache.http.conn.scheme.SchemeRegistry;
  import org.apache.http.conn.ssl.SSLSocketFactory;
  import org.apache.http.impl.client.DefaultHttpClient;
  import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
  import org.apache.http.params.BasicHttpParams;
  import org.apache.http.params.HttpParams;
  import org.apache.http.params.HttpProtocolParams;

  import org.apache.commons.logging.Log;
  import org.apache.commons.logging.LogFactory;

  public class Main
  {
         private Log log = LogFactory.getLog(Main.class);
         // ADJUST: number of threads to make requests on
         public static int 

Re: [google-appengine] Parallel access to appengine

2010-03-03 Thread Eli Jones
Heh, yes.. I printed out your Java and it seemed perfectly fine after
reading through it several times... But Java is just wayy to busy
looking for my tastes.

Good luck getting some clarification on what's happening with this.

On 3/3/10, Gary Orser garyor...@gmail.com wrote:
 Eli,

 Python as usual is sooo much more elegant than java.

 I confirmed your test results on a billing enabled appspot.

 Cheers, Gary

 On Mar 2, 9:57 pm, Eli Jones eli.jo...@gmail.com wrote:
 I did my own testing in python.  And, I definitely couldn't get 30
 simultaneous requests to work.

 This was done on a test app that does not have Billing Enabled.. so not
 sure
 if that affects the Dynamic Request Limit.

 Either way, it seems that for this test, the effective Limit was 16
 simultaneous accesses.  As soon as I modified my code to try 17, it
 started
 throwing a few  Dynamic Request Limit errors.. though, the Logs page
 AppEngine just refers to it as another Request (with code 500 and a time
 of
 10 seconds).

 Here is the code for the handler.. after receiving a GET, it sleeps for 3
 seconds and the responds with a 'hello':

 from google.appengine.ext import webapp
 from google.appengine.ext.webapp.util import run_wsgi_app
 import time

 class meTest(webapp.RequestHandler):
     def get(self):
         time.sleep(3)
         meid = self.request.get('id')
         self.response.out.write('hi! foo%s'%meid)

 application = webapp.WSGIApplication([('/test/meTest',meTest)],
                                      debug = True)

 def main():
     run_wsgi_app(application)

 if __name__ == __main__:
     main()

 And here is they python code I am running on my local machine to test.  It
 fires off 17 threads.  Each thread requests a GET from the handler and
 prints the response, three times in a row:

 import httplib
 import threading

 class meThread(threading.Thread):
     def run(self):
         for i in range(3):
             conn = httplib.HTTPConnection('datastoretester.appspot.com')
             conn.request(GET,/test/meTest?id=%s % self.getName())
             response = conn.getresponse()
             print response.read()
             conn.close()

 for i in range(17):
     meThread(name=str(i+1)).start()

 As soon as I scale the range back to (16), no more Dynamic Request Error.

 Special notes:  I am not sure if there is some sort of built in
 rate-limiting for requests from the same IP address.. but when sending 17
 threads at the handler.. it is not responding in 3 seconds to their GETs..
 It takes about 11 seconds.

 If you look in the Logs, for a run with 17 threads, you see this:

 03-02 08:31PM 00.384 /test/meTest?id=16 200 12855ms 19cpu_ms 0kb gzip(gfe)
 03-02 08:31PM 01.266 /test/meTest?id=7 200 11973ms 19cpu_ms 0kb gzip(gfe)
 03-02 08:31PM 01.283 /test/meTest?id=15 500 10017ms 0cpu_ms 0kb gzip(gfe)
 03-02 08:30PM 58.280 /test/meTest?id=4 200 11952ms 0cpu_ms 0kb gzip(gfe)

 (Notice the 500 error in there as well.. that's the one that mentions the
 Dynamic Request Limit).

 Now, if I run the test with only 4 threads, it looks nice and quick like
 this:

 03-02 08:35PM 25.602 /test/meTest?id=1 200 3009ms 0cpu_ms 0kb gzip(gfe)
 03-02 08:35PM 22.637 /test/meTest?id=2 200 3008ms 0cpu_ms 0kb gzip(gfe)
 03-02 08:35PM 22.623 /test/meTest?id=3 200 3009ms 0cpu_ms 0kb gzip(gfe)
 03-02 08:35PM 22.603 /test/meTest?id=4 200 3008ms 0cpu_ms 0kb gzip(gfe)

 Once I start testing with more than 4 threads, it starts to slow down in
 its
 response time...

 So, I'd guess something would need to be clarified.. is there some
 internal
 limiting going on per ip address?  Does a long running process have a
 lower simultaneous request limit?

 On Tue, Mar 2, 2010 at 12:21 PM, Gary Orser garyor...@gmail.com wrote:
  Eli,

  You have the python request server.
  Here is the java client:
  You'll have to get the libraries yourself.

  Cheers, Gary

  import java.util.ArrayList;
  import java.util.concurrent.Callable;
  import java.util.concurrent.ExecutionException;
  import java.util.concurrent.ExecutorService;
  import java.util.concurrent.Executors;
  import java.util.concurrent.Future;

  import org.apache.commons.io.IOUtils;
  import org.apache.http.HttpHost;
  import org.apache.http.HttpResponse;
  import org.apache.http.HttpVersion;
  import org.apache.http.client.HttpClient;
  import org.apache.http.client.methods.HttpGet;
  import org.apache.http.conn.ClientConnectionManager;
  import org.apache.http.conn.params.ConnManagerParams;
  import org.apache.http.conn.params.ConnPerRouteBean;
  import org.apache.http.conn.scheme.PlainSocketFactory;
  import org.apache.http.conn.scheme.Scheme;
  import org.apache.http.conn.scheme.SchemeRegistry;
  import org.apache.http.conn.ssl.SSLSocketFactory;
  import org.apache.http.impl.client.DefaultHttpClient;
  import org.apache.http.impl.conn.tsccm.ThreadSafeClientConnManager;
  import org.apache.http.params.BasicHttpParams;
  import org.apache.http.params.HttpParams;
  import 

Re: [google-appengine] -- App Engine Question

2010-03-03 Thread Martin de la torre
Hello i wanted to use xmpp on GAE but i stopped it becouse i read about the
30 maximun concurrent requests.But i see that you have used it.So how many
concurrent users alow GAE in your app.?
Thanks

2010/3/3 Richard Corsale richardcors...@gmail.com

 Hi Robert,

 I've read on Jean-Francis' blog that his new project Atmosphere
 https://atmosphere.dev.java.net/   would work on App Engine. Also the
 Servlet 3.0 spec has asynchronous comet built in. Not sure if thats an
 option with AE yet.

 I wonder why XMPP lags? I have noticed this on EVERY XMPP app and code
 example that I have seen to date. Thats why I specifically asked about
 performance :).  I just wonder if it's the protocol's much redundant
 overhead data being gziped causing decompression woes (the bends) on both
 ends? or perhaps the libraries. Though there are many of them and I doubt
 all back up under load.  Have you noticed CPU spikes correlated with traffic
 at a disproportionate ratio?

 -- Thanks for the response.
 Richard Corsale


 On Wed, Mar 3, 2010 at 1:27 PM, Robert Kluin robert.kl...@gmail.comwrote:

 1)  Based on discussions and responses I have seen, every connection
 counts.
 2) It works well for us, other than there can sometimes be a little
 bit of lag  But it is usually very small.
 3) If you find a good way I am sure many people would like to know.
 Where did you read that long-polling is supported?
  For more discussion have a look at (and star) this issue:
 http://code.google.com/p/googleappengine/issues/detail?id=377


 Robert





 On Wed, Mar 3, 2010 at 11:27 AM, Tofui richardcors...@gmail.com wrote:
  Hi All!
 
  I'm new to AE and was doing a bit of reading on the service. I was
  surprised to find that AE does not support websockets? whats up with
  that :).
 
  I have a framework that I've built over the last two years that
  depends on streaming connectivity. I HAVE read XMPP is supported by
  AE, and that lead me to a few questions that I cant seem to find the
  answers to - hence this post :) .
 
  1. I have read that there is a max number of simultaneous connections.
  Does this apply to idle connections via NIO , where in they do not
  consume resources while waiting for a push, or does every connection
  hanging in suspension count?
 
  2. Has anyone here had any problems with XMPP on AE?
 
  3. Is there anyway to suspend the connection for streaming over XHR
  that I have overlooked? I have read that long polling is supported
  now.
 
  Any input is greatly appreciated.
 
  --Richard Corsale
  CEO, CTO, CIO, CFO, C++
  toFui.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.
 
 

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




 --
 If it seems too easy, it's probably foul.

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 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] 1500 ms query latency

2010-03-03 Thread Ikai L (Google)
Robert, what's your application ID?

On Wed, Mar 3, 2010 at 3:35 PM, Robert Lancer robert.lan...@gmail.comwrote:

 If you monitor App Engine Status you will notice that query latency
 has been floating around 1500 ms today. How can we deliver a product
 on top of app engine with this dismal level of performance? Google are
 you going to fix this issue anytime soon? I would appreciate if you
 treated these performance issues with the same level of concern as an
 outage. I have spent the past five months developing my app.


 http://code.google.com/status/appengine/detail/datastore/2010/03/03#ae-trust-detail-datastore-query-latency

 --
 You received this message because you are subscribed to the Google Groups
 Google App Engine group.
 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
http://googleappengine.blogspot.com | http://twitter.com/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: 1500 ms query latency

2010-03-03 Thread Robert Lancer
Ikai,

Thank you very much for your reply!

My app id is: arachnodb

I am also talking more in general about app engine performance, the
status page  at http://code.google.com/status/appengine never lists
all normal.

On Mar 3, 7:57 pm, Ikai L (Google) ika...@google.com wrote:
 Robert, what's your application ID?

 On Wed, Mar 3, 2010 at 3:35 PM, Robert Lancer robert.lan...@gmail.comwrote:





  If you monitor App Engine Status you will notice that query latency
  has been floating around 1500 ms today. How can we deliver a product
  on top of app engine with this dismal level of performance? Google are
  you going to fix this issue anytime soon? I would appreciate if you
  treated these performance issues with the same level of concern as an
  outage. I have spent the past five months developing my app.

 http://code.google.com/status/appengine/detail/datastore/2010/03/03#a...

  --
  You received this message because you are subscribed to the Google Groups
  Google App Engine group.
  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 
 Enginehttp://googleappengine.blogspot.com|http://twitter.com/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] mystery datastore entry

2010-03-03 Thread David
Hello,

I have a strange problem occurring in my datastore's User class.

class User(db.Model):
user_id = db.StringProperty(multiline=False)

When a user uses our app for the first time, an entry is written to
this class like so:
user = User(key_name=user_id)
user.put()

Where user_name is a unique string given to us by Mixi (the social
networking site hosting our app).

This is working for over 100,000 users, but we have 1 user that can't
write to this table.  For some reason, this one user id is not
allowed.  When trying to write the put for this 1 user, an error is
generated.  Querying for this user_id in the datastore gives no
results.  Doing a put with the same user id in our test version app
works fine.

If anyone has an idea what could cause this, please let me know.
Thanks in advance for your help!
-David

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



[google-appengine] filtering a query returns nothing

2010-03-03 Thread Dacre
Hi,
I'm trying to apply a simple filter to a query. When I do this
however, the query sees to be cleared, regardless of my filter's logic

I have an class 'c_portfolio_item' with a db.StringProperty called
category
I've verified that the categoryfield on all of my data is Sketch but
for some reason, doing this:

query = c_portfolio_item.all()
query.filter('category =','Sketch');

causes my query to return nothing
I've tried reversing the logic of the filter but it still empties the
query
I've also tried other query functions like order and they have the
same effect
I'm really stumped on this and would really appreciate any help or
ideas

I'm using django via the django patch for gae

thanks
Dacre

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
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: Proximity search

2010-03-03 Thread Jeff Schnitzer
On Wed, Mar 3, 2010 at 9:30 AM, vendor.net vendor@gmail.com wrote:

 If someone has a better solution :)

If you can handle a bit of latency, install PostGIS on a cloud server
and keep the raw data (just id, lat, lon) synced using timestamps.
Aside from gaining rich spatial index and query support, you can scale
your spatial queries just by adding more PostGIS servers.

Trying to do spatial queries on appengine is a definite
square-peg-round-hole problem.  Appengine is not all or nothing.

Jeff

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



[google-appengine] Subclassing PolyModel

2010-03-03 Thread Nickolas Daskalou
I've been trying to create a special subclass of PolyModel (that does cool
stuff like update Memcache after an entity put()) which my polymodel models
can inherit from (instead of inheriting from db.polymodel.PolyModel).

This has the nasty side effect though of making that  special subclass of
PolyModel the root class for my polymodel models.

Is there a way around this?

Eg. Telling db.polymodel.PolyModel to NOT include the first direct subclass
in the class hierarchy that is saved to the Datastore? Or writing my own
PolyModel by basically copying db.polymodel and changing code where
appropriate?

Appreciate any help.

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: HTML Django

2010-03-03 Thread johnwlockwood
you can also turn off auto escape.
look at http://docs.djangoproject.com/en/dev/ref/templates/builtins/#autoescape
in a template you would
{% autoescape off %}
{{ value-with-html }}
{% endautoescape %}


On Mar 2, 10:48 pm, slenno1 slen...@gmail.com wrote:
 Hey everyone,
      I am currently working with a section of a site that takes user
 input using Django forms:

   description = forms.CharField(widget=forms.Textarea(attrs={'rows':
 '10', 'cols': '80'}))

 The only problem however is that this ignores any html tags that are
 added in by the user and just prints them along with the text entered
 in by the user. For example, a user may type in The quick brown fox
 bjumps/b over the lazy dog, with the word 'jumps' intended to be
 bold, but the html tags are just printed a long with the text. Is this
 because I am possibly using the wrong widget? Any feedback is greatly
 appreciated, thanks!

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



[google-appengine] Map a Struts Action as welcome file in App Engine

2010-03-03 Thread nischalshetty
Hi,

I've been trying to have my landing page be displayed through a struts
action but App Engine just wouldn't let me do it.

The traditional way is to specify a .jsp in the welcome-file tag and
the use jsp:forward login.do (just a quick example). This doesn't
work.

Next, I tried calling welcome-filelogin.do/welcome-file  - doesn't
work.

Next, I placed a dummy file 'login.do' and used the tag welcome-
filelogin.do/welcome-file - Doesn't work (this works on jBoss and
this is how I usually use welcome-file to call a struts action).

Is there a way to have a struts action as the default action to be
called when users land on my site? Currently, I'm forced to do a
redirect, which is ugly.

So, my site http://justunfollow.com redirects to 
http://justunfollow.com/login.do
, Please help me figure out a way!

-Nischal

-- 
You received this message because you are subscribed to the Google Groups 
Google App Engine group.
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: 1500 ms query latency

2010-03-03 Thread Patrick Twohig
I've been having trouble with exceedingly long queries as well...I've
noticed that on a good day it appears that a query is taking 500
milliseconds.  I have one or two complex requests that make several queries
and that adds up quickly.  Caching has helped immensely, but if data
frequently changes it doesn't help much...

On Wed, Mar 3, 2010 at 8:15 PM, Thomas Johansson prenc...@gmail.com wrote:

 This is not app specific. Look at the appengine status for datastore
 queries: http://coI've been having issues with high latency
 issues.de.google.com/status/appengine/detail/datastore/2010/03/03#ae-trust-detail-datastore-query-latencyhttp://code.google.com/status/appengine/detail/datastore/2010/03/03#ae-trust-detail-datastore-query-latency
 .

 We are seeing the same on the app we are developing, along with long
 cold startup times the last few days (which otherwise had improved
 greatly after the downtime).

 On Mar 4, 1:57 am, Ikai L (Google) ika...@google.com wrote:
  Robert, what's your application ID?
 
  On Wed, Mar 3, 2010 at 3:35 PM, Robert Lancer robert.lan...@gmail.com
 wrote:
 
 
 
   If you monitor App Engine Status you will notice that query latency
   has been floating around 1500 ms today. How can we deliver a product
   on top of app engine with this dismal level of performance? Google are
   you going to fix this issue anytime soon? I would appreciate if you
   treated these performance issues with the same level of concern as an
   outage. I have spent the past five months developing my app.
 
  http://code.google.com/status/appengine/detail/datastore/2010/03/03#a.
 ..
 
   --
   You received this message because you are subscribed to the Google
 Groups
   Google App Engine group.
   To post to this group, send email to google-appengine@googlegroups.com
 .
   To unsubscribe from this group, send email to
   google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com
 google-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%252bunsubscr...@googlegroups.com
 
   .
   For more options, visit this group at
  http://groups.google.com/group/google-appengine?hl=en.
 
  --
  Ikai Lan
  Developer Programs Engineer, Google App Enginehttp://
 googleappengine.blogspot.com|http://twitter.com/app_engine

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




-- 
Patrick H. Twohig.

Namazu Studios
P.O. Box 34161
San Diego, CA 92163-4161

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



  1   2   >