[appengine-java] Re: Debug Local var.
Yes ,you're right... I got it! Dummy problem, thank's a lot! On 2 Giu, 00:54, Ikai L (Google) ika...@google.com wrote: Try setting your default logging level to .INFO or .FINE. You're probably seeing some of the info printed to your console, but not all. On Mon, May 24, 2010 at 4:37 AM, ww34ww34 ww34w...@gmail.com wrote: I'm new on GAE. I need to debug some var, on my development server (local). Or to see local log. How? SDK 1.3.3.1 my logging.proprieties look like this # A default java.util.logging configuration. # (All App Engine logging is through java.util.logging by default). # # To use this configuration, copy it into your application's WEB-INF # folder and add the following to your appengine-web.xml: # # system-properties # property name=java.util.logging.config.file value=WEB-INF/ logging.properties/ # /system-properties # # Set the default logging level for all loggers to WARNING .level = WARNING my test class look like this import java.io.IOException; import javax.servlet.http.*; import java.util.logging.Level; import java.util.logging.Logger; @SuppressWarnings(serial) public class TestServlet extends HttpServlet { private final static Logger LOGGER = Logger.getLogger(TestServlet.class.getName()); public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setContentType(text/plain); resp.getWriter().println(Hello, world); LOGGER.info(An informational message.); LOGGER.warning(A warning message.); LOGGER.severe(An error message.); } } Thank's .. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: JSONMarshaller on GAE
This is happening locally. I'm using eclipse galileo. I tested all the tips i found on this page http://groups.google.com/group/google-appengine-java/browse_thread/thread/67cb7cdaefc8429f but i'm still stuck. Thank you for your time. On 2 juin, 00:42, Ikai L (Google) ika...@google.com wrote: Is this exception happening locally or in production? Are you using an IDE? Which one? On Tue, Jun 1, 2010 at 7:01 AM, François francois.poi...@gmail.com wrote: I'm trying to add the jar of jsonmarshaller to my application but i'm getting the classdefnotfound exception even though my jar is inside the web-inf/lib folder and has been added to the build path. here is the jar i'm adding http://code.google.com/p/jsonmarshaller/downloads/detail?name=json-0 -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: node allocation
Yes, I mean the node as computational unit, the JVM. Thanks for the clear explanation! On Jun 1, 4:28 pm, Wilson MacGyver wmacgy...@gmail.com wrote: I think he wants to control how many JVMs GAE spawn up to run your app. obviously the answer is no. On Tue, Jun 1, 2010 at 10:17 AM, Tristan tristan.slomin...@gmail.com wrote: ... On Jun 1, 3:46 am, theresia freska theresia.fre...@gmail.com wrote: Hi, Sorry for not being clear. I mean thenodeinvolved in running my app in the cloud -- the PC. I would like to control how many computers will run my app. Is it possible? On Jun 1, 6:58 am, Tristan tristan.slomin...@gmail.com wrote: Can you elaborate on what you mean by node in the context of Google App Engine? On May 30, 7:49 am, theresia freska theresia.fre...@gmail.com wrote: Hi list, Is there any way to control how many nodes we want to use? I want to compare request time of using n nodes to run my app. Thanks! -- Omnem crede diem tibi diluxisse supremum. -- You received this message 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] Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4
It looks like you have a version of ASM that is incompatible with the dev_appserver's version hanging around. Do you have ASM in your JRE's lib/ext folder? On Tue, Jun 1, 2010 at 10:56 PM, Andrew am2...@gmail.com wrote: Hi, I'm trying to get spring 3.0 up and running as per the blog post at http://www.ardentlord.com/apps/blog/show/829881-spring-3-0-on-google-app-engine However I'm running into some issues when I try and start it up in Development (have not tried in production yet): The console is showing a stack of these messages: 02/06/2010 2:50:19 AM com.google.appengine.tools.development.agent.impl.Transformer transform SEVERE: Unable to instrument org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator. Security restrictions may not be entirely emulated. java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(I)V However as far as I can tell the app is actually running. There was a thread in this group late last year that described a similar issue, and the suggested solution seemed to be to rename the plugin.jar file to plugin2.jar: http://groups.google.com.au/group/google-appengine-java/browse_thread/thread/5e34079b5b3d58a1/b6db94a2df4ea58c?lnk=gstq=Security+restrictions+may+not+be+entirely+emulated.#b6db94a2df4ea58c However the posters seemed to be using macs. I am on Windows 7 (Eclipse Galileo with the Google Plugin) and cannot locate this file - does anyone have any advice on where I may find it? Best regards, Andrew. -- You received this message 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: Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4
I am stuck at precisely the same point. Which version of asm are you using? I've tried 3.3 and 2.1. I'm assuming you're using the latest Spring? That article uses the old M2 from a year back. It almost appears that the ClassLoader is doing some on-the-fly rewriting of class code, but that this operation requires a constructor. Sounds great until you need an interface like org.objectweb.asm.ClassWriter. Are you also getting a ClassNotFoundException: org.springframework.asm.ClassVisitor? I can't figure this one out, either. When you say the app is actually running what do you mean by this? I get nothing but 404s in my browser. Finally, what do you have in your url-pattern for your dispatcher servlet mapping in your web.xml? (I'm using /* which I understand has problems in jetty, but I'm not clear on what to change this to, or if this is even necessary. I've also tried just /.) On Jun 1, 10:56 pm, Andrew am2...@gmail.com wrote: Hi, I'm trying to get spring 3.0 up and running as per the blog post at http://www.ardentlord.com/apps/blog/show/829881-spring-3-0-on-google-... However I'm running into some issues when I try and start it up in Development (have not tried in production yet): The console is showing a stack of these messages: 02/06/2010 2:50:19 AM com.google.appengine.tools.development.agent.impl.Transformer transform SEVERE: Unable to instrument org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator. Security restrictions may not be entirely emulated. java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(I)V However as far as I can tell the app is actually running. There was a thread in this group late last year that described a similar issue, and the suggested solution seemed to be to rename the plugin.jar file to plugin2.jar: http://groups.google.com.au/group/google-appengine-java/browse_thread... However the posters seemed to be using macs. I am on Windows 7 (Eclipse Galileo with the Google Plugin) and cannot locate this file - does anyone have any advice on where I may find it? Best regards, Andrew. -- You received this message 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] simple relation
Hello all can anybody please tell me how to implement simple one many relation in java.I have user table and work table .Any user can do many type of works.In user table i have userid but it is not primary key of the user table.Then i have work table which has workid it is also not primary key of the table.Normally in relation db we ca make third table table which contains workid for every userid.What how can we implement this thing appengine datastore.I want to have collection all works in user object .can anybody please tell me how to define this mapping?please note that in userid and workid are not primary keys in both objects or tables. Thanks in adavance. -- You received this message 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: Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4
Okay, a few things I found out -- 1. The suggestion at http://code.google.com/p/googleappengine/issues/detail?id=2527 works quite well. You'll find the afflicted appengine-agent.jar in your eclipse plugins folder under com.google.appengine.eclipse.sdkbundle.version/appengine-java-sdk- version/lib/agent. Use jarjar to fix internal refs to its own asm code, completely compartmentalizing it away from everything else. Ignore the ln -s suggestion, I have no idea what that's about except possibly it's someone's idea to avoid renaming a file, and the plugin.jar to plugin2.jar is just an example. It's not really relevant. 2. It won't matter once you get this working. Jetty will not be able to find your hello.jsp. I can't figure out why, but I believe it has something to do with the URL pattern in web.xml. I tried moving it around without success. 3. Both problems are non-issues on production. I deployed the hello app out there and everything just worked. On one hand it's good, but on the other, this drastically disimproves my build-test-turnaround time. On Jun 1, 10:56 pm, Andrew am2...@gmail.com wrote: Hi, I'm trying to get spring 3.0 up and running as per the blog post at http://www.ardentlord.com/apps/blog/show/829881-spring-3-0-on-google-... However I'm running into some issues when I try and start it up in Development (have not tried in production yet): The console is showing a stack of these messages: 02/06/2010 2:50:19 AM com.google.appengine.tools.development.agent.impl.Transformer transform SEVERE: Unable to instrument org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator. Security restrictions may not be entirely emulated. java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(I)V However as far as I can tell the app is actually running. There was a thread in this group late last year that described a similar issue, and the suggested solution seemed to be to rename the plugin.jar file to plugin2.jar: http://groups.google.com.au/group/google-appengine-java/browse_thread... However the posters seemed to be using macs. I am on Windows 7 (Eclipse Galileo with the Google Plugin) and cannot locate this file - does anyone have any advice on where I may find it? Best regards, Andrew. -- You received this message 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: JSP code debug: Compiled JSP location in local environment
FYI, on a Mac I found it in /var/folders/zz/zzzivhrRnAmviuee++-ZXU+ +NMs/-Tmp-/Jetty_127_0_0_1__war.g0qk00/jsp/org/apache/jsp -- You received this message 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] Failure to write objects to HttpSession - NotSerializableException : LazyResult
I am storing user-profile information in the data store and retrieving with the following code: public static User getUserByID ( String userName ) throws Exception { PersistenceManager mgr = PMF.getInstance ( ).getPersistenceManager ( ); Query query = mgr.newQuery ( User.class ); query.setFilter ( userName == param ); query.declareParameters ( String param ); try { List User results = (List User) query.execute ( userName ); Iterator User i = results.iterator ( ); if ( i.hasNext ( ) ) return mgr.detachCopy ( i.next ( ) ); else throw new Exception ( Unable to locate user [ + userName + ] ); } finally { query.closeAll ( ); mgr.close ( ); } } I'm storing the data in the HttpSession object with the following code: req.getSession ( true ).setAttribute ( USER, user ); log ( Session data loaded. Redirecting to + nxtactn + ... ); resp.sendRedirect ( nxtactn ); The following Exception is thrown when the Servlet redirects. /Login java.lang.RuntimeException: java.io.NotSerializableException: org.datanucleus.store.appengine.query.LazyResult at com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java: 361) at com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession(SessionManager.java: 341) at com.google.apphosting.runtime.jetty.SessionManager $AppEngineSession.save(SessionManager.java:162) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 41) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 250) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5838) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5836) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java: 24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 398) at com.google.net.rpc.impl.Server$2.run(Server.java:852) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java: 56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java: 576) at com.google.net.rpc.impl.Server.startRpc(Server.java:807) at com.google.net.rpc.impl.Server.processRequest(Server.java:369) at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java: 442) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java: 319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java: 290) at com.google.net.async.Connection.handleReadEvent(Connection.java: 474) at com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java: 831) at com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java: 207) at com.google.net.async.EventDispatcher.loop(EventDispatcher.java: 103) at com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java: 251) at com.google.apphosting.runtime.JavaRuntime $RpcRunnable.run(JavaRuntime.java:413) at java.lang.Thread.run(Unknown Source) Caused by: java.io.NotSerializableException: org.datanucleus.store.appengine.query.LazyResult
Re: [appengine-java] Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4
Originally, I'd thought something along the same lines, but this isn't the case. In my running server there's no asm running in my application classpath, environment, or lib/ext. It's only in GAE and my application. On Wed, Jun 2, 2010 at 12:04 PM, Toby Reyelts to...@google.com wrote: It looks like you have a version of ASM that is incompatible with the dev_appserver's version hanging around. Do you have ASM in your JRE's lib/ext folder? On Tue, Jun 1, 2010 at 10:56 PM, Andrew am2...@gmail.com wrote: Hi, I'm trying to get spring 3.0 up and running as per the blog post at http://www.ardentlord.com/apps/blog/show/829881-spring-3-0-on-google-app-engine However I'm running into some issues when I try and start it up in Development (have not tried in production yet): The console is showing a stack of these messages: 02/06/2010 2:50:19 AM com.google.appengine.tools.development.agent.impl.Transformer transform SEVERE: Unable to instrument org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator. Security restrictions may not be entirely emulated. java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(I)V However as far as I can tell the app is actually running. There was a thread in this group late last year that described a similar issue, and the suggested solution seemed to be to rename the plugin.jar file to plugin2.jar: http://groups.google.com.au/group/google-appengine-java/browse_thread/thread/5e34079b5b3d58a1/b6db94a2df4ea58c?lnk=gstq=Security+restrictions+may+not+be+entirely+emulated.#b6db94a2df4ea58c However the posters seemed to be using macs. I am on Windows 7 (Eclipse Galileo with the Google Plugin) and cannot locate this file - does anyone have any advice on where I may find it? Best regards, Andrew. -- You received this message 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] MemCache expiring around once a day
There's very little cost to connecting to the datastore. If this is an issue, I'd look at the low-level API for anything that could be a warm-up request. The expensive part of this is initializing your PersistenceManagerFactory/EntityManagerFactory, not establishing a datastore connection. On Tue, Jun 1, 2010 at 8:12 PM, Rahul Juneja rahul.jun...@gmail.com wrote: Ikai, The problem is that i am not sure when the values in the cache will be accessed. but anyways i have implemented it in such a way that if the value is not found in cache it goes to database to fetch it, but another issue there is that if you are making the database connection first time after the new jvm instance has been kicked off as it happens in Appengine, db connection takes a while, sometimes around 6-7 seconds, which is kind of slow. Nicolas, Thats the reason i am fetching the data if not found in cache. Thanks, Rahul -- Rahul Juneja http://techlabs.thoughtclicks.com On Tue, Jun 1, 2010 at 9:41 PM, Ikai L (Google) ika...@google.com wrote: The items will get flushed if they are not getting used. If you're using items once every 24 hours ... you probably do not need a cache. Use the datastore instead. Rather than prevent the items from being flushed, build the ability to regenerate the cache into your system or don't even bother with Memcache. On Tue, Jun 1, 2010 at 6:24 PM, Rahul Juneja rahul.jun...@gmail.comwrote: Ikai, I think you are right that the cache values are expiring via LRU as sometimes only some elements of the cache are flushed. But the question is my cache only has 20-30 entries and out of that 10 least recently used entries are being flushed. Is there any way i can prevent this flushing as i don't want to flush if the cache is so small instead i want the cache only to flush LRU elements when the cache grows in size to maybe 100,000 entries. Any clues ? Thanks, Rahul -- Rahul Juneja http://techlabs.thoughtclicks.com On Tue, Jun 1, 2010 at 6:56 PM, Ikai L (Google) ika...@google.comwrote: No, there isn't a default expiration. How are you setting values to the cache? Could you be expiring the items via LRU? That is - you're not using the items in the cache, instead setting other items and pushing the older, unused items out? On Wed, May 26, 2010 at 6:43 PM, Rahul rahul.jun...@gmail.com wrote: I have a memcache and not to mention it does live between different jvm instances when new jvm instances starts, i can access the cache but once a while i don't find any values in cache and this happened twice in last 24 hours. Is there any default expiration which is less then 24-48 hours which i am not aware of. Any help or pointers on this is appreciated. Thanks, Rahul -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at
Re: [appengine-java] Using Task Queue while storing entities
Move method1() to a method inside a servlet invoked by the Task Queue, then inside your servlet call queue.add(). On Tue, Jun 1, 2010 at 8:49 PM, drift elysium drift2elys...@gmail.comwrote: hi, I'd like to know how exactly I should include the code for TaskQueue. I saw this line in the docs. queue.add(url(/path?a=bc=d).method(Method.GET)) So, if I have a servlet like this and if the method1() takes a longer time and so I want to implement TaskQueue on it. How do I do it? Someone please help! public class sampleServlet extends HttpServlet{ public void doPost(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { ... //calling the function method1() method1(); .. } public void method1(){ //here the entities are persisted } } -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] guest book appln throws exception
You're using a JRE instead of a JDK. There are a couple of posts about these: http://www.google.com/search?sourceid=chromeie=UTF-8q=Caused+by:+java.lang.ClassNotFoundException:com.sun.tools.javac.Main+servletqscrl=1 On Tue, Jun 1, 2010 at 10:37 PM, shanthi ramabhadran 77can...@gmail.comwrote: The guestbook sample appln throws exceptions , any one can solve my problem? HTTP ERROR: 500 Unable to compile class for JSP Generated servlet error: [javac] Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main [javac] at java.net.URLClassLoader$1.run(Unknown Source) [javac] at java.security.AccessController.doPrivileged(Native Method) [javac] at java.net.URLClassLoader.findClass(Unknown Source) [javac] at java.lang.ClassLoader.loadClass(Unknown Source) [javac] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) [javac] at java.lang.ClassLoader.loadClass(Unknown Source) [javac] Exception in thread main Could not find the main class: com.sun.tools.javac.Main. Program will exit. RequestURI=/ Caused by: org.apache.jasper.JasperException: Unable to compile class for JSP Generated servlet error: [javac] Caused by: java.lang.ClassNotFoundException: com.sun.tools.javac.Main [javac] at java.net.URLClassLoader$1.run(Unknown Source) [javac] at java.security.AccessController.doPrivileged(Native Method) [javac] at java.net.URLClassLoader.findClass(Unknown Source) [javac] at java.lang.ClassLoader.loadClass(Unknown Source) [javac] at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source) [javac] at java.lang.ClassLoader.loadClass(Unknown Source) [javac] Exception in thread main Could not find the main class: com.sun.tools.javac.Main. Program will exit. at org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java: 84) at org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java: 332) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java: 412) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:472) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:451) at org.apache.jasper.compiler.Compiler.compile(Compiler.java:439) at org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java: 511) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 295) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 292) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236) at com.google.appengine.tools.development.PrivilegedJspServlet.access $101(PrivilegedJspServlet.java:23) at com.google.appengine.tools.development.PrivilegedJspServlet $2.run(PrivilegedJspServlet.java:59) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.tools.development.PrivilegedJspServlet.service(PrivilegedJspServlet.java: 57) 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 com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java: 70) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:268) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at com.google.appengine.tools.development.StaticFileUtils.serveWelcomeFileAsForward(StaticFileUtils.java: 80) at com.google.appengine.tools.development.LocalResourceFileServlet.maybeServeWelcomeFile(LocalResourceFileServlet.java: 254) at com.google.appengine.tools.development.LocalResourceFileServlet.doGet(LocalResourceFileServlet.java: 120) 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.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
Re: [appengine-java] simple relation
Are you trying one-to-many or many-to-many? By using a third table it sounds like you're trying to do many-to-many, not one-to-many. As best I can determine, the only real way to do this in GAE is to have a User class with a collection of string properties, containing the list of all Work ids. In this case a bidirectional link would be probably quite useful, so that a Work could be identified by its User id. Here's a scenario: Retrieve User by user id. Then, retrieve all Works in the list of work ids owned by the User. Note that this is not true object composition, with a User containing a List of Collection, but rather an indirect reference. This pattern is useful in a lot of circumstances where you want to be able to break up your object model into more modular deployable applications. On the other hand, I'd hate to be completely boxed in by this restriction. I'm just getting started with GAE so I'm very much not an expert. I'd love to know anybody else's thoughts on the matter. On Wed, Jun 2, 2010 at 12:10 AM, RAVINDER MAAN rsmaan...@gmail.com wrote: Hello all can anybody please tell me how to implement simple one many relation in java.I have user table and work table .Any user can do many type of works.In user table i have userid but it is not primary key of the user table.Then i have work table which has workid it is also not primary key of the table.Normally in relation db we ca make third table table which contains workid for every userid.What how can we implement this thing appengine datastore.I want to have collection all works in user object .can anybody please tell me how to define this mapping?please note that in userid and workid are not primary keys in both objects or tables. Thanks in adavance. -- You received this message 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] Failure to write objects to HttpSession - NotSerializableException : LazyResult
The User isn't serializable. Are you using the standard User class or a custom User class? On Tue, Jun 1, 2010 at 8:03 PM, Shawn Draper smd0...@hotmail.com wrote: I am storing user-profile information in the data store and retrieving with the following code: public static User getUserByID ( String userName ) throws Exception { PersistenceManager mgr = PMF.getInstance ( ).getPersistenceManager ( ); Query query = mgr.newQuery ( User.class ); query.setFilter ( userName == param ); query.declareParameters ( String param ); try { List User results = (List User) query.execute ( userName ); Iterator User i = results.iterator ( ); if ( i.hasNext ( ) ) return mgr.detachCopy ( i.next ( ) ); else throw new Exception ( Unable to locate user [ + userName + ] ); } finally { query.closeAll ( ); mgr.close ( ); } } I'm storing the data in the HttpSession object with the following code: req.getSession ( true ).setAttribute ( USER, user ); log ( Session data loaded. Redirecting to + nxtactn + ... ); resp.sendRedirect ( nxtactn ); The following Exception is thrown when the Servlet redirects. /Login java.lang.RuntimeException: java.io.NotSerializableException: org.datanucleus.store.appengine.query.LazyResult at com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java: 361) at com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession(SessionManager.java: 341) at com.google.apphosting.runtime.jetty.SessionManager $AppEngineSession.save(SessionManager.java:162) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 41) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 250) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5838) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5836) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java: 24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 398) at com.google.net.rpc.impl.Server$2.run(Server.java:852) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java: 56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java: 576) at com.google.net.rpc.impl.Server.startRpc(Server.java:807) at com.google.net.rpc.impl.Server.processRequest(Server.java:369) at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java: 442) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java: 319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java: 290) at com.google.net.async.Connection.handleReadEvent(Connection.java: 474) at com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java: 831) at com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java: 207) at com.google.net.async.EventDispatcher.loop(EventDispatcher.java: 103) at
[appengine-java] Dev Server: response.setHeader() has no effect
On the dev server I call setHeader() on the response but it doesn't seem to set it - coz when I call containsHeader() immediately after calling setHeader() it returns false. response.setHeader(Content-Encoding, gzip); logger.info(response.containsHeader(Content-Encoding)); //prints false Is this a known issue? It used to work in previous versions of the SDK. I'm using 1.3.4 Thanks, Keyur P.S.: I know that the production server gzips the content itself. As much as I don't like it, no I don't set the Content-Encoding header in production. -- You received this message 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] simple relation
Thank you so much for your answer Bill yes you are rite the way i wrote its many to many relation.Actually I want relation as below class User{ Long id; String username; ListWork workList; } class Work{ Long id; String workname; String username; } you can see work class has username and user class too has username.In both classes primary key is id. I just want to know is there any way to get workList populated automatically on retrieval of user object.we can do it with 2 queries easily.we can reteriev user first then we can retrieve work object with second query. On Wed, Jun 2, 2010 at 10:35 PM, Bill Milligan bill.milli...@gmail.comwrote: Are you trying one-to-many or many-to-many? By using a third table it sounds like you're trying to do many-to-many, not one-to-many. As best I can determine, the only real way to do this in GAE is to have a User class with a collection of string properties, containing the list of all Work ids. In this case a bidirectional link would be probably quite useful, so that a Work could be identified by its User id. Here's a scenario: Retrieve User by user id. Then, retrieve all Works in the list of work ids owned by the User. Note that this is not true object composition, with a User containing a List of Collection, but rather an indirect reference. This pattern is useful in a lot of circumstances where you want to be able to break up your object model into more modular deployable applications. On the other hand, I'd hate to be completely boxed in by this restriction. I'm just getting started with GAE so I'm very much not an expert. I'd love to know anybody else's thoughts on the matter. On Wed, Jun 2, 2010 at 12:10 AM, RAVINDER MAAN rsmaan...@gmail.comwrote: Hello all can anybody please tell me how to implement simple one many relation in java.I have user table and work table .Any user can do many type of works.In user table i have userid but it is not primary key of the user table.Then i have work table which has workid it is also not primary key of the table.Normally in relation db we ca make third table table which contains workid for every userid.What how can we implement this thing appengine datastore.I want to have collection all works in user object .can anybody please tell me how to define this mapping?please note that in userid and workid are not primary keys in both objects or tables. Thanks in adavance. -- You received this message 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. -- Regards, Ravinder Singh Maan -- You received this message 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] simple relation
I believe you're going to have to change this to class User { String name; List String workNames; // or List Long workIds; } class Work { String name; String userName; // or Long userId; } This is actually you'd design this under the MDA paradigm, actually. You need to be able to change each independently of the other. As far as automatic population, like an ORM would do, I don't think this is possible. You'll have to do this manually. Honestly, you won't lose much by doing two queries. On Wed, Jun 2, 2010 at 2:12 PM, RAVINDER MAAN rsmaan...@gmail.com wrote: Thank you so much for your answer Bill yes you are rite the way i wrote its many to many relation.Actually I want relation as below class User{ Long id; String username; ListWork workList; } class Work{ Long id; String workname; String username; } you can see work class has username and user class too has username.In both classes primary key is id. I just want to know is there any way to get workList populated automatically on retrieval of user object.we can do it with 2 queries easily.we can reteriev user first then we can retrieve work object with second query. On Wed, Jun 2, 2010 at 10:35 PM, Bill Milligan bill.milli...@gmail.comwrote: Are you trying one-to-many or many-to-many? By using a third table it sounds like you're trying to do many-to-many, not one-to-many. As best I can determine, the only real way to do this in GAE is to have a User class with a collection of string properties, containing the list of all Work ids. In this case a bidirectional link would be probably quite useful, so that a Work could be identified by its User id. Here's a scenario: Retrieve User by user id. Then, retrieve all Works in the list of work ids owned by the User. Note that this is not true object composition, with a User containing a List of Collection, but rather an indirect reference. This pattern is useful in a lot of circumstances where you want to be able to break up your object model into more modular deployable applications. On the other hand, I'd hate to be completely boxed in by this restriction. I'm just getting started with GAE so I'm very much not an expert. I'd love to know anybody else's thoughts on the matter. On Wed, Jun 2, 2010 at 12:10 AM, RAVINDER MAAN rsmaan...@gmail.comwrote: Hello all can anybody please tell me how to implement simple one many relation in java.I have user table and work table .Any user can do many type of works.In user table i have userid but it is not primary key of the user table.Then i have work table which has workid it is also not primary key of the table.Normally in relation db we ca make third table table which contains workid for every userid.What how can we implement this thing appengine datastore.I want to have collection all works in user object .can anybody please tell me how to define this mapping?please note that in userid and workid are not primary keys in both objects or tables. Thanks in adavance. -- You received this message 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. -- Regards, Ravinder Singh Maan -- You received this message 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] MemCache expiring around once a day
Ikai, Yes you are right the expensive part is initializing the EntityManagerFactory in my case. Is there any way we can improve the performance on that. Thanks, Rahul -- Rahul Juneja http://techlabs.thoughtclicks.com On Wed, Jun 2, 2010 at 12:55 PM, Ikai L (Google) ika...@google.com wrote: There's very little cost to connecting to the datastore. If this is an issue, I'd look at the low-level API for anything that could be a warm-up request. The expensive part of this is initializing your PersistenceManagerFactory/EntityManagerFactory, not establishing a datastore connection. On Tue, Jun 1, 2010 at 8:12 PM, Rahul Juneja rahul.jun...@gmail.comwrote: Ikai, The problem is that i am not sure when the values in the cache will be accessed. but anyways i have implemented it in such a way that if the value is not found in cache it goes to database to fetch it, but another issue there is that if you are making the database connection first time after the new jvm instance has been kicked off as it happens in Appengine, db connection takes a while, sometimes around 6-7 seconds, which is kind of slow. Nicolas, Thats the reason i am fetching the data if not found in cache. Thanks, Rahul -- Rahul Juneja http://techlabs.thoughtclicks.com On Tue, Jun 1, 2010 at 9:41 PM, Ikai L (Google) ika...@google.comwrote: The items will get flushed if they are not getting used. If you're using items once every 24 hours ... you probably do not need a cache. Use the datastore instead. Rather than prevent the items from being flushed, build the ability to regenerate the cache into your system or don't even bother with Memcache. On Tue, Jun 1, 2010 at 6:24 PM, Rahul Juneja rahul.jun...@gmail.comwrote: Ikai, I think you are right that the cache values are expiring via LRU as sometimes only some elements of the cache are flushed. But the question is my cache only has 20-30 entries and out of that 10 least recently used entries are being flushed. Is there any way i can prevent this flushing as i don't want to flush if the cache is so small instead i want the cache only to flush LRU elements when the cache grows in size to maybe 100,000 entries. Any clues ? Thanks, Rahul -- Rahul Juneja http://techlabs.thoughtclicks.com On Tue, Jun 1, 2010 at 6:56 PM, Ikai L (Google) ika...@google.comwrote: No, there isn't a default expiration. How are you setting values to the cache? Could you be expiring the items via LRU? That is - you're not using the items in the cache, instead setting other items and pushing the older, unused items out? On Wed, May 26, 2010 at 6:43 PM, Rahul rahul.jun...@gmail.com wrote: I have a memcache and not to mention it does live between different jvm instances when new jvm instances starts, i can access the cache but once a while i don't find any values in cache and this happened twice in last 24 hours. Is there any default expiration which is less then 24-48 hours which i am not aware of. Any help or pointers on this is appreciated. Thanks, Rahul -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message
[appengine-java] Re: Problems enabling Second-level cache with JPA
Fixed in datanucleus 2.1 http://www.jpox.org/servlet/jira/browse/NUCCORE-539 On 4 mai, 21:22, Sérgio Lopes slo...@gmail.com wrote: Thanks for the reply. And about citing GAE caveats: maybe that's a good idea to promote your product (I can speak for myself: I never heard about datanucleus before GAE, and it seems like a nice product). About 1.1 support: although there is no more support, the current GAE version + datanucleus-cache-1.1 should have worked? Thanks in advance and congratulations for the product On Tue, May 4, 2010 at 13:32, datanucleus andy_jeffer...@yahoo.com wrote: And DataNucleus docs for v2.0, v2.1 don't mention GAE/J since GAE/J doesn't work with them, and we've been given no timescales when it will. The DN v1.1 docs mention GAE/J, but we have absolutely no intention of mentioning caveats to specifications necessary to run GAE/J - since we see no major reason why the vast majority of JDO3 and JPA2 can't be handled cleanly with a NoSQL datastore. Can't help you with your issue since v1.1 is no longer supported, except commercially -- You received this message 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 athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4
If you've gotten past point 2, I'd love to see it. Redeploying every time I make a change is driving me batty. On Wed, Jun 2, 2010 at 7:38 PM, Andrew am2...@gmail.com wrote: Thank you very much Bill. The suggestion in point 1 worked a treat. To answer your other questions, I am using asm 2.1 and spring 3.0.2. My url pattern is: url-pattern/*/url-pattern When I said that the app was actually running, I meant that even though there were those errors in the console, I was able to browse to the hello world file and it gave me the expected output so it appeared the errors actually hadn't stopped anything from working. If you would like me to send you my eclipse project in a zip file please let me know and I'm happy to do so. Best regards, Andrew. On Jun 3, 12:04 am, Bill bill.milli...@gmail.com wrote: Okay, a few things I found out -- 1. The suggestion athttp:// code.google.com/p/googleappengine/issues/detail?id=2527 works quite well. You'll find the afflicted appengine-agent.jar in your eclipse plugins folder under com.google.appengine.eclipse.sdkbundle.version/appengine-java-sdk- version/lib/agent. Use jarjar to fix internal refs to its own asm code, completely compartmentalizing it away from everything else. Ignore the ln -s suggestion, I have no idea what that's about except possibly it's someone's idea to avoid renaming a file, and the plugin.jar to plugin2.jar is just an example. It's not really relevant. 2. It won't matter once you get this working. Jetty will not be able to find your hello.jsp. I can't figure out why, but I believe it has something to do with the URL pattern in web.xml. I tried moving it around without success. 3. Both problems are non-issues on production. I deployed the hello app out there and everything just worked. On one hand it's good, but on the other, this drastically disimproves my build-test-turnaround time. On Jun 1, 10:56 pm, Andrew am2...@gmail.com wrote: Hi, I'm trying to get spring 3.0 up and running as per the blog post at http://www.ardentlord.com/apps/blog/show/829881-spring-3-0-on-google-. .. However I'm running into some issues when I try and start it up in Development (have not tried in production yet): The console is showing a stack of these messages: 02/06/2010 2:50:19 AM com.google.appengine.tools.development.agent.impl.Transformer transform SEVERE: Unable to instrument org.springframework.web.servlet.view.DefaultRequestToViewNameTranslator. Security restrictions may not be entirely emulated. java.lang.NoSuchMethodError: org.objectweb.asm.ClassWriter.init(I)V However as far as I can tell the app is actually running. There was a thread in this group late last year that described a similar issue, and the suggested solution seemed to be to rename the plugin.jar file to plugin2.jar: http://groups.google.com.au/group/google-appengine-java/browse_thread. .. However the posters seemed to be using macs. I am on Windows 7 (Eclipse Galileo with the Google Plugin) and cannot locate this file - does anyone have any advice on where I may find it? Best regards, Andrew. -- You received this message 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: Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4
Hi Bill, Can you send me the steps to reproduce it so I can see if I am observing the same thing please? Regards, Andrew. On Jun 3, 10:32 am, Bill Milligan bill.milli...@gmail.com wrote: If you've gotten past point 2, I'd love to see it. Redeploying every time I make a change is driving me batty. -- You received this message 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] timestamp check failed error
Hi, I deployed some of my GAE apps to the production server some months ago and it worked perfectly. Recently I haven't been using GAE but now I have to. When I try to deploy my app to the production server I always get this error log: Unable to update: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source) at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source) at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source) at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source) at com.google.appengine.tools.admin.ServerConnection.connect(ServerConnection.java: 338) at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 133) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 82) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 532) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java: 349) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 111) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: 271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: 145) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: 38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed at sun.security.validator.PKIXValidator.doValidate(Unknown Source) at sun.security.validator.PKIXValidator.doValidate(Unknown Source) at sun.security.validator.PKIXValidator.engineValidate(Unknown Source) at sun.security.validator.Validator.validate(Unknown Source) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(Unknown Source) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source) ... 23 more Caused by: java.security.cert.CertPathValidatorException: timestamp check failed at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(Unknown Source) at sun.security.provider.certpath.PKIXCertPathValidator.doValidate(Unknown Source) at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(Unknown Source) at java.security.cert.CertPathValidator.validate(Unknown Source) ... 30 more Caused by: java.security.cert.CertificateNotYetValidException: NotBefore: Fri Mar 05 04:06:05 CET 2010 at sun.security.x509.CertificateValidity.valid(Unknown Source) at sun.security.x509.X509CertImpl.checkValidity(Unknown Source) at sun.security.provider.certpath.BasicChecker.verifyTimestamp(Unknown Source) at sun.security.provider.certpath.BasicChecker.check(Unknown Source) ... 34 more 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] timestamp check failed error
If I had to guess: your system clock is off. Try syncing it with a network time server and try again. On Wed, Jun 2, 2010 at 6:57 PM, iodsfjoipsdfi ijsdpfijd gaefjga...@gmail.com wrote: Hi, I deployed some of my GAE apps to the production server some months ago and it worked perfectly. Recently I haven't been using GAE but now I have to. When I try to deploy my app to the production server I always get this error log: Unable to update: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Unknown Source) at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(Unknown Source) at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Unknown Source) at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source) at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(Unknown Source) at sun.net.www.protocol.https.HttpsClient.afterConnect(Unknown Source) at sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getOutputStream(Unknown Source) at com.google.appengine.tools.admin.ServerConnection.connect(ServerConnection.java: 338) at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 133) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 82) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 532) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java: 349) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 111) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: 271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: 145) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: 38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) Caused by: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: timestamp check failed at sun.security.validator.PKIXValidator.doValidate(Unknown Source) at sun.security.validator.PKIXValidator.doValidate(Unknown Source) at sun.security.validator.PKIXValidator.engineValidate(Unknown Source) at sun.security.validator.Validator.validate(Unknown Source) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.validate(Unknown Source) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source) at com.sun.net.ssl.internal.ssl.X509TrustManagerImpl.checkServerTrusted(Unknown Source) ... 23 more Caused by: java.security.cert.CertPathValidatorException: timestamp check failed at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(Unknown Source) at sun.security.provider.certpath.PKIXCertPathValidator.doValidate(Unknown Source) at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(Unknown Source) at java.security.cert.CertPathValidator.validate(Unknown Source) ... 30 more Caused by: java.security.cert.CertificateNotYetValidException: NotBefore: Fri Mar 05 04:06:05 CET 2010 at sun.security.x509.CertificateValidity.valid(Unknown Source) at sun.security.x509.X509CertImpl.checkValidity(Unknown Source) at sun.security.provider.certpath.BasicChecker.verifyTimestamp(Unknown Source) at sun.security.provider.certpath.BasicChecker.check(Unknown Source) ... 34 more 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
[appengine-java] Re: Spring Roo + GWT Demo
You can search Deploy to Google App Engine on this post http://blog.springsource.com/2010/06/02/using-springsource-tool-suite-2-3-3-m1-with-roo-and-gwt/ On 28 maio, 15:44, caritos ecari...@gmail.com wrote: Looking for documentation to deploy Spring Roo + GWT + STS on GAE. On May 28, 11:03 am, geoaxis geoa...@gmail.com wrote: Hello, I believe that portions of the code for GWT is already in the GWT release. You can try out theROOspecific stuff with STS (screen cast herehttp://www.thescreencast.com/2010/05/how-to-gwt-roo.html) -- Shahzada Hatim @geoaxis on twitter, irc.freenode.net/#spring On May 23, 5:44 pm, yonny yon...@googlemail.com wrote: Hi all, Has the code for theroo+gwt demo at Google IO by Ben Alex and Bruce Johnson been provided for download.. I'd like to have a look at how they implemented the relationships.Any help would be gratly appreciated.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 athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] the support to JPA
Hi everyone in the tuto, why there is so few articles with JPA? -- You received this message 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] Uploading to blobstore gives OutOfMemoryError
Hi all, I am trying to set up a basic file upload to blobstore, but I get this OutOfMemoryError: WARNING: Error for /_ah/upload/ aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGMACDA java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2786) at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:71) at javax.mail.internet.MimeMultipart.readTillFirstBoundary(MimeMultipart.java: 316) at javax.mail.internet.MimeMultipart.parse(MimeMultipart.java:186) at javax.mail.internet.MimeMultipart.getCount(MimeMultipart.java:109) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(UploadBlobServlet.java: 135) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.access $000(UploadBlobServlet.java:72) at com.google.appengine.api.blobstore.dev.UploadBlobServlet $1.run(UploadBlobServlet.java:100) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobServlet.java: 98) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511); I used the Memory Analyzer on Eclipse and it said that the memory leak suspect is QueuedThreadPool. I found this information about a memory leak bug: http://jira.codehaus.org/browse/JETTY-1188 How can I figure out what release of jetty is running locally? It looks like they fixed this in version 6.1.23: http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11160version=16044 Has anyone else had this issue? Thanks, Jean -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Spring Roo + GWT Demo
Scroll down for the Deploy to Google App Engine section: http://blog.springsource.com/2010/06/02/using-springsource-tool-suite-2-3-3-m1-with-roo-and-gwt/ On May 30, 11:42 am, Marcel Overdijk marceloverd...@gmail.com wrote: Yes would be cool if they finally share the code. It was a big announcement and people want to try it out, but it lacks information now... On May 28, 8:44 pm, caritos ecari...@gmail.com wrote: Looking for documentation to deploy Spring Roo + GWT + STS on GAE. On May 28, 11:03 am, geoaxis geoa...@gmail.com wrote: Hello, I believe that portions of the code for GWT is already in the GWT release. You can try out theROOspecific stuff with STS (screen cast herehttp://www.thescreencast.com/2010/05/how-to-gwt-roo.html) -- Shahzada Hatim @geoaxis on twitter, irc.freenode.net/#spring On May 23, 5:44 pm, yonny yon...@googlemail.com wrote: Hi all, Has the code for theroo+gwt demo at Google IO by Ben Alex and Bruce Johnson been provided for download.. I'd like to have a look at how they implemented the relationships.Any help would be gratly appreciated.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 athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Nested Embedded Classes do not work with GAE 1.3.4?
I have a simple 3 class example: @PersistenceCapable public class MyUser { @Persistent @Embedded private ContactDetails contactInfo; ... } @PersistenceCapable @EmbeddedOnly public class ContactDetails { @Persistent @Embedded private MyPostalAddress address ... } @PersistenceCapable @EmbeddedOnly public class MyPostalAddress { @Persistent private String postalAddress; ... } My main class { ... MyPostalAddress addr = new MyPostalAddress(); addr.setPostalAddress(123 Main St.); ContactDetails cd = new ContactDetails(); cd.setAddress(addr); MyUser user = new MyUser(); user.setContactInfo(cd). pm.makePersistent(newUser); tx.commit(); } Once the makePersistent() call is invoked I receive the following stacktrace. If I don't have a nested embedded class and simply move the MyPostalAddress out of ContactDetails and instead embed it into MyUser everything works. So I have 2 questions: (1) The DataNucleus documentation (http://www.datanucleus.org/products/ accessplatform/jdo/orm/embedded.html#NestedPC) explicitly says the nested embedded classes work with JDO but GAE documentation (http:// code.google.com/appengine/docs/java/datastore/ dataclasses.html#Embedded_Classes) doesn't mention that it does or doesn't. GAE only has a single example of an Embedded Class and that is an inner class on top. I have tried different paths but they all point to GAE not supporting nested (more than 1 level deep) Embedded Classes. Can anyone confirm or refute my conclusion? (2) Furthermore, in my nested embedded class I also tried to have a property that was a full entity onto itself (requires its own space) and that was rejected. I actually tried this model first and once that didn't work I tried the simple example I gave above. My stacktrace was different for this. It was along the lines of index: 5 is out of bounds type message. I didn't reproduce this since I modified my code but it's all the same. So if somehow (show me please) nested embedded classes work do they support non-simple properties that are actually fully persistable entities themselves? Thanks in advance. STACKTRACE HTTP ERROR 500 Problem accessing /register.action. Reason: Specified class class java.lang.String is not persistable Caused by: javax.jdo.JDOFatalUserException: Specified class class java.lang.String is not persistable at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java: 354) at org.datanucleus.jdo.JDOPersistenceManager.jdoMakePersistent(JDOPersistenceManager.java: 674) at org.datanucleus.jdo.JDOPersistenceManager.makePersistent(JDOPersistenceManager.java: 694) at com.camelspeed.core.service.authentication.DefaultUserRegistrationServiceImpl.register(DefaultUserRegistrationServiceImpl.java: 56) at com.camelspeed.web.action.RegisterActionBean.register(RegisterActionBean.java: 48) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java: 100) at net.sourceforge.stripes.controller.DispatcherHelper $6.intercept(DispatcherHelper.java:467) at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java: 158) at net.sourceforge.stripes.controller.BeforeAfterMethodInterceptor.intercept(BeforeAfterMethodInterceptor.java: 113) at net.sourceforge.stripes.controller.ExecutionContext.proceed(ExecutionContext.java: 155) at net.sourceforge.stripes.controller.ExecutionContext.wrap(ExecutionContext.java: 74) at net.sourceforge.stripes.controller.DispatcherHelper.invokeEventHandler(DispatcherHelper.java: 465) at net.sourceforge.stripes.controller.DispatcherServlet.invokeEventHandler(DispatcherServlet.java: 278) at net.sourceforge.stripes.controller.DispatcherServlet.service(DispatcherServlet.java: 160) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at net.sourceforge.stripes.controller.StripesFilter.doFilter(StripesFilter.java: 247) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.springframework.security.web.FilterChainProxy $VirtualFilterChain.doFilter(FilterChainProxy.java:343) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java: 109) at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:
[appengine-java] stuck indexes ?
Hi, I have an app at 'omwatcher.appspot.com' with a very small database, yet two indexes seem to be stuck with Status=Building. Can someone help? 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] simple relation
Thanks Bill I have experience with hibernate thats why i thought it could be possible. On Thu, Jun 3, 2010 at 12:00 AM, Bill Milligan bill.milli...@gmail.comwrote: I believe you're going to have to change this to class User { String name; List String workNames; // or List Long workIds; } class Work { String name; String userName; // or Long userId; } This is actually you'd design this under the MDA paradigm, actually. You need to be able to change each independently of the other. As far as automatic population, like an ORM would do, I don't think this is possible. You'll have to do this manually. Honestly, you won't lose much by doing two queries. On Wed, Jun 2, 2010 at 2:12 PM, RAVINDER MAAN rsmaan...@gmail.com wrote: Thank you so much for your answer Bill yes you are rite the way i wrote its many to many relation.Actually I want relation as below class User{ Long id; String username; ListWork workList; } class Work{ Long id; String workname; String username; } you can see work class has username and user class too has username.In both classes primary key is id. I just want to know is there any way to get workList populated automatically on retrieval of user object.we can do it with 2 queries easily.we can reteriev user first then we can retrieve work object with second query. On Wed, Jun 2, 2010 at 10:35 PM, Bill Milligan bill.milli...@gmail.comwrote: Are you trying one-to-many or many-to-many? By using a third table it sounds like you're trying to do many-to-many, not one-to-many. As best I can determine, the only real way to do this in GAE is to have a User class with a collection of string properties, containing the list of all Work ids. In this case a bidirectional link would be probably quite useful, so that a Work could be identified by its User id. Here's a scenario: Retrieve User by user id. Then, retrieve all Works in the list of work ids owned by the User. Note that this is not true object composition, with a User containing a List of Collection, but rather an indirect reference. This pattern is useful in a lot of circumstances where you want to be able to break up your object model into more modular deployable applications. On the other hand, I'd hate to be completely boxed in by this restriction. I'm just getting started with GAE so I'm very much not an expert. I'd love to know anybody else's thoughts on the matter. On Wed, Jun 2, 2010 at 12:10 AM, RAVINDER MAAN rsmaan...@gmail.comwrote: Hello all can anybody please tell me how to implement simple one many relation in java.I have user table and work table .Any user can do many type of works.In user table i have userid but it is not primary key of the user table.Then i have work table which has workid it is also not primary key of the table.Normally in relation db we ca make third table table which contains workid for every userid.What how can we implement this thing appengine datastore.I want to have collection all works in user object .can anybody please tell me how to define this mapping?please note that in userid and workid are not primary keys in both objects or tables. Thanks in adavance. -- You received this message 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. -- Regards, Ravinder Singh Maan -- You received this message 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
Re: [appengine-java] stuck indexes ?
I see same problem it takes hours to build indexes.is there any faster way? On Thu, Jun 3, 2010 at 10:03 AM, Bruce h...@alum.rpi.edu wrote: Hi, I have an app at 'omwatcher.appspot.com' with a very small database, yet two indexes seem to be stuck with Status=Building. Can someone help? 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. -- Regards, Ravinder Singh Maan -- You received this message 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] simple relation
You will need to use an ObjectDatastore instead of JDO if you want to use direct references as in your example. http://code.google.com/p/twig-persist/ If you @Embed Work in User you can retrieve all in a single query http://code.google.com/p/twig-persist/wiki/Configuration#Storage_Options On 3 Jun 2010, at 11:46, RAVINDER MAAN wrote: Thanks Bill I have experience with hibernate thats why i thought it could be possible. On Thu, Jun 3, 2010 at 12:00 AM, Bill Milligan bill.milli...@gmail.com wrote: I believe you're going to have to change this to class User { String name; List String workNames; // or List Long workIds; } class Work { String name; String userName; // or Long userId; } This is actually you'd design this under the MDA paradigm, actually. You need to be able to change each independently of the other. As far as automatic population, like an ORM would do, I don't think this is possible. You'll have to do this manually. Honestly, you won't lose much by doing two queries. On Wed, Jun 2, 2010 at 2:12 PM, RAVINDER MAAN rsmaan...@gmail.com wrote: Thank you so much for your answer Bill yes you are rite the way i wrote its many to many relation.Actually I want relation as below class User{ Long id; String username; ListWork workList; } class Work{ Long id; String workname; String username; } you can see work class has username and user class too has username.In both classes primary key is id. I just want to know is there any way to get workList populated automatically on retrieval of user object.we can do it with 2 queries easily.we can reteriev user first then we can retrieve work object with second query. On Wed, Jun 2, 2010 at 10:35 PM, Bill Milligan bill.milli...@gmail.com wrote: Are you trying one-to-many or many-to-many? By using a third table it sounds like you're trying to do many-to-many, not one-to-many. As best I can determine, the only real way to do this in GAE is to have a User class with a collection of string properties, containing the list of all Work ids. In this case a bidirectional link would be probably quite useful, so that a Work could be identified by its User id. Here's a scenario: Retrieve User by user id. Then, retrieve all Works in the list of work ids owned by the User. Note that this is not true object composition, with a User containing a List of Collection, but rather an indirect reference. This pattern is useful in a lot of circumstances where you want to be able to break up your object model into more modular deployable applications. On the other hand, I'd hate to be completely boxed in by this restriction. I'm just getting started with GAE so I'm very much not an expert. I'd love to know anybody else's thoughts on the matter. On Wed, Jun 2, 2010 at 12:10 AM, RAVINDER MAAN rsmaan...@gmail.com wrote: Hello all can anybody please tell me how to implement simple one many relation in java.I have user table and work table .Any user can do many type of works.In user table i have userid but it is not primary key of the user table.Then i have work table which has workid it is also not primary key of the table.Normally in relation db we ca make third table table which contains workid for every userid.What how can we implement this thing appengine datastore.I want to have collection all works in user object .can anybody please tell me how to define this mapping?please note that in userid and workid are not primary keys in both objects or tables. Thanks in adavance. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en . -- Regards, Ravinder Singh Maan -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe
[appengine-java] Re: Transaction exception when not using a transaction ?
Even though you're not using transactions, I think it's trying to make the .close() call atomic (maybe with an internal implicit transaction), failing or succeeding as a whole. And as I understand it, entities not in the same group can be stored on separate machines so can't be operated on atomically. I've worked around this by calling a flush() after most any change on a PM-managed object until close(). If this has a huge number of reqs/ s, you may want to re-architect to get the objects in the same entity group as multiple flushes won't be very efficient. -C On Jun 2, 8:26 pm, JD liva...@gmail.com wrote: I have a PersistenceManager PersistenceManager pm = PMF.get().getPersistenceManager(); which I use to do a bunch of operations on different objects, but WITHOUT transaction (run queries, store entities and lookup entities). I then close the manager with pm.close() and get this obscure error that complains about multiple entity groups inside a transaction even though I am not using a transaction (you will notice that the error is not the usual one where it prints the different entity groups). I am not 100% confident but have the impression that this error started happening with the 1.3.4 release. 100% reproducible use case. Would appreciate input from App Engine developers. com.myapp.servlet.task.PopulateUserPages doAction: Illegal argument javax.jdo.JDOFatalUserException: Illegal argument at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(Nuc leusJDOHelper.java: 344) at org.datanucleus.jdo.JDOPersistenceManager.close(JDOPersistenceManager.java: 281) at com.myapp.dao.jdo.DatastoreService.release(DatastoreService.java: 631) at com.myapp.servlet.AbstractBaseServlet.releaseService(AbstractBaseServlet.ja va: 243) at com.myapp.servlet.task.PopulateUserPages.doAction(PopulateUserPages.java: 132) at com.myapp.servlet.task.Dispatcher.doAction(Dispatcher.java:35) at com.myapp.servlet.task.TaskServlet.doAction(TaskServlet.java:36) at com.myapp.servlet.AbstractBaseServlet.doGenericAction(AbstractBaseServlet.j ava: 194) at com.myapp.servlet.AbstractBaseServlet.doPost(AbstractBaseServlet.java: 84) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlo bUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionF ilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(Trans actionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java: 418) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionH andlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequ estParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceReques t(JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 250) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5838) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:5836) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingAp plicationHandler.java: 24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 398)
[appengine-java] Performance issue for GAE auto-restart
Hi all: We're using GAE to develop our project, but I found I have a performance issue, when checking the logs I found the GAE will auto- restart every 30-60 sec. Someone tell me this's because if the web app wasn't used much, GAE will dispose the instances, and after that made a load request to spin up a new VM and servlet container. So I write a very simple testing for confirm this: -- Test Servlet -- request.count = Counter.createOrIncrement(JspTest, 1); // using JPA to store a counter forward '/test.jsp'; -- Test JSP -- %...@page contentType=text/html;charset=UTF-8 language=java isELIgnored=false % %...@include file=/includes/header.jsp% link rel=stylesheet type=text/css media=screen, print href=css/ list.css / /head body h1 img src=img/icon_memo.png align=absmiddle/ Count: ${count} !-- GET THE COUNT FROM REQUEST FOR VIEW -- /h1 %...@include file=/includes/footer.jsp% -- Log Messages -- 06-02 10:27PM 57.036 com.liyue.web.ContextListener contextInitialized: Web context inited. --- FIRST REQUEST 06-02 10:27PM 58.036 javax.servlet.ServletContext log: Action servlet initialized. 06-02 10:28PM 06.379 [...].stdout: com.liyue.web.Test spend : 8341 ms --- SPEND 8sec FOR INIT AND EXEC ... 06-02 10:28PM 39.401 [...].stdout: com.liyue.web.Test spend : 56 ms --- VERY GOOD PERFORMANCE ... 06-02 10:30PM 03.502 [...].stdout: com.liyue.web.Test spend : 60 ms --- VERY GOOD PERFORMANCE ... 06-02 10:32PM 52.688 com.liyue.web.ContextListener contextInitialized: Web context inited. --- AUTO-RELOAD 06-02 10:32PM 53.636 javax.servlet.ServletContext log: Action servlet initialized. 06-02 10:33PM 01.669 [...].stdout: com.liyue.web.Test spend : 8032 ms --- VERY POOR PERFORMANCE ... I have no idea for how to solve this issue, but this may make us give up using GAE, because our boss and customers couldn't accept this poor performace. But we have write lots of code for GAE, if you have any idea could help us please tell me. THANKS VERY VERY MUCH in advance !!! -- You received this message 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: [google-appengine] Re: Can't enable billing
thanks! I'll wait to fix it. 2010/6/2 Jason (Google) apija...@google.com: There was a substantial backlog in the billing pipeline starting late last week, which caused some discrepancies between the billing status that was reported in the Admin Console and the quotas that were actually being enforced. We're working on processing the backlog and preparing a fix for this so it shouldn't happen again going forward. If you still have specific billing issues, please use the billing issues form so you don't have to share your order information publicly. http://code.google.com/support/bin/request.py?contact_type=AppEngineBillingSupport - Jason On Mon, May 31, 2010 at 2:35 AM, kaz...@abars abars...@gmail.com wrote: Me too... My another two apps have no problem. But my one app can't set to billing mode. Billing history: 2010-05-14 19:03:35 abars...@gmail.com Billing Setup Successful $0.00 2010-05-14 19:02:30 abars...@gmail.com Billing Setup Started but billing status is displayed as free. Billing Status: Free This application is operating within the free quota levels. Enable billing to grow beyond the free quotas. Learn more Billing Administrator: None Since this application is operating within the free quota levels, there isn't a billing administrator. Current Balance: n/a Usage History Resource Allocations: ResourceBudget Unit Cost Paid Quota Free Quota Total Daily Quota CPU Timen/a $0.10/CPU hour n/a 6.506.50 CPU hours Bandwidth Out n/a $0.12/GByten/a 1.001.00 GBytes Bandwidth Inn/a $0.10/GByten/a 1.001.00 GBytes Stored Data n/a $0.005/GByte-day n/a 1.001.00 GBytes Recipients Emailed n/a $0.0001/Email n/a 2,000.00 2,000.00 Emails Max Daily Budget: n/a On 5月29日, 午後3:38, Hugo Visser botte...@gmail.com wrote: At the moment, according to thebillingpage my app is operating in free mode. When I look at the quotas on the dashboard however it is using the quotas that I've set on thebillingpage, while again thebillingstatus is displayed as free. On May 29, 2:22 am, Ikai L (Google) ika...@google.com wrote: It looks likebillingis a bit slow. The UI may say that you are not in the queue, but this is mislabeled. Whenbillingprocesses, your app will automatically be updated to the correct status. On Fri, May 28, 2010 at 1:44 PM, Ikai L (Google) ika...@google.com wrote: I'm seeing the same issue. Let me follow up on this. On Fri, May 28, 2010 at 12:04 PM, G badbackj...@googlemail.com wrote: I'm trying to enablebilling, and it seems to be working - I check out and then the status says it's updating for 15 or so minutes, but after that it goes back to free with the EnableBilling button visible. Is there some extra step I should be doing? Thanks G -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: Updating Google App Engine datastore
Hey Tristan! Thanks for your answer. I will check the docs again and take a look at the low level API. The notification + trigger method seems pretty intelligent i will also check that too. But I was just wondering, isn't there something like a framework for this types of jobs?. Again, thanks Víctor. On 2 jun, 00:41, Tristan tristan.slomin...@gmail.com wrote: Not sure how it would work in JDO but its simple to add properties in low-level datastore. I store my entities with a version property, when I update the entity, I change the version and change my code to either intialize a non- existing property on an old entity, or to delete a deprecated property. This happens lazily (only when the entity is actally used). You can also include a counter of how many entities were updated from old to new and have a flag trigger when 100% of updates are complete. Then in the next version of the code you can remove the updating method since all old entities were lazily updated. An alternative would be to set notification at 90% or some other percentage, and then trigger a task that cleans up the rest of the entities. I use this approach to keep my data consistent without the need for hugely intensive datastore scans to update when changes happen. Hope this will give you some ideas. Cheers! Tristan On Jun 1, 6:28 am, Víctor Mayoral v.mayor...@gmail.com wrote: Hello, I've just an applications using GWT and GAE. After reading the docs and doing some examples I decided to begin coding but soon I reach something tricky. My application data would be at the GAE datastore using JDO. I want to assume that the app will live. Let me explain this: The entities at the datastore will change. This means that some properties would be added and some of them maybe removed what leaves me with a ton of exceptions to handle. Knowing this, which should be the way to update the datastore entities? One by one after a change is made? Should I handle exceptions and then change just the entitie requested? Is there a way to do this cleaner? I've been thinking about how to do this stuff with my actual knowledge and i think that the most logical way to proceed is get the object, remove it from the database, create a new one based on this old object and then persist it again. To sum up the question is about if there's a way to add a property to an stored entitie in the datastore (GAE) easily. I hope you to understand my lines. Any suggestion would be appreciated. Thanks, Víctor. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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] tasks and queues in google app engine
How do i cancel a task / queue which has already been scheduled? What is the point of the task handler? -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: Updating Google App Engine datastore
I haven't seen a framework that does data versioning like that.. but I haven't looked very hard as I rolled my own abstraction layer with the datastore... Here's an excerpt from some stuff I wrote a while back and never got around to publishing. It's a little outdated from what I do nowadays, but it captures the essence of the framework that can do updating: === Entity Versions and Lazy Migration Before diving into data versioning, let's quickly go over how we will use the methods we created. First, let's create a BaseEntity object in the datastore: ... BaseEntity myEntity = new BaseEntity(); myEntity.setCreatedAt(new Date()); myEntity.setUpdatedAt(myEntity.getCreatedAt()); Key myEntityKey = datastore.put(myEntity.toEntity()); ... And that's how it's done. (Yes, we did not set version, more on that later). Below is how we would read from the datastore (assuming we have the entity key ready): ... Entity entity = datastore.get(myEntityKey); BaseEntity myEntity = new BaseEntity(); entity = myEntity.fromEntity(entity); ... After the call to fromEntity(Entity entity) above, myEntity is now updated with the data from the datastore and is ready to be used. And lastly, this is how we would update an entity in the datastore: ... Entity entity = datastore.get(myEntityKey); BaseEntity myEntity = new BaseEntity(); entity = myEntity.fromEntity(entity); myEntity.setUpdatedAt(new Date()); myEntityKey = datastore.put(myEntity.updateEntity(entity)); ... So you can see why we have toEntity() and updateEntity(Entity entity) as separate methods. The updateEntity(Entity entity) does not touch the entity key, therefore ensuring that when we execute a put to the datastore, it will update the exact same entity instead of creating a new one. Now I have to confess. Our implementation of BaseEntity interface is not quite correct. We are going to have to modify it in order to take advantage of data versioning. To illustrate how versioning works, let's assume that for some stupid reason we want to store the createdAt date as a string! So we change our implementation as follows: public class BaseEntityImpl implements BaseEntity { /* variables */ private String createdAt; private Date updatedAt; private Long version; ... } Ok, after making the above change we make sure that the interface and the getters and setters are changed so that everything compiles. We also change our fromEntity(Entity entity) method to reflect the new state of things: ... @Override public Entity fromEntity(Entity entity){ setCreatedAt((String) entity.getProperty(BaseEntity.NcreatedAt)); setEntityKey(entity.getKey()); setUpdatedAt((Date) entity.getProperty(BaseEntity.NupdatedAt)); setVersion((Long) entity.getProperty(BaseEntity.Nversion)); return entity; } ... But here's a catch! What if you have 10,000,000 entities already in your production datastore where createdAt properties are stored as Date objects? This is where data versioning becomes useful to do, what I like to call, Lazy Migration (the idea is probably not new, so you might know it as something else). The concept behind lazy migration is to do the data migration from old version to new version only when that data is actually read. Since we are working with Google App Engine and we are paying for CPU cycles, this may save you some money, especially if your schema happens to change more than it should. Let's go back to our implementation and set it up to support this concept. First, we will go over what the implementation should have looked like when createdAt was stored as Date: public class BaseEntityImpl implements BaseEntity { /* variables */ private Date createdAt; private Date updatedAt; private Long version = 1; ... } What we changed was the version number to 1. Now that we changed our model to using String for storage, the implementation will look like: public class BaseEntityImpl implements BaseEntity { /* variables */ private String createdAt; private Date updatedAt; private Long version = 2; ... } And here is how we do the lazy migration inside fromEntity(Entity entity): ... @Override public Entity fromEntity(Entity entity){ Object property; Long version = ((Long) entity.getProperty(BaseEntity.Nversion)); // convert from old version (Date) to new version (String) property = entity.getProperty(BaseEntity.NcreatedAt)); if (version.equals(1)){ // old version, do conversion setCreatedAt(((Date) property).toString()); entity.setProperty(BaseEntity.NcreatedAt, getCreatedAt()); } else { // new version, no worries setCreatedAt((String) property)); } setEntityKey(entity.getKey()); setUpdatedAt((Date) entity.getProperty(BaseEntity.NupdatedAt)); // we converted any old data to new data above, so set the new version entity.setProperty(BaseEntity.Nversion, getVersion()); return entity; }
[google-appengine] Re: Unscheduled downtime/problems lately
Yes! A lot! Further someone with admin rights over this group has removed several threads regarding these issues. Do you want us to report them or not? You can look at any random app with 10k dynamic-page visitors or more per day and you'll find a lot of dropped requests. Some of them go to the logs, others do not and simply serve the famous 500-error page without us admins/developers having any chance of knowing what is wrong or even realizing that there is an issue (before users start emailing us with screendumps og 500-pages that do not correspond with any log-entry). Further, just have a look at the System Status graphs (those that are still working) - most of the datastore query graphs are red, and have been red for more than three days... Please do not say that you are not aware of this... On Jun 2, 12:34 am, Ikai L (Google) ika...@google.com wrote: The post-mortem should address the outage as well as the latency leading up to the outage. We're keeping an eye on latency now. Are you experience latency in your application? On Tue, Jun 1, 2010 at 3:31 PM, Millisecond millisec...@gmail.com wrote: Thanks Ikai, I look forward to reading the post-mortem. The last one was indeed very good. Will the post-mortem address the dramatically increased latency since the 25th? It's ongoing and has already caused tens of thousands of errors on our site alone. As far as I can tell, there's been no official communication regarding that. And it's still continuing with 1500ms+ for a lot of today: http://code.google.com/status/appengine/detail/datastore/2010/06/01#a... -C On Jun 1, 3:16 pm, Ikai L (Google) ika...@google.com wrote: I just wanted to let you guys know to hang in there. We're working on a post-mortem describing what went wrong and steps we are taking to prevent this from happening again. I don't have an ETA for this yet, but we've done this before ( http://groups.google.com/group/google-appengine/browse_thread/thread/...) and are committed to as much transparency as we can with regards to these issues with you guys. On Tue, Jun 1, 2010 at 2:59 PM, Mark mar...@gmail.com wrote: +1 as worried, I'm investing time in app engine and this is quite discouraging to say the least! How often does this happen? (I don't have a live app yet), but should I abandon app engine now before getting myself in trouble? On May 27, 1:32 pm, Jody Belka j...@jj79.org wrote: And what do you know, no-one from Google has made any response whatsoever to this thread. And yet we know they are around, they occasionally do write messages after all. Very disappointing. On 25 May 2010 21:51, Waleed Abdulla wal...@ninua.com wrote: It's definitely worrisome. My app is down at the moment, my task queue backlog is at 4 days, and I'm very disappointed. On Tue, May 25, 2010 at 12:46 PM, Flips p...@script-network.com wrote: These latency spikes are really annoying. Will the business app engine edition use the same bigtable cluster as we do? On May 25, 9:03 pm, James jamesk...@gmail.com wrote: +1 On May 25, 10:13 am, Jody Belka j...@jj79.org wrote: From reading this list, there appear to have been quite few incidents lately where multiple sites start reporting errors, with the status page showing ... -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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.comgoogle-appengine%2Bunsubscrib e...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com . To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com . To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.comgoogle-appengine%2Bunsubscrib
[google-appengine] Datastore high latency
Hi, Since yesterday, the latency of the datastore is very high and no message at all either on http://code.google.com/status/appengine; or in the group http://groups.google.com/group/google-appengine-downtime- notify. Could someone give some infos ? My service is getting some problems with that (timeout returning 500 errors)... Thanks, Seb. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: Unscheduled downtime/problems lately
Hi, My apps got the same problems and so timeout returning 500 errors... And no message at all either on http://code.google.com/status/ appengine (even if the graph is red) or in the group http://groups.google.com/group/google-appengine-downtime- notify. Could someone work on it ? Thanks, Seb. On 2 juin, 10:05, Bay troels...@gmail.com wrote: Yes! A lot! Further someone with admin rights over this group has removed several threads regarding these issues. Do you want us to report them or not? You can look at any random app with 10k dynamic-page visitors or more per day and you'll find a lot of dropped requests. Some of them go to the logs, others do not and simply serve the famous 500-error page without us admins/developers having any chance of knowing what is wrong or even realizing that there is an issue (before users start emailing us with screendumps og 500-pages that do not correspond with any log-entry). Further, just have a look at the System Status graphs (those that are still working) - most of the datastore query graphs are red, and have been red for more than three days... Please do not say that you are not aware of this... On Jun 2, 12:34 am, Ikai L (Google) ika...@google.com wrote: The post-mortem should address the outage as well as the latency leading up to the outage. We're keeping an eye on latency now. Are you experience latency in your application? On Tue, Jun 1, 2010 at 3:31 PM, Millisecond millisec...@gmail.com wrote: Thanks Ikai, I look forward to reading the post-mortem. The last one was indeed very good. Will the post-mortem address the dramatically increased latency since the 25th? It's ongoing and has already caused tens of thousands of errors on our site alone. As far as I can tell, there's been no official communication regarding that. And it's still continuing with 1500ms+ for a lot of today: http://code.google.com/status/appengine/detail/datastore/2010/06/01#a... -C On Jun 1, 3:16 pm, Ikai L (Google) ika...@google.com wrote: I just wanted to let you guys know to hang in there. We're working on a post-mortem describing what went wrong and steps we are taking to prevent this from happening again. I don't have an ETA for this yet, but we've done this before ( http://groups.google.com/group/google-appengine/browse_thread/thread/...) and are committed to as much transparency as we can with regards to these issues with you guys. On Tue, Jun 1, 2010 at 2:59 PM, Mark mar...@gmail.com wrote: +1 as worried, I'm investing time in app engine and this is quite discouraging to say the least! How often does this happen? (I don't have a live app yet), but should I abandon app engine now before getting myself in trouble? On May 27, 1:32 pm, Jody Belka j...@jj79.org wrote: And what do you know, no-one from Google has made any response whatsoever to this thread. And yet we know they are around, they occasionally do write messages after all. Very disappointing. On 25 May 2010 21:51, Waleed Abdulla wal...@ninua.com wrote: It's definitely worrisome. My app is down at the moment, my task queue backlog is at 4 days, and I'm very disappointed. On Tue, May 25, 2010 at 12:46 PM, Flips p...@script-network.com wrote: These latency spikes are really annoying. Will the business app engine edition use the same bigtable cluster as we do? On May 25, 9:03 pm, James jamesk...@gmail.com wrote: +1 On May 25, 10:13 am, Jody Belka j...@jj79.org wrote: From reading this list, there appear to have been quite few incidents lately where multiple sites start reporting errors, with the status page showing ... -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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.comgoogle-appengine%2Bunsubscrib e...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com . To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit
[google-appengine] Another easy question
Dear All, in filter(property_operator, value) could the property_operator be a var? Could you please tell me how it must be done? http://code.google.com/intl/it-IT/appengine/docs/python/datastore/queryclass.html#Query_filter I can't find more details. Regards Massimiliano -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Buying a new domain...
Hi, I have to buy a new domain and link to my apps. I want to know pro or cons of buying a domain from Apps and Godaddy. If I buy a domain from Google Apps can I change my domain settings in GoDaddy? Thanks, Prashant -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: Video of App Engine sessions from Google I/O 2010 are up!
oh my god, i was planning to sleep early tonite :P thank you guys!!! On Jun 2, 6:03 am, Ikai L (Google) ika...@google.com wrote: Hey guys, I just wanted to let everyone know that the App Engine sessions from Google I/O 2010 are now online for your viewing pleasure. Check them out here: http://googlecode.blogspot.com/2010/06/app-engine-teams-trip-to-io-20... http://googlecode.blogspot.com/2010/06/app-engine-teams-trip-to-io-20...These are geared towards intermediate to advanced App Engine developers. There's a lot of good stuff in here - I learned a bunch of stuff attending. Happy viewing! -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Video of App Engine sessions from Google I/O 2010 are up!
Really fantastic stuff in here, every GAE dev should watch them. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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] Static files in newly deployed version not available in the apps domain. (Major problem)
Hi We have been trying to deploy a major revision of one of our apps. Under the specific version 2-0-0.latest... all the new css/js and static images are available. When we make the new version default, the css, js and static files are accessible via appid.appspot.com However when accessing the same site via the google apps domain mapping we are still getting the old versions css, js and static images. I have tried removing the apps domain mapping and re-adding it with no affect. We have had to revert to the earlier version as all access to the site is via the apps domain and its not working with the latest version missing the new css/js. has anyone got any ideas on how we can address this. I know absolutely that the problem is not a browser cache, as I have been checking the css files via wget. Thanks for any help regards Tim -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Static files in newly deployed version not available in the apps domain. (Major problem)
I've the same problem here. I just added an extra parameter at the end of my urls (ex : ?v=1) to be able to load them correctly. François On 2 juin, 14:19, Tim Hoffman zutes...@gmail.com wrote: Hi We have been trying to deploy a major revision of one of our apps. Under the specific version 2-0-0.latest... all the new css/js and static images are available. When we make the new version default, the css, js and static files are accessible via appid.appspot.com However when accessing the same site via the google apps domain mapping we are still getting the old versions css, js and static images. I have tried removing the apps domain mapping and re-adding it with no affect. We have had to revert to the earlier version as all access to the site is via the apps domain and its not working with the latest version missing the new css/js. has anyone got any ideas on how we can address this. I know absolutely that the problem is not a browser cache, as I have been checking the css files via wget. Thanks for any help regards Tim -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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] Another easy question
As the page you link to says, it takes a string as the first argument -- so, yes. It can take a variable. myvar = prop Kind.all().filter(myvar, 5) Robert On Jun 2, 2010, at 3:39, Massimiliano massimiliano.pietr...@gmail.com wrote: Dear All, in filter(property_operator, value) could the property_operator be a var? Could you please tell me how it must be done? http://code.google.com/intl/it-IT/appengine/docs/python/datastore/queryclass.html#Query_filter I can't find more details. Regards Massimiliano -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google- appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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] Status page not working
The App Engine status page doesn't display fine for me ? Anybody having the same problem ? http://code.google.com/status/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: DeadlineExceeded on cold hits.
I've been seeing increased DeadlineExceededErrors, and suspecting that it's an issue outside of my app but not sure. I'm not sure if a three- post thread of somewhat similar experiences proves anything or not; when you refer to the increasingly poor datastore performance is this something that's documented elsewhere and/or acknowledged by Google? I haven't been able to find anything so far indicating a bona fide known issue, but maybe I'm not looking in the right place. On Jun 1, 9:21 pm, Brandon Thomson gra...@gmail.com wrote: Yes, we are also seeing this. Usually the call at the end of the traceback is something related to the filesystem. I think this is caused by the increasingly poor datastore performance. On Jun 1, 6:16 pm, Dave Peck davep...@gmail.com wrote: Hi, In the past week, I've seen an alarming number of DeadlineExceeded exceptions on cold hits to my applications. Most of the stack traces are shallow -- things blow up well before my code is hit. Seehttp://pastie.org/988269fora stack trace. The `bootstrap.py` file is more-or-less a direct copy of the `main.py` from Rietveld. Can someone on the App Engine team please point me in the right direction here? This is a big change in GAE's behavior in the past week, and it is affecting many of my applications (citygoround which has been in production for half a year; code-doctor which is under development, etc.) Cheers, Dave Peck- 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.
Re: [google-appengine] Status page not working
The page content itself is there and looks normal. Just that the CSS is messed up, this URL: http://code.google.com/status/appengine/css/compiled.staging.342374464972914085.css is a 404. 2010/6/2 François Masurel fm2...@mably.com: The App Engine status page doesn't display fine for me ? Anybody having the same problem ? http://code.google.com/status/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: DeadlineExceeded on cold hits.
+1 On Jun 2, 11:19 am, dloomer dloo...@gmail.com wrote: I've been seeing increased DeadlineExceededErrors, and suspecting that it's an issue outside of my app but not sure. I'm not sure if a three- post thread of somewhat similar experiences proves anything or not; when you refer to the increasingly poor datastore performance is this something that's documented elsewhere and/or acknowledged by Google? I haven't been able to find anything so far indicating a bona fide known issue, but maybe I'm not looking in the right place. On Jun 1, 9:21 pm, Brandon Thomson gra...@gmail.com wrote: Yes, we are also seeing this. Usually the call at the end of the traceback is something related to the filesystem. I think this is caused by the increasingly poor datastore performance. On Jun 1, 6:16 pm, Dave Peck davep...@gmail.com wrote: Hi, In the past week, I've seen an alarming number of DeadlineExceeded exceptions on cold hits to my applications. Most of the stack traces are shallow -- things blow up well before my code is hit. Seehttp://pastie.org/988269forastack trace. The `bootstrap.py` file is more-or-less a direct copy of the `main.py` from Rietveld. Can someone on the App Engine team please point me in the right direction here? This is a big change in GAE's behavior in the past week, and it is affecting many of my applications (citygoround which has been in production for half a year; code-doctor which is under development, etc.) Cheers, Dave Peck- 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] Unusually slow appengine performance
I have noticed during the last couple weeks my appengine app being slower than usual. My login routine gets maybe 20-30 records from 4 calls to the datastore. This takes about 10 seconds which isn't acceptable from a user experience point of view. Also, I know enabling billing increases your quota limits, I've read on a couple blogs that enabling billing also increases your apps priority/responsiveness. Can anyone confirm this? 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 datastore seems to be down
cannot update my indexes. Is someone else facing the same issue? Any idea how long this will take to get resolved? -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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] Anomaly at Datastore
Hi, we are with a ver high latency at datastore since yesterday, and I don't see any message in the system status. Is there someone take care of it? It's related in some way with Google I/O? I have an application that handle hundreds of requests per second during some minutes (some time hours), I tunned my application to use cache most of time, but it just happens to have dozens of request per second that hits the base (to puts or gets) and I worry that this could affect the performance of the application in some way. Thanks. Currently, even the System Status board are broken http://code.google.com/status/appengine/detail/datastore/2010/06/02 -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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] Verifying Account
Hi, I use Google Apps at work and at home. I've already verified my account for using Google App Engine for my home domain, but when attempting to verify for my work domain, I am given the following error message: The phone number has been sent too many messages or has already been used to confirm an account I don't have a separate mobile number for work, so it would appear I am unable to use Google App Engine for work purposes. Can this be addressed please? Dave Grant -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Static files in newly deployed version not available in the apps domain. (Major problem)
Thanks, Tim, for letting me know I'm not going insane. To the Google guys, this problem seems to have started yesterday afternoon (1:30-ish PM, EDT) in case it helps you track down the cause. On Jun 2, 8:19 am, Tim Hoffman zutes...@gmail.com wrote: Hi We have been trying to deploy a major revision of one of our apps. Under the specific version 2-0-0.latest... all the new css/js and static images are available. When we make the new version default, the css, js and static files are accessible via appid.appspot.com However when accessing the same site via the google apps domain mapping we are still getting the old versions css, js and static images. I have tried removing the apps domain mapping and re-adding it with no affect. We have had to revert to the earlier version as all access to the site is via the apps domain and its not working with the latest version missing the new css/js. has anyone got any ideas on how we can address this. I know absolutely that the problem is not a browser cache, as I have been checking the css files via wget. Thanks for any help regards Tim -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: Buying a new domain...
Well. I think you can use some free domains first such as cz.cc. Try it! Very useful and completely free! On 6月2日, 下午5時23分, Prashant Gupta nextprash...@gmail.com wrote: Hi, I have to buy a new domain and link to my apps. I want to know pro or cons of buying a domain from Apps and Godaddy. If I buy a domain from Google Apps can I change my domain settings in GoDaddy? Thanks, Prashant -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: Buying a new domain...
I have tried it with a co.cc domain and it worked fine for me. I want to know if buying a domain with Google Apps will give me more or less flexibility. As it is powered by GoDaddy, do we get a GoDaddy account for the domain we buy? Thanks, Prashant -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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] Another easy question
In my file I have: food = self.request.get('food') field = self.request.get('field') lista = db.Query(FOOD).filter(field, food).order('-Date').fetch(limit=30) I need field to be *Myfieldvar=* * * How can I do this? Max 2010/6/2 Robert Kluin robert.kl...@gmail.com As the page you link to says, it takes a string as the first argument -- so, yes. It can take a variable. myvar = prop Kind.all().filter(myvar, 5) Robert On Jun 2, 2010, at 3:39, Massimiliano massimiliano.pietr...@gmail.com wrote: Dear All, in filter(property_operator, value) could the property_operator be a var? Could you please tell me how it must be done? http://code.google.com/intl/it-IT/appengine/docs/python/datastore/queryclass.html#Query_filter http://code.google.com/intl/it-IT/appengine/docs/python/datastore/queryclass.html#Query_filter I can't find more details. Regards Massimiliano -- My email: massimiliano.pietr...@gmail.commassimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Another easy question
I suggest you have a look an introductory programming resouce. For starters, see the python getting started guide: http://www.python.org/about/gettingstarted/ Robert On Jun 2, 2010, at 11:40, Massimiliano massimiliano.pietr...@gmail.com wrote: In my file I have: food = self.request.get('food') field = self.request.get('field') lista = db.Query(FOOD).filter(field, food).order('-Date').fetch (limit=30) I need field to be Myfieldvar= How can I do this? Max 2010/6/2 Robert Kluin robert.kl...@gmail.com As the page you link to says, it takes a string as the first argument -- so, yes. It can take a variable. myvar = prop Kind.all().filter(myvar, 5) Robert On Jun 2, 2010, at 3:39, Massimiliano massimiliano.pietr...@gmail.com wrote: Dear All, in filter(property_operator, value) could the property_operator be a var? Could you please tell me how it must be done? http://code.google.com/intl/it-IT/appengine/docs/python/datastore/queryclass.html#Query_filter I can't find more details. Regards Massimiliano -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com . To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google- 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 . -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google- appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: DeadlineExceeded on cold hits.
+1 On Jun 2, 11:36 am, bFlood bflood...@gmail.com wrote: +1 On Jun 2, 11:19 am, dloomer dloo...@gmail.com wrote: I've been seeing increased DeadlineExceededErrors, and suspecting that it's an issue outside of my app but not sure. I'm not sure if a three- post thread of somewhat similar experiences proves anything or not; when you refer to the increasingly poor datastore performance is this something that's documented elsewhere and/or acknowledged by Google? I haven't been able to find anything so far indicating a bona fide known issue, but maybe I'm not looking in the right place. On Jun 1, 9:21 pm, Brandon Thomson gra...@gmail.com wrote: Yes, we are also seeing this. Usually the call at the end of the traceback is something related to the filesystem. I think this is caused by the increasingly poor datastore performance. On Jun 1, 6:16 pm, Dave Peck davep...@gmail.com wrote: Hi, In the past week, I've seen an alarming number of DeadlineExceeded exceptions on cold hits to my applications. Most of the stack traces are shallow -- things blow up well before my code is hit. Seehttp://pastie.org/988269forastacktrace. The `bootstrap.py` file is more-or-less a direct copy of the `main.py` from Rietveld. Can someone on the App Engine team please point me in the right direction here? This is a big change in GAE's behavior in the past week, and it is affecting many of my applications (citygoround which has been in production for half a year; code-doctor which is under development, etc.) Cheers, Dave Peck- 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.
Re: [google-appengine] Anomaly at Datastore
Same here. Also, the App Engine status page is broken! the first page seems to be missing it's CSS files, and if you click on Anomaly to see the datastore performance, you'll see the graph missing: http://code.google.com/status/appengine Regards, Waleed On Wed, Jun 2, 2010 at 6:27 AM, Rafael SDM Sierra rafaeljs...@gmail.comwrote: Hi, we are with a ver high latency at datastore since yesterday, and I don't see any message in the system status. Is there someone take care of it? It's related in some way with Google I/O? I have an application that handle hundreds of requests per second during some minutes (some time hours), I tunned my application to use cache most of time, but it just happens to have dozens of request per second that hits the base (to puts or gets) and I worry that this could affect the performance of the application in some way. Thanks. Currently, even the System Status board are broken http://code.google.com/status/appengine/detail/datastore/2010/06/02 -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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] Another easy question
i think what you are missing in your code is the operator after the field var in the filter. (= , , ,...) you use it like .filter('field =', 'value') On Jun 2, 2010, at 12:57 PM, Massimiliano wrote: I have read it. And i was serching where he is talking about this, but I can't find!!! I'm searching again! Thanks Massimiliano 2010/6/2 Robert Kluin robert.kl...@gmail.com I suggest you have a look an introductory programming resouce. For starters, see the python getting started guide: http://www.python.org/about/gettingstarted/ Robert On Jun 2, 2010, at 11:40, Massimiliano massimiliano.pietr...@gmail.com wrote: In my file I have: food = self.request.get('food') field = self.request.get('field') lista = db.Query(FOOD).filter(field, food).order('-Date').fetch(limit=30) I need field to be Myfieldvar= How can I do this? Max 2010/6/2 Robert Kluin robert.kl...@gmail.com As the page you link to says, it takes a string as the first argument -- so, yes. It can take a variable. myvar = prop Kind.all().filter(myvar, 5) Robert On Jun 2, 2010, at 3:39, Massimiliano massimiliano.pietr...@gmail.com wrote: Dear All, in filter(property_operator, value) could the property_operator be a var? Could you please tell me how it must be done? http://code.google.com/intl/it-IT/appengine/docs/python/datastore/queryclass.html#Query_filter I can't find more details. Regards Massimiliano -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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] Unusually slow appengine performance
No, we don't prioritize billed applications. There's an ongoing effort regarding the increased latency developers are seeing. We'll post updates when we have something concrete. On Wed, Jun 2, 2010 at 8:56 AM, ten_foot_ninja spitko...@gmail.com wrote: I have noticed during the last couple weeks my appengine app being slower than usual. My login routine gets maybe 20-30 records from 4 calls to the datastore. This takes about 10 seconds which isn't acceptable from a user experience point of view. Also, I know enabling billing increases your quota limits, I've read on a couple blogs that enabling billing also increases your apps priority/responsiveness. Can anyone confirm this? Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Verifying Account
Add yourself to the SMS issues waitlist - you'll be manually verified. https://appengine.google.com/waitlist/sms_issues Put your other account information in the request body. On Wed, Jun 2, 2010 at 3:06 AM, David Grant da...@grant.org.uk wrote: Hi, I use Google Apps at work and at home. I've already verified my account for using Google App Engine for my home domain, but when attempting to verify for my work domain, I am given the following error message: The phone number has been sent too many messages or has already been used to confirm an account I don't have a separate mobile number for work, so it would appear I am unable to use Google App Engine for work purposes. Can this be addressed please? Dave Grant -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Static files in newly deployed version not available in the apps domain. (Major problem)
Thanks for bringing this up, Tim. Anyone else seeing this problem? If so, please post details. Are you guys setting any kind of cache headers? I'm going to try to reproduce these issues, so any information will be helpful. On Wed, Jun 2, 2010 at 9:14 AM, J j.si...@earlystageit.com wrote: Thanks, Tim, for letting me know I'm not going insane. To the Google guys, this problem seems to have started yesterday afternoon (1:30-ish PM, EDT) in case it helps you track down the cause. On Jun 2, 8:19 am, Tim Hoffman zutes...@gmail.com wrote: Hi We have been trying to deploy a major revision of one of our apps. Under the specific version 2-0-0.latest... all the new css/js and static images are available. When we make the new version default, the css, js and static files are accessible via appid.appspot.com However when accessing the same site via the google apps domain mapping we are still getting the old versions css, js and static images. I have tried removing the apps domain mapping and re-adding it with no affect. We have had to revert to the earlier version as all access to the site is via the apps domain and its not working with the latest version missing the new css/js. has anyone got any ideas on how we can address this. I know absolutely that the problem is not a browser cache, as I have been checking the css files via wget. Thanks for any help regards Tim -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Status page not working
thanks barry, you're right. there's a configuration issue that the team is working on, so we should have it working soon. apologies for crude CSS-less status page! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepythonprogramming.com wesley.j.chun :: w...@google.com developer relations :: google app engine @app_engine :: googleappengine.blogspot.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Updating Google App Engine datastore
There are two distinctions to be made - do your properties change dynamically with program code or do they just evolve rapidly over time? Ie: Do you need a dynamic interface to properties (MapString,Object) or do you just need a more flexible way to deal with schema evolution? For a fully dynamic interface, go directly to the Low-Level API. The Entity object is basically a hashmap and you can get/set any properties you want. You can iterate through the available properties. For basic schema evolution, you have more choices. JDO is particularly bad at this. Pretty much any change in the underlying schema will break your application. Objectify is particularly good at this. Possibly the other alternative datastore APIs can help too (Twig, SimpleDS, Slim3) but I don't know. You can read a lot more about Objectify's tools for schema migration here: http://code.google.com/p/objectify-appengine/wiki/IntroductionToObjectify#Migrating_Schemas Basically, you can add or remove fields to your entities at any time without any ill effects. You can also create mappings so that you can change your entity classes, loading the old schema into the new entities and upgrading them on the fly. This lets you make some fairly extensive schema changes with zero downtime. Note that this still isn't a wholly generic Map interface to the datastore; you are still working with your typed Java classes. But you can use both the Low-Level API and Objectify together very well; the data structures have an intuitive 1-to-1 mapping. Here's the project: http://code.google.com/p/objectify-appengine/ Good luck, Jeff 2010/6/1 Víctor Mayoral v.mayor...@gmail.com: Hey Tristan! Thanks for your answer. I will check the docs again and take a look at the low level API. The notification + trigger method seems pretty intelligent i will also check that too. But I was just wondering, isn't there something like a framework for this types of jobs?. Again, thanks Víctor. On 2 jun, 00:41, Tristan tristan.slomin...@gmail.com wrote: Not sure how it would work in JDO but its simple to add properties in low-level datastore. I store my entities with a version property, when I update the entity, I change the version and change my code to either intialize a non- existing property on an old entity, or to delete a deprecated property. This happens lazily (only when the entity is actally used). You can also include a counter of how many entities were updated from old to new and have a flag trigger when 100% of updates are complete. Then in the next version of the code you can remove the updating method since all old entities were lazily updated. An alternative would be to set notification at 90% or some other percentage, and then trigger a task that cleans up the rest of the entities. I use this approach to keep my data consistent without the need for hugely intensive datastore scans to update when changes happen. Hope this will give you some ideas. Cheers! Tristan On Jun 1, 6:28 am, Víctor Mayoral v.mayor...@gmail.com wrote: Hello, I've just an applications using GWT and GAE. After reading the docs and doing some examples I decided to begin coding but soon I reach something tricky. My application data would be at the GAE datastore using JDO. I want to assume that the app will live. Let me explain this: The entities at the datastore will change. This means that some properties would be added and some of them maybe removed what leaves me with a ton of exceptions to handle. Knowing this, which should be the way to update the datastore entities? One by one after a change is made? Should I handle exceptions and then change just the entitie requested? Is there a way to do this cleaner? I've been thinking about how to do this stuff with my actual knowledge and i think that the most logical way to proceed is get the object, remove it from the database, create a new one based on this old object and then persist it again. To sum up the question is about if there's a way to add a property to an stored entitie in the datastore (GAE) easily. I hope you to understand my lines. Any suggestion would be appreciated. Thanks, Víctor. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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] Anomaly at Datastore
the status page should be working again... there was a configuration issue this morning regarding that which has been resolved. as far as performance goes, there's an active and ongoing effort to address the increased latency developers are seeing... we'll post updates when we have something concrete. believe it or not, we're working on trying to make things *more* stable, and not the other way around. thanks for your patience! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wesc+api-at-google-dot-com developer relations :: google app engine @app_engine :: googleappengine.blogspot.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Anomaly at Datastore
On Wed, Jun 2, 2010 at 2:53 PM, Wesley C (Google) wesc+...@google.com wrote: the status page should be working again... there was a configuration issue this morning regarding that which has been resolved. as far as performance goes, there's an active and ongoing effort to address the increased latency developers are seeing... we'll post updates when we have something concrete. believe it or not, we're working on trying to make things *more* stable, and not the other way around. Ok, I do believe, I just was missing the information :) thanks for your patience! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Thank you. Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wesc+api-at-google-dot-com developer relations :: google app engine @app_engine :: googleappengine.blogspot.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Static files in newly deployed version not available in the apps domain. (Major problem)
To reproduce the problem, go to http://qa.connectscholar.com/stylesheets/caSkin.css and also to http://charityaxis-qa.appspot.com/stylesheets/caSkin.css. Both URLs point to the same file but one returns the old content and appspot.com returns the new content. On Jun 2, 1:18 pm, Ikai L (Google) ika...@google.com wrote: Thanks for bringing this up, Tim. Anyone else seeing this problem? If so, please post details. Are you guys setting any kind of cache headers? I'm going to try to reproduce these issues, so any information will be helpful. On Wed, Jun 2, 2010 at 9:14 AM, J j.si...@earlystageit.com wrote: Thanks, Tim, for letting me know I'm not going insane. To the Google guys, this problem seems to have started yesterday afternoon (1:30-ish PM, EDT) in case it helps you track down the cause. On Jun 2, 8:19 am, Tim Hoffman zutes...@gmail.com wrote: Hi We have been trying to deploy a major revision of one of our apps. Under the specific version 2-0-0.latest... all the new css/js and static images are available. When we make the new version default, the css, js and static files are accessible via appid.appspot.com However when accessing the same site via the google apps domain mapping we are still getting the old versions css, js and static images. I have tried removing the apps domain mapping and re-adding it with no affect. We have had to revert to the earlier version as all access to the site is via the apps domain and its not working with the latest version missing the new css/js. has anyone got any ideas on how we can address this. I know absolutely that the problem is not a browser cache, as I have been checking the css files via wget. Thanks for any help regards Tim -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Another easy question
Oh sorry, it was really easy... field = field + = lista = db.Query(FOOD).filter(field,food).order('-Date').fetch(limit=30) Now it's working thanks Massimiliano 2010/6/2 andreas schmid a.schmi...@gmail.com i think what you are missing in your code is the operator after the field var in the filter. (= , , ,...) you use it like .filter('field =', 'value') On Jun 2, 2010, at 12:57 PM, Massimiliano wrote: I have read it. And i was serching where he is talking about this, but I can't find!!! I'm searching again! Thanks Massimiliano 2010/6/2 Robert Kluin robert.kl...@gmail.com I suggest you have a look an introductory programming resouce. For starters, see the python getting started guide: http://www.python.org/about/gettingstarted/ Robert On Jun 2, 2010, at 11:40, Massimiliano massimiliano.pietr...@gmail.com wrote: In my file I have: food = self.request.get('food') field = self.request.get('field') lista = db.Query(FOOD).filter(field, food).order('-Date').fetch(limit=30) I need field to be *Myfieldvar=* * * How can I do this? Max 2010/6/2 Robert Kluin robert.kl...@gmail.com As the page you link to says, it takes a string as the first argument -- so, yes. It can take a variable. myvar = prop Kind.all().filter(myvar, 5) Robert On Jun 2, 2010, at 3:39, Massimiliano massimiliano.pietr...@gmail.com wrote: Dear All, in filter(property_operator, value) could the property_operator be a var? Could you please tell me how it must be done? http://code.google.com/intl/it-IT/appengine/docs/python/datastore/queryclass.html#Query_filter http://code.google.com/intl/it-IT/appengine/docs/python/datastore/queryclass.html#Query_filter I can't find more details. Regards Massimiliano -- My email: massimiliano.pietr...@gmail.com massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at
Re: [google-appengine] Re: Static files in newly deployed version not available in the apps domain. (Major problem)
On Wed, Jun 2, 2010 at 3:37 PM, J j.si...@earlystageit.com wrote: To reproduce the problem, go to http://qa.connectscholar.com/stylesheets/caSkin.css and also to http://charityaxis-qa.appspot.com/stylesheets/caSkin.css. Both URLs point to the same file but one returns the old content and appspot.com returns the new content. Same file here: Hidan:~ sdm$ curl http://charityaxis-qa.appspot.com/stylesheets/caSkin.css 1 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 100 109410 109410 0 6146 0 --:--:-- 0:00:01 --:--:-- 31918 Hidan:~ sdm$ curl http://qa.connectscholar.com/stylesheets/caSkin.css 2 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 100 109410 109410 0 2777 0 --:--:-- 0:00:03 --:--:-- 3854 Hidan:~ sdm$ md5 1 MD5 (1) = 8f5ef511be1a03fd73337c334933 Hidan:~ sdm$ md5 2 MD5 (2) = 8f5ef511be1a03fd73337c334933 On Jun 2, 1:18 pm, Ikai L (Google) ika...@google.com wrote: Thanks for bringing this up, Tim. Anyone else seeing this problem? If so, please post details. Are you guys setting any kind of cache headers? I'm going to try to reproduce these issues, so any information will be helpful. On Wed, Jun 2, 2010 at 9:14 AM, J j.si...@earlystageit.com wrote: Thanks, Tim, for letting me know I'm not going insane. To the Google guys, this problem seems to have started yesterday afternoon (1:30-ish PM, EDT) in case it helps you track down the cause. On Jun 2, 8:19 am, Tim Hoffman zutes...@gmail.com wrote: Hi We have been trying to deploy a major revision of one of our apps. Under the specific version 2-0-0.latest... all the new css/js and static images are available. When we make the new version default, the css, js and static files are accessible via appid.appspot.com However when accessing the same site via the google apps domain mapping we are still getting the old versions css, js and static images. I have tried removing the apps domain mapping and re-adding it with no affect. We have had to revert to the earlier version as all access to the site is via the apps domain and its not working with the latest version missing the new css/js. has anyone got any ideas on how we can address this. I know absolutely that the problem is not a browser cache, as I have been checking the css files via wget. Thanks for any help regards Tim -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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] Another easy question
On Wed, Jun 2, 2010 at 3:49 PM, Massimiliano massimiliano.pietr...@gmail.com wrote: Oh sorry, it was really easy... field = field + = lista = db.Query(FOOD).filter(field,food).order('-Date').fetch(limit=30) Or: lista = db.Query(FOOD).filter('%s ='%field,food).order('-Date').fetch(limit=30) Now it's working thanks Massimiliano 2010/6/2 andreas schmid a.schmi...@gmail.com i think what you are missing in your code is the operator after the field var in the filter. (= , , ,...) you use it like .filter('field =', 'value') On Jun 2, 2010, at 12:57 PM, Massimiliano wrote: I have read it. And i was serching where he is talking about this, but I can't find!!! I'm searching again! Thanks Massimiliano 2010/6/2 Robert Kluin robert.kl...@gmail.com I suggest you have a look an introductory programming resouce. For starters, see the python getting started guide: http://www.python.org/about/gettingstarted/ Robert On Jun 2, 2010, at 11:40, Massimiliano massimiliano.pietr...@gmail.com wrote: In my file I have: food = self.request.get('food') field = self.request.get('field') lista = db.Query(FOOD).filter(field, food).order('-Date').fetch(limit=30) I need field to be Myfieldvar= How can I do this? Max 2010/6/2 Robert Kluin robert.kl...@gmail.com As the page you link to says, it takes a string as the first argument -- so, yes. It can take a variable. myvar = prop Kind.all().filter(myvar, 5) Robert On Jun 2, 2010, at 3:39, Massimiliano massimiliano.pietr...@gmail.com wrote: Dear All, in filter(property_operator, value) could the property_operator be a var? Could you please tell me how it must be done? http://code.google.com/intl/it-IT/appengine/docs/python/datastore/queryclass.html#Query_filter I can't find more details. Regards Massimiliano -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to
Re: [google-appengine] Re: Static files in newly deployed version not available in the apps domain. (Major problem)
I wonder if there is some layer of the infrastructure that is performing caching without you guys having opted-in, hence the reason why a cache-buster like ?v=something works. Can you guys confirm? Also - are you guys setting any headers? Which headers get returned? I've personally always used cache busters for the simple reason that sometimes users using web-accelerators or with aggressive ISP or caching settings tend to key off the URL. Can you guys use this workaround in the meantime? On Wed, Jun 2, 2010 at 11:57 AM, Rafael Sierra rafaeljs...@gmail.comwrote: On Wed, Jun 2, 2010 at 3:37 PM, J j.si...@earlystageit.com wrote: To reproduce the problem, go to http://qa.connectscholar.com/stylesheets/caSkin.css and also to http://charityaxis-qa.appspot.com/stylesheets/caSkin.css. Both URLs point to the same file but one returns the old content and appspot.com returns the new content. Same file here: Hidan:~ sdm$ curl http://charityaxis-qa.appspot.com/stylesheets/caSkin.css 1 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 100 109410 109410 0 6146 0 --:--:-- 0:00:01 --:--:-- 31918 Hidan:~ sdm$ curl http://qa.connectscholar.com/stylesheets/caSkin.css 2 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 100 109410 109410 0 2777 0 --:--:-- 0:00:03 --:--:-- 3854 Hidan:~ sdm$ md5 1 MD5 (1) = 8f5ef511be1a03fd73337c334933 Hidan:~ sdm$ md5 2 MD5 (2) = 8f5ef511be1a03fd73337c334933 On Jun 2, 1:18 pm, Ikai L (Google) ika...@google.com wrote: Thanks for bringing this up, Tim. Anyone else seeing this problem? If so, please post details. Are you guys setting any kind of cache headers? I'm going to try to reproduce these issues, so any information will be helpful. On Wed, Jun 2, 2010 at 9:14 AM, J j.si...@earlystageit.com wrote: Thanks, Tim, for letting me know I'm not going insane. To the Google guys, this problem seems to have started yesterday afternoon (1:30-ish PM, EDT) in case it helps you track down the cause. On Jun 2, 8:19 am, Tim Hoffman zutes...@gmail.com wrote: Hi We have been trying to deploy a major revision of one of our apps. Under the specific version 2-0-0.latest... all the new css/js and static images are available. When we make the new version default, the css, js and static files are accessible via appid.appspot.com However when accessing the same site via the google apps domain mapping we are still getting the old versions css, js and static images. I have tried removing the apps domain mapping and re-adding it with no affect. We have had to revert to the earlier version as all access to the site is via the apps domain and its not working with the latest version missing the new css/js. has anyone got any ideas on how we can address this. I know absolutely that the problem is not a browser cache, as I have been checking the css files via wget. Thanks for any help regards Tim -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine
Re: [google-appengine] Another easy question
Thanks! But... The = checks if the string is equal of what I have in the datastore. I need to check if the string is in the string in the datastore. Uhm. Can you help me? Massimiliano 2010/6/2 Rafael Sierra rafaeljs...@gmail.com On Wed, Jun 2, 2010 at 3:49 PM, Massimiliano massimiliano.pietr...@gmail.com wrote: Oh sorry, it was really easy... field = field + = lista = db.Query(FOOD).filter(field,food).order('-Date').fetch(limit=30) Or: lista = db.Query(FOOD).filter('%s ='%field,food).order('-Date').fetch(limit=30) Now it's working thanks Massimiliano 2010/6/2 andreas schmid a.schmi...@gmail.com i think what you are missing in your code is the operator after the field var in the filter. (= , , ,...) you use it like .filter('field =', 'value') On Jun 2, 2010, at 12:57 PM, Massimiliano wrote: I have read it. And i was serching where he is talking about this, but I can't find!!! I'm searching again! Thanks Massimiliano 2010/6/2 Robert Kluin robert.kl...@gmail.com I suggest you have a look an introductory programming resouce. For starters, see the python getting started guide: http://www.python.org/about/gettingstarted/ Robert On Jun 2, 2010, at 11:40, Massimiliano massimiliano.pietr...@gmail.com wrote: In my file I have: food = self.request.get('food') field = self.request.get('field') lista = db.Query(FOOD).filter(field, food).order('-Date').fetch(limit=30) I need field to be Myfieldvar= How can I do this? Max 2010/6/2 Robert Kluin robert.kl...@gmail.com As the page you link to says, it takes a string as the first argument -- so, yes. It can take a variable. myvar = prop Kind.all().filter(myvar, 5) Robert On Jun 2, 2010, at 3:39, Massimiliano massimiliano.pietr...@gmail.com wrote: Dear All, in filter(property_operator, value) could the property_operator be a var? Could you please tell me how it must be done? http://code.google.com/intl/it-IT/appengine/docs/python/datastore/queryclass.html#Query_filter I can't find more details. Regards Massimiliano -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@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-appengine@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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.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
[google-appengine] Re: Static files in newly deployed version not available in the apps domain. (Major problem)
That's interesting, Rafael. I wonder why it serves correctly for you. They are still different from my PoV. The bad side headers: Etag74EQOA DateTue, 01 Jun 2010 18:12:57 GMT Expires Sat, 05 Jun 2010 02:12:57 GMT Content-Typetext/css Content-Encodinggzip Server Google Frontend Content-Length 2820 Cache-Control public, max-age=288000 Age 90134 X-XSS-Protection0 The good side headers: Etag7xGL5w DateWed, 02 Jun 2010 19:13:00 GMT Expires Wed, 02 Jun 2010 19:12:04 GMT Content-Typetext/css Content-Encodinggzip Server Google Frontend Content-Length 2834 Age 41 Cache-Control public, max-age=600 Short of using a cache-buster, is there a setting I can use on GAE or in my app.yaml file? On Jun 2, 3:01 pm, Ikai L (Google) ika...@google.com wrote: I wonder if there is some layer of the infrastructure that is performing caching without you guys having opted-in, hence the reason why a cache-buster like ?v=something works. Can you guys confirm? Also - are you guys setting any headers? Which headers get returned? I've personally always used cache busters for the simple reason that sometimes users using web-accelerators or with aggressive ISP or caching settings tend to key off the URL. Can you guys use this workaround in the meantime? On Wed, Jun 2, 2010 at 11:57 AM, Rafael Sierra rafaeljs...@gmail.comwrote: On Wed, Jun 2, 2010 at 3:37 PM, J j.si...@earlystageit.com wrote: To reproduce the problem, go to http://qa.connectscholar.com/stylesheets/caSkin.css and also tohttp://charityaxis-qa.appspot.com/stylesheets/caSkin.css. Both URLs point to the same file but one returns the old content and appspot.com returns the new content. Same file here: Hidan:~ sdm$ curlhttp://charityaxis-qa.appspot.com/stylesheets/caSkin.css 1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 10941 0 10941 0 0 6146 0 --:--:-- 0:00:01 --:--:-- 31918 Hidan:~ sdm$ curlhttp://qa.connectscholar.com/stylesheets/caSkin.css 2 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 10941 0 10941 0 0 2777 0 --:--:-- 0:00:03 --:--:-- 3854 Hidan:~ sdm$ md5 1 MD5 (1) = 8f5ef511be1a03fd73337c334933 Hidan:~ sdm$ md5 2 MD5 (2) = 8f5ef511be1a03fd73337c334933 On Jun 2, 1:18 pm, Ikai L (Google) ika...@google.com wrote: Thanks for bringing this up, Tim. Anyone else seeing this problem? If so, please post details. Are you guys setting any kind of cache headers? I'm going to try to reproduce these issues, so any information will be helpful. On Wed, Jun 2, 2010 at 9:14 AM, J j.si...@earlystageit.com wrote: Thanks, Tim, for letting me know I'm not going insane. To the Google guys, this problem seems to have started yesterday afternoon (1:30-ish PM, EDT) in case it helps you track down the cause. On Jun 2, 8:19 am, Tim Hoffman zutes...@gmail.com wrote: Hi We have been trying to deploy a major revision of one of our apps. Under the specific version 2-0-0.latest... all the new css/js and static images are available. When we make the new version default, the css, js and static files are accessible via appid.appspot.com However when accessing the same site via the google apps domain mapping we are still getting the old versions css, js and static images. I have tried removing the apps domain mapping and re-adding it with no affect. We have had to revert to the earlier version as all access to the site is via the apps domain and its not working with the latest version missing the new css/js. has anyone got any ideas on how we can address this. I know absolutely that the problem is not a browser cache, as I have been checking the css files via wget. Thanks for any help regards Tim -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to
[google-appengine] Re: Another easy question
On Jun 2, 3:10 pm, Massimiliano massimiliano.pietr...@gmail.com wrote: Thanks! But... The = checks if the string is equal of what I have in the datastore. I need to check if the string is in the string in the datastore. Uhm. Can you help me? The datastore can't do substring searches. The best you can do is a prefix search by filtering with = 'yourprefix' and u'yourprefix' + u'\uffdd'. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Static files in newly deployed version not available in the apps domain. (Major problem)
Okay, looks like the Google Front-End is kicking in to cache your stuff Server Google Frontend Content-Length 2834 Age 41 Cache-Control public, max-age=600 Are you guys setting this header anywhere? Unfortunately, there's no way to invalidate items in the frontend cache, so you'll have to use a cache buster or wait for the TTL to expire. On Wed, Jun 2, 2010 at 12:22 PM, J j.si...@earlystageit.com wrote: That's interesting, Rafael. I wonder why it serves correctly for you. They are still different from my PoV. The bad side headers: Etag74EQOA DateTue, 01 Jun 2010 18:12:57 GMT Expires Sat, 05 Jun 2010 02:12:57 GMT Content-Typetext/css Content-Encodinggzip Server Google Frontend Content-Length 2820 Cache-Control public, max-age=288000 Age 90134 X-XSS-Protection0 The good side headers: Etag7xGL5w DateWed, 02 Jun 2010 19:13:00 GMT Expires Wed, 02 Jun 2010 19:12:04 GMT Content-Typetext/css Content-Encodinggzip Server Google Frontend Content-Length 2834 Age 41 Cache-Control public, max-age=600 Short of using a cache-buster, is there a setting I can use on GAE or in my app.yaml file? On Jun 2, 3:01 pm, Ikai L (Google) ika...@google.com wrote: I wonder if there is some layer of the infrastructure that is performing caching without you guys having opted-in, hence the reason why a cache-buster like ?v=something works. Can you guys confirm? Also - are you guys setting any headers? Which headers get returned? I've personally always used cache busters for the simple reason that sometimes users using web-accelerators or with aggressive ISP or caching settings tend to key off the URL. Can you guys use this workaround in the meantime? On Wed, Jun 2, 2010 at 11:57 AM, Rafael Sierra rafaeljs...@gmail.com wrote: On Wed, Jun 2, 2010 at 3:37 PM, J j.si...@earlystageit.com wrote: To reproduce the problem, go to http://qa.connectscholar.com/stylesheets/caSkin.css and also tohttp://charityaxis-qa.appspot.com/stylesheets/caSkin.css. Both URLs point to the same file but one returns the old content and appspot.com returns the new content. Same file here: Hidan:~ sdm$ curlhttp:// charityaxis-qa.appspot.com/stylesheets/caSkin.css 1 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 100 109410 109410 0 6146 0 --:--:-- 0:00:01 --:--:-- 31918 Hidan:~ sdm$ curlhttp://qa.connectscholar.com/stylesheets/caSkin.css 2 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 100 109410 109410 0 2777 0 --:--:-- 0:00:03 --:--:-- 3854 Hidan:~ sdm$ md5 1 MD5 (1) = 8f5ef511be1a03fd73337c334933 Hidan:~ sdm$ md5 2 MD5 (2) = 8f5ef511be1a03fd73337c334933 On Jun 2, 1:18 pm, Ikai L (Google) ika...@google.com wrote: Thanks for bringing this up, Tim. Anyone else seeing this problem? If so, please post details. Are you guys setting any kind of cache headers? I'm going to try to reproduce these issues, so any information will be helpful. On Wed, Jun 2, 2010 at 9:14 AM, J j.si...@earlystageit.com wrote: Thanks, Tim, for letting me know I'm not going insane. To the Google guys, this problem seems to have started yesterday afternoon (1:30-ish PM, EDT) in case it helps you track down the cause. On Jun 2, 8:19 am, Tim Hoffman zutes...@gmail.com wrote: Hi We have been trying to deploy a major revision of one of our apps. Under the specific version 2-0-0.latest... all the new css/js and static images are available. When we make the new version default, the css, js and static files are accessible via appid.appspot.com However when accessing the same site via the google apps domain mapping we are still getting the old versions css, js and static images. I have tried removing the apps domain mapping and re-adding it with no affect. We have had to revert to the earlier version as all access to the site is via the apps domain and its not working with the latest version missing the new css/js. has anyone got any ideas on how we can address this. I know absolutely that the problem is not a browser cache, as I have been checking the css files via wget. Thanks for any help regards Tim -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to
Re: [google-appengine] Re: Static files in newly deployed version not available in the apps domain. (Major problem)
Okay, looks like the Google Front-End is kicking in to cache your stuff Server Google Frontend Content-Length 2834 Age 41 Cache-Control public, max-age=600 Are you guys setting this header anywhere? Unfortunately, there's no way to invalidate items in the frontend cache, so you'll have to use a cache buster or wait for the TTL to expire. On Wed, Jun 2, 2010 at 12:22 PM, J j.si...@earlystageit.com wrote: That's interesting, Rafael. I wonder why it serves correctly for you. They are still different from my PoV. The bad side headers: Etag74EQOA DateTue, 01 Jun 2010 18:12:57 GMT Expires Sat, 05 Jun 2010 02:12:57 GMT Content-Typetext/css Content-Encodinggzip Server Google Frontend Content-Length 2820 Cache-Control public, max-age=288000 Age 90134 X-XSS-Protection0 The good side headers: Etag7xGL5w DateWed, 02 Jun 2010 19:13:00 GMT Expires Wed, 02 Jun 2010 19:12:04 GMT Content-Typetext/css Content-Encodinggzip Server Google Frontend Content-Length 2834 Age 41 Cache-Control public, max-age=600 Short of using a cache-buster, is there a setting I can use on GAE or in my app.yaml file? On Jun 2, 3:01 pm, Ikai L (Google) ika...@google.com wrote: I wonder if there is some layer of the infrastructure that is performing caching without you guys having opted-in, hence the reason why a cache-buster like ?v=something works. Can you guys confirm? Also - are you guys setting any headers? Which headers get returned? I've personally always used cache busters for the simple reason that sometimes users using web-accelerators or with aggressive ISP or caching settings tend to key off the URL. Can you guys use this workaround in the meantime? On Wed, Jun 2, 2010 at 11:57 AM, Rafael Sierra rafaeljs...@gmail.com wrote: On Wed, Jun 2, 2010 at 3:37 PM, J j.si...@earlystageit.com wrote: To reproduce the problem, go to http://qa.connectscholar.com/stylesheets/caSkin.css and also tohttp://charityaxis-qa.appspot.com/stylesheets/caSkin.css. Both URLs point to the same file but one returns the old content and appspot.com returns the new content. Same file here: Hidan:~ sdm$ curlhttp:// charityaxis-qa.appspot.com/stylesheets/caSkin.css 1 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 100 109410 109410 0 6146 0 --:--:-- 0:00:01 --:--:-- 31918 Hidan:~ sdm$ curlhttp://qa.connectscholar.com/stylesheets/caSkin.css 2 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total SpentLeft Speed 100 109410 109410 0 2777 0 --:--:-- 0:00:03 --:--:-- 3854 Hidan:~ sdm$ md5 1 MD5 (1) = 8f5ef511be1a03fd73337c334933 Hidan:~ sdm$ md5 2 MD5 (2) = 8f5ef511be1a03fd73337c334933 On Jun 2, 1:18 pm, Ikai L (Google) ika...@google.com wrote: Thanks for bringing this up, Tim. Anyone else seeing this problem? If so, please post details. Are you guys setting any kind of cache headers? I'm going to try to reproduce these issues, so any information will be helpful. On Wed, Jun 2, 2010 at 9:14 AM, J j.si...@earlystageit.com wrote: Thanks, Tim, for letting me know I'm not going insane. To the Google guys, this problem seems to have started yesterday afternoon (1:30-ish PM, EDT) in case it helps you track down the cause. On Jun 2, 8:19 am, Tim Hoffman zutes...@gmail.com wrote: Hi We have been trying to deploy a major revision of one of our apps. Under the specific version 2-0-0.latest... all the new css/js and static images are available. When we make the new version default, the css, js and static files are accessible via appid.appspot.com However when accessing the same site via the google apps domain mapping we are still getting the old versions css, js and static images. I have tried removing the apps domain mapping and re-adding it with no affect. We have had to revert to the earlier version as all access to the site is via the apps domain and its not working with the latest version missing the new css/js. has anyone got any ideas on how we can address this. I know absolutely that the problem is not a browser cache, as I have been checking the css files via wget. Thanks for any help regards Tim -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to
Re: [google-appengine] Re: Another easy question
I'm using this filter() to build a search engine in the datastore. So I don't only want to show the exact result. 2010/6/2 Geoffrey Spear geoffsp...@gmail.com On Jun 2, 3:10 pm, Massimiliano massimiliano.pietr...@gmail.com wrote: Thanks! But... The = checks if the string is equal of what I have in the datastore. I need to check if the string is in the string in the datastore. Uhm. Can you help me? The datastore can't do substring searches. The best you can do is a prefix search by filtering with = 'yourprefix' and u'yourprefix' + u'\uffdd'. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Referenced projects in Eclipse with App Engine.
Hi. I have a number of projects, and they share a certain part, which i would like to extract into a separate project. To this end i tried to create a project containing that shared part only, and create a project with a project-specific part only. It compiles well, the classes in one project see the classes from the other. However, when i try to start the thing as a Google Web Application, I get the java.lang.NoClassDefFoundError. What can I do about it? Or is it at all possible to do that with App Engine projects? -- Best Regards, Timofey. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Static files in newly deployed version not available in the apps domain. (Major problem)
Thanks, Ikai, for your help. It is much appreciated. We'll use a cache buster for now. On Jun 2, 3:27 pm, Ikai L (Google) ika...@google.com wrote: Okay, looks like the Google Front-End is kicking in to cache your stuff Server Google Frontend Content-Length 2834 Age 41 Cache-Control public, max-age=600 Are you guys setting this header anywhere? Unfortunately, there's no way to invalidate items in the frontend cache, so you'll have to use a cache buster or wait for the TTL to expire. On Wed, Jun 2, 2010 at 12:22 PM, J j.si...@earlystageit.com wrote: That's interesting, Rafael. I wonder why it serves correctly for you. They are still different from my PoV. The bad side headers: Etag 74EQOA Date Tue, 01 Jun 2010 18:12:57 GMT Expires Sat, 05 Jun 2010 02:12:57 GMT Content-Type text/css Content-Encoding gzip Server Google Frontend Content-Length 2820 Cache-Control public, max-age=288000 Age 90134 X-XSS-Protection 0 The good side headers: Etag 7xGL5w Date Wed, 02 Jun 2010 19:13:00 GMT Expires Wed, 02 Jun 2010 19:12:04 GMT Content-Type text/css Content-Encoding gzip Server Google Frontend Content-Length 2834 Age 41 Cache-Control public, max-age=600 Short of using a cache-buster, is there a setting I can use on GAE or in my app.yaml file? On Jun 2, 3:01 pm, Ikai L (Google) ika...@google.com wrote: I wonder if there is some layer of the infrastructure that is performing caching without you guys having opted-in, hence the reason why a cache-buster like ?v=something works. Can you guys confirm? Also - are you guys setting any headers? Which headers get returned? I've personally always used cache busters for the simple reason that sometimes users using web-accelerators or with aggressive ISP or caching settings tend to key off the URL. Can you guys use this workaround in the meantime? On Wed, Jun 2, 2010 at 11:57 AM, Rafael Sierra rafaeljs...@gmail.com wrote: On Wed, Jun 2, 2010 at 3:37 PM, J j.si...@earlystageit.com wrote: To reproduce the problem, go to http://qa.connectscholar.com/stylesheets/caSkin.css and also tohttp://charityaxis-qa.appspot.com/stylesheets/caSkin.css. Both URLs point to the same file but one returns the old content and appspot.com returns the new content. Same file here: Hidan:~ sdm$ curlhttp:// charityaxis-qa.appspot.com/stylesheets/caSkin.css 1 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 10941 0 10941 0 0 6146 0 --:--:-- 0:00:01 --:--:-- 31918 Hidan:~ sdm$ curlhttp://qa.connectscholar.com/stylesheets/caSkin.css 2 % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 10941 0 10941 0 0 2777 0 --:--:-- 0:00:03 --:--:-- 3854 Hidan:~ sdm$ md5 1 MD5 (1) = 8f5ef511be1a03fd73337c334933 Hidan:~ sdm$ md5 2 MD5 (2) = 8f5ef511be1a03fd73337c334933 On Jun 2, 1:18 pm, Ikai L (Google) ika...@google.com wrote: Thanks for bringing this up, Tim. Anyone else seeing this problem? If so, please post details. Are you guys setting any kind of cache headers? I'm going to try to reproduce these issues, so any information will be helpful. On Wed, Jun 2, 2010 at 9:14 AM, J j.si...@earlystageit.com wrote: Thanks, Tim, for letting me know I'm not going insane. To the Google guys, this problem seems to have started yesterday afternoon (1:30-ish PM, EDT) in case it helps you track down the cause. On Jun 2, 8:19 am, Tim Hoffman zutes...@gmail.com wrote: Hi We have been trying to deploy a major revision of one of our apps. Under the specific version 2-0-0.latest... all the new css/js and static images are available. When we make the new version default, the css, js and static files are accessible via appid.appspot.com However when accessing the same site via the google apps domain mapping we are still getting the old versions css, js and static images. I have tried removing the apps domain mapping and re-adding it with no affect. We have had to revert to the earlier version as all access to the site is via the apps domain and its not working with the latest version missing the new css/js. has anyone got any ideas on how we can address this. I know absolutely that the problem is not a browser cache, as I have been checking the css files via wget. Thanks for any help regards Tim -- You received this message because you are
Re: [google-appengine] mapreduce
Hi, On Tue, Jun 1, 2010 at 11:13 PM, Ikai L (Google) ika...@google.com wrote: Hi, The first release of the mapper API will require a manual invocation of the task. If you need to map all entities, you will have to run the task. There's no continuous process monitoring changed entities. You can probably build this into your update workflow. Is this planned for a future release, though? Building a CouchDB-like map/reduce solution with this would be a lot of work and it might not even be reliable. Bye, Waldemar Kornewald -- Django on App Engine, MongoDB, SimpleDB, ...? http://www.allbuttonspressed.com/blog/django -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: Another easy question
On Wed, Jun 2, 2010 at 4:34 PM, Massimiliano massimiliano.pietr...@gmail.com wrote: I'm using this filter() to build a search engine in the datastore. So I don't only want to show the exact result. There's already some full text solutions, google it and you may found (hosted at code.google.com) 2010/6/2 Geoffrey Spear geoffsp...@gmail.com On Jun 2, 3:10 pm, Massimiliano massimiliano.pietr...@gmail.com wrote: Thanks! But... The = checks if the string is equal of what I have in the datastore. I need to check if the string is in the string in the datastore. Uhm. Can you help me? The datastore can't do substring searches. The best you can do is a prefix search by filtering with = 'yourprefix' and u'yourprefix' + u'\uffdd'. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: Another easy question
http://gae-full-text-search.appspot.com/ On Wed, Jun 2, 2010 at 4:50 PM, Massimiliano massimiliano.pietr...@gmail.com wrote: I can't find nothing. 2010/6/2 Rafael Sierra rafaeljs...@gmail.com On Wed, Jun 2, 2010 at 4:34 PM, Massimiliano massimiliano.pietr...@gmail.com wrote: I'm using this filter() to build a search engine in the datastore. So I don't only want to show the exact result. There's already some full text solutions, google it and you may found (hosted at code.google.com) 2010/6/2 Geoffrey Spear geoffsp...@gmail.com On Jun 2, 3:10 pm, Massimiliano massimiliano.pietr...@gmail.com wrote: Thanks! But... The = checks if the string is equal of what I have in the datastore. I need to check if the string is in the string in the datastore. Uhm. Can you help me? The datastore can't do substring searches. The best you can do is a prefix search by filtering with = 'yourprefix' and u'yourprefix' + u'\uffdd'. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: Another easy question
I can't find nothing. 2010/6/2 Rafael Sierra rafaeljs...@gmail.com On Wed, Jun 2, 2010 at 4:34 PM, Massimiliano massimiliano.pietr...@gmail.com wrote: I'm using this filter() to build a search engine in the datastore. So I don't only want to show the exact result. There's already some full text solutions, google it and you may found (hosted at code.google.com) 2010/6/2 Geoffrey Spear geoffsp...@gmail.com On Jun 2, 3:10 pm, Massimiliano massimiliano.pietr...@gmail.com wrote: Thanks! But... The = checks if the string is equal of what I have in the datastore. I need to check if the string is in the string in the datastore. Uhm. Can you help me? The datastore can't do substring searches. The best you can do is a prefix search by filtering with = 'yourprefix' and u'yourprefix' + u'\uffdd'. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Static files in newly deployed version not available in the apps domain. (Major problem)
In the meantime, I'll investigate whether these headers are being implicitly or incorrectly set. On Wed, Jun 2, 2010 at 12:37 PM, J j.si...@earlystageit.com wrote: Thanks, Ikai, for your help. It is much appreciated. We'll use a cache buster for now. On Jun 2, 3:27 pm, Ikai L (Google) ika...@google.com wrote: Okay, looks like the Google Front-End is kicking in to cache your stuff Server Google Frontend Content-Length 2834 Age 41 Cache-Control public, max-age=600 Are you guys setting this header anywhere? Unfortunately, there's no way to invalidate items in the frontend cache, so you'll have to use a cache buster or wait for the TTL to expire. On Wed, Jun 2, 2010 at 12:22 PM, J j.si...@earlystageit.com wrote: That's interesting, Rafael. I wonder why it serves correctly for you. They are still different from my PoV. The bad side headers: Etag74EQOA DateTue, 01 Jun 2010 18:12:57 GMT Expires Sat, 05 Jun 2010 02:12:57 GMT Content-Typetext/css Content-Encodinggzip Server Google Frontend Content-Length 2820 Cache-Control public, max-age=288000 Age 90134 X-XSS-Protection0 The good side headers: Etag7xGL5w DateWed, 02 Jun 2010 19:13:00 GMT Expires Wed, 02 Jun 2010 19:12:04 GMT Content-Typetext/css Content-Encodinggzip Server Google Frontend Content-Length 2834 Age 41 Cache-Control public, max-age=600 Short of using a cache-buster, is there a setting I can use on GAE or in my app.yaml file? On Jun 2, 3:01 pm, Ikai L (Google) ika...@google.com wrote: I wonder if there is some layer of the infrastructure that is performing caching without you guys having opted-in, hence the reason why a cache-buster like ?v=something works. Can you guys confirm? Also - are you guys setting any headers? Which headers get returned? I've personally always used cache busters for the simple reason that sometimes users using web-accelerators or with aggressive ISP or caching settings tend to key off the URL. Can you guys use this workaround in the meantime? On Wed, Jun 2, 2010 at 11:57 AM, Rafael Sierra rafaeljs...@gmail.com wrote: On Wed, Jun 2, 2010 at 3:37 PM, J j.si...@earlystageit.com wrote: To reproduce the problem, go to http://qa.connectscholar.com/stylesheets/caSkin.css and also tohttp:// charityaxis-qa.appspot.com/stylesheets/caSkin.css. Both URLs point to the same file but one returns the old content and appspot.com returns the new content. Same file here: Hidan:~ sdm$ curlhttp:// charityaxis-qa.appspot.com/stylesheets/caSkin.css 1 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total Spent Left Speed 100 109410 109410 0 6146 0 --:--:-- 0:00:01 --:--:-- 31918 Hidan:~ sdm$ curlhttp:// qa.connectscholar.com/stylesheets/caSkin.css 2 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total Spent Left Speed 100 109410 109410 0 2777 0 --:--:-- 0:00:03 --:--:-- 3854 Hidan:~ sdm$ md5 1 MD5 (1) = 8f5ef511be1a03fd73337c334933 Hidan:~ sdm$ md5 2 MD5 (2) = 8f5ef511be1a03fd73337c334933 On Jun 2, 1:18 pm, Ikai L (Google) ika...@google.com wrote: Thanks for bringing this up, Tim. Anyone else seeing this problem? If so, please post details. Are you guys setting any kind of cache headers? I'm going to try to reproduce these issues, so any information will be helpful. On Wed, Jun 2, 2010 at 9:14 AM, J j.si...@earlystageit.com wrote: Thanks, Tim, for letting me know I'm not going insane. To the Google guys, this problem seems to have started yesterday afternoon (1:30-ish PM, EDT) in case it helps you track down the cause. On Jun 2, 8:19 am, Tim Hoffman zutes...@gmail.com wrote: Hi We have been trying to deploy a major revision of one of our apps. Under the specific version 2-0-0.latest... all the new css/js and static images are available. When we make the new version default, the css, js and static files are accessible via appid.appspot.com However when accessing the same site via the google apps domain mapping we are still getting the old versions css, js and static images. I have tried removing the apps domain mapping and re-adding it with no affect. We have had to revert to the earlier version as all access to the site is via the apps domain and its not working with the latest version missing
[google-appengine] Re: Updating Google App Engine datastore
Thanks Tristan and Jeff, Both of you have been really kind and your suggestions were really clear and understandable. I'll start with both approaches and see what fits me better. My best reggards, Víctor. On 2 jun, 19:46, Jeff Schnitzer j...@infohazard.org wrote: There are two distinctions to be made - do your properties change dynamically with program code or do they just evolve rapidly over time? Ie: Do you need a dynamic interface to properties (MapString,Object) or do you just need a more flexible way to deal with schema evolution? For a fully dynamic interface, go directly to the Low-Level API. The Entity object is basically a hashmap and you can get/set any properties you want. You can iterate through the available properties. For basic schema evolution, you have more choices. JDO is particularly bad at this. Pretty much any change in the underlying schema will break your application. Objectify is particularly good at this. Possibly the other alternativedatastoreAPIs can help too (Twig, SimpleDS, Slim3) but I don't know. You can read a lot more about Objectify's tools for schema migration here: http://code.google.com/p/objectify-appengine/wiki/IntroductionToObjec... Basically, you can add or remove fields to your entities at any time without any ill effects. You can also create mappings so that you can change your entity classes, loading the old schema into the new entities and upgrading them on the fly. This lets you make some fairly extensive schema changes with zero downtime. Note that this still isn't a wholly generic Map interface to thedatastore; you are still working with your typed Java classes. But you can use both the Low-Level API and Objectify together very well; the data structures have an intuitive 1-to-1 mapping. Here's the project: http://code.google.com/p/objectify-appengine/ Good luck, Jeff 2010/6/1 Víctor Mayoral v.mayor...@gmail.com: Hey Tristan! Thanks for your answer. I will check the docs again and take a look at the low level API. The notification + trigger method seems pretty intelligent i will also check that too. But I was just wondering, isn't there something like a framework for this types of jobs?. Again, thanks Víctor. On 2 jun, 00:41, Tristan tristan.slomin...@gmail.com wrote: Not sure how it would work in JDO but its simple to add properties in low-leveldatastore. I store my entities with a version property, when I update the entity, I change the version and change my code to either intialize a non- existing property on an old entity, or to delete a deprecated property. This happens lazily (only when the entity is actally used). You can also include a counter of how many entities were updated from old to new and have a flag trigger when 100% of updates are complete. Then in the next version of the code you can remove theupdating method since all old entities were lazily updated. An alternative would be to set notification at 90% or some other percentage, and then trigger a task that cleans up the rest of the entities. I use this approach to keep my data consistent without the need for hugely intensivedatastorescans to update when changes happen. Hope this will give you some ideas. Cheers! Tristan On Jun 1, 6:28 am, Víctor Mayoral v.mayor...@gmail.com wrote: Hello, I've just an applications using GWT and GAE. After reading the docs and doing some examples I decided to begin coding but soon I reach something tricky. My application data would be at the GAEdatastoreusing JDO. I want to assume that the app will live. Let me explain this: The entities at thedatastorewill change. This means that some properties would be added and some of them maybe removed what leaves me with a ton of exceptions to handle. Knowing this, which should be the way to update thedatastoreentities? One by one after a change is made? Should I handle exceptions and then change just the entitie requested? Is there a way to do this cleaner? I've been thinking about how to do this stuff with my actual knowledge and i think that the most logical way to proceed is get the object, remove it from the database, create a new one based on this old object and then persist it again. To sum up the question is about if there's a way to add a property to an stored entitie in thedatastore(GAE) easily. I hope you to understand my lines. Any suggestion would be appreciated. Thanks, Víctor. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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
Re: [google-appengine] Re: Another easy question
It sounds strange to me that there isn't nothing in GAE to check this, without using a third part class... 2010/6/2 Rafael Sierra rafaeljs...@gmail.com http://gae-full-text-search.appspot.com/ On Wed, Jun 2, 2010 at 4:50 PM, Massimiliano massimiliano.pietr...@gmail.com wrote: I can't find nothing. 2010/6/2 Rafael Sierra rafaeljs...@gmail.com On Wed, Jun 2, 2010 at 4:34 PM, Massimiliano massimiliano.pietr...@gmail.com wrote: I'm using this filter() to build a search engine in the datastore. So I don't only want to show the exact result. There's already some full text solutions, google it and you may found (hosted at code.google.com) 2010/6/2 Geoffrey Spear geoffsp...@gmail.com On Jun 2, 3:10 pm, Massimiliano massimiliano.pietr...@gmail.com wrote: Thanks! But... The = checks if the string is equal of what I have in the datastore. I need to check if the string is in the string in the datastore. Uhm. Can you help me? The datastore can't do substring searches. The best you can do is a prefix search by filtering with = 'yourprefix' and u'yourprefix' + u'\uffdd'. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] mapreduce
It's not on our roadmap. My suspicion is no, but it depends on how developers end up using map-reduce. On Wed, Jun 2, 2010 at 12:39 PM, Waldemar Kornewald wkornew...@gmail.comwrote: Hi, On Tue, Jun 1, 2010 at 11:13 PM, Ikai L (Google) ika...@google.com wrote: Hi, The first release of the mapper API will require a manual invocation of the task. If you need to map all entities, you will have to run the task. There's no continuous process monitoring changed entities. You can probably build this into your update workflow. Is this planned for a future release, though? Building a CouchDB-like map/reduce solution with this would be a lot of work and it might not even be reliable. Bye, Waldemar Kornewald -- Django on App Engine, MongoDB, SimpleDB, ...? http://www.allbuttonspressed.com/blog/django -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Static files in newly deployed version not available in the apps domain. (Major problem)
I can't reproduce this. Here's my YAML file: application: ikailan-com version: 1 runtime: python api_version: 1 default_expiration: 1d handlers: - url: / script: main.py - url: /assets static_dir: assets Can you guys post your app.yaml? On Wed, Jun 2, 2010 at 1:04 PM, Ikai L (Google) ika...@google.com wrote: In the meantime, I'll investigate whether these headers are being implicitly or incorrectly set. On Wed, Jun 2, 2010 at 12:37 PM, J j.si...@earlystageit.com wrote: Thanks, Ikai, for your help. It is much appreciated. We'll use a cache buster for now. On Jun 2, 3:27 pm, Ikai L (Google) ika...@google.com wrote: Okay, looks like the Google Front-End is kicking in to cache your stuff Server Google Frontend Content-Length 2834 Age 41 Cache-Control public, max-age=600 Are you guys setting this header anywhere? Unfortunately, there's no way to invalidate items in the frontend cache, so you'll have to use a cache buster or wait for the TTL to expire. On Wed, Jun 2, 2010 at 12:22 PM, J j.si...@earlystageit.com wrote: That's interesting, Rafael. I wonder why it serves correctly for you. They are still different from my PoV. The bad side headers: Etag74EQOA DateTue, 01 Jun 2010 18:12:57 GMT Expires Sat, 05 Jun 2010 02:12:57 GMT Content-Typetext/css Content-Encodinggzip Server Google Frontend Content-Length 2820 Cache-Control public, max-age=288000 Age 90134 X-XSS-Protection0 The good side headers: Etag7xGL5w DateWed, 02 Jun 2010 19:13:00 GMT Expires Wed, 02 Jun 2010 19:12:04 GMT Content-Typetext/css Content-Encodinggzip Server Google Frontend Content-Length 2834 Age 41 Cache-Control public, max-age=600 Short of using a cache-buster, is there a setting I can use on GAE or in my app.yaml file? On Jun 2, 3:01 pm, Ikai L (Google) ika...@google.com wrote: I wonder if there is some layer of the infrastructure that is performing caching without you guys having opted-in, hence the reason why a cache-buster like ?v=something works. Can you guys confirm? Also - are you guys setting any headers? Which headers get returned? I've personally always used cache busters for the simple reason that sometimes users using web-accelerators or with aggressive ISP or caching settings tend to key off the URL. Can you guys use this workaround in the meantime? On Wed, Jun 2, 2010 at 11:57 AM, Rafael Sierra rafaeljs...@gmail.com wrote: On Wed, Jun 2, 2010 at 3:37 PM, J j.si...@earlystageit.com wrote: To reproduce the problem, go to http://qa.connectscholar.com/stylesheets/caSkin.css and also tohttp:// charityaxis-qa.appspot.com/stylesheets/caSkin.css. Both URLs point to the same file but one returns the old content and appspot.com returns the new content. Same file here: Hidan:~ sdm$ curlhttp:// charityaxis-qa.appspot.com/stylesheets/caSkin.css 1 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total Spent Left Speed 100 109410 109410 0 6146 0 --:--:-- 0:00:01 --:--:-- 31918 Hidan:~ sdm$ curlhttp:// qa.connectscholar.com/stylesheets/caSkin.css 2 % Total% Received % Xferd Average Speed TimeTime Time Current Dload Upload Total Spent Left Speed 100 109410 109410 0 2777 0 --:--:-- 0:00:03 --:--:-- 3854 Hidan:~ sdm$ md5 1 MD5 (1) = 8f5ef511be1a03fd73337c334933 Hidan:~ sdm$ md5 2 MD5 (2) = 8f5ef511be1a03fd73337c334933 On Jun 2, 1:18 pm, Ikai L (Google) ika...@google.com wrote: Thanks for bringing this up, Tim. Anyone else seeing this problem? If so, please post details. Are you guys setting any kind of cache headers? I'm going to try to reproduce these issues, so any information will be helpful. On Wed, Jun 2, 2010 at 9:14 AM, J j.si...@earlystageit.com wrote: Thanks, Tim, for letting me know I'm not going insane. To the Google guys, this problem seems to have started yesterday afternoon (1:30-ish PM, EDT) in case it helps you track down the cause. On Jun 2, 8:19 am, Tim Hoffman zutes...@gmail.com wrote: Hi We have been trying to deploy a major revision of one of our apps. Under the specific version 2-0-0.latest... all the new css/js and static images are available. When we make the new version default, the css, js and static files are accessible via appid.appspot.com However when accessing the same site via the google apps domain mapping we are still getting
Re: [google-appengine] mapreduce
Take a look at Brett Slatkin's session from GoogleIO: http://code.google.com/events/io/2010/sessions/high-throughput-data-pipelines-appengine.html He specifically shows how to build materialized views on changing data using the task queue. I haven't tried it out but it is impressive and seems reliable as he is using the technique with http://pubsubhubbub.appspot.com/for the fan out problem. Justin -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: DeadlineExceeded on cold hits.
+1 We've been having way too many of these errors for two weeks. Downtime is acceptable but this is ridiculous. This can't keep up or we'll have to rewrite our app and stop using appengine. We choose Google and expected stability and scalability so I'm very disappointed at the moment. On Jun 2, 12:16 am, Dave Peck davep...@gmail.com wrote: Hi, In the past week, I've seen an alarming number of DeadlineExceeded exceptions on cold hits to my applications. Most of the stack traces are shallow -- things blow up well before my code is hit. Seehttp://pastie.org/988269for a stack trace. The `bootstrap.py` file is more-or-less a direct copy of the `main.py` from Rietveld. Can someone on the App Engine team please point me in the right direction here? This is a big change in GAE's behavior in the past week, and it is affecting many of my applications (citygoround which has been in production for half a year; code-doctor which is under development, etc.) Cheers, Dave Peck -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: Anomaly at Datastore
The status page says the datastore is back to normal. However, I'm still hitting the soft memory limit on every request. Is the datastore really back to normal operation? Best, Aaron On Jun 2, 11:01 am, Rafael Sierra rafaeljs...@gmail.com wrote: On Wed, Jun 2, 2010 at 2:53 PM, Wesley C (Google) wesc+...@google.com wrote: the status page should be working again... there was a configuration issue this morning regarding that which has been resolved. as far as performance goes, there's an active and ongoing effort to address the increased latency developers are seeing... we'll post updates when we have something concrete. believe it or not, we're working on trying to make things *more* stable, and not the other way around. Ok, I do believe, I just was missing the information :) thanks for your patience! -- wesley - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Thank you. Core Python Programming, Prentice Hall, (c)2007,2001 Python Fundamentals, Prentice Hall, (c)2009 http://corepython.com wesley.j.chun :: wesc+api-at-google-dot-com developer relations :: google app engine @app_engine :: googleappengine.blogspot.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] View this page Google App Engine Open Source Projects
Added jappstart Click on http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects - or copy paste it into your browser's address bar if that doesn't work. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: Another easy question
On Wed, Jun 2, 2010 at 5:06 PM, Massimiliano massimiliano.pietr...@gmail.com wrote: It sounds strange to me that there isn't nothing in GAE to check this, without using a third part class... That's everybody thought considering that Google is mainly known as Search Engine. But thats ok, GAE still in beta, let's hope for some kind of Custom Search Service ;) 2010/6/2 Rafael Sierra rafaeljs...@gmail.com http://gae-full-text-search.appspot.com/ On Wed, Jun 2, 2010 at 4:50 PM, Massimiliano massimiliano.pietr...@gmail.com wrote: I can't find nothing. 2010/6/2 Rafael Sierra rafaeljs...@gmail.com On Wed, Jun 2, 2010 at 4:34 PM, Massimiliano massimiliano.pietr...@gmail.com wrote: I'm using this filter() to build a search engine in the datastore. So I don't only want to show the exact result. There's already some full text solutions, google it and you may found (hosted at code.google.com) 2010/6/2 Geoffrey Spear geoffsp...@gmail.com On Jun 2, 3:10 pm, Massimiliano massimiliano.pietr...@gmail.com wrote: Thanks! But... The = checks if the string is equal of what I have in the datastore. I need to check if the string is in the string in the datastore. Uhm. Can you help me? The datastore can't do substring searches. The best you can do is a prefix search by filtering with = 'yourprefix' and u'yourprefix' + u'\uffdd'. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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. -- My email: massimiliano.pietr...@gmail.com My Google Wave: massimiliano.pietr...@googlewave.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. 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: Video of App Engine sessions from Google I/O 2010 are up!
Agreed, some really great stuff in there - haven't watched everything yet, but the additions to the query capabilities look awesome - great work guys. On Jun 1, 11:03 pm, Ikai L (Google) ika...@google.com wrote: Hey guys, I just wanted to let everyone know that the App Engine sessions from Google I/O 2010 are now online for your viewing pleasure. Check them out here: http://googlecode.blogspot.com/2010/06/app-engine-teams-trip-to-io-20... http://googlecode.blogspot.com/2010/06/app-engine-teams-trip-to-io-20...These are geared towards intermediate to advanced App Engine developers. There's a lot of good stuff in here - I learned a bunch of stuff attending. Happy viewing! -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.