[appengine-java] Inequality Filters seem to break offsets in low level data store API
Trying to debug why my queries with limits and offsets seem to go wonky on the 3rd or 4th call, it appears that if I take out inequality filters things get better. Can you confirm that inequality filters might break paginating techniques in App Engine DS? If this is the case, how might one paginate through large sets of entities where some need to be filtered based on not meeting equality criteria? This seems like a major downer for 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] Inverted Index
Hi guys, Since there is no full-text search available in GAE/j and I really need this for a new app I am writing I have made a prototype implementation of an inverted index using GAE store. Term is stored as a key with actual term as name in key (only key is needed) Below each term I've added document references as another key like this Term(term)/DocumentRef(10) where 10 is the internal document number. An example: Term(stuff) DocRef(1) DocRef(2) Term(more) DocRef(1) When searching for e.g. more stuff (which is boolean and) I do this: Query DocRef's from the Term with the least doc-refs (children, this info is cached) and load keys into a sorted set. Then query for doc-refs under the second term filtering from the min. doc-id in the sorted set and the max doc-id (meaning we only get possible matches in the docs we've know contains the first term. Merge sets. What do you think? Is this a fair way to implement this (working on scoring using tf-idf) and do you think its possible to get it to perform well? /Lars Borup -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] JDO: Null parent on some children objects
Hi everybody, I'm struggling with a strange problem with JDO. I've got two PersistenCapable classes, one having a Collection of objects of the second, something like this: class First { @Persistent @PrimaryKey Long id; @Persistent(mappedby=owner) ArrayListSecond list = new ArrayListSecond(); ArrayListSecond getList() { if (list == null) } ... } class Second { @Persistent @PrimaryKey Key id; @Persistent First owner; ... } In another class I need to print the owner of all my First objects, so I do: First obj = ...; ArrayListSecond list = obj.getList(); -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] JDO: Null parent on some children objects
Hi everybody, I'm struggling with a strange problem with JDO. I've got two PersistenCapable classes, one having a Collection of objects of the second, something like this: class First { @Persistent @PrimaryKey Long id; @Persistent(mappedby=owner) ArrayListSecond list = new ArrayListSecond(); ArrayListSecond getList() { if (list == null) list=new ArrayListSecond(); return list; } ... } class Second { @Persistent @PrimaryKey Key id; @Persistent First owner; First getOwner() { if (owner==null) owner = new First(); return owner; ... } In another class I need to print the owner of all my First objects, so I do: First obj = ...; ArrayListSecond list = obj.getList(); for (Second s : list) { System.out.println(s.getOwner()); } In this loop, I find some Second object having null owner, and I cannot understand why. Now I have several questions about my data modelling: 1) Do I need to mark any field with (defaultFetchGroup = true) annotation? 2) Does the check on null object (e.g. if (owner==null) owner = new First();) in the getter methods results in any strange behavior? 3) Does the assignment on definition of objects (e.g. ArrayListSecond list = new ArrayListSecond();) results in any strange behavior? 4) Do I need to add any other annotation to owner field of Second class? Thank you very much for your help!! Best regards cghersi -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] HTTPS on App Engine
Hi all, I have a question about using https on app engine. I defined a API to use services of my application from an external point. To make sure that communication is secure via https, I made the following changes in the web.xml servlet servlet-nameLoadEventAPI/servlet-name servlet-class...api.LoadEventServlet/servlet-class /servlet servlet-mapping servlet-nameLoadEventAPI/servlet-name url-pattern/load/url-pattern /servlet-mapping security-constraint web-resource-collection url-pattern/load/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint I tried it but a call via http is still possible and wil not be automatically redirected to the https protocol. Also Eclipse doesn't like the url-pattern in web-resource-collection and marks it as error. Any ideas, what I do wrong? Thanks a lot. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] HTTPS on App Engine
I tried it but a call via http is still possible and wil not be automatically redirected to the https protocol. Are you using *.appspot.com? It doesn't work for a custom domain, does it? Also Eclipse doesn't like the url-pattern in web-resource-collection and marks it as error. adding web-resource-nameasdf/web-resource-name resolved that for me security-constraint web-resource-collection web-resource-nameasdf/web-resource-name url-pattern/load/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: Using BlobService doesn't work after deployment?
Yes. On Aug 26, 4:30 am, Sree ... gattasrika...@gmail.com wrote: Thanks for clarification. *You will not be billed for low usage;* That means the 1GB of blob store will still be available for me for free right? Only beyond that 1GB i ll get charged. Am I right? On Wed, Aug 25, 2010 at 11:33 PM, Ikai L (Google) ika...@google.com wrote: Blobstore requires a billing enabled application. There is no free quota for this feature. You will not be billed for low usage; you just need to have it on. On Wed, Aug 25, 2010 at 4:35 AM, Sree ... gattasrika...@gmail.com wrote: Hi Am working on a small sample project using GWT+GAE/J, where the app allows each user to upload their own display picture. This works on local client but once I upload it to online and open the app, it shows the error message as follows Uncaught exception from servlet com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Blobstore API will be enabled for this application once billing has been enabled in the admin console. at com.google.appengine.runtime.Request.process-8a690d78b7b79704(Request.java) at com.google.net.rpc.RpcStub$RpcCallbackDispatcher$1.runInContext(RpcStub.jav a:1025) at com.google.tracing.TraceContext$TraceContextRunnable$1.run(TraceContext.jav a:448) at com.google.tracing.TraceContext.runInContext(TraceContext.java:688) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInherited ContextNoUnref(TraceContext.java:326) at com.google.tracing.TraceContext$AbstractTraceContextCallback.runInInherited Context(TraceContext.java:318) at com.google.tracing.TraceContext$TraceContextRunnable.run(TraceContext.java: 446) at com.google.net.rpc.RpcStub$RpcCallbackDispatcher.rpcFinished(RpcStub.java:1 046) at com.google.net.rpc.RPC.internalFinish(RPC.java:2038) at com.google.net.rpc.impl.RpcNetChannel.finishRpc(RpcNetChannel.java:2352) at com.google.net.rpc.impl.RpcNetChannel.messageReceived(RpcNetChannel.java:12 79) 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.j ava: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(Loopi ngEventDispatcher.java:384) Unexpected exception from servlet: com.google.apphosting.api.ApiProxy$FeatureNotEnabledException: The Blobstore API will be enabled for this application once billing has been enabled in the admin console. Is that really a limitation? There is no minimum free quota available for users? -- -Thanks -Srikanth.G -Hyderabad -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine 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%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- -Thanks -Srikanth.G -Google India Ltd -Hyderabad -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: JDO: Null parent on some children objects
Hi, i may find something here http://code.google.com/intl/en/appengine/docs/java/datastore/relationships.html []'s Diego On 26 ago, 04:42, cghersi cristiano.ghe...@gmail.com wrote: Hi everybody, I'm struggling with a strange problem with JDO. I've got two PersistenCapable classes, one having a Collection of objects of the second, something like this: class First { �...@persistent �...@primarykey Long id; �...@persistent(mappedby=owner) ArrayListSecond list = new ArrayListSecond(); ArrayListSecond getList() { if (list == null) list=new ArrayListSecond(); return list; } ... } class Second { �...@persistent �...@primarykey Key id; �...@persistent First owner; First getOwner() { if (owner==null) owner = new First(); return owner; ... } In another class I need to print the owner of all my First objects, so I do: First obj = ...; ArrayListSecond list = obj.getList(); for (Second s : list) { System.out.println(s.getOwner()); } In this loop, I find some Second object having null owner, and I cannot understand why. Now I have several questions about my data modelling: 1) Do I need to mark any field with (defaultFetchGroup = true) annotation? 2) Does the check on null object (e.g. if (owner==null) owner = new First();) in the getter methods results in any strange behavior? 3) Does the assignment on definition of objects (e.g. ArrayListSecond list = new ArrayListSecond();) results in any strange behavior? 4) Do I need to add any other annotation to owner field of Second class? Thank you very much for your help!! Best regards cghersi -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: HTTPS on App Engine
Hi, You may find something here http://code.google.com/intl/en/appengine/docs/java/config/webxml.html#Secure_URLs On 26 ago, 05:41, Shawn Brown big.coffee.lo...@gmail.com wrote: I tried it but a call via http is still possible and wil not be automatically redirected to the https protocol. Are you using *.appspot.com? It doesn't work for a custom domain, does it? Also Eclipse doesn't like the url-pattern in web-resource-collection and marks it as error. adding web-resource-nameasdf/web-resource-name resolved that for me security-constraint web-resource-collection web-resource-nameasdf/web-resource-name url-pattern/load/url-pattern /web-resource-collection user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: Datastore - Duplication in saving unowned one-to-one relationship
Hi, when object is saved using the pm.makePersistent() method, the new related child object is saved automatically. Since both objects are new, App Engine creates two new entities in the same entity group. []'s Diego On 25 ago, 20:01, Rodrigo Sol rodrigo...@gmail.com wrote: Hi, Probably this is a newbie question, but I spent a whole day searching for a solution without success. I want to create an one-to-one relationships between two entities (City and Costumer). I have a form where I create new costumers. When I save this new costumer into the datastore a new register for city is created causing one unnecessary duplication. I am using unowned relationship and my model is above: @PersistenceCapable(identityType = IdentityType.APPLICATION) Class City{ @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName=datanucleus, key=gae.encoded-pk, value=true) private String key; @Persistent private String nome; ... } @PersistenceCapable(identityType = IdentityType.APPLICATION) Class Costumer{ @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName=datanucleus, key=gae.encoded-pk, value=true) private String key; @Persistent private String cityKey; ... } And I am saving the Costumer class in this function: public void create(Costumer costumer) { PersistenceManager pm = Conn.get(); try { pm.makePersistent(costumer); } finally { pm.close(); } return errors; } So, what I am doing wrong? It seems that in owned relationships this behavior (duplicate child object) is expected, but I can not understand why it is happening here. I would be grateful if anyone could help? Thanks in advance. Rodrigo Sol -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: EL works, but eclipse underlines red, and says can't find tag library - solutions?
Cheers Sergey! Well done on the first post, it was excellent :) On Aug 13, 6:21 pm, somejava somej...@gmail.com wrote: Hi, here is the post I've made with the solutionhttp://someprog.blogspot.com/2010/08/google-app-engine-can-not-find-t Hope it will help you. br, sergey On Aug 9, 11:19 pm, Ikai L (Google) ika...@google.com wrote: You know, I've had Eclipse installed across several computers, and I'm not sure which versions run what, but I've had JSP work on about half of them. I've never looked too much into the cause. Do you have WTP installed? I want to say this should solve your issue, except I am fairly certain it works on only one of my Eclipse instances. On another note, I've always been pretty happy working with JSPs in IntelliJ IDEA and Netbeans. It's only been Eclipse that has issues. On Sun, Aug 8, 2010 at 2:28 AM, Lou lssay...@gmail.com wrote: Hello, I've got the following in my jsp in eclipse: %@ page language=java contentType=text/html; charset=ISO-8859-1 pageEncoding=ISO-8859-1 isELIgnored=false % %@ taglib uri=http://java.sun.com/jstl/core_rt; prefix=c % All the code like c:out in eclipse works, but http://java.sun.com/jstl/core_rt is underlined red, and eclipse says can not find the tag library descriptor forhttp://java.sun.com/jstl/core_rt;. I also don't get any code completion in eclipse, which I suspect is because of this. Does someone know how to make the errors go away? I'm also not sure about thehttp://java.sun.com/jstl/core_rturlas well, as I've seen some slightly different urls floating around on the internet. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine 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: JDO: Null parent on some children objects
Hi Diego, thank you but unfortunately I strictly followed what stated in that page, and the result is the problem I posted!! Any other hint? Thank you very much, Best Cghersi On 26 Ago, 16:09, Diego Fernandes penet...@gmail.com wrote: Hi, i may find something herehttp://code.google.com/intl/en/appengine/docs/java/datastore/relation... []'s Diego On 26 ago, 04:42, cghersi cristiano.ghe...@gmail.com wrote: Hi everybody, I'm struggling with a strange problem with JDO. I've got two PersistenCapable classes, one having a Collection of objects of the second, something like this: class First { �...@persistent �...@primarykey Long id; �...@persistent(mappedby=owner) ArrayListSecond list = new ArrayListSecond(); ArrayListSecond getList() { if (list == null) list=new ArrayListSecond(); return list; } ... } class Second { �...@persistent �...@primarykey Key id; �...@persistent First owner; First getOwner() { if (owner==null) owner = new First(); return owner; ... } In another class I need to print the owner of all my First objects, so I do: First obj = ...; ArrayListSecond list = obj.getList(); for (Second s : list) { System.out.println(s.getOwner()); } In this loop, I find some Second object having null owner, and I cannot understand why. Now I have several questions about my data modelling: 1) Do I need to mark any field with (defaultFetchGroup = true) annotation? 2) Does the check on null object (e.g. if (owner==null) owner = new First();) in the getter methods results in any strange behavior? 3) Does the assignment on definition of objects (e.g. ArrayListSecond list = new ArrayListSecond();) results in any strange behavior? 4) Do I need to add any other annotation to owner field of Second class? Thank you very much for your help!! Best regards cghersi -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] PNG Images are being served from getServingUrl as JPEG - Java Development Server / ImagesService - AppEngine 1.3.6
Environment: Mac OSX 10.6.4 GAE: 1.3.6, Java Development Server - I upload a PNG image to the BlobService (I verified the content_type in the BlobInfo is image/png) - I use the new ImagesService.getServingUrl(blobKey) to get a URL. (in this case http://127.0.0.1:8080/_ah/img/o0UHoh1CAz1ZaVwbSkCVMg - When navigating to http://127.0.0.1:8080/_ah/img/o0UHoh1CAz1ZaVwbSkCVMg, the image returns with a black background (or orange on Safari) - The content-type header of the response / image is returned as image/ jpeg, even though the image is a PNG - When served from my custom servlet (which uses the blobstoreService.serve(blobKey, response) call), the image is displayed correctly and the content-type is image/png. - Using the =sxxx or =sxxx-c yields the same results Is this a bug or am I missing something? Is there a URL parameter to force the content-type? (Similar to the crop and size URL parameter) Thanks, Aaron -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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 title of email displays wrongly in localization
Hello, I have a problem to dispay the title of email if it includes Chinese. I tried: [1] ... String title = 测试标题; message.setSubject(title); ... And [2] ... String title = 测试标题; title = MimeUtility.encodeText(title); message.setSubject(title); ... Both titles are displayed as ?. If the program works in Tomcat (without GAE/GWT), the 2nd is ok. Please let me know, if you have any idea to handle the title localization issue? Thanks in advance, Tony -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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 do update Statement in GQL for Java
Hi can any1 teach me how to use update statement in GQL?? thanks 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.
[appengine-java] Count sent emails per day for a domain
Hi, I thought this would be a trivial task but haven't managed to find any info on how to do it. I need to count how many emails are sent per day by users in my domain (which I of course manage through google). Btw all users use the online gmail client. Any advice appreciated. Thanks Stelios -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] GWT code splitting + I18N = too many files
Hi, we have a quite big GWT project on Java Appengine, which uses code splitting and also multiple locales. We just added another locale and now it generates so many static files (900) that it runs over the 3000 static files limit in total. Any chance this limit can be raised? What is the best solution otherwise? Serve the static files from datastore or blobstore? Or an external CDN? Thanks, Uwe Maurer -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] New version is not getting uploaded on Java GAE
Hello, Is anyone else having problems uploading new versions to google app engine? We have a java app being deployed through Eclipse on SDK 1.3.1. App name tutormapp This is what I see towards the end: Will check again in 4 seconds Will check again in 8 seconds Will check again in 16 seconds Will check again in 32 seconds Will check again in 64 seconds Will check again in 128 seconds Rolling back the update. java.lang.RuntimeException: Version not ready. Logs: Unable to update: java.lang.RuntimeException: Version not ready. at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.java: 466) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 127) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: 271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: 148) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: 38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: New version is not getting uploaded on Java GAE
Yes. Seeing the same thing today. On Aug 26, 1:29 pm, oth other...@gmail.com wrote: Hello, Is anyone else having problems uploading new versions to google app engine? We have a java app being deployed through Eclipse on SDK 1.3.1. App name tutormapp This is what I see towards the end: Will check again in 4 seconds Will check again in 8 seconds Will check again in 16 seconds Will check again in 32 seconds Will check again in 64 seconds Will check again in 128 seconds Rolling back the update. java.lang.RuntimeException: Version not ready. Logs: Unable to update: java.lang.RuntimeException: Version not ready. at com.google.appengine.tools.admin.AppVersionUpload.commit(AppVersionUpload.j ava: 466) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload .java: 127) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngin eBridgeImpl.java: 271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(De ployProjectJob.java: 148) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorksp aceJob.java: 38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] Indexes are taking forever to build today
Going on 2+ hours. Queries are running slow, code uploads are slow. Is there a system issue? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] GWT code splitting + I18N = too many files
Maybe you can create a Linker that uploads your statics files to the blobstore, and add a Filter in appengine to serve them from the there. 2010/8/26 Uwe Maurer uwe.mau...@gmail.com Hi, we have a quite big GWT project on Java Appengine, which uses code splitting and also multiple locales. We just added another locale and now it generates so many static files (900) that it runs over the 3000 static files limit in total. Any chance this limit can be raised? What is the best solution otherwise? Serve the static files from datastore or blobstore? Or an external CDN? Thanks, Uwe Maurer -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] DatastoreService.getCurrentTransaction() throws NoSuchElementException even after PersistenceManager.currentTransaction().begin()
When using JDO persistence manager to begin a transaction, DatastoreService().getCurrentTransaction() seems to fail. A unit test: -- public class TransactionTest{ private final LocalServiceTestHelper helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig()); @Before public void setUp() { helper.setUp(); } @After public void tearDown() { helper.tearDown(); } @Test public void test(){ PersistenceManager pm = PMF.get().getPersistenceManager(); Transaction tx = pm.currentTransaction(); try{ tx.begin(); DatastoreServiceFactory.getDatastoreService().getCurrentTransaction(); tx.commit(); }finally{ if(pm.currentTransaction().isActive()){ pm.currentTransaction().rollback(); } pm.close(); } } } -- The test fails with stack trace: -- java.lang.IllegalStateException: java.util.NoSuchElementException at com.google.appengine.api.datastore.TransactionStackImpl.peek(TransactionStackImpl.java: 70) at com.google.appengine.api.datastore.DatastoreServiceImpl.getCurrentTransaction(DatastoreServiceImpl.java: 307) at TransactionTest.test(TransactionTest.java:37) 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 org.junit.runners.model.FrameworkMethod $1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java: 15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java: 41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java: 20) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java: 28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java: 31) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java: 73) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java: 46) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:180) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:41) at org.junit.runners.ParentRunner$1.evaluate(ParentRunner.java:173) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java: 28) at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java: 31) at org.junit.runners.ParentRunner.run(ParentRunner.java:220) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java: 46) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java: 38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java: 467) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java: 683) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java: 390) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java: 197) Caused by: java.util.NoSuchElementException at java.util.LinkedList.getFirst(LinkedList.java:109) at com.google.appengine.api.datastore.TransactionStackImpl.peek(TransactionStackImpl.java: 68) ... 26 more -- As a result, the example shown here: http://code.google.com/appengine/docs/java/taskqueue/overview.html#Task_Within_Transactions does not work. Can someone help shade some light on what I may be missing? Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: GWT code splitting + I18N = too many files
Yes. This is what I am going to do. My plan is to: - compile GWT, collect all generated files, post them to appengine into blobstore and keep a mapping in datastore from version + filenames - blobkeys - (remove GWT files from the staging directory) - maybe combine all the class files in WEB-INF/classes into a single .jar, and remove the class files - upload the code to appengine including the new version number during request: - load the mapping for version + filenames (memcache it) - serve static files from blobstore This should also make the pushing faster, (it takes about 45 minutes with 3000 files...) Or Google could just increase that static files constant a bit to avoid all the trouble :) On Aug 26, 10:25 pm, Gal Dolber gal.dol...@gmail.com wrote: Maybe you can create a Linker that uploads your statics files to the blobstore, and add a Filter in appengine to serve them from the there. 2010/8/26 Uwe Maurer uwe.mau...@gmail.com Hi, we have a quite big GWT project on Java Appengine, which uses code splitting and also multiple locales. We just added another locale and now it generates so many static files (900) that it runs over the 3000 static files limit in total. Any chance this limit can be raised? What is the best solution otherwise? Serve the static files from datastore or blobstore? Or an external CDN? Thanks, Uwe Maurer -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] Creating a new web application on Eclipse/Tomcat
I installed Tomcat and GWT plugin on eclipse. I created a new web application project (xyzWeb). But I can't add the web application to Tomcat local server on eclipse. I go to the server view and click Add or Remove..., all I got is a popup box saying There are no resources that can be added or removed from the server.. Any help? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Not able to save child object in one-to-many relationship
I am trying to develop GAE application. I am using the latest GWT SDK(2.0.4) AND App Engine SDK(1.3.6) on Eclipse3.4. I am having problem in saving a child object Appointment and the parent object is Employee. Each Employee has many appointments and and each appointment has one employee associated with. I have pasted the Client code and the server code here. Please help and see what I am missing here. I tried many different ways without success. When I retrieve the appointments, the employee is always null. I appreciate any help or some example that I can try. Thanks. //Client code public class AppointmentCreateWidget extends Composite { private static AppointmentCreateWidgetUiBinder uiBinder = GWT .create(AppointmentCreateWidgetUiBinder.class); interface AppointmentCreateWidgetUiBinder extends UiBinderWidget, AppointmentCreateWidget { } @UiField Button btnSaveAppointment; @UiField TextBox tbxSubject; @UiField ListBox lbxRoom; @UiField ListBox lbxHost; @UiField DateBox dbAppointStartDate; @UiField DateBox dbAppointEndDate; @UiField ListBox lbxStartTimeHr; @UiField ListBox lbxEndTimeHr; @UiField ListBox lbxStartTimeMi; @UiField ListBox lbxEndTimeMi; private final AppointmentServiceAsync appointService = (AppointmentServiceAsync) GWT.create(AppointmentService.class); private final ListVisitor visitors = new ArrayListVisitor(); public AppointmentCreateWidget() { initWidget(uiBinder.createAndBindUi(this)) } @UiHandler(btnSaveAppointment) void onClick(ClickEvent e) { addAppointment(); } private void addAppointment() { String subject = tbxSubject.getText().toUpperCase().trim(); Date startdate = dbAppointStartDate.getValue(); Date enddate = dbAppointEndDate.getValue(); String starttime = lbxStartTimeHr.getValue(lbxStartTimeHr.getSelectedIndex()).toString() + lbxStartTimeMi.getValue(lbxStartTimeMi.getSelectedIndex()); String endtime = lbxEndTimeHr.getValue(lbxEndTimeHr.getSelectedIndex()).toString() + lbxEndTimeMi.getValue(lbxEndTimeMi.getSelectedIndex()); String room = lbxRoom.getValue(lbxRoom.getSelectedIndex()).toString(); String key = lbxHost.getValue(lbxHost.getSelectedIndex()); DateTimeFormat dateFormat = DateTimeFormat.getShortDateFormat(); try { createAppointment(subject, startdate, enddate, starttime, endtime, key, visitors); } catch(Exception ex) { Window.alert(Save Appointment failed: + ex.toString()); } } private void createAppointment(String subject, Date startdate, Date enddate, String starttime, String endtime, String empID, ListVisitor visitor) { appointService.addAppointment(subject,startdate, enddate, starttime, endtime, empID, visitor, new AsyncCallbackVoid() { public void onFailure(Throwable error) { Window.alert(Unable to create Appointment. + error.getMessage()); } public void onSuccess(Void ignore) { } }); } } //ServiceImpl public class AppointmentServiceImpl extends RemoteServiceServlet implements AppointmentService { /** * */ private static final long serialVersionUID = 1L; public void addAppointment(String subject, Date appointStartDate, Date appointEndDate, String startTime, String endTime, String empID, ListVisitor visitors) throws NotLoggedInException { PersistenceManager pm = getPersistenceManager(); //get employee Employee emp = pm.getObjectById(Employee.class, empID); Appointment newAppoint = new Appointment(subject, appointStartDate, appointEndDate, startTime, endTime); newAppoint.setVisitors(visitors); newAppoint.setEmployee(emp); emp.getAppointments().add(newAppoint); try { pm.makePersistent(emp); } finally { pm.close(); } } private PersistenceManager getPersistenceManager() { return PMF.get().getPersistenceManager(); } } //Employee Bean @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = true) public class Employee implements IsSerializable, IValidatable { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName=datanucleus, key=gae.encoded-pk, value=true) private String employeeKey; @NotEmpty(message=You must specify First Name) @Length(minimum=3) @Persistent private String firstName; @NotEmpty(message=You must specify Last Name) @Length(minimum=3) @Persistent private String lastName; @Persistent private String title; @NotEmpty(message=You must specify Email Address) @Length(minimum=3) @Persistent
Re: [appengine-java] How to do update Statement in GQL for Java
GQL is read only. You need to use the datastore API for write operations: http://code.google.com/appengine/docs/python/datastore/creatinggettinganddeletingdata.html On Wed, Aug 25, 2010 at 8:10 PM, TP Project TP Project tpmpproj...@gmail.com wrote: Hi can any1 teach me how to use update statement in GQL?? thanks 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.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: Inverted Index
Hi. I did something like your description. I beleive its called boolean queries on inverted index, but not sure - pretty bad knowledge of terminology. But i have many small documents (every document is just small set of movie titles), not the real big text documents. I think it works well for my case, but i still working on it. You can see what i have here: http://movieshelf.appspot.com/ . Login via google acc and click on Add link in the left panel. Don't typing in the text field, just copypaste something in it and press search button(or maybe you dont need press button - not sure). You'l see result and time spended on search. If typing in textbox result time can be wrong because i try to use some suggestion technics and actually i not sure that it works right on this moment... All search results cached, so you need enter other titles for 2nd, 3rd etc searches. In my datastore now about 300K movies, don't know how many titles total(movie can have many titles), but ~800Mb of datastore used on this moment, about 50%(according to Datastore Statistics) of it - inverted index. On Aug 26, 11:07 am, Lars Borup Jensen lbor...@gmail.com wrote: Hi guys, Since there is no full-text search available in GAE/j and I really need this for a new app I am writing I have made a prototype implementation of an inverted index using GAE store. Term is stored as a key with actual term as name in key (only key is needed) Below each term I've added document references as another key like this Term(term)/DocumentRef(10) where 10 is the internal document number. An example: Term(stuff) DocRef(1) DocRef(2) Term(more) DocRef(1) When searching for e.g. more stuff (which is boolean and) I do this: Query DocRef's from the Term with the least doc-refs (children, this info is cached) and load keys into a sorted set. Then query for doc-refs under the second term filtering from the min. doc-id in the sorted set and the max doc-id (meaning we only get possible matches in the docs we've know contains the first term. Merge sets. What do you think? Is this a fair way to implement this (working on scoring using tf-idf) and do you think its possible to get it to perform well? /Lars Borup -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] Creating unique ID for child Key with given parent Key
You might want to have a look at this: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/DatastoreService.html#allocateIds(com.google.appengine.api.datastore.Key, java.lang.String, long) You can specify a parent and allocate IDs. The only caveat is that these may not be guaranteed to be sequential: just unique. On Wed, Aug 25, 2010 at 4:24 AM, markus mar...@markuspetersen.dk wrote: Hello all! I have a datastore class User, which has a property key of type Key as its primary key. Now, I want to store objects of type Result in the datastore, as children of the User in an unowned relationship. Each result has a property key of type Key as its primary key as well. For creating the key of the child, I currently use the Key.getChild(String kind, String name) method on the parent key (see http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/Key.html#getChild%28java.lang.String,%20java.lang.String%29 ), specifically like this: Key key = user.getKey().getChild(Result.class.getSimpleName(), UUID.randomUUID().toString()); The problem is, I'm quite sure that the UUID class doesn't guarantee uniqueness in a distributed setting like GAE. Is there a way to generate a unique name here, or preferably let the datastore handle uniqueness? Like a Key.getChild(String kind) method. Regards, Markus -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: favicon.ico weirdness
The problem is that http://1or2clicks.com/favicon.ico returns a 404. For example: $ wget -S http://1or2clicks.com/favicon.ico --2010-08-27 15:39:52-- http://1or2clicks.com/favicon.ico Resolving 1or2clicks.com (1or2clicks.com)... 67.228.162.90 Connecting to 1or2clicks.com (1or2clicks.com)|67.228.162.90|:80... connected. HTTP request sent, awaiting response... HTTP/1.1 404 Not Found Date: Fri, 27 Aug 2010 05:39:52 GMT Server: Apache Content-Length: 1410 Connection: close Content-Type: text/html; charset=UTF-8 2010-08-27 15:39:52 ERROR 404: Not Found. Now, if you hit http://1or2clicks.com/favicon.ico directly in the browser, you get those 1410 bytes of HTML that look like this: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Frameset//EN http://www.w3.org/TR/html4/frameset.dtd; html head !-- page_name = /favicon.ico url =http://gae-1or2clicks.appspot.com have cache -- title1or2clicks.com/title meta HTTP-EQUIV=content-type CONTENT=text/html; charset=UTF-8 /head frameset frame marginwidth=0 marginheight=0 frameborder=0 name=TOPFRAME src=http://gae-1or2clicks.appspot.com/favicon.ico; noresize /frameset /html That is: it loads the ico into a frameset on the page. Do you see what is happening? Whatever is serving 1or2clicks.com needs to return a 302 redirect for favicon.ico instead of that wierd error page. Alternatively you should proxy through to 9.latest.gae-1or2clicks.appspot.com instead of doing wierd html-wrapping things. =Matt On Aug 25, 7:15 am, stanlick stanl...@gmail.com wrote: I am experiencing some crazy stuff with my browser icon: 1) shows up on development server 2) shows up fine once deployed and accessed fromhttp://9.latest.gae-1or2clicks.appspot.com 3) does not show up when accessed fromhttp://1or2clicks.com/ Any clues? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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.