[appengine-java] Re: Changing the Parent of a child entity
As of now I would confirm that, and of course I didn't mean new school in any sense dogmatic, it's just different ways of doing things on different platforms. I'm even going more and more towards NOT having relationship fields on GAE at all, even unowned in the JDO sense. Means not even storing keys in a field/array of the parent. We'd rather have a field like this on the child: @Persistent @Extension(vendorName=datanucleus, key=gae.parent-pk, value=true) private String parentKey; Set its parentKey explicitly and look up all children with a key query as described above. This gets rid of referential integrity hassle because you don't have to make sure the key is ALSO stored in the parents list of child keys... you just always get the actual list of keys and can be sure you've got all of them. There is more issues with JDO coming ing when removing children from lists of child objects in detached state you might want to be aware of (e.g. check out the test project here: http://code.google.com/p/datanucleus-appengine/issues/detail?id=218 ). Best, Fred On 4 Aug., 06:42, Vikas Hazrati vhazr...@gmail.com wrote: I guess that makes sense and your example is dot on. I was wondering are there real life applications on GAE where people are using JDO/JPA relationships. The more the problems that I face with relationships and the more I read about it, it seems that unowned is the way to go. Thanks, Vikas On Aug 4, 12:53 am, Frederik Pfisterer pfiste...@gmail.com wrote: There are many Use Cases where it makes sense to keep relationships or you at least want to leverage the power of entity groups even with JDO. The school-of-thought is a bit different than in other environments though. While JDO parent to child access is comfortable it makes not the best use of GAE's massive scalability and performance advantages. One example: Say you have a user and all his comments are children in his entity group. Now in an old school way you would check how many there are is user.getComments().size() ... well that works but would have to load the entire array from the store. The new school way of doing this would be running a query filtered on keys that is an order of magnitude faster:http://code.google.com/intl/de-DE/appengine/docs/java/datastore/queri... You can always retrieve the parent object (user) because its key is encoded in any of the child keys. There are many more examples where you have to think different, but in general: It makes sense to have entity groups where they persist in reality: users - comments, users - addresses, bank accounts - transactions, and so forth... Hope this helps, Fred On 3 Aug., 20:28, Vikas Hazrati vhazr...@gmail.com wrote: Hi Fred, Thanks for your response. This is what I suspected too that the entity groups might not be able to change. This actually brings me to the conclusion that we might not want to keep any owned entities at all. We are in the process of converting a legacy application to GAE and in the process we have been breaking out relationships due to multiple problems. I would write about all the problems that we faced and the workarounds and link it here. This relationship was probably one of the last bastions that we had remaining. With what you mentioned this might have to be broken too since a user can move around departments as a valid business case. So let me ask the community this question, does anyone see the benefit of maintaining relations at all? using JPA/JDO. From the complex queries that a normal web app would have you would fall into situations where you would need to use more and more of unowned relationships. Is that true? or am I missing something. Regards | Vikaswww.inphina.comwww.thoughts.inphina.com On Aug 3, 10:00 pm, Frederik Pfisterer pfiste...@gmail.com wrote: You have to use unowned relationships and not place the department and the user in the same entity group. See:http://code.google.com/intl/de-DE/appengine/docs/java/datastore/relat... use for UserDepartment: private SetKey users = new HashSetKey(); and for User: private Key userDepartmentKey; Entity groups cannot be changed once being established. If you want the relationships like you have them, you would have to change the Key of the User object (it's identity) to place it in the entity group of another department, since the department's (parent) key is part of the user key like in a path. Cheers, Fred On 3 Aug., 15:09, Vikas Hazrati vhazr...@gmail.com wrote: Oops I somehow managed to hit the submit without the full question... Apologies...Let me start again I have 2 entities UserDepartment and User, which are defined as follows @Entity public class UserDepartment extends DomainObjectLong, UserDepartment { @Id @GeneratedValue(strategy =
[appengine-java] appcfg bulkuploading Listkey values from csv
Hi, i'm trying to upload to my app an entity with a field which is a list of keys. How can i do it? I tryed to separate it with comas and wrap it with double quotes, like: key,extensions,name,number 1,34,56,John Doe,699 And the config.yml: kind: Zone connector: csv connector_options: property_map: - property: __key__ external_name: key export_transform: transform.none_if_empty(transform.key_id_or_name_as_string) - property: extensions external_name: extensions import_transform: transform.none_if_empty(transform.create_foreign_key('Extension')) export_transform: transform.key_id_or_name_as_string ... But it's interpreted like a single Key and not a list of Keys. Anybody knows? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] appcfg bulkuploading Listkey values from csv
If you use this: http://code.google.com/p/remote-datastore/ you can upload Entities in a main(String[]) using the simple low-level API. If your data is in CSV format you'll need to parse the file lines to create your Entities. On 4 Aug 2010, at 16:51, Dani wrote: Hi, i'm trying to upload to my app an entity with a field which is a list of keys. How can i do it? I tryed to separate it with comas and wrap it with double quotes, like: key,extensions,name,number 1,34,56,John Doe,699 And the config.yml: kind: Zone connector: csv connector_options: property_map: - property: __key__ external_name: key export_transform: transform.none_if_empty(transform.key_id_or_name_as_string) - property: extensions external_name: extensions import_transform: transform.none_if_empty(transform.create_foreign_key('Extension')) export_transform: transform.key_id_or_name_as_string ... But it's interpreted like a single Key and not a list of Keys. Anybody knows? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com . To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Google Web Application problem in Eclipse Helios
It may not have anything to do with your particular problem, but I was having a devil of a time getting Eclipse to recognize plug-ins consistently until I moved Eclipse to the root directory of my drive. I had been trying to run it from the Program Files (x86) folder on my Windows 7 box with bizarre results, such as having the Android preferences menu disappear after configuring the CDT plug-in. On Tue, Aug 3, 2010 at 1:00 PM, Rahul Ravikumar tikura...@gmail.com wrote: Uninstall the plug-ins and the sdk's that you have installed. From the Eclipse update site for App Engine, install the plug-in only. Download and install the SDK's separately and point your eclipse plug- in to the SDK locations on disk. On Aug 2, 2:40 pm, asfh hd.a...@gmail.com wrote: Hi, I just installed Eclipse Helios, followed by the Google plugin for eclipse with the both the GWT SDK and the GAE SDK, The installation completed successfully (I Event performed it twice), When I want to create a new Servlet (or any other JSP class such as Filter), the Create Servlet Dialog project field does not show any Google\Web Application project, but only Dynamic Web Projects, How can I fix this?? Changing to project to use project facets than adding Dynamic Web Module allows me to add Servlets etc but causes other problems since the GAE SDK isn't supposed to be used in a Dynamic Web Project (as I understand). Please Help me resolve this issue, I can't find anything regarding this error except a similar post: http://groups.google.com/group/google-appengine-java/browse_thread/th... which had no (relevant) answer. Thanks, asfh. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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. -- O pointy birds, O pointy pointy, Anoint my head, Anointy-nointy - S. Martin -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] JSF 2.0 @ManagedPoperty problem
Hello everybody, You (may) know, JSF 2.0 managed beans have a mechanism( the @ManagedProperty annotation) for dependency injection which basically provides communication between managed beans. Anyway, this mechanism works properly on my local GAE development environment, but it doesn't work on actual GAE. There's no related warning/error on logs whatsoever. Any idea ?? :) By the way, I also tried to access managed beans programmatically; same thing here, it just works locally ... 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.
Re: [appengine-java] Google Web Application problem in Eclipse Helios
Are you trying to create a new application? You can do that with the plugin under File-New-Web Application Project, which will let you choose whether or not you want to use GWT or GAE or both. (That is what the link you posted is talking about). You can use JSP on GAE (as described in the AppEngine docs herehttp://code.google.com/appengine/docs/java/gettingstarted/usingjsps.html). The easiest way to get there (get the setup, paths, etc. correct) would probably be to create a new Web Application Project (File-New-Web Application Project), uncheck Use Google Web Toolkit and check Use Google App Engine. Then follow the example in the AppEngine docs. If you use GWT, the starter web application (create new Web Application as above, but check Use Google Web Toolkit) will have an example of a servlet GWT style, using GWT RPChttp://code.google.com/webtoolkit/doc/1.6/DevGuideServerCommunication.html. This will work on AppEngine. GWT can also be used with other servlets though. kathrin On Mon, Aug 2, 2010 at 5:40 PM, asfh hd.a...@gmail.com wrote: Hi, I just installed Eclipse Helios, followed by the Google plugin for eclipse with the both the GWT SDK and the GAE SDK, The installation completed successfully (I Event performed it twice), When I want to create a new Servlet (or any other JSP class such as Filter), the Create Servlet Dialog project field does not show any Google\Web Application project, but only Dynamic Web Projects, How can I fix this?? Changing to project to use project facets than adding Dynamic Web Module allows me to add Servlets etc but causes other problems since the GAE SDK isn't supposed to be used in a Dynamic Web Project (as I understand). Please Help me resolve this issue, I can't find anything regarding this error except a similar post: http://groups.google.com/group/google-appengine-java/browse_thread/thread/b959339f0a0a3967 which had no (relevant) answer. Thanks, asfh. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] OCR on Google App Engine
Hi, I'm trying to implement the capability to text extraction from images (TIF/PDF) on Google App Engine. Has anyone had success with this? Is the best option to utilize a web service? I was able to find OCRWebService.com, but that only has a SOAP interface and not REST. I found OCR Terminal (http://www.ocrterminal.com/partnerships/api.cgi), but I'm unable to find any specifics on how it works. I have tried to use Google Docs, but the OCR engine there was unable to read any of my images. Finally, I was able to get Asprise working locally, but it is only distributed in native libraries (plus it is very expensive). Has anyone had success with 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: Error using JPA
well, i have manually copied the files to WEB-INF/lib folder. Still, the same issue. Anyway, I have now converted to JDO. Lets see what happens next. On Jul 21, 9:35 pm, Ronmell Fuentes ringe...@gmail.com wrote: It seems that when deploying the .jar file used by your application are not being uploaded to the server in GAE. so, as I alredy told you the only thing that could be causing this error (at least the one I know) is the lack of the .jar files (libraries) in the right Directory I mean, war/WEB-INF/lib/ Ronmell. 2010/7/20 Sajid smsajid...@gmail.com Hi Ronmell, I haven't run the examples. My application runs perfectly on local server. but after deployment, it gives the error. On Jul 21, 12:21 am, Ronmell Fuentes ringe...@gmail.com wrote: when running the examples you've got the same error? 2010/7/20 Sajid smsajid...@gmail.com I have already checked that. All jars are in WEB-INF lib folder. On Jul 20, 11:58 pm, Ronmell Fuentes ringe...@gmail.com wrote: Hi Sajid. Try to copy all the .jar files used by your app to the /WAR/lib directory of your app. Ronmell 2010/7/20 Sajid smsajid...@gmail.com Hi I am using spring 3, jsf2 and jpa. I load entity manager factory sing spring context xml. However, I am getting class not found error for javax.persistence.EntityManagerFactory StackTrace: # javax.servlet.ServletException: java.lang.RuntimeException: java.lang.ClassNotFoundException: javax.persistence.EntityManagerFactory at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle(AppVersionHandlerMap.java: 240) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable(RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest(JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest(JavaRuntime.java: 250) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:7115) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:7113) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest(BlockingApplicationHandler.java: 24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication(RpcUtil.java: 398) at com.google.net.rpc.impl.Server$2.run(Server.java:852) at com.google.tracing.LocalTraceSpanRunnable.run(LocalTraceSpanRunnable.java: 56) at com.google.tracing.LocalTraceSpanBuilder.internalContinueSpan(LocalTraceSpanBuilder.java: 576) at com.google.net.rpc.impl.Server.startRpc(Server.java:807) at com.google.net.rpc.impl.Server.processRequest(Server.java:369) at com.google.net.rpc.impl.ServerConnection.messageReceived(ServerConnection.java: 442) at com.google.net.rpc.impl.RpcConnection.parseMessages(RpcConnection.java: 319) at com.google.net.rpc.impl.RpcConnection.dataReceived(RpcConnection.java: 290) at com.google.net.async.Connection.handleReadEvent(Connection.java: 474) at com.google.net.async.EventDispatcher.processNetworkEvents(EventDispatcher.java: 831) at com.google.net.async.EventDispatcher.internalLoop(EventDispatcher.java: 207) at com.google.net.async.EventDispatcher.loop(EventDispatcher.java: 103) at com.google.net.rpc.RpcService.runUntilServerShutdown(RpcService.java: 251) at com.google.apphosting.runtime.JavaRuntime $RpcRunnable.run(JavaRuntime.java:417) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.RuntimeException: java.lang.ClassNotFoundException: javax.persistence.EntityManagerFactory at com.google.apphosting.runtime.jetty.SessionManager.deserialize(SessionManager.java: 389) at com.google.apphosting.runtime.jetty.SessionManager.loadSession(SessionManager.java: 307) at com.google.apphosting.runtime.jetty.SessionManager.getSession(SessionManager.java: 282) at org.mortbay.jetty.servlet.AbstractSessionManager.getHttpSession(AbstractSessionManager.java:
Re: [appengine-java] Re: Prerelease SDK 1.3.6 is out!
Hey guys, Here's a sample app that uses the namespaces feature: http://code.google.com/p/google-app-engine-samples/source/browse/#svn/trunk/gwtguestbook-namespaces/src/com/google/gwt/sample/gwtguestbook/server On Tue, Aug 3, 2010 at 2:16 PM, Mouseclicker jens.h...@googlemail.comwrote: The namespace/multi clientele sounds very exciting! However I am confused. Browsing through the javadoc (I did not try to compile yet) I find getNamespace() in Key and Entity. But I can't find a setNamespace() anywhere... neither in Key, nor in Entity, KeyFactory or DatastoreServiceFactory. Did I miss something? Is this expected to be added later? Can you shed some light on this? This is a long expected feature by many of us I guess... Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine 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] DatastoreJDOPersistenceManager serialization error
Hi, I am getting the following error: java.lang.RuntimeException: java.io.NotSerializableException: org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManager at com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java: 361) at com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession(SessionManager.java: 341) at com.google.apphosting.runtime.jetty.SessionManager $AppEngineSession.save(SessionManager.java:162) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 41) ... Any idea why this is so? I am using JSF2, Spring 3. TIA -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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: DatastoreJDOPersistenceManager serialization error
Problem solved. Did not close the persistence manager at the end. On Aug 4, 10:44 pm, Sajid smsajid...@gmail.com wrote: Hi, I am getting the following error: java.lang.RuntimeException: java.io.NotSerializableException: org.datanucleus.store.appengine.jdo.DatastoreJDOPersistenceManager at com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java: 361) at com.google.apphosting.runtime.jetty.SessionManager.createEntityForSession(SessionManager.java: 341) at com.google.apphosting.runtime.jetty.SessionManager $AppEngineSession.save(SessionManager.java:162) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter(SaveSessionFilter.java: 41) ... Any idea why this is so? I am using JSF2, Spring 3. TIA -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] Internal error when trying to send emails
Hi, I keep getting the following error when trying to send emails. Any idea as to why? What's even more worrisome is that this is also consuming my quota... Robert com.example.web.EmailController newsletterSend: Email not sent to real mail here. javax.mail.SendFailedException: MailService IO failed (java.io.IOException: Internal error) at com.google.appengine.api.mail.stdimpl.GMTransport.sendMessage(GMTransport.java: 253) at javax.mail.Transport.send(Transport.java:95) at javax.mail.Transport.send(Transport.java:48) at com.example.web.EmailController.sendMailTo(EmailController.java: 73) at com.example.EmailController.newsletterSend(EmailController.java: 168) 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(Unknown Source) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_ $1.run(Method_.java:165) at java.security.AccessController.doPrivileged(Native Method) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.privilegedInvoke(Method_.java: 163) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.invoke_(Method_.java: 124) at com.google.apphosting.runtime.security.shared.intercept.java.lang.reflect.Method_.invoke(Method_.java: 43) at org.springframework.web.bind.annotation.support.HandlerMethodInvoker.invokeHandlerMethod(HandlerMethodInvoker.java: 174) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.invokeHandlerMethod(AnnotationMethodHandlerAdapter.java: 421) at org.springframework.web.servlet.mvc.annotation.AnnotationMethodHandlerAdapter.handle(AnnotationMethodHandlerAdapter.java: 409) 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: 644) at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java: 560) 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.appengine.tools.appstats.AppstatsFilter.doFilter(AppstatsFilter.java: 111) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) 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: 250) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:7115) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:7113)
Re: [appengine-java] Google Web Application problem in Eclipse Helios
Are you trying to create a new application? You can do that with the plugin under File-New-Web Application Project, which will let you choose whether or not you want to use GWT or GAE or both. (That is what the link you posted is talking about). The specific issue raised by the original poster (I had it too) was that once you define a Google Web Application Project, it creates one servlet for you, but gives you no way to create additional servlets using the File ... New ... menu options. You can create a new class and make it into a servlet, or copy an existing servlet, but then you lose the web.xml autoconfiguration that you get when you generally create servlets in Eclipse. I haven't tried the fix described by Rahul yet. Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ http://training.figleaf.com/ Fig Leaf Software is a Veteran-Owned Small Business (VOSB) on GSA Schedule, and provides the highest caliber vendor-authorized instruction at our training centers, online, or onsite. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] Datastore.
Hello! Can we access the datastore of an applicattion out of the Google site (appengine.google.com/datastore/explorer) ? Thanks! Caram.: -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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] Datastore.
Hi, for sure. you can use tools writen in python such as: appcfg.py or bulkloader.py, they work perfectly, are useful and easy to use. Rgds. Ronmell F. 2010/8/4 Caram caram.jun...@gmail.com Hello! Can we access the datastore of an applicattion out of the Google site (appengine.google.com/datastore/explorer) ? Thanks! Caram.: -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post 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. -- ausencia de evidencia ≠ evidencia de ausencia http://culturainteractiva.blogspot.com/ -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[google-appengine] Re: Going beyond the billing-enabled quotas
Hi Nick, what do you mean with if you're reaching them legitimately or in other words: what is *not* legitimately? Best Regards Philip On 3 Aug., 17:05, Nick Johnson (Google) nick.john...@google.com wrote: Hi Matt, If you're near reaching any of the non-billed quotas, contact us, and we'll arrange to increase them. These limits are mostly in place as sanity checks, and to safeguard the system; if you're reaching them legitimately, we're more than happy to help you scale beyond them! -Nick Johnson On Tue, Aug 3, 2010 at 1:05 AM, Matt H matt2...@gmail.com wrote: Hi. What happens if I eventually reach the billing-enabled quotas and wish to scale further? For example, if I get 100 million requests per day, what would I do? I see the form to request additional quota, but I'd like some more information. If my app was genuinely receiving more than 43 million requests per day, would Google ever deny the request? How much would it cost, if anything, to go beyond these limits? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Previously attached subdomain still bound to the deleted appengine application
I think i didn't delete the app and subdomain association before disabling/deleting the application. Is there a way it could be cleared up now that the application is already deleted? anyone from Google Apps or Appengine team? Raised this issue with appengine, yet to hear from them http://code.google.com/p/googleappengine/issues/detail?id=3471 Thanks in advance. -Sumit On Jul 19, 9:47 am, Balaban Valeriu 4ikip...@gmail.com wrote: http://code.google.com/appengine/kb/adminconsole.html#delete_app http://code.google.com/appengine/kb/adminconsole.html#delete_appYou can delete your app, but App Engine provides safety measures to prevent inadvertent deletion. To delete your app, you first disable it, which stops all serving requests but leaves your data and state alone. Once your app is disabled, you can leave it that way, or you can delete it. While your app is disabled, you can still use the Administration Console to manage it. If you delete it, your data and state are destroyed and can't be restored. *Even after your application is deleted, its appid is reserved.* 2010/7/16 Sumit skbrnwl-...@yahoo.com Hi, I'd a java application on appengine that was pointing to my subdomain foo.bar.com (example domain). I found out about google apps based authentication if it is used as appengine.google.com/a/bar.com (example domain) and hence deleted the previous application. It took three days to completely remove that application and now i'm trying to attach my new application (hosted as part of google apps integration) to the same subdomain. Its complaining that my previous appengine instance (which i thought has been completely removed) is still attached with this subdomain. Now that i've no access to the deleted appengine instance, would you please suggest on how to clean this mess? I will provide details on the app_id and subdomain once i hear from you guys. Thanks, -Sumit -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Asynchronous URLfetch Google Analytics. What happens when I don't call get_result()
Hi! I'm using Google Analytics for Mobile Browsers wherein I connect with Google Analytics servers via my appengine app to track users. For performance reasons, I'm thinking of using asynchronous URLfetch to call the google analytics tracking url near the middle of my request handler code. Well, I'm not really interested in the result of that urlfetch, so I'm not interested in calling get_result(). So I don't want my app to wait for the result, and just increase the time for the user to wait. I just want it successfully called. The documentation for Asynchronous URLfetch (http://code.google.com/ appengine/docs/python/urlfetch/asynchronousrequests.html) states If the app request timer expires while the app is waiting, the call is canceled. What does it mean by the call is canceled? My current request handler usually returns within 40-70ms (without the urlfetch), and I'd like to keep it that way. I haven't tested this in production. Will this be an OK practice? Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Asynchronous URLfetch Google Analytics. What happens when I don't call get_result()
If you just want to call an url and you don't need the result, you can perform the url fetch in a task and just add that task to a queue from your request handler. On Wed, Aug 4, 2010 at 12:33 PM, Albert albertpa...@gmail.com wrote: Hi! I'm using Google Analytics for Mobile Browsers wherein I connect with Google Analytics servers via my appengine app to track users. For performance reasons, I'm thinking of using asynchronous URLfetch to call the google analytics tracking url near the middle of my request handler code. Well, I'm not really interested in the result of that urlfetch, so I'm not interested in calling get_result(). So I don't want my app to wait for the result, and just increase the time for the user to wait. I just want it successfully called. The documentation for Asynchronous URLfetch (http://code.google.com/ appengine/docs/python/urlfetch/asynchronousrequests.htmlhttp://code.google.com/%0Aappengine/docs/python/urlfetch/asynchronousrequests.html) states If the app request timer expires while the app is waiting, the call is canceled. What does it mean by the call is canceled? My current request handler usually returns within 40-70ms (without the urlfetch), and I'd like to keep it that way. I haven't tested this in production. Will this be an OK practice? Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Going beyond the billing-enabled quotas
On Wed, Aug 4, 2010 at 7:19 AM, Flips p...@script-network.com wrote: Hi Nick, what do you mean with if you're reaching them legitimately or in other words: what is *not* legitimately? Sorry, I should've been clearer. There are cases when users reach these limits accidentally or because of poorly written code. In those cases, instead of increasing the limit, we work with the user to improve their app so it's not necessary. -Nick Johnson Best Regards Philip On 3 Aug., 17:05, Nick Johnson (Google) nick.john...@google.com wrote: Hi Matt, If you're near reaching any of the non-billed quotas, contact us, and we'll arrange to increase them. These limits are mostly in place as sanity checks, and to safeguard the system; if you're reaching them legitimately, we're more than happy to help you scale beyond them! -Nick Johnson On Tue, Aug 3, 2010 at 1:05 AM, Matt H matt2...@gmail.com wrote: Hi. What happens if I eventually reach the billing-enabled quotas and wish to scale further? For example, if I get 100 million requests per day, what would I do? I see the form to request additional quota, but I'd like some more information. If my app was genuinely receiving more than 43 million requests per day, would Google ever deny the request? How much would it cost, if anything, to go beyond these limits? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com . To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com google-appengine%2bunsubscr...@googlegroups.comgoogle-appengine%252bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Going beyond the billing-enabled quotas
On Wed, Aug 4, 2010 at 6:07 PM, Geoffrey Spear geoffsp...@gmail.com wrote: On Aug 4, 2:19 am, Flips p...@script-network.com wrote: Hi Nick, what do you mean with if you're reaching them legitimately or in other words: what is *not* legitimately? Hitting your own app 43 million times because you're worried that some day you might reach the quota and you want an increase now when you get 10 visitors a day? :) Or try to port s...@home client to GAE, and use task queue to process data. Burn Google CPU hours for the sake of finding aliens! :) Just wondering if one really wants to run something like that, how would you proceed implementing it? I know step one, write to Nick to increase the quota :D -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Going beyond the billing-enabled quotas
On Wed, Aug 4, 2010 at 2:40 PM, Nick Johnson (Google) nick.john...@google.com wrote: Sorry, I should've been clearer. There are cases when users reach these limits accidentally or because of poorly written code. In those cases, instead of increasing the limit, we work with the user to improve their app so it's not necessary. -Nick Johnson That is so true. Bad code is just too common these days and it is a sad sight *1 On Wed, Aug 4, 2010 at 2:49 PM, Harshal p.hars...@gmail.com wrote: Or try to port s...@home client to GAE, and use task queue to process data. Burn Google CPU hours for the sake of finding aliens! :) Just wondering if one really wants to run something like that, how would you proceed implementing it? I know step one, write to Nick to increase the quota :D Don't need that, First implement the s...@home algorithm in python or java, then write a BOINC task fetcher in the same language, store the jobs in the blobstore, run them for a bit, regularly save process to memcache, save process to datastore from time to time. trigger continuation with the task queue. Add a cron kickstarter, just in case. Then you call google for increase. *1: My second programing language was actually assembly for Atmel's AVR, but i never leaned to use RAM (only the registers) so i learned a thing or two about sleek code. ;) --Desktop Browser Christoffer Viken / CVi i=0 str=kI4dJMtXAv0m3cUiPKx8H while i=20: if i%3 and not i%4: print str[i], i=i+1 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] How to apply my patch to SDK?
Hello! I have posted similar question many times in the different places. I believe that somebody help me in this. I have list of issues - http://code.google.com/p/googleappengine/issues/list?can=2q=reporter:anton.danilchenko Part of this issues have attached patch. But, long time I not see reply on this issues. Please, help me in this. Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] GAE/j Println and log statements not showing up in logs
I have a simple GAE Java app. The only things my logs ever show is GET requests. The Logging documentation says Everything the servlet writes to the standard output stream (System.out) and standard error stream (System.err) is captured by App Engine and recorded in the application logs But if I use System.out.println then it does not show up in the Logs under Admin-Main-Logs. Is there a special way to check this log? Likewise, I added a Logger to the project and tried that route. Nope, no log entries. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: How logging [doesnt?] work?
I had this same problem as well, but only in production. For future readers: In the admin console, you need to pick the application you are looking at AND the version you want to see. It took us quite a while to figure out there are 2(!) drop down lists to manipulate. On Jul 19, 9:40 am, l.denardo lorenzo.dena...@gmail.com wrote: The listed behavior seems to work in production only. I haven't been able to write output on standard streams in development too. Anyway you can simply log the required output with the appropriate log level, and it will be prompted to your console ifloggingproperties are correctly set. Regards Lorenzo On Jul 18, 2:03 am, kab kbo...@als.com wrote: In the doc: Java Servlet Environment Logging, this statement appears: Everything the servlet writes to the standard output stream (System.out) and standard error stream (System.err) is captured by App Engine and recorded in the application logs. Lines written to the standard output stream are logged at the INFO level, and lines written to the standard error stream are logged at the WARNING level. This isn't happening for me: none of my app's (development) System.out messages appear, even when I set the Console Main Logs severity to Debug. Note that I have alogging.properties file in WEB-INF whose content is .level = INFO and my appengine-web.xml contains system-properties property name=java.util.logging.config.file value=WEB-INF/ logging.properties/ /system-properties What am I missing here? Thanks in advance, Ken Bowen -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] google app question for a chat bot
Hi, I have some confusions with Google App which I hope by getting some comments from you regarding to the question I put here, will be eliminated. I used a tutorial from: http://gaejexperiments.wordpress.com/2009/09/25/gaej-xmpp-and-rolling-your-own-agent/ and built a simple echo-chat-bot as explained there, and deployed to my Google App account. Then I tested it with my Google Talk, and it worked as expected. Next, I used another tutorial code to connect to Google Talk first just to be sure I learned to connect to: import org.jivesoftware.smack.ConnectionConfiguration; import org.jivesoftware.smack.XMPPConnection; import org.jivesoftware.smack.XMPPException; public class ChangeStatusMsg { public void changeStatus() throws XMPPException { ConnectionConfiguration connConfig = new ConnectionConfiguration( talk.google.com, 5222, gmail.com); XMPPConnection connection = new XMPPConnection(connConfig); connection.connect(); if(connection.isConnected()) { System.out.println(Connected!); System.out.println(connection ID: + connection.getConnectionID()); } else System.out.println(NOT Conected!); } public static void main(String[] args) throws XMPPException { ChangeStatusMsg changeStatusMsg = new ChangeStatusMsg(); changeStatusMsg.changeStatus(); } } This code also worked. I got Connected!, and a connection ID: B8E524DA1A107B2E. Next I change the connection data with my echo-chat-bot to test the connection with the bot: ConnectionConfiguration connConfig = new ConnectionConfiguration( apps.google.com, 5222, mybot); //suppose my bot is installed on: mybot.appspot.com This fails :-( What is the right way to express the connection, if this is possible at all please? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] my first xmpp chat client problem
Hi, to build and test the tutorial of this book: http://eclipserpc.org I built a simple echo-chat-bot on my Google App account, to connect to it from the chat client tutorial of the book. My bot is now working by echoing whatever written to, from my GoogleTalk: coolestzab...@appspot.com. I fail with connecting the chat client of the tutorial to it. I think my problem is that I don't know how express the connection in program. Bellow I provide the problem in detail, and there all the tutorial code I used both for the server bot and the client (from the book). Please give some ideas to help to solve the issue (connection time out). The tutorial main class: public class Application implements IApplication, MessageListener { public Object start(IApplicationContext context) throws Exception { XMPPConnection con = new XMPPConnection(eclipsercp.org); try { con.connect(); con.login(reader, secret, Long.toString(System.currentTimeMillis())); Chat chat = con.getChatManager().createChat(el...@eclipsercp.org, this); chat.sendMessage(Hi There!); Thread.sleep(5000); } catch (XMPPException e) { e.printStackTrace(); } finally { con.disconnect(); } return IApplication.EXIT_OK; } //... Please tell me, if the right way is to change eclipsercp.org there for talk.google.com and the el...@eclipsercp.org with coolestzab...@appspot.com? if so points: 1. I built the Google App using the Eclipse plugin of GApp and deployed successfully, so my internet connection and Eclipse setup is correct. 2. My Google Talk connects to the bot, so connecting is also possible without problem. 3. I have no login/password authentication on the bot, but the tutorial has, well I suppose I can leave them as-is, as chat-bot just ignore them. === Complete source code I used to try Google App with XMPP: the server code (bot): package com.gaejexperiments.xmpptutorial; import java.io.IOException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import com.google.appengine.api.xmpp.*; import java.util.logging.Level; import java.util.logging.Logger; @SuppressWarnings(serial) //STEP 1 public class XMPPAgentServlet extends HttpServlet { public static final Logger _log = Logger.getLogger(XMPPAgentServlet.class.getName()); public void doPost(HttpServletRequest req, HttpServletResponse resp) throws IOException { try { String strStatus = ; XMPPService xmpp = XMPPServiceFactory.getXMPPService(); //STEP 2 Message msg = xmpp.parseMessage(req); JID fromJid = msg.getFromJid(); String body = msg.getBody(); _log.info(Received a message from + fromJid + and body = + body); //STEP 3 String msgBody = You sent me : + body + I am still learning Human created languages! Soon I'll have a better chat with you ;-); Message replyMessage = new MessageBuilder() .withRecipientJids(fromJid) .withBody(msgBody) .build(); //STEP 4 boolean messageSent = false; if (xmpp.getPresence(fromJid).isAvailable()) { SendResponse status = xmpp.sendMessage(replyMessage); messageSent = (status.getStatusMap().get(fromJid) == SendResponse.Status.SUCCESS); } //STEP 5 if (messageSent) { strStatus = Message has been sent successfully; } else { strStatus = Message could not be sent; } _log.info(strStatus); } catch (Exception e) { _log.log(Level.SEVERE,e.getMessage()); } } } //tutorial source: http://gaejexperiments.wordpress.com/2009/09/25/gaej-xmpp-and-rolling-your-own-agent/ The chat client tutorial of the book is: / *** * Copyright (c) 2005 Jean-Michel Lemieux, Jeff McAffer and others. * All rights
[google-appengine] how to select entities by no parent in gql?
Hi everybody: I dont know how to do, can anybody give me some help.thanks. -- Best regards, Forrest -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Error when deploying project to Google App Engine
I'm using netbean 6.9, JDK 1.6 When I run my project, it's ok. But when I deploying to Google App Engine, I have errors : Error Details: Aug 4, 2010 2:48:13 PM org.apache.jasper.compiler.Compiler generateClass SEVERE: Error compiling file: /C:/DOCUME~1/Computer/LOCALS~1/Temp/ appcfg7263.tmp/WEB-INF/classes/org/apache/jsp\index_jsp.java [javac] Compiling 1 source file Aug 4, 2010 2:48:13 PM org.apache.jasper.compiler.Compiler generateClass SEVERE: Javac exception Error running javac.exe compiler at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java: 473) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java: 47) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) at org.apache.jasper.compiler.Compiler.compile(Compiler.java: 472) at org.apache.jasper.JspC.processFile(JspC.java:779) at org.apache.jasper.JspC.execute(JspC.java:908) at com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java: 18) Caused by: java.io.IOException: Cannot run program javac.exe: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) 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(Unknown Source) at org.apache.tools.ant.taskdefs.Execute $Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java: 435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java: 449) at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java: 470) ... 8 more Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.init(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 18 more --- Nested Exception --- java.io.IOException: Cannot run program javac.exe: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessBuilder.start(Unknown Source) at java.lang.Runtime.exec(Unknown Source) 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(Unknown Source) at org.apache.tools.ant.taskdefs.Execute $Java13CommandLauncher.exec(Execute.java:834) at org.apache.tools.ant.taskdefs.Execute.launch(Execute.java: 435) at org.apache.tools.ant.taskdefs.Execute.execute(Execute.java: 449) at org.apache.tools.ant.taskdefs.compilers.DefaultCompilerAdapter.executeExternalCompile(DefaultCompilerAdapter.java: 470) at org.apache.tools.ant.taskdefs.compilers.JavacExternal.execute(JavacExternal.java: 47) at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:931) at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757) at org.apache.jasper.compiler.Compiler.generateClass(Compiler.java:382) at org.apache.jasper.compiler.Compiler.compile(Compiler.java: 472) at org.apache.jasper.JspC.processFile(JspC.java:779) at org.apache.jasper.JspC.execute(JspC.java:908) at com.google.appengine.tools.development.LocalJspC.main(LocalJspC.java: 18) Caused by: java.io.IOException: CreateProcess error=2, The system cannot find the file specified at java.lang.ProcessImpl.create(Native Method) at java.lang.ProcessImpl.init(Unknown Source) at java.lang.ProcessImpl.start(Unknown Source) ... 18 more Aug 4, 2010 2:48:13 PM org.apache.jasper.compiler.Compiler generateClass SEVERE: Env: Compile: javaFileName=/C:/DOCUME~1/Computer/LOCALS~1/Temp/ appcfg7263.tmp/WEB-INF/classes/org/apache/jsp\index_jsp.java classpath=/C:/appengine-java-sdk-1.3.5/lib/impl/appengine-api- labs.jar;/C:/appengine-java-sdk-1.3.5/lib/impl/appengine-api- stubs.jar;/C:/appengine-java-sdk-1.3.5/lib/impl/appengine-api.jar;/C:/ appengine-java-sdk-1.3.5/lib/impl/appengine-local-runtime.jar;C: \appengine-java-sdk-1.3.5\lib\shared\appengine-local-runtime- shared.jar;C:\appengine-java-sdk-1.3.5\lib\shared\geronimo- el_1.0_spec-1.0.1.jar;C:\appengine-java-sdk-1.3.5\lib\shared\geronimo- jsp_2.1_spec-1.0.1.jar;C:\appengine-java-sdk-1.3.5\lib\shared\geronimo-
Re: [google-appengine] how to select entities by no parent in gql?
I think this might be what you're looking for: http://code.google.com/appengine/docs/python/datastore/gqlreference.html http://code.google.com/appengine/docs/python/datastore/gqlreference.html cheers JZ On Wed, Aug 4, 2010 at 9:26 AM, Forrest Liu www.forr...@gmail.com wrote: Hi everybody: I dont know how to do, can anybody give me some help.thanks. -- Best regards, Forrest -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Unable to create new application
This form reads Having Trouble Receiving SMS Messages? That is not my issue. I have already activated my account, but since I signed up for a Gmail adress, it seems like Google automatically changed my primary mail adress to the Gmail address. On 26 Juli, 07:27, Nickolas Daskalou n...@daskalou.com wrote: Hi Daniel, Fill out the following form to be added to the waiting list: https://appengine.google.com/waitlist/sms_issues Nick On 24 July 2010 20:54, Dalla dalla_man...@hotmail.com wrote: Hi all! When first registering for App engine, I used my old email adress, which was a hotmail-account. I have since registered a new address with gmail, which is now my primary Google Accounts address. However, I´m having trouble creating new app engine applications. I created five applications with my old mail account. When trying to create a new application I´m asked to enter my phone number to verify my account. This has already been done with my old adress, so I guess this has something to do with the fact that I now have a new primary account. However, when entering my phone number, I´m told that this number has already been used to verify an account (my old address), and can´t be used again. What should I do to be able to create new applications with my new primary account? Regards, Daniel -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2Bunsubscrib e...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Handling federated login failure
Hi, I use federated login for one of my app and tested it with several OpenID providers and relaying parties. In some occasions it did not work and the browser simply receives a 204 response code which leaves the browser on the same page with no further indication of failure. Same thing when entering an invalid OpenID url. How should I do to provide my visitors with some indication of failure? Thanks, C. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Prerelease SDK 1.3.6 is out!
Just a heads up that get_url_base is now get_serving_url() (Python) and getServingUrl() (Java). This is a feature that allows you to generate a URL for images stored in the blobstore so you shouldn't have to write your own handlers for the blob data. On Tue, Aug 3, 2010 at 10:49 PM, Albert albertpa...@gmail.com wrote: Thank you :D On Aug 4, 4:07 am, Zarko eladza...@gmail.com wrote: AppEngine team, we love you ! On Aug 3, 2:40 am, Ikai L (Google) ika...@google.com wrote: Hey everybody, Just wanted to let everyone know that the prerelease SDK for 1.3.6 is out. If you're interested in downloading the SDKs, you can find them here: http://code.google.com/p/googleappengine/downloads/list Not all features that work locally in the new version are guaranteed to work in a deployed application, as these may depend on us pushing new versions of backend services. We welcome your feedback, as it helps us greatly in finding issues with the release as early as possible. Release notes are below: Python = -Multitenancy is now supported in the datastore, allowing better compartmentalization compartmentalization of user data. - Automatic image thumbnailing is now available in the Images API using get_url_base(). - Users can now serve custom static error pages for over_quota, dos_api_denial and default cases. - Results of datastore count() queries and offsets for all datastore queries are no longer capped at 1000. - Added a pause queue button to the task queue details page in the Admin Console. - Historical graphs have been added to all of the dashboard graphs in the Admin Console. - Content-range headers are supported on Blobstore downloads. - Remote API now supports the Blobstore API. - New method to allocate datastore ids in a given range: db.allocate_id_range(). - New db method is_in_transaction() determines if a transaction is still open. - Increased several rate limited quotas for free applications. - Fixed an issue in db.py where unindexed property lists for user-specified property names were ignored. - Fixed an issue where the task queue uses local time instead of UTC time to compute job ETA. http://code.google.com/p/googleappengine/issues/detail?id=2508 - Fixed an issue in the SDK with datastore cursors being too large. http://code.google.com/p/googleappengine/issues/detail?id=3152 Java = - Multitenancy is now supported in the datastore, allowing better compartmentalization of user data. - Automatic image thumbnailing is now available in the Images API using GetUrlBase. - Users can now serve custom static error pages for over_quota, dos_api_denial and default cases. - Results of datastore count() queries and offsets for all datastore queries are no longer capped at 1000. - Added a pause queue button to the task queue details page in the Admin Console. - Historical graphs have been added to all of the dashboard graphs in the Admin Console. - Content-range headers are supported on Blobstore downloads. - New method to allocate datastore ids in a given range: allocateIdRange() - The app.yaml format is supported with Java applications. - Increased several rate limited quotas for free applications. - Fixed an issue that did not allow forms of over 200,000 bytes to be submitted. http://code.google.com/p/googleappengine/issues/detail?id=1608 Happy building! -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Prerelease SDK 1.3.6 is out!
One more thing: it will be a billing-enabled feature only. On Wed, Aug 4, 2010 at 12:06 PM, Ikai L (Google) ika...@google.com wrote: Just a heads up that get_url_base is now get_serving_url() (Python) and getServingUrl() (Java). This is a feature that allows you to generate a URL for images stored in the blobstore so you shouldn't have to write your own handlers for the blob data. On Tue, Aug 3, 2010 at 10:49 PM, Albert albertpa...@gmail.com wrote: Thank you :D On Aug 4, 4:07 am, Zarko eladza...@gmail.com wrote: AppEngine team, we love you ! On Aug 3, 2:40 am, Ikai L (Google) ika...@google.com wrote: Hey everybody, Just wanted to let everyone know that the prerelease SDK for 1.3.6 is out. If you're interested in downloading the SDKs, you can find them here: http://code.google.com/p/googleappengine/downloads/list Not all features that work locally in the new version are guaranteed to work in a deployed application, as these may depend on us pushing new versions of backend services. We welcome your feedback, as it helps us greatly in finding issues with the release as early as possible. Release notes are below: Python = -Multitenancy is now supported in the datastore, allowing better compartmentalization compartmentalization of user data. - Automatic image thumbnailing is now available in the Images API using get_url_base(). - Users can now serve custom static error pages for over_quota, dos_api_denial and default cases. - Results of datastore count() queries and offsets for all datastore queries are no longer capped at 1000. - Added a pause queue button to the task queue details page in the Admin Console. - Historical graphs have been added to all of the dashboard graphs in the Admin Console. - Content-range headers are supported on Blobstore downloads. - Remote API now supports the Blobstore API. - New method to allocate datastore ids in a given range: db.allocate_id_range(). - New db method is_in_transaction() determines if a transaction is still open. - Increased several rate limited quotas for free applications. - Fixed an issue in db.py where unindexed property lists for user-specified property names were ignored. - Fixed an issue where the task queue uses local time instead of UTC time to compute job ETA. http://code.google.com/p/googleappengine/issues/detail?id=2508 - Fixed an issue in the SDK with datastore cursors being too large. http://code.google.com/p/googleappengine/issues/detail?id=3152 Java = - Multitenancy is now supported in the datastore, allowing better compartmentalization of user data. - Automatic image thumbnailing is now available in the Images API using GetUrlBase. - Users can now serve custom static error pages for over_quota, dos_api_denial and default cases. - Results of datastore count() queries and offsets for all datastore queries are no longer capped at 1000. - Added a pause queue button to the task queue details page in the Admin Console. - Historical graphs have been added to all of the dashboard graphs in the Admin Console. - Content-range headers are supported on Blobstore downloads. - New method to allocate datastore ids in a given range: allocateIdRange() - The app.yaml format is supported with Java applications. - Increased several rate limited quotas for free applications. - Fixed an issue that did not allow forms of over 200,000 bytes to be submitted. http://code.google.com/p/googleappengine/issues/detail?id=1608 Happy building! -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To
[google-appengine] Re: shifts2009.appspot.com - HTTP 404 Not found
I have no NETEX service IP Information: 84.109.9.2 ISP:Bezeq International-Ltd Organization: Bezeq International-Ltd Connection: Broadband Proxy: None Detected City: Nazareth Region: HaZafon Country:Israel israel flag tracert www.appspot.com Tracing route to appspot.l.google.com [74.125.39.141] over a maximum of 30 hops: 117 ms 8 ms14 ms 10.248.160.1 2 * 190 ms 214 ms bzq-114-65-29.static.bezeqint.net [192.114.65.29] 3 *** Request timed out. 4 120 ms82 ms82 ms bzq-219-189-169.cablep.bezeqint.net [62.219.189.169] 514 ms16 ms12 ms bzq-219-189-150.cablep.bezeqint.net [62.219.189.150] 674 ms71 ms78 ms bzq-179-124-18.static.bezeqint.net [212.179.124.18] 7 100 ms88 ms88 ms de-cix10.net.google.com [80.81.192.108] 888 ms89 ms89 ms 209.85.255.172 9 103 ms 101 ms 162 ms 209.85.248.80 1097 ms97 ms 104 ms 209.85.250.141 1195 ms97 ms97 ms 209.85.254.112 12 408 ms ** 209.85.254.134 1394 ms96 ms94 ms fx-in-f141.1e100.net [74.125.39.141] Trace complete. On Aug 4, 2:46 am, Ikai L (Google) ika...@google.com wrote: Guys, we're working on this, but I'd really appreciate if someone would provide the information I've been asking for as it would help us make our case. Please provide: 1. Your Ip address (use whatismyipaddress.com) 2. A traceroute towww.appspot.com 3. Does calling and asking to disable the Netex service resolve the issue? We need more data to expedite this. On Sun, Aug 1, 2010 at 3:21 AM, Arie Skliarouk sklia...@gmail.com wrote: I also use Bezeq Beinleuimi as my ISP and also have the same problem (both on ADSL and ATM lines). At home my ISP is Xfone and there everything works. traceroute, ping is ok If I access it usinghttps://appspot.comthen it works, so apparently the routing is correct. -- Arie -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.comgoogle-appengine%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- Ikai Lan Developer Programs Engineer, Google App Engine Blog:http://googleappengine.blogspot.com Twitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Is it really bad to define global variables?
On Jul 30, 8:47 pm, Ikai L (Google) ika...@google.com wrote: it sounded like he wanted to do it on a per query basis - and there'd be all the problems with global mutable state, concurrency, etc. Just for the sake of completeness, this case is usually implemented using a static ThreadLocal instance. But I agree that it should be avoided. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: Asynchronous URLfetch Google Analytics. What happens when I don't call get_result()
Thanks for the reply. That's a good solution to return a response ASAP. But, I'm guessing that adding the urlfetch to a task would consume extra CPU ms time. I want a solution that returns the response ASAP and, at the same time, consumes the least CPU resources. I'm assuming that the docs mean that making an asynchronous urlfetch and not calling get_result() when the app handler returns, results in the call being cancelled. What does cancel mean? Does it mean that it will never reach the analytics service? Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.