Re: [appengine-java] Re: How to make BlobServlet send non-empty response?
The way we do it(don't know if it is the best) is to use the blobstore api to get the url to put in the form action. on the 1st servlet you get the blobinfo and what not, then you redirect to another servlet that can write to the form complete handler. I'll share some code later today. 2010/5/4 Jaroslav Záruba jaroslav.zar...@gmail.com Or do you mean I should read the post data, send them to uploadUrl using another request I create, and then write response to the original one...? That might probably work... :P On May 4, 6:43 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Can you be more specific please? (After redirecting request you can't write to its response.) Regards J. Záruba On May 4, 10:01 am, bimbo jones bimbojone...@gmail.com wrote: hi, You can redirect the upload servlet to another servlet that responds. 2010/5/3 Jaroslav Záruba jaroslav.zar...@gmail.com I'm trying to use SWFUpload for uploading images in my application but either this particular component or Flash does not like empty responses. Is it possible somehow to get any content in the response-body from uploadUrl? Regards J. Záruba -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Paypal integration with app engine?
Can you explain a bit more on that? Thanks, Bendanpa On May 3, 11:03 pm, Vaclav Bartacek vaclav.barta...@spolecne.cz wrote: The only way I found and successfully use is the PayPal Button (saved on the server + 'custom' attribute) + IPN mechanism (over SSL) to receive transaction statuses. Other ways could not be probably implemented now due to the current GAE restrictions - mainly: you cannot add a new JCE provider now. Vaclav On May 3, 7:47 am, shamel shame...@gmail.com wrote: How to integrate paypal with app engine?? i have got many errors when integrating this. main exceptions are org.xml.sax.SAXNotSupportedException:http://xml.org/sax/features/external-general-entities at org.apache.xerces.framework.XMLParser.setExternalGeneralEntities(XMLParser.java: 486) at org.apache.xerces.framework.XMLParser.setFeature(XMLParser.java: 1298) at org.apache.xerces.parsers.SAXParser.setFeature(SAXParser.java:578) at org.apache.xerces.jaxp.SAXParserImpl.setFeatures(SAXParserImpl.java: 150) ... please help me as fast as possible??? -- You received this message 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 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] Re: Paypal integration with app engine?
What is the 3rd party cart? can you name it? Thanks, Benddanpa On May 3, 11:40 pm, Aditya Rathi rathi.adi...@gmail.com wrote: You can integrate paypal with GAE using thrid part cart feature. I have used it On Tue, May 4, 2010 at 11:33 AM, Vaclav Bartacek vaclav.barta...@spolecne.cz wrote: The only way I found and successfully use is the PayPal Button (saved on the server + 'custom' attribute) + IPN mechanism (over SSL) to receive transaction statuses. Other ways could not be probably implemented now due to the current GAE restrictions - mainly: you cannot add a new JCE provider now. Vaclav On May 3, 7:47 am, shamel shame...@gmail.com wrote: How to integrate paypal with app engine?? i have got many errors when integrating this. main exceptions are org.xml.sax.SAXNotSupportedException: http://xml.org/sax/features/external-general-entities at org.apache.xerces.framework.XMLParser.setExternalGeneralEntities(XMLParser.java: 486) at org.apache.xerces.framework.XMLParser.setFeature(XMLParser.java: 1298) at org.apache.xerces.parsers.SAXParser.setFeature(SAXParser.java:578) at org.apache.xerces.jaxp.SAXParserImpl.setFeatures(SAXParserImpl.java: 150) ... please help me as fast as possible??? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group 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] Re: 500 Error Caused by: java.lang.NoSuchMethodException: org.codehaus.groovy.runtime.dgm$692.init()
A few minutes after I posted the previous message, the app started to work. But that is a testing app, and the real one's app id is shijinxiaochu, which still has the same problem. Could somebody please fix that as well? Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: SimpleDS 1.0_RC1 is out
Just one question: does SimpleDS support query caching too? I've some very popular queries and want to cache their results in a 2nd level cache (not only its entities) Not yet, but this is also my case so it is in the roadmap for the next version (a couple of months ahead). -- You received this message 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] Max Ross - Truth about joins
Alias does not get initialized.. @Entity public class Foo { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public Long id; @Basic public Key bar; @OneToOne(fetch = FetchType.LAZY) @Column(name = bar, insertable = false, updatable = false) public Bar barAlias; } @Entity public class Bar { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) public Key key; @Basic public String name; } public class UnOwnedRelationshipTest extends BaseDataStoreTest { public void testRelation() throws EntityNotFoundException { Bar bar = new Bar(); beginTx(); getEntityManager().persist(bar); commitTx(); beginTx(); Foo pojo = new Foo(); pojo.bar = bar.key; getEntityManager().persist(pojo); commitTx(); pojo = getEntityManager().find(Foo.class, pojo.id); com.google.appengine.api.datastore.Entity e = DatastoreServiceFactory .getDatastoreService().get(KeyFactory.createKey(Foo, pojo.id)); assertTrue(e.hasProperty(bar)); //this fails assertNotNull(pojo.barAlias); } } The test fails, alias is not initialized.. It does not work even when I use getters/setters to access alias, Neither it works for @oneToMany as you explained in example. I use GAE SDK 1.3.2 When using joins, From Foo result returned, can I do foor.getBarAlias().getName() !?? -- Sudhir Ramanandi http://www.ramanandi.org -- You received this message 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] uploas static resource
Hi, is possible to upload file like css o image without deploy the entire application? for example if I change only an icon...? Thanks! Regards. Alessandro -- You received this message 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: How to make BlobServlet send non-empty response?
I have already got it working... In my wrapping servlet I simply copy the POST-data into a stream of the uploadURL; this creates blobs and calls then successUrl where I store the BlobInfo. Wrapping servlet then sends single character to client. As for your suggestion, like I said, I'm using a Flash component SWFUpload, not a form. There are two issues with current Flash, at least on Windows: 1) It can not send multiple files in single POST/multi-part request. Therefore the component needs to cycle and make multiple requests. (Document/page remains loaded though.) 2) When the uploading request does return empty response (even when the upload was successful) the component goes nuts. Therefore I need the receiving target to send at least . in response body. Regards J. Záruba On Wed, May 5, 2010 at 8:02 AM, bimbo jones bimbojone...@gmail.com wrote: The way we do it(don't know if it is the best) is to use the blobstore api to get the url to put in the form action. on the 1st servlet you get the blobinfo and what not, then you redirect to another servlet that can write to the form complete handler. I'll share some code later today. 2010/5/4 Jaroslav Záruba jaroslav.zar...@gmail.com Or do you mean I should read the post data, send them to uploadUrl using another request I create, and then write response to the original one...? That might probably work... :P On May 4, 6:43 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: Can you be more specific please? (After redirecting request you can't write to its response.) Regards J. Záruba On May 4, 10:01 am, bimbo jones bimbojone...@gmail.com wrote: hi, You can redirect the upload servlet to another servlet that responds. 2010/5/3 Jaroslav Záruba jaroslav.zar...@gmail.com I'm trying to use SWFUpload for uploading images in my application but either this particular component or Flash does not like empty responses. Is it possible somehow to get any content in the response-body from uploadUrl? Regards J. Záruba -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.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] 500 Server error and GCacheException
Hi I get a lot of GCacheException: Policy prevented put operation during the last few hours. I use memcache for small xml file content, so it' shouldn't be an issue of exceeding the max memcache object size. As a result my app cannot cache nesecery content and eventually I get Error: Server Error: The server encountered an error and could not complete your request. possible due to a lot of request timing out trying all to get remote data because the memcache is empty. The app is online for since some months, handling about a million of requests per day, with no problem noticed. Can the GAE team help? I cannot provide a url in public, due to security reasons. -- You received this message 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] Session and AppEngine
All my object implements Serializable and I don't think that explain why JSESSIONID isn't created... but thanks, I tried to revert back my actions that implements IsSerializable for Serializable, but it didn't work either. Christian On Tue, May 4, 2010 at 11:44 PM, yjun hu itswa...@gmail.com wrote: hi, are u using java ? if yes, the object you push into session must implements java.io.Serializable . you can follow this blog for more info: http://www.hapeblog.com/blog.shtml?id=7 On Wed, May 5, 2010 at 10:54 AM, Christian Goudreau goudreau.christ...@gmail.com wrote: Hummm I got a weird issue I added to my appengine-web.xml this line : sessions-enabledtrue/sessions-enabled But no JSESSIONID cookie is created. Anyway Idea why ? Christian -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.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] 500 Server error and GCacheException
Hi, I was just writing a post about this myself. I'm having the same problem. I already surrounded all my cache.get() calls with a try/catch block so the app can proceed normally (without the benefit of memcached though). I thought it was related to the Appengine maintenance, but I'm seeing this for already approximately 4 hours. Caused by: com.google.apphosting.api.ApiProxy$CapabilityDisabledException: The API call memcache.Get() is temporarily unavailable. at com.google.apphosting.runtime.ApiProxyImpl$AsyncApiFuture.rpcFinished(ApiProxyImpl.java:264) at com.google.net.rpc.RpcStub$RpcCallbackDispatcher$1.runInContext(RpcStub.java:1025) at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:444) at com.google.tracing.TraceContext.runInContext(TraceContext.java:684) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:322) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:314) at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:442) at com.google.net.rpc.RpcStub$RpcCallbackDispatcher.rpcFinished(RpcStub.java:1046) at com.google.net.rpc.RPC.internalFinish(RPC.java:2047) at com.google.net.rpc.impl.RpcNetChannel.finishRpc(RpcNetChannel.java:2338) at com.google.net.rpc.impl.RpcNetChannel.messageReceived(RpcNetChannel.java:1265) 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.async.GlobalEventRegistry$2.runLoop(GlobalEventRegistry.java:95) at com.google.net.async.LoopingEventDispatcher$EventDispatcherThread.run(LoopingEventDispatcher.java:378) Caused by: com.google.apphosting.api.ApiProxy$CapabilityDisabledException: The API call memcache.Set() is temporarily unavailable. at com.google.apphosting.runtime.ApiProxyImpl$AsyncApiFuture.rpcFinished(ApiProxyImpl.java:264) at com.google.net.rpc.RpcStub$RpcCallbackDispatcher$1.runInContext(RpcStub.java:1025) at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.java:444) at com.google.tracing.TraceContext.runInContext(TraceContext.java:684) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContextNoUnref(TraceContext.java:322) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInheritedContext(TraceContext.java:314) at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java:442) at com.google.net.rpc.RpcStub$RpcCallbackDispatcher.rpcFinished(RpcStub.java:1046) at com.google.net.rpc.RPC.internalFinish(RPC.java:2047) at com.google.net.rpc.impl.RpcNetChannel.finishRpc(RpcNetChannel.java:2338) at com.google.net.rpc.impl.RpcNetChannel.messageReceived(RpcNetChannel.java:1265) 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.async.GlobalEventRegistry$2.runLoop(GlobalEventRegistry.java:95) at com.google.net.async.LoopingEventDispatcher$EventDispatcherThread.run(LoopingEventDispatcher.java:378) -- You received this message 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] Session and AppEngine
What is your logic that initiates a session? The container does not create a session if there is no need for it. In a servlet you can initiate a session by calling HttpServletRequest.getSession(true) and in a JSP by adding the attribute session=true to a page directive. Regards, Stephan 2010/5/5 Christian Goudreau goudreau.christ...@gmail.com Hummm I got a weird issue I added to my appengine-web.xml this line : sessions-enabledtrue/sessions-enabled But no JSESSIONID cookie is created. Anyway Idea why ? Christian -- You received this message 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] Is the Memcache still working for everyone? My application can't set a memcache for hours
See here: http://code.google.com/p/googleappengine/issues/detail?id=3195 -- You received this message 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: Cache pages in Memcache
Sounds like a great idea. I agree with you. The problem with setting a cache header is that you have very little control over expiration. The nice thing about a cache that you handle at the filter level and in Memcache is that if you can regenerate the keys, you can flush the thing (or you can flush everything if need be). On Tue, May 4, 2010 at 4:45 PM, Sergio Lopes slo...@gmail.com wrote: Thanks for your answers! The Cache-control idea is a good one, I think I'll try something here. But maybe it's a good idea to have some kind of server cache too. Ehcache Web Module has a nice Java Filter that threats many corner cases (headers, gzip, ...). The only problem is that it's too coupled to Ehcache. I think I'll try to fork that project to use their Filter with AppEngine's memcache :) On May 4, 6:22 am, Nacho Coloma icol...@gmail.com wrote: Hi Sergio, I'm thinking in a Filter that put page results in memcache when first accessed, and then getting that result in former accesses. That should work. All page cache implementations do more or less the same. The idea is simple but the implementation is not. (how to get the first request response? how to implement proper header management in that filter? how to not disable gzip using this?) * If there is content in memcache, you can deliver it and exit. Otherwise, let the request proceed, and store in the cache. * Be sure to set the cache timeout and calculate the cache key correctly (e.g. include the user ID or the user locale if the cached contents depend on that). * For HTTP headers, this presentation may help: http://www.slideshare.net/icoloma/caching-web-contents-in-the-browser... It's more or less the same with JSP page fragments (except the headers, of course). No rocket science. Cheers, Nacho. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Relations, Google App Engine Twitter: http://twitter.com/ikai Delicious: http://delicious.com/ikailan Google App Engine links: Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: slow responses for query
Well, those are the tradeoffs, I suppose. The question is, where do you want the system to do more work, and where do you want it to do less? If you discover a pattern that causes 10-20 second queries, please post your findings. If you notice that it's specific entities, or you can deterministically reproduce the slowness, it'll give us a starting point to figure out what's going on. On Tue, May 4, 2010 at 9:02 PM, Philip Tucker ptuc...@gmail.com wrote: On May 4, 3:28 am, Ikai L (Google) ika...@google.com wrote: Query performance is generally a function of how many objects have to be returned in the simple case, which seems to be what you are doing here. How many PlayerGameStates exist per User? No more than 10 so far. Like I said, it was only 5 in this case. Are PlayerGameStates child entities of a User? No. They contain a userKey, which is the field on which I'm querying them. The reason I mentioned denormalizing is because the concept of normalization doesn't make as much sense with App Engine's datastore. We don't provide referential integrity, for instance, and transactions exist around entity groups, not globally. You don't pay a penalty for storing data that is sparse - some User entities can be huge, some can be tiny. You should optimize for reads. Doing multiple writes and the risk of data getting out of sync can suck, but as long as it is recoverable you should be okay. Contrast the performance of the query above with storing PlayerGameStates inside User. You'd do this: But then I'd have to run a separate query to fetch the game. Unless I duplicate the game state and move all those fields into PlayerGameState, which perhaps is what you're suggesting. But then I'd have to fetch both users every time, right (to update the duplicate game state), which means every player needs to contain the userKey of everyone they're playing. Most of my reads are by gameKey. There's only one case where I'm fetching all the games for a user. I don't really need this case to be optimized: 2-3 seconds would be acceptable. 80-90% of the time it's ~1 second. But these occasional 10-20 second fetches are crazy. -- You received this message 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 Relations, Google App Engine Twitter: http://twitter.com/ikai Delicious: http://delicious.com/ikailan Google App Engine links: 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: How to detect GAE is in maintenance?
Sorry I don't have an answer, but would also be interested in knowing how to do this. I will dig around today in the meantime. On May 4, 3:10 pm, Jerome jerome.mou...@gmail.com wrote: I would like my app to inform the visitor we are in maintenance, such as it does not let them do operations that will fail when we try to write in the Data Store. Last week, I implemented the code snipped as documented at the bottom of this page:http://code.google.com/appengine/docs/java/howto/maintenance.html public static boolean isGAEDowntime() { MemcacheService ms = MemcacheServiceFactory.getMemcacheService(); ms.setErrorHandler(new StrictErrorHandler()); try { ms.put(test, test); } catch (com.google.appengine.api.memcache.MemcacheServiceException e) { return true; } return false; } But, during the downtime, this method was still return false. What is the best option to figure out we are in the downtime period? Jerome -- You received this message 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] JSP code debug: Compiled JSP location in local environment
thanks, seleron! It's really help. I don't know why App docs does not point out it. Developer really needs this information. Or is there any other way to debug .jsp code efficiently? I tried to use Eclipse Debug perspective and could not find out useful information about bug in compiled code. On Tue, May 4, 2010 at 6:48 PM, m seleron seler...@gmail.com wrote: Hi, The following threads might be useful though it depends on the operation system that you are using. http://groups.google.com/group/google-appengine-java/browse_thread/thread/e63281b3e3d1b05/9b12a70f5172c6c1 Hope some of this helps. thanks. Hi I got following error in my local enviroment of Google App Eng with Eclipse plugin: at org.apache.jsp.scoreresult_jsp._jspService(scoreresult_jsp.java: 161) I would like to see the code on line 161 of compiled scoreresult.jsp file. But I can't find out the location of it. Anyone can tell me where the default folder locatoin for compiled .jsp files and also how you debug jsp code when error is on .jsp but no error on your .java file? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: uploas static resource
ok, thanks for the answer. I agree with you about the crating of an amministrafice interface. And if I put css and image on an other server and call it with absolute path (http://other-simple-server-for-css-and-images.com/)? Is bad pratice? thanks again regards Ale On May 5, 2:30 pm, Ikai L (Google) ika...@google.com wrote: No, you'll have to deploy the entire application. You could probably write code to read assets from the datastore then create an administrative interface, but I suspect the trouble you'd save wouldn't be worth the amount of work involved. On Wed, May 5, 2010 at 9:21 AM, ale aleee...@gmail.com wrote: Hi, is possible to upload file like css o image without deploy the entire application? for example if I change only an icon...? Thanks! Regards. Alessandro -- You received this message 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 Relations, Google App Engine Twitter:http://twitter.com/ikai Delicious:http://delicious.com/ikailan Google App Engine links: 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 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: 500 Error Caused by: java.lang.NoSuchMethodException: org.codehaus.groovy.runtime.dgm$692.init()
I have the same problem from time to time... It's anying every 60 secondes my app throw that message. Christian On Wed, May 5, 2010 at 2:29 AM, Daisy dguo2...@gmail.com wrote: A few minutes after I posted the previous message, the app started to work. But that is a testing app, and the real one's app id is shijinxiaochu, which still has the same problem. Could somebody please fix that as well? Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: WARNING: This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus t
And what about app that will no see their traffic grows ? Mine is mostly an intranet and it's annoying to see how slow it is because of those sleep time... Is it possible to make them last longer ? I even get some persistance problems when it goes to sleep... I'm using guiceFilters with the command pattern and I have to do a simple put in two-three request each time because of that. Christian On Thu, Apr 22, 2010 at 3:19 PM, Ikai L (Google) ika...@google.com wrote: You're getting this warning because your requests are mostly loading requests. As your traffic grows, this will go away, since less of your requests will be startup requests. It's there to tell you that your app isn't running slow - it's taking more time than it normally should because of initialization. Nevertheless, I think the general feedback has been it's a great feature, but I'd like to turn it off or hide it. I'l raise this with the team. On Thu, Apr 22, 2010 at 3:33 AM, Abhimanyu Saxena abhimanyusax...@gmail.com wrote: so what does it mean? I am repeatedly getting this warning with my app... is there anything that I can do for it ? On Apr 22, 7:24 am, Tristan tristan.slomin...@gmail.com wrote: Is it possible to make it an INFO and not a WARNING? Should I start an issue? As a programmer, I really don't have any direct control over this. All the WARNINGS are just masking other important issues that should be warnings. On Apr 21, 1:33 pm, Ikai L (Google) ika...@google.com wrote: Yep, we're rolling this out slowly with the 1.3.3 release to let developers know that some requests are slow because they are startup requests. On Wed, Apr 21, 2010 at 6:09 AM, Tristan tristan.slomin...@gmail.com wrote: Hey, I started seeing when a task queue starts now: WARNING: 200 OK This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application. instead of this WARNING: 500 Request was aborted after waiting too long to attempt to service your request. Most likely, this indicates that you have reached your simultaneous dynamic request limit. This is almost always due to excessively high latency in your app. Please see http://code.google.com/appengine/docs/quotas.htmlformore details. I like it. Is this the expected behavior from now on? Tristan -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Relations, Google App Engine Twitter:http://twitter.com/ikai Delicious:http://delicious.com/ikailan Google App Engine links: 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 athttp:// groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Relations, Google App Engine Twitter: http://twitter.com/ikai Delicious: http://delicious.com/ikailan Google App Engine links: Blog: http://googleappengine.blogspot.com Twitter:
[appengine-java] This request caused a new process
This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application. How can I avoid that message ? It wasn't even a new process... Christian -- You received this message 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] Common Annotations - javax.annotation.PostConstruct
Hello, Can anyone please advise how to get @PostConstruct invoked in App Engine (SDK version 1.3.3.1)? I tried with servlet and JPA/JDO but the conallback method was not triggered. Can you please take a look and let me know if I missed something? Thanks. public class TestServlet extends HttpServlet { Logger logger = Logger.getLogger(TestServlet.class.getName()); @PostConstruct private void myPostConstructCallback () { logger.warning(PostConstruct callback done); } ... } @Entity public class TestEntity { @Id private Long id; private String value; @PostConstruct private void myPostConstructCallback () { value = inited; } } -- You received this message 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] Session and AppEngine
Yeah thanks, I used your tips and Guice serve and now it's working fine ! Christian On Wed, May 5, 2010 at 7:12 AM, Stephan Hartmann hartm...@metamesh.dewrote: What is your logic that initiates a session? The container does not create a session if there is no need for it. In a servlet you can initiate a session by calling HttpServletRequest.getSession(true) and in a JSP by adding the attribute session=true to a page directive. Regards, Stephan 2010/5/5 Christian Goudreau goudreau.christ...@gmail.com Hummm I got a weird issue I added to my appengine-web.xml this line : sessions-enabledtrue/sessions-enabled But no JSESSIONID cookie is created. Anyway Idea why ? Christian -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: WARNING: This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take
I believe the general thought is that any persistence problems caused by a recycled application are to be expected and you should work to handle those issues. Sessions can be used to hold state, but application variables need to be able to recover from an application restart (or a newly spawned instance). As for lasting longer, I totally agree - I'm also running mine on a small scale and reload requests happen far too frequently. See and Star: http://code.google.com/p/googleappengine/issues/detail?id=2931 Jake On May 5, 9:48 am, Christian Goudreau goudreau.christ...@gmail.com wrote: And what about app that will no see their traffic grows ? Mine is mostly an intranet and it's annoying to see how slow it is because of those sleep time... Is it possible to make them last longer ? I even get some persistance problems when it goes to sleep... I'm using guiceFilters with the command pattern and I have to do a simple put in two-three request each time because of that. Christian On Thu, Apr 22, 2010 at 3:19 PM, Ikai L (Google) ika...@google.com wrote: You're getting this warning because your requests are mostly loading requests. As your traffic grows, this will go away, since less of your requests will be startup requests. It's there to tell you that your app isn't running slow - it's taking more time than it normally should because of initialization. Nevertheless, I think the general feedback has been it's a great feature, but I'd like to turn it off or hide it. I'l raise this with the team. On Thu, Apr 22, 2010 at 3:33 AM, Abhimanyu Saxena abhimanyusax...@gmail.com wrote: so what does it mean? I am repeatedly getting this warning with my app... is there anything that I can do for it ? On Apr 22, 7:24 am, Tristan tristan.slomin...@gmail.com wrote: Is it possible to make it an INFO and not a WARNING? Should I start an issue? As a programmer, I really don't have any direct control over this. All the WARNINGS are just masking other important issues that should be warnings. On Apr 21, 1:33 pm, Ikai L (Google) ika...@google.com wrote: Yep, we're rolling this out slowly with the 1.3.3 release to let developers know that some requests are slow because they are startup requests. On Wed, Apr 21, 2010 at 6:09 AM, Tristan tristan.slomin...@gmail.com wrote: Hey, I started seeing when a task queue starts now: WARNING: 200 OK This request caused a new process to be started for your application, and thus caused your application code to be loaded for the first time. This request may thus take longer and use more CPU than a typical request for your application. instead of this WARNING: 500 Request was aborted after waiting too long to attempt to service your request. Most likely, this indicates that you have reached your simultaneous dynamic request limit. This is almost always due to excessively high latency in your app. Please see http://code.google.com/appengine/docs/quotas.htmlformoredetails. I like it. Is this the expected behavior from now on? Tristan -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Relations, Google App Engine Twitter:http://twitter.com/ikai Delicious:http://delicious.com/ikailan Google App Engine links: 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 athttp:// groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-appengine-java?hl=en. -- You received this message
[appengine-java] [JDO Paging] Getting a cursor BEFORE the end of results
I'm implementing some UI paging and trying to detect whether a record exists beyond the current page (in order to show a more button). I hoped to iterate over a result set of pageSize + 1, grabbing the cursor as I pass the item @ pageSize, and then using the existence of the last item to know there's more to be shown. Unfortunately I can't find a way to accomplish this using JDO. JDOCursorHelper.getCursor(ListT) is documented to get the cursor for the last item in the list, so that works as documented but doesn't help me. JDOCursorHelper.getCursor(IteratorT) seems to be what I need, but every Iterator that I can find to pass to it causes it to return null. I've tried passing ((ListT)query.execute).iterator() as well as ((QueryResult)query.execute).iterator() and both have the same result. Anyone know if there's a not-too-kludgy way to do this w/o requerying the datastore for the additional item. Or is it easier in Objectify (I'm considering switching)? Thanks much, James -- You received this message 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] Discussion on will-it-play-in-app-engine
Loom 2.0 (http://loom.extrema-sistemas.org) is compatible with appengine out-of-the-box, and it includes some extras in a separate loom-appengine.jar. -- You received this message 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] Open Source FullText Search in Objectify Example
This a migration from JDO to Objectify for the fulltext search example from this post: http://googleappengine.blogspot.com/2010/04/making-your-app-searchable-using-self.html?utm_source=feedburnerutm_medium=feedutm_campaign=Feed:+GoogleAppEngineBlog+(Google+App+Engine+Blog) The idea and CORE CODE is from: Nico Güttler, Dominic Jansen, Raphael Bauer (http://corporate.scisurfer.com/) I only MIGRATED it to OBJECTIFY Framework, thats my colaboration. Thats the open source magic :) here the url : http://code.google.com/p/fulltext-search-in-objectify/ Nicolás Meléndez -- You received this message 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 API call datastore_v3.Put() is temporarily unavailable.
Getting this error on Java App Engine. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Unable to update app: Error posting to URL: Error 500
Suddenly i have started getting the following exception exception when trying to deploy the application to appengine from eclipse. I was able to do this till 10 min before. What is the possible cause for this or there is something wrong on the server end ? com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=thoughtclickshelpversion=dev-restfb; 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 62) 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: java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=thoughtclickshelpversion=dev-restfb; 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 149) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 82) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 559) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java: 376) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 111) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) ... 4 more 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.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] The API call datastore_v3.Put() is temporarily unavailable.
GAE is currently read-only for scheduled maintenance. I recommend subscribing to the google-appengine-downtime-notify group if you'd like to receive notifications of these events: http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/5302cb6b950ce215 http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/4857b46e4e6ff0f9 Thanks, Max On Wed, May 5, 2010 at 1:41 PM, hector hrov...@gmail.com wrote: Getting this error on Java App Engine. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Unable to update app: Error posting to URL: Error 500
GAE is currently read-only for scheduled maintenance. I recommend subscribing to the google-appengine-downtime-notify group if you'd like to receive notifications of these events: http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/5302cb6b950ce215 http://groups.google.com/group/google-appengine-downtime-notify/browse_thread/thread/4857b46e4e6ff0f9 Thanks, Max On Wed, May 5, 2010 at 1:45 PM, Rahul rahul.jun...@gmail.com wrote: Suddenly i have started getting the following exception exception when trying to deploy the application to appengine from eclipse. I was able to do this till 10 min before. What is the possible cause for this or there is something wrong on the server end ? com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=thoughtclickshelpversion=dev-restfb; 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 62) 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: java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=thoughtclickshelpversion=dev-restfb; 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 149) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 82) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 559) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java: 376) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 111) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) ... 4 more 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. -- You received this message 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: Unable to update app: Error posting to URL: Error 500
Max, the GAE team sent the notice that the maintenance has been completed, but our app is totally DOA now. Every single servlet or JSP just 500 with a: Request was aborted after waiting too long to attempt to service your request. This may happen sporadically when the App Engine serving cluster is under unexpectedly high or uneven load. If you see this message frequently, please contact the App Engine team. Jerome On May 5, 3:48 pm, Max Ross (Google) maxr+appeng...@google.com wrote: GAE is currently read-only for scheduled maintenance. I recommend subscribing to the google-appengine-downtime-notify group if you'd like to receive notifications of these events: http://groups.google.com/group/google-appengine-downtime-notify/brows... http://groups.google.com/group/google-appengine-downtime-notify/brows... Thanks, Max On Wed, May 5, 2010 at 1:45 PM, Rahul rahul.jun...@gmail.com wrote: Suddenly i have started getting the following exception exception when trying to deploy the application to appengine from eclipse. I was able to do this till 10 min before. What is the possible cause for this or there is something wrong on the server end ? com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=thoughtclic... 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 62) 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: java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=thoughtclic... 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 149) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 82) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 559) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java: 376) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 111) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) ... 4 more 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. -- You received this message 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: The API call datastore_v3.Put() is temporarily unavailable.
Hi Jerome, What error were you getting instead of ApiProxy.CapabilityDisabledException? Do you have a stack trace I can look at? Thanks, Max On Wed, May 5, 2010 at 1:57 PM, Jerome jerome.mou...@gmail.com wrote: Well... based on the announcement, we were supposed to receive a com.google.apphosting.api.ApiProxy.CapabilityDisabledException exception. For at least the first 10 minutes of the down time, it was not the case. We are sorting things out, but it looks like we lost a lot of data, as our system supposed to take over during the maintenance was based on getting the documented exception... Jerome On May 5, 3:47 pm, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: GAE is currently read-only for scheduled maintenance. I recommend subscribing to the google-appengine-downtime-notify group if you'd like to receive notifications of these events: http://groups.google.com/group/google-appengine-downtime-notify/brows... http://groups.google.com/group/google-appengine-downtime-notify/brows.. . Thanks, Max On Wed, May 5, 2010 at 1:41 PM, hector hrov...@gmail.com wrote: Getting this error on Java App Engine. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Open Source FullText Search in Objectify Example
Hi: Thanks for sharing your code. I try to get the source code, but get the following error: [bat...@dev2 restSearch]$ svn co http://fulltext-search-in- objectify.googlecode.com/svn/trunk/ fullTextSearch svn: PROPFIND request failed on '/svn/!svn/bln/7' svn: PROPFIND of '/svn/!svn/bln/7': 502 Bad Gateway (http://fulltext- search-in-objectify.googlecode.com) Let us know when it is fixed. Duong BaTien DBGROUPS and BudhNet On Wed, 2010-05-05 at 17:06 -0300, nicolas melendez wrote: This a migration from JDO to Objectify for the fulltext search example from this post: http://googleappengine.blogspot.com/2010/04/making-your-app- searchable-using-self.html? utm_source=feedburnerutm_medium=feedutm_campaign=Feed: +GoogleAppEngineBlog+(Google+App+Engine+Blog) The idea and CORE CODE is from: Nico Güttler, Dominic Jansen, Raphael Bauer (http://corporate.scisurfer.com/) I only MIGRATED it to OBJECTIFY Framework, thats my colaboration. Thats the open source magic :) here the url : http://code.google.com/p/fulltext-search-in-objectify/ Nicolás Meléndez -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine- j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java +unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Unable to update app: Error posting to URL: Error 500
Things are back up... We were completely down for 15 minutes following the end of the planned downtime. Jerome On May 5, 4:01 pm, Jerome jerome.mou...@gmail.com wrote: Max, the GAE team sent the notice that the maintenance has been completed, but our app is totally DOA now. Every single servlet or JSP just 500 with a: Request was aborted after waiting too long to attempt to service your request. This may happen sporadically when the App Engine serving cluster is under unexpectedly high or uneven load. If you see this message frequently, please contact the App Engine team. Jerome On May 5, 3:48 pm, Max Ross (Google) maxr+appeng...@google.com wrote: GAE is currently read-only for scheduled maintenance. I recommend subscribing to the google-appengine-downtime-notify group if you'd like to receive notifications of these events: http://groups.google.com/group/google-appengine-downtime-notify/brows... http://groups.google.com/group/google-appengine-downtime-notify/brows... Thanks, Max On Wed, May 5, 2010 at 1:45 PM, Rahul rahul.jun...@gmail.com wrote: Suddenly i have started getting the following exception exception when trying to deploy the application to appengine from eclipse. I was able to do this till 10 min before. What is the possible cause for this or there is something wrong on the server end ? com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=thoughtclic... 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 62) 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: java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/create?app_id=thoughtclic... 500 Internal Server Error Server Error (500) A server error has occurred. at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 149) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 82) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 559) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java: 376) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 111) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) ... 4 more 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. -- You received this message 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 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] Calendar API
Can someone help me get started on pulling the event data from the NFL team calendars that Google provides. I cant seem to find the call to give me a listing of the eventIds. Am I just blind? -- You received this message 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] Cursor support with JPA
I do not see any documentation regarding cursor support with JPA. Is the following code the correct way to use cursors ? In this sample code, i will retrieve users from 300 to 320 (query.setMaxResults(20); query.setFirstResult(300);) The test is OK with the Local Eclipse GAE plugin @Test public void getUsersCursorTest() { EntityManagerFactory emf = null; EntityManager em = null; emf = AppEntityManagerFactory.get(); try { em = emf.createEntityManager(); Query query = em.createNamedQuery(User.findAll); query.setMaxResults(20); query.setFirstResult(300); ListUser users = query.getResultList(); _logger.info(UsersWithMax: + users.size()); for (User user: users) { _logger.info(User: + user); } } finally { if (em != null) em.close(); } } -- You received this message 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: The API call datastore_v3.Put() is temporarily unavailable.
Hi Max, Unfortunately, we do not have any stack trace or debug left, as the logs in our AppEngine app only last for a few minutes at most before being purged. After further analysis of the communication with the backup systems, it looks like the issue for the first 10 minutes was due to a queuing on the backup, non-GAE, side of things. It looks like I jumped the guns too fast on this one, when I did not see the communication going through the backup systems during the beginning of the outage. Sorry about that. But our 15 minutes of total dead app after the downtime was real... :-) I know you are investigating this one. Thanks, Jerome On May 5, 4:02 pm, Max Ross (Google) maxr+appeng...@google.com wrote: Hi Jerome, What error were you getting instead of ApiProxy.CapabilityDisabledException? Do you have a stack trace I can look at? Thanks, Max On Wed, May 5, 2010 at 1:57 PM, Jerome jerome.mou...@gmail.com wrote: Well... based on the announcement, we were supposed to receive a com.google.apphosting.api.ApiProxy.CapabilityDisabledException exception. For at least the first 10 minutes of the down time, it was not the case. We are sorting things out, but it looks like we lost a lot of data, as our system supposed to take over during the maintenance was based on getting the documented exception... Jerome On May 5, 3:47 pm, Max Ross (Google) maxr+appeng...@google.commaxr%2bappeng...@google.com wrote: GAE is currently read-only for scheduled maintenance. I recommend subscribing to the google-appengine-downtime-notify group if you'd like to receive notifications of these events: http://groups.google.com/group/google-appengine-downtime-notify/brows... http://groups.google.com/group/google-appengine-downtime-notify/brows.. . Thanks, Max On Wed, May 5, 2010 at 1:41 PM, hector hrov...@gmail.com wrote: Getting this error on Java App Engine. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group 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] How to return entities A) with known parentKey B) with no parent?
Hello I have a structure defined solely by the keys (i.e. no field for parentKey reference), and I can't figure out how to read A) _direct_ descendant of known parentKey or B) root entities only. I have found posts asking about this but no answer... Either the responses were suggesting to add the parentKey reference (and using it in a filter) or those posts remained without a response at all. Also, if Entities Without a Filtered Property Are Never Returned by a Query, what's the propery way of reading all root entites of given kind? -- You received this message 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] Cursor support with JPA
Hi, Cursor provides a point so that query will execute after that. I don't think you can achieve the same thing with query.setFirstResult() Below is code I ran based on consulting JDO example and JPA javadocs. Hope this helps EntityManager em = ... Query query = em.createQuery(queryString); query.setMaxResults(pageSize); ListUser users = query.getResultList(); if (users.size() == pageSize) { Cursor cursor = JPACursorHelper.getCursor(users); if (cursor != null) { String cursorString = cursor.toWebSafeString(); // store cursorString for later use } } Query query = em.createQuery(queryString); // same query above query.setMaxResults(pageSize); Cursor cursor = Cursor.fromWebSafeString(cursorString); if (cursor != null) { query.setHint(JPACursorHelper.CURSOR_HINT, cursor); } ListUser users = query.getResultList(); ... On Thu, May 6, 2010 at 5:27 AM, fvisticot fvisti...@gmail.com wrote: I do not see any documentation regarding cursor support with JPA. Is the following code the correct way to use cursors ? In this sample code, i will retrieve users from 300 to 320 (query.setMaxResults(20); query.setFirstResult(300);) The test is OK with the Local Eclipse GAE plugin @Test public void getUsersCursorTest() { EntityManagerFactory emf = null; EntityManager em = null; emf = AppEntityManagerFactory.get(); try { em = emf.createEntityManager(); Query query = em.createNamedQuery(User.findAll); query.setMaxResults(20); query.setFirstResult(300); ListUser users = query.getResultList(); _logger.info(UsersWithMax: + users.size()); for (User user: users) { _logger.info(User: + user); } } finally { if (em != null) em.close(); } } -- You received this message 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] [JDO Paging] Getting a cursor BEFORE the end of results
About JDO/JPA, I tried the same thing, and Google advised to make 2 calls: the first one is your query, the second one, which is a key-only single item query so that it can be cheap, to check if more data is available. http://groups.google.com/group/google-appengine-java/browse_thread/thread/80f1a0314987f26b?pli=1 On Thu, May 6, 2010 at 12:18 AM, James jamesk...@gmail.com wrote: I'm implementing some UI paging and trying to detect whether a record exists beyond the current page (in order to show a more button). I hoped to iterate over a result set of pageSize + 1, grabbing the cursor as I pass the item @ pageSize, and then using the existence of the last item to know there's more to be shown. Unfortunately I can't find a way to accomplish this using JDO. JDOCursorHelper.getCursor(ListT) is documented to get the cursor for the last item in the list, so that works as documented but doesn't help me. JDOCursorHelper.getCursor(IteratorT) seems to be what I need, but every Iterator that I can find to pass to it causes it to return null. I've tried passing ((ListT)query.execute).iterator() as well as ((QueryResult)query.execute).iterator() and both have the same result. Anyone know if there's a not-too-kludgy way to do this w/o requerying the datastore for the additional item. Or is it easier in Objectify (I'm considering switching)? Thanks much, James -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: App Engine cold starts and overly aggressive cycling
This is quite an UGLY UGLY issue. GAEJ was working great till now. May have to start looking for alternatives. Seeing restarts within a few seconds to a few minutes of one another... 05-05 10:41PM 29.289 This request caused a new process to be started for your application, ... 05-05 10:41PM 22.310 This request caused a new process to be started for your application, ... 05-05 10:39PM 22.960 This request caused a new process to be started for your application, GWT 2.0.3, GAEJ 1.3.3, RemoteServiceServlets, Objectify 2.1. -- You received this message 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.