[appengine-java] Re: problem with jsp:include page=/WEB-INF/includes/Item1.html /
I had exactly the same problem.and I also renamed the fragments from *.html to *.jsp to make it working. The .jsp suffix is no problem for me. The J2EE documentation says about the RequestDispatcher interface (which is actually used for jsp:include and jsp:forward): This interface is intended to wrap servlets, but a servlet container can create RequestDispatcher objects to wrap any type of resource. so it is unclear whether it is a bug or feature. Vaclav On Mar 24, 9:10 pm, powell...@gmail.com powell...@gmail.com wrote: Within a jsp page, I am trying to use jsp:include page=/WEB-INF/ includes/Item1.html / . My problem is the Item1.html file is never included. It will only get included if I rename it to Item1.jsp. The include works fine in Jetty but not when deployed to appengine. I tried listing Item1.html as a resource file in the appengine-web.xml but this had no effect. Any suggestions? Dave -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: Is there any lib (UI front-end and servlet backend) for editing datastore?
Hello, I do not think a library can exist, rather a set of JSP pages or servlets. The operations you listed are exactly the operations provided by the low-level datastore API. But you forgot to mention also dynamic search operation, which is not directly provided by the API. So I created a GQL dynamic parser and a sample data viewer which you can find here: http://vaclavb.blogspot.com/2010/02/google-app-engine-data-viewer-gql-java.html Vaclav On Mar 24, 4:49 am, Trung gwtdevelo...@gmail.com wrote: Hi, Is there any lib for editing datastore? Similar to Datastore Viewer with some additional features. Editing means: + New entity: create a empty entity + Delete existing entity + Add a property to entity + Remove a property from entity + Change a property's value 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: Security Exception using Guice Servlet
I have the answer. With help from the folks at Google I was told that the underlying problem was a ClassNotFoundException for isSerializable from the GWT toolkit. This explains why my other app worked ok, because it contained the GWT jar. This also means that the true problem was being masked by the Appengine and this was the cause of my woe. Apparently very soon they will be allowing the root cause for these kinds of problems to be seen so that this masking of errors won't occur in the future. FTW! Thanks Google team, I'm happy to be moving forward again. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: cache expiration
Yes, it's the same bug. But the proposed workaround seems to be irrelevant. And, the bug is coted 'Priority-Medium' I think that such a bug on the caching mechanism in a web infrastructure is a major bug: be unable to manage the expiration delay of cached objects is a critical problem -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Slim3 1.0.0 Released
On 25 Mar 2010, at 10:09, pman wrote: I have gone thru the Slim3 document. Can we have this? @MOdel class Parent { ListChild childs = new ArrayListChild(); } @Model Child { } If so, how to get parents based on child's property in Slim3? Hi TQ, Twig supports these direct relationships like this: class Parent { ListChild children; } class Child { String someProperty; } So no need to annotate the Model. Then you find parents based on a child property like this: IteratorParent parents = datastore.find() .type(Child.class) .addFilter(someProperty, EQUAL, someValue) .returnParentsNow(); Twig is clever enough to batch get the parents using the same chunk size as the children - in this case the default is 20 at a time. http://code.google.com/p/twig-persist/ John -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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 build same entity group
for instance, you can just use a Key and reference the Person in the Telephone. you are right. and i just do it as you say. public class Telephone{ @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName=datanucleus, key=gae.encoded-pk, value=true) private String telephone_id; @Persistent private String person_id; //this field point to Person } my question is if person have telephone( telephone1,telephone2,telephone3) and user update person's telephone is telephone2,telephone3,telephone4,how to implements this? but in a same transactions , I need update 2 telephone object .--telephone1.person_id=null telephone4.person_id=person_id. and the 2 telephone object is not in same entity group. the question seem to equalhow to update multi object (same class) in same transaction? Thank you for your 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] Re: Generating Excel Sheet in Google app engine.
Yea... thanks. i am using the JExcel Api now. it works fine to generate and show excel reports. :) On Mar 24, 3:54 am, Ikai L (Google) ika...@google.com wrote: I just did a quick search and found this: http://jexcelapi.sourceforge.net Not sure if it'll work since many of the times these APIs require disk access. There's a ton more: http://www.google.com/search?rlz=1C1CHMA_enUS360US360sourceid=chrome... On Tue, Mar 23, 2010 at 12:16 AM, Amaan amaan.m...@gmail.com wrote: Hi, Can we generate excel sheets using the google app engine? I have seen some posts and support for Python but nothing on the Java side. Is it possible to generate an Excel report using the google app engine? Or shud we rely on the streams to generate a workbook. Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine- Hide quoted text - - Show quoted text - -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] performance of Task Queue Java API
My application need to create bunch of tasks to do some data processing. I've tried to prototype a small application that spawns 5000 tasks from the process initiated by cron job, but it seem like I am hitting some wall, because my test can't spawn more then 1000 tasks and it is terminated by GAE runtime after 30 seconds. Is there any known performance limitations of the Task Queue Java API or any best practices on how to spawn large number of tasks? Thanks Eugene -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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 build same entity group
As a non native English speaker also, let me guess If I got you correctly, dreamy You want to manipulate Telephone separately, independent of its-owner-to-be, so you will have a Telephone class. Similarly, you will have another class for Person. Because there're no dependency between creating of Person and Telephone, you will not need to put those in the same transaction (entity group, you thread subject was a bit confused) - just check Ikai's explanation above. Now your need to represent when user buys/exchanges some phones? Can you try this: class Person { ListKey phones; } You might need to read relationship link above for more detail. Thanks On Thu, Mar 25, 2010 at 7:24 PM, dreamy dreamy2c...@gmail.com wrote: for instance, you can just use a Key and reference the Person in the Telephone. you are right. and i just do it as you say. public class Telephone{ @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) @Extension(vendorName=datanucleus, key=gae.encoded-pk, value=true) private String telephone_id; @Persistent private String person_id; //this field point to Person } my question is if person have telephone( telephone1,telephone2,telephone3) and user update person's telephone is telephone2,telephone3,telephone4,how to implements this? but in a same transactions , I need update 2 telephone object .--telephone1.person_id=null telephone4.person_id=person_id. and the 2 telephone object is not in same entity group. the question seem to equalhow to update multi object (same class) in same transaction? Thank you for your 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.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] performance of Task Queue Java API
There is a bulk add API in the upcoming 1.3.2 release that should help with this. On Thu, Mar 25, 2010 at 9:45 AM, Eugene Kuleshov ekules...@gmail.comwrote: My application need to create bunch of tasks to do some data processing. I've tried to prototype a small application that spawns 5000 tasks from the process initiated by cron job, but it seem like I am hitting some wall, because my test can't spawn more then 1000 tasks and it is terminated by GAE runtime after 30 seconds. Is there any known performance limitations of the Task Queue Java API or any best practices on how to spawn large number of tasks? Thanks Eugene -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: Slow JDO and JPA
OK, but it does not work with GAE. My persistence.xml contains property name=javax.jdo.PersistenceManagerFactoryClass value=org.datanucleus.jdo.JDOPersistenceManagerFactory/, but following exception is thrown: javax.jdo.JDOFatalUserException: A property named javax.jdo.PersistenceManagerFactoryClass must be specified, or a jar file with a META-INF/services/javax.jdo.PersistenceManagerFactory entry must be in the classpath, or a property named javax.jdo.option.PersistenceUnitName must be specified. Is there another way to do it? Dne 24.3.2010 18:29, datanucleus napsal(a): Where can I find way to specify the class list? I have found http://www.datanucleus.org/products/accessplatform_1_0/jpa/persistenc... , but it is for persistence.xml and JPA. And this http://www.datanucleus.org/products/accessplatform_1_1/jdo/persistence_unit.html which is for JDO, and persistence.xml jdoconfig.xml doesn't define classes lists; JDO has its own auto- detaction mechanism for finding classes, utilising the positioning of package.jdo files in the CLASSPATH. persistence.xml allows you to hardcode your list of classes since JPA has no better way of doing it. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: GPE 1.3 Tutorial?
Hi Jake, If we (as the Google Plugin for Eclipse team) do an FAQ on Maven + App Engine, it would be simply describe how to get such a setup working with Eclipse. I must admit that I have not worked through all the details yet, but in theory if you have an App Engine project working with Maven, using it with the Eclipse plugin should be similar to the bottom half of the GWT+Maven FAQ I referenced earlier in this thread. The broader issue of documenting best practices for actually building App Engine projects with Maven in the first place would be better handled by the App Engine team. There appears to already be an issue related to Maven + App Engine integration: http://code.google.com/p/googleappengine/issues/detail?id=1296 Keith On Wed, Mar 24, 2010 at 1:42 PM, Jake jbrooko...@cast.org wrote: Hello, I would very much appreciate an FAQ for GAE + Maven - there are several blogs/plugins/etc that attempt to set it up in a haphazard way, but I feel like there should be a stable, Google-approved method. I personally have my own hacked together situation that works about as well as anyone has described, but it's not perfect/clean/etc. The key difficulty for me seems to be that in non-GAE projects, Eclipse/Maven can resolve dependencies in the Workspace cleanly, without running 'mvn install' on each one. I haven't found a GAE solution that does that and hoped the GPE would solve that. Thanks for the info! Jake On Mar 24, 12:34 am, jd jdpatter...@gmail.com wrote: On Mar 24, 3:53 am, Keith Platfoot kplatf...@google.com wrote: It is still possible to use the Google Plugin for Eclipse with an App Engine project, but it may require a few hacks or manual steps in order to keep the runtime WAR directory in sync with your changes. I found this Eclipse plugin, FileSync, really useful to keep /src/main/ webapp in sync with /target/myapp-deploy-dir/ http://andrei.gmxhome.de/filesync/usage.html -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: performance of Task Queue Java API
I'm doing this too. Turn that task into one that takes parameters - a start and end index. You set a threshold of the biggest number of tasks that can be kicked off in one execution. Let's say it's 50. So, you're given 1 to 5000... So, you kick off a task that spawns off new instances of itself from 1-50, 51-100, 101-150, etc. This task will do no logic but kick off tasks. If your range is less than that threshold, then you can just process them. This strategy takes a lot of work, but it's totally worth it, because you've just made your app scale better. You can now handle much more than 5,000 tasks - if your logic is clever enough, there's no limit to how big that number can be. I think I just keep dividing by 10 until I have less than 10, then process those locally. I'm excited about the 1.3.2 bulk add API - I hadn't heard of that before. On Mar 25, 10:45 am, Eugene Kuleshov ekules...@gmail.com wrote: My application need to create bunch of tasks to do some data processing. I've tried to prototype a small application that spawns 5000 tasks from the process initiated by cron job, but it seem like I am hitting some wall, because my test can't spawn more then 1000 tasks and it is terminated by GAE runtime after 30 seconds. Is there any known performance limitations of the Task Queue Java API or any best practices on how to spawn large number of tasks? Thanks Eugene -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: Slow JDO and JPA
OK, but it does not work with GAE. My persistence.xml contains property name=javax.jdo.PersistenceManagerFactoryClass value=org.datanucleus.jdo.JDOPersistenceManagerFactory/, but In GAE/J the class ought to be org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManagerFactory following exception is thrown: javax.jdo.JDOFatalUserException: A property named javax.jdo.PersistenceManagerFactoryClass must be specified, or a jar file with a META-INF/services/javax.jdo.PersistenceManagerFactory entry must be in the classpath, or a property named javax.jdo.option.PersistenceUnitName must be specified. Post the stack trace. If GAE/J doesn't support that then its a bug in GAE/J, since this is standard JDO -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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 JDO and JPA
Hmm, it does not work. BTW: The configuration (including class list) cannot be achieved using an extended variant ofhttp://db.apache.org/jdo/api20/apidocs/javax/jdo/JDOHelper.html#getPersistenceManagerFactory%28java.util.Map%29 , can be? There is the exception: 1. /test.do java.lang.ExceptionInInitializerError at com.appspot.my app name.TestController.get(TestController.java:22) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Method.java:43) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.doInvokeMethod(HandlerMethodInvoker.java:710) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java:167) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java:414) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java:402) at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:771) at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:716) at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:647) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:563) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter(ParseBlobUploadFilter.java:97) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java:35) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java:238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java:76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java:135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java:243) at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5485) at com.google.apphosting.base.RuntimePb$EvaluationRuntime$6.handleBlockingRequest(RuntimePb.java:5483) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java:24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java:398) at com.google.net.rpc.impl.Server$2.run(Server.java:852) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java:56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java:536) at com.google.net.rpc.impl.Server.startRpc(Server.java:807) at com.google.net.rpc.impl.Server.processRequest(Server.java:369) at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java:442) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java:319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java:290) at
[appengine-java] GAEJ Access to Google Calendar, How to Authenticate ?
Hi GAEJ Experts, I like to access (Read/Write) a Google Calendar from the Google App Engine. To learn how it works I have Up my Java Google App Application and on my PC a small Calendar test program. Now I need the missing link how to combine both application's. In my GAEJ servlet I get the current user with : UserService userService = UserServiceFactory.getUserService(); User user= userService.getCurrentUser(); (after successfully login ) And have access to the user Nickname, email address ... To access the calendar I need the user and password. CalendarService myService = new CalendarService( exampleCo- exampleApp-1); myService.setUserCredentials( myAccount, myPassword ); I understand that I have no access to the User Password. For this reason I think there must be a other way around to access the user calendar's. I can't believe there is no other way to access the CalendarService ? Any Idea ? Magic Cookies ? Regards Stephan -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Is it possible and proper to use Google App Engine as the platform for Twitter or Facebook?
Hi. I'm Kuwon and have a question about Google App Engine's capacity. Is it possible to use Google App Engine as the service platform for Twitter or Facebook and proper? Do they have to have their own service environment and optimize the environment because Google App Engine is very general service platform. Why I'm asking this question is that if I launch the some special SNS on Google App Engine and it became very famous service(Because have no money). And I must think about move this whole service to dedicated platform after received venture capital. thanks. PS: Please understand my bad writing in english. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] truncated logs
I'm trying to find the root cause in a exception but the stacktrace is being truncated. Is there any way I can get access to my full log entry? Thanks Alan -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] Intregrating GAE on Google Marketplace
I was just curious if anyone has tried to integrate their GAE app into Google Marketplace using the Java Step2 OpenId Library. It seems that GAE does not support the following classes: javax.net.ssl.TrustManagerFactory, javax.net.ssl.X509TrustManager, javax.net.ssl.TrustManager. The Java Step2 library includes these classes to implement Google's OpenID IdP for hosted domains. I am using Google App Engine SDK 1.3.1 and JDK 1.6. Has anyone discovered a workaround to get passed this 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.
[appengine-java] Re: java.lang.RuntimeException: Version not ready.
Hello everyone, I'm having exactly same problem today. I tried (almost :) everything: 1) deploying to original app-id failed just like this 2) I tried to deploy to other (older) app-id I had and it worked (and still works) 3) created new app with id goo-ctvolby-prod and deploy fails again and again :-/ (my colleague tried to create other app-id and tried to deploy, but it failed as well) I tried to redeploy more than 20 times with this result (one redeploy even worked for a while but stopped after couple minutes). Any idea what can I do to fix this? (log and error message isn't very helpful) Thanks for any advice! Michal On Feb 25, 2:02 am, Ikai L (Google) ika...@google.com wrote: Er, excuse me, the app-id is in the original email. In any case, please let us know if this has worked for you. On Wed, Feb 24, 2010 at 5:02 PM, Ikai L (Google) ika...@google.com wrote: I've seen this issue with certain deploys where we may not report the correct error message, but I'm assuming you wrote a simple application that wouldn't have had any of those issues. This likely coincided with a maintenance period. You should be able to deploy. If you can't, please let us know your application ID. On Wed, Feb 17, 2010 at 6:56 PM, Swiki software.wikipe...@gmail.comwrote: Hi, I just signed up for google app engine and installed the Eclipse plugin. I did not add any other code to the default app and am able to run the app in my local eclipse env without any problem. I get error while deploying the app to google server my app id is : twittermutuality Here is console output when tried second time: Compiling module test.Test Compiling 6 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compiling permutation 5... Compile of permutations succeeded Linking into C:\Workspaces\Personal\Test\war\test. Link succeeded Compilation succeeded -- 16.828s Creating staging directory Scanning for jsp files. Scanning files on local disk. Initiating update. Cloning 32 static files. Cloning 56 application files. Uploading 0 files. Initializing precompilation... Deploying new version. Will check again in 1 seconds Will check again in 2 seconds 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. Below are the 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) Any help will be appreciated. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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 http://googleappengine.blogspot.com|http://twitter.com/app_engine -- Ikai Lan Developer Programs Engineer, Google App Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] MemcacheService#grabTail
Hello, I've recently noticed that the method 'grabTail' in MemcacheService had been removed since 1.3.1. - what happened to the method? has it gone forever ? - is there any workaround to replace the method? thanks in advance. -- HIDEMOTO NAKADA -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: java.lang.RuntimeException: Version not ready.
Hello everyone, I'm having exactly same problem today. I tried (almost :) everything: 1) deploying to original app-id failed just like this 2) I tried to deploy to other (older) app-id I had and it worked (and still works) 3) created new app with id goo-ctvolby-prod and deploy fails again and again :-/ (my colleague tried to create other app-id and tried to deploy, but it failed as well) I tried to redeploy more than 20 times with this result (one redeploy even worked for a while but stopped after couple minutes). Any idea what can I do to fix this? (log and error message isn't very helpful) Thanks for any advice! Michal On Feb 25, 2:02 am, Ikai L (Google) ika...@google.com wrote: Er, excuse me, the app-id is in the original email. In any case, please let us know if this has worked for you. On Wed, Feb 24, 2010 at 5:02 PM, Ikai L (Google) ika...@google.com wrote: I've seen this issue with certain deploys where we may not report the correct error message, but I'm assuming you wrote a simple application that wouldn't have had any of those issues. This likely coincided with a maintenance period. You should be able to deploy. If you can't, please let us know your application ID. On Wed, Feb 17, 2010 at 6:56 PM, Swiki software.wikipe...@gmail.comwrote: Hi, I just signed up for google app engine and installed the Eclipse plugin. I did not add any other code to the default app and am able to run the app in my local eclipse env without any problem. I get error while deploying the app to google server my app id is : twittermutuality Here is console output when tried second time: Compiling module test.Test Compiling 6 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compiling permutation 5... Compile of permutations succeeded Linking into C:\Workspaces\Personal\Test\war\test. Link succeeded Compilation succeeded -- 16.828s Creating staging directory Scanning for jsp files. Scanning files on local disk. Initiating update. Cloning 32 static files. Cloning 56 application files. Uploading 0 files. Initializing precompilation... Deploying new version. Will check again in 1 seconds Will check again in 2 seconds 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. Below are the 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) Any help will be appreciated. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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 http://googleappengine.blogspot.com|http://twitter.com/app_engine -- Ikai Lan Developer Programs Engineer, Google App Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Intregrating GAE on Google Marketplace
Roberto, I thought the same thing, but that does not seem to be the case. Lazar On Thu, Mar 25, 2010 at 12:32 PM, Roberto Saccon rsac...@gmail.com wrote: I am also interested in this. But I have to admit that I did not even got that far, to analyze out the incompatibilities, I was assuming that step2 just runs on GAE, because the step2 example code contains some stuff which looks to me like it is meant to be deployed on GAE. On Mar 25, 10:49 am, lrkirven lrkir...@gmail.com wrote: I was just curious if anyone has tried to integrate their GAE app into Google Marketplace using the Java Step2 OpenId Library. It seems that GAE does not support the following classes: javax.net.ssl.TrustManagerFactory, javax.net.ssl.X509TrustManager, javax.net.ssl.TrustManager. The Java Step2 library includes these classes to implement Google's OpenID IdP for hosted domains. I am using Google App Engine SDK 1.3.1 and JDK 1.6. Has anyone discovered a workaround to get passed this 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Lazar Kirven http://www.linkedin.com/in/lrkirven -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: java.lang.RuntimeException: Version not ready.
Can you tell us which app ID you're unable to deploy to? On Wed, Mar 24, 2010 at 2:17 PM, Michal sra...@gmail.com wrote: Hello everyone, I'm having exactly same problem today. I tried (almost :) everything: 1) deploying to original app-id failed just like this 2) I tried to deploy to other (older) app-id I had and it worked (and still works) 3) created new app with id goo-ctvolby-prod and deploy fails again and again :-/ (my colleague tried to create other app-id and tried to deploy, but it failed as well) I tried to redeploy more than 20 times with this result (one redeploy even worked for a while but stopped after couple minutes). Any idea what can I do to fix this? (log and error message isn't very helpful) Thanks for any advice! Michal On Feb 25, 2:02 am, Ikai L (Google) ika...@google.com wrote: Er, excuse me, the app-id is in the original email. In any case, please let us know if this has worked for you. On Wed, Feb 24, 2010 at 5:02 PM, Ikai L (Google) ika...@google.com wrote: I've seen this issue with certain deploys where we may not report the correct error message, but I'm assuming you wrote a simple application that wouldn't have had any of those issues. This likely coincided with a maintenance period. You should be able to deploy. If you can't, please let us know your application ID. On Wed, Feb 17, 2010 at 6:56 PM, Swiki software.wikipe...@gmail.comwrote: Hi, I just signed up for google app engine and installed the Eclipse plugin. I did not add any other code to the default app and am able to run the app in my local eclipse env without any problem. I get error while deploying the app to google server my app id is : twittermutuality Here is console output when tried second time: Compiling module test.Test Compiling 6 permutations Compiling permutation 0... Compiling permutation 1... Compiling permutation 2... Compiling permutation 3... Compiling permutation 4... Compiling permutation 5... Compile of permutations succeeded Linking into C:\Workspaces\Personal\Test\war\test. Link succeeded Compilation succeeded -- 16.828s Creating staging directory Scanning for jsp files. Scanning files on local disk. Initiating update. Cloning 32 static files. Cloning 56 application files. Uploading 0 files. Initializing precompilation... Deploying new version. Will check again in 1 seconds Will check again in 2 seconds 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. Below are the 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) Any help will be appreciated. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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 http://googleappengine.blogspot.com|http://twitter.com/app_engine -- Ikai Lan Developer Programs Engineer, Google App Enginehttp://googleappengine.blogspot.com|http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- You received this message because you are subscribed to
Re: [appengine-java] MemcacheService#grabTail
We removed this from the documentation because it was not working, and the fix turned out to be much more involved than we had originally anticipated, so the fix isn't coming out in 1.3.2. I can't comment on whether or not it will be back. I'll have to check. You can follow the issue here: http://code.google.com/p/googleappengine/issues/detail?id=2706 On Wed, Mar 24, 2010 at 5:42 PM, Hidemoto Nakada hide-nak...@aist.go.jp wrote: Hello, I've recently noticed that the method 'grabTail' in MemcacheService had been removed since 1.3.1. - what happened to the method? has it gone forever ? - is there any workaround to replace the method? thanks in advance. -- HIDEMOTO NAKADA -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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. -- Ikai Lan Developer Programs Engineer, Google App Engine http://googleappengine.blogspot.com | http://twitter.com/app_engine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Best way to perform search on DataStore - Design Question
I am debating if I should use Compass or wait for Google to release something. I can wait for 3-4 months as my website is going to take that amount of time to complete. Niraj On Mar 16, 3:16 am, Toby toby.ro...@gmail.com wrote: I am using compass as well and it works fine. The indexing part is costly and you might need to do task queue if you reindex large amount of data. Starting the search manager is slow and it happens a lot due to the suspend policy. You can also take a look at this project:http://code.google.com/p/gaelucene/ I hope there will be a native solution by GAE one day (is there an issue to vote for?) On Mar 16, 10:21 am, yjun hu itswa...@gmail.com wrote: haha, up to now,i use compass okay! On Tue, Mar 16, 2010 at 8:53 AM, objectuser kevin.k.le...@gmail.com wrote: I think there are a lot of posts here that conclude Compass is not viable. Has that changed? On Mar 15, 12:23 am, yjun hu itswa...@gmail.com wrote: you can try compass to make you project searchable. a simple demo herehttp://hapeblog.appspot.com/blog.shtml?id=7002 On Sun, Mar 14, 2010 at 8:36 PM, John Patterson jdpatter...@gmail.com wrote: Interesting to see the existence protected Query.setFullTextSearch(String) method when you open the Query class in Eclipse. I suppose it won't be too far away. I can't wait to see if they just give us a take-it-or-leave-it solution or also the tools required to roll your own. On 14 Mar 2010, at 15:05, Robert Lancer wrote: Haha, like many of us you probably thought that GOOGLE app engine would have decent text search capabilities. It looks like your doing all you can do by creating the inverse table, you may just want to star http://code.google.com/p/googleappengine/issues/detail?id=217 On Mar 13, 8:59 pm, niraj njun...@gmail.com wrote: My case: I am building a website that has several searchable fields from various entities (example Artist names from artist entity , Album names from album entity). To have an efficient search capability I have defined another Entity - SearchType which carries the Searchable string and the Foreign key to the Entity. Instead of querying all the Entities one my one - I query SearchType. My preliminary tests indicate that the query performance on SearchType is not great (the names are indexed) . I need google suggest like quick results in a drop down. What is the best way to design this. I have considered Memcache , but I dont think I can run queries on Memcache . i.e I am running a startsWith() query on JDO today. Any best practices . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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 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%2B unsubscr...@googlegroups.com google-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java %252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Objectify-Appengine 2.1 released, supports Partial Indexes
Today we released Objectify v2.1, the latest version of our opensource replacement for JDO/JPA on the Google App Engine datastore. This version includes a major new feature, Partial Indexes. If you aren't sure what partial indexes are, the Wikipedia page (http://en.wikipedia.org/wiki/Partial_index) describes them so: A partial index, also known as filtered index is a database index which has some condition applied to it such that it only includes a portion of the rows in the table. This can allow the index to remain small even though the table may be rather large, and have fairly extreme selectivity. Here is an example of an Objectify entity using partial indexes: public class Player { @Id Long id; // Simple conditions: IfFalse, IfTrue, IfZero, IfNull, etc @Unindexed(IfFalse.class) boolean admin; // Smarter - sensitive to the actual default value @Unindexed(IfDefault.class) Team team = Team.NOTCHOSEN; // You can make your own conditions @Unindexed(IfCustomCondition.class) Status status; static class IfCustomCondition extends ValueIfStatus { public boolean matches(Status value) { return (value == Status.DEAD || value == Status.RETIRED); } } } Why should you care about optimizing indexes? All queries in the datastore require indexes, which are a sort of reverse-mapping from value to key. These indexes occupy space and consume cpu resources whenever an entity is written to the datastore. With the addition of just a few indexes, this cost quickly doubles or triples the cost of storing the original entity: * A basic entity with no indexes costs 48 api_cpu_ms to store. * Each single-property indexed field adds an additional 17 api_cpu_ms. This number appears stable and consistent; appengine seems to have a static formula for computing datastore costs. Storage size costs are harder to measure, but from watching mailing list traffic it seems quite easy to double or triple your storage size with unnecessary indexes. When should you care about optimizing indexes? * Removing unnecessary indexes will not make writes faster, it will make them /cheaper/. All indexes are written in parallel, so indexes do not add latency to writes. Instead, indexes add $ to the bill you get at the end of the week - and push you closer to your quota limits. * If your application has relatively small quantities of relatively static data, index optimization is probably pointless. On the other hand, if you have large data volumes or heavy write loads, you must carefully choose your indexes (or be very rich). Do I need partial indexes, as opposed to just declaring whole fields indexed or not? It depends on your dataset and your queries. In the Player example above, partial indexes can be extremely effective: * You only ever filter on the admin field for actual admins, and most players are not admins. * You only ever filter on the team field for players who have chosen a team, and the bulk of players are not associated with a team. * You only ever filter on the status field for players who have active statuses, and you have a large number of inactive players. Objectify's support for partial indexes also has the ability to determine index behavior based on the whole entity. This allows you to perform certain kinds of limited multiple-property queries (including double inequality queries) without creating a multi-property index. As an example, it is very easy to model this index from the Wikipedia page: create index partial_salary on employee(age) where salary 2100; An example of this is documented in the Objectify manual. Thanks, The Objectify Team Jeff, Scott, and Matt -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] Combination of two projects works on dev server, doesn't when deployed
Hi! We've developed two means of interacting with the datastore seperately- one is a flex GUI which uses GraniteDS remoting to persist to and retrieve from the datastore, the other is a java package which translates datastore information to XML and allows it to be retrieved using HTTP requests. Both work fine separately on the dev server and on the cloud (on the cloud! I still feel silly saying that). I've combined them into a single project so that they can both interact with the same datastore. This works perfectly well on the dev server but isn't too happy when deployed to App-Engine proper. I'm unable to interact with the XML/HTTP part. Obviously neither project has a setup which gives app engine indigestion, as both run happily when they're not placed together. Might anyone know of differences in the dev server which would explain this? Thanks, Luke. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] Objectify-Appengine 2.1 released, supports Partial Indexes
Hi: Congratulation and thank for tremendous efforts from the Objectify Team. By the way, has any one attempted Objectify with possible very large index of subscribers and publishers of web-hook pub-sub (Google PubSubHubbub of Atom or short message twitter style). Thanks Duong BaTien DBGROUPS and BudhNet On Thu, 2010-03-25 at 13:45 -0700, Jeff Schnitzer wrote: Today we released Objectify v2.1, the latest version of our opensource replacement for JDO/JPA on the Google App Engine datastore. This version includes a major new feature, Partial Indexes. If you aren't sure what partial indexes are, the Wikipedia page (http://en.wikipedia.org/wiki/Partial_index) describes them so: A partial index, also known as filtered index is a database index which has some condition applied to it such that it only includes a portion of the rows in the table. This can allow the index to remain small even though the table may be rather large, and have fairly extreme selectivity. Here is an example of an Objectify entity using partial indexes: public class Player { @Id Long id; // Simple conditions: IfFalse, IfTrue, IfZero, IfNull, etc @Unindexed(IfFalse.class) boolean admin; // Smarter - sensitive to the actual default value @Unindexed(IfDefault.class) Team team = Team.NOTCHOSEN; // You can make your own conditions @Unindexed(IfCustomCondition.class) Status status; static class IfCustomCondition extends ValueIfStatus { public boolean matches(Status value) { return (value == Status.DEAD || value == Status.RETIRED); } } } Why should you care about optimizing indexes? All queries in the datastore require indexes, which are a sort of reverse-mapping from value to key. These indexes occupy space and consume cpu resources whenever an entity is written to the datastore. With the addition of just a few indexes, this cost quickly doubles or triples the cost of storing the original entity: * A basic entity with no indexes costs 48 api_cpu_ms to store. * Each single-property indexed field adds an additional 17 api_cpu_ms. This number appears stable and consistent; appengine seems to have a static formula for computing datastore costs. Storage size costs are harder to measure, but from watching mailing list traffic it seems quite easy to double or triple your storage size with unnecessary indexes. When should you care about optimizing indexes? * Removing unnecessary indexes will not make writes faster, it will make them /cheaper/. All indexes are written in parallel, so indexes do not add latency to writes. Instead, indexes add $ to the bill you get at the end of the week - and push you closer to your quota limits. * If your application has relatively small quantities of relatively static data, index optimization is probably pointless. On the other hand, if you have large data volumes or heavy write loads, you must carefully choose your indexes (or be very rich). Do I need partial indexes, as opposed to just declaring whole fields indexed or not? It depends on your dataset and your queries. In the Player example above, partial indexes can be extremely effective: * You only ever filter on the admin field for actual admins, and most players are not admins. * You only ever filter on the team field for players who have chosen a team, and the bulk of players are not associated with a team. * You only ever filter on the status field for players who have active statuses, and you have a large number of inactive players. Objectify's support for partial indexes also has the ability to determine index behavior based on the whole entity. This allows you to perform certain kinds of limited multiple-property queries (including double inequality queries) without creating a multi-property index. As an example, it is very easy to model this index from the Wikipedia page: create index partial_salary on employee(age) where salary 2100; An example of this is documented in the Objectify manual. Thanks, The Objectify Team Jeff, Scott, and Matt -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] Why should app startup times be a problem.
When GAE is load balancing your app, and it decides to start up a new instance, why are they sending a client request as the first hit to your app? Unless your app is trivial, you're going to have some startup time. It's not a good job of load balancing if requests are sent to an instance that isn't even started yet. This is killing our app. The load balancer should get an HTTP 200 back from our instance before sending any real traffic that way. Am I off-base here? Is anyone else deploying an app with a rich client and a datastore back-end where this isn't a problem? I couldn't find anyone at the Server Side Java Symposium last week that was deploying to GAE. G -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Slow JDO and JPA
No available StoreManager found for the datastore URL key jdbc Since when has GAE/J been an RDBMS datastore ? Their docs state very clearly to use appengine as the DatastoreURL -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: Intregrating GAE on Google Marketplace
The appengine roadmap got updated: - Built-in support for OAuth OpenID http://code.google.com/appengine/docs/roadmap.html On Mar 25, 3:20 pm, Peter Ondruska peter.ondru...@gmail.com wrote: Well, me too :-)) I guess there is plenty of us. On 25 bře, 18:39, L. Kirven lrkir...@gmail.com wrote: Roberto, I thought the same thing, but that does not seem to be the case. Lazar On Thu, Mar 25, 2010 at 12:32 PM, Roberto Saccon rsac...@gmail.com wrote: I am also interested in this. But I have to admit that I did not even got that far, to analyze out the incompatibilities, I was assuming that step2 just runs on GAE, because the step2 example code contains some stuff which looks to me like it is meant to be deployed on GAE. On Mar 25, 10:49 am, lrkirven lrkir...@gmail.com wrote: I was just curious if anyone has tried to integrate their GAE app into Google Marketplace using the Java Step2 OpenId Library. It seems that GAE does not support the following classes: javax.net.ssl.TrustManagerFactory, javax.net.ssl.X509TrustManager, javax.net.ssl.TrustManager. The Java Step2 library includes these classes to implement Google's OpenID IdP for hosted domains. I am using Google App Engine SDK 1.3.1 and JDK 1.6. Has anyone discovered a workaround to get passed this 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.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Lazar Kirvenhttp://www.linkedin.com/in/lrkirven -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: error in the GAE/J transaction docs?
Interesting! Thanks, that's helpful. On Mar 25, 2:19 pm, Max Ross (Google) maxr+appeng...@google.com wrote: We could perhaps be a bit more precise in our language here. You can run any query you want inside a transaction but the results are only guaranteed to be transactionally consistent if the query is an ancestor query. In other words, begin/commit are no-ops for non-ancestor queries. Here's the history of it: We considered throwing an exception, but the problem was that when we first launched we didn't support transactional queries of any sort. We concluded that requiring developers to step around transactions any time they wanted to issue a query was a pretty heavy burden, so we decided to ignore active transactions for all queries. Then, once we figured out how ancestor queries could participate in a transaction, there was no way to go back because if we started throwing exceptions for non-ancestor queries in transactions existing apps would break when we pushed a new SDK to the back-ends. Hope that helps, Max -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] adding new variable to persistent class
I have a persistent class called Location, which already exists in the datastore and I'm trying to add a new variable called numCheckins. Is this possible without wiping out all the existing objects? My attempts so far have resulted in the following error whenever I try to retrieve one of the existing objects: WARNING: Error getting location from hash. Datastore entity with kind Location and key Location(1) has a null property named numCheckins. This property is mapped to is.loc.dataobjects.Location.numCheckins, which cannot accept null values. I tried giving it a default value in the definition (ie. int numCheckins = 0;) which had no effect. I tried adding the nullValue = NullValue.DEFAULT property to the @Persistent annotation, but I get a message saying default values not supported I'm still new to GAE - what is the correct way of handling this? 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: App Engine SDK 1.3.2 is out!
jgae is getting better and better. thumb up ! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] Sometime write and sabe an entity w ith JDO but same times properties are not saved.¿how can i know it?
Sometime write and sabe an entity with JDO but same times properties are not saved. I think it is about dataStore insolation, but how can i know to retry? ins't there an Exception for that cases? NM -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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.