[appengine-java] Re: Set the Timezone
Is there a way to set the timezone for my application? TimeZone.setDefault(TimeZone.getTimeZone(GMT-8:00)); Have you actually *tested* this on App Engine? This should be inserted in the servlet initialization code? thank you, -g. If you use JSTL, try the following setup in web.xml: context-param param-namejavax.servlet.jsp.jstl.fmt.timeZone/param-name param-valueGMT-8:00/param-value /context-param You can change GMT-8:00 as you want. Hope this helps, Yasuo Higa -- 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: Set the Timezone
Hi George, Is there a way to set the timezone for my application? TimeZone.setDefault(TimeZone.getTimeZone(GMT-8:00)); Have you actually *tested* this on App Engine? Yes. This should be inserted in the servlet initialization code? You can insert the code when the servlet initializes as follows: @Override public void init() throws ServletException { TimeZone.setDefault(TimeZone.getTimeZone(GMT-8:00)); } When I reply something, I always try it. Hope this helps, Yasuo Higa -- 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] Data Nucleus Enhancer Exception
Hie While trying to do executeQuery i get the follow exception: SEVERE: Exception is :Persistent class Class vik.sakshum.sakshumweb.server.model.jdo.Subscribe does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output. has no table in the database, but the operation requires it. Please check the specification of the MetaData for this class. javax.jdo.JDOUserException: Persistent class Class vik.sakshum.sakshumweb.server.model.jdo.Subscribe does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output. has no table in the database, but the operation requires it. Please check the specification of the MetaData for this class. at org.datanucleus.jdo.NucleusJDOHelper.getJDOExceptionForNucleusException(NucleusJDOHelper.java:375) at org.datanucleus.jdo.JDOQuery.execute(JDOQuery.java:230) at vik.sakshum.sakshumweb.server.model.DoSubscribe.execute(DoSubscribe.java:35) at vik.sakshum.sakshumweb.server.SubscribeModule$1$2.buttonClick(SubscribeModule.java:119) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100) at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:487) at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:161) at com.vaadin.ui.AbstractComponent.fireEvent(AbstractComponent.java:1105) at com.vaadin.ui.Button.fireClick(Button.java:341) at com.vaadin.ui.Button.changeVariables(Button.java:177) at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariables(AbstractCommunicationManager.java:1058) at com.vaadin.terminal.gwt.server.AbstractCommunicationManager.doHandleUidlRequest(AbstractCommunicationManager.java:559) at com.vaadin.terminal.gwt.server.CommunicationManager.handleUidlRequest(CommunicationManager.java:260) at com.vaadin.terminal.gwt.server.AbstractApplicationServlet.service(AbstractApplicationServlet.java:438) at com.vaadin.terminal.gwt.server.GAEApplicationServlet.service(GAEApplicationServlet.java:231) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1093) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java:51) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:121) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1084) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:712) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:352) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:139) at org.mortbay.jetty.Server.handle(Server.java:313) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:506) at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:844) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:644) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:381) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:396) at org.mortbay.thread.BoundedThreadPool$PoolThread.run(BoundedThreadPool.java:442) NestedThrowablesStackTrace: Persistent class Class vik.sakshum.sakshumweb.server.model.jdo.Subscribe does not seem to have been enhanced. You may want to rerun the enhancer and check for errors in the output. has no table in the database, but the operation requires it. Please check the specification of the MetaData for this class. org.datanucleus.store.exceptions.NoTableManagedException: Persistent class Class vik.sakshum.sakshumweb.server.model.jdo.Subscribe does not seem to have been enhanced. You may want to rerun the enhancer and check
[appengine-java] Re: blobstore lucene search index
Hallo Jacek, Thank you for your mail. Can you give a bit more details about that search engine that you implemented? I would like to use lucene because I like to use their analyzers and things like levenshtein distance result ordering etc. Currently I use the compass-lucen framework that comes with a special adapter to store the index in the datastore: http://www.kimchy.org/searchable-google-appengine-with-compass/ I wonder if now the blob-store could be a better way to achieve the same goal. Cheers, Tobi On Dec 23, 3:18 pm, jacek.ambroziak jacek.ambroz...@gmail.com wrote: I have been using a search engine of my own design. I had first to adapt it to GAE by generalizing the index storage mechanism so that it can be *implemented* using files (originally the only way) or with Datastore. It was a good couple of days of work but it is not hard. On Dec 22, 6:33 pm, Toby tobias.ro...@sunnymail.mobi wrote: Hello, I think a sophisticated search api is what a lot of us are missing. I use currently the compass-lucene project but I am not completely satisfied with the performance. I think there is also the GAELucene project that uses a similar aproach. I guess the main issue was so far that you could not write the index files to a regular file system. I wonder if the new blob-store API could solve that issue and if anyone has done some experimentation with it. Cheers, Tobi -- 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: GAE roadmap for 2010
Hello, Some visibility on the roadmap would be great. I think in the last month GAE has already improved a lot. There are quite some open issues that are often listed against the use of GAE. I believe if we knew that they will be addressed at some point in time it might help. Personally I see two major things for my applications: - improve spin up or keep alive option - full fledged search I guess a good MVC framework and better Spring integration would be great as well. Cheers, Tobias On Dec 25, 5:09 am, Antoine Sabot-durand anto...@sabot-durand.net wrote: As i s'aider in m'y post this doc is not a roadmap : it stops in december 2009. Nothing in 2010. Is Thérèse an update on thé way ? On 22 déc, 23:23, Ikai L (Google) ika...@google.com wrote: The roadmap that is up right now represents our six month goals:http://code.google.com/appengine/docs/roadmap.html Beyond that, we do not even have much visibility ourselves into what we are going to work on, but as soon as we have set high level objectives, we'll communicate them with our developers. This is one of the reasons we ask everybody to create and star issues:http://code.google.com/p/googleappengine/issues/list On Tue, Dec 22, 2009 at 8:32 AM, Muz murray.bo...@gmail.com wrote: I second this request for 2010 roadmap visibility. I'm especially curious if there will be any definite plan to support multi-tenancy on GAE (beyond the current odd workaround/exception mechanisms). We have requirements for several of these to get started in Q2. Google seems to be the only cloud player to not have a long- term model for this yet. M On 20 Dec, 02:54, Antoine Sabot-durand anto...@sabot-durand.net wrote: Hi, I found the roadmap for 2009 but is there one for 2010 ? I'd like to propose my company to start developement on GAE but the lack of visibility on the platform is an issue. Will you support some of the JEE6 new standard (JSF 2, CDI, JPA 2, EJB 3.1 ?). Is the imageio issue with the JSF richfaces library will be corrected ? I saw a lot of question in the forum but few answer (or wasn't able to find them). Thanks for your answers. Antoine -- 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 -- 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: blobstore lucene search index
My search engine is a full-text proximity based engine which you can check out in action in an Android add called NewsDroid. The indexer part indexes Reuters News semi-continuously and a user searching on Android will be shown query hits in matching news where as many keywords as possible were found together. This is, btw, an XML search engine -- in addition to keywords you need to specify in which elements to search for text passages. I am currently working on another application of the engine, beyond news. The original version of the search engine used a number of files to store indexes. As I ported the system to GAE I had to figure out ways to store and use indexes stored as blobs in the Datastore. Basically, any file can be split into chunks of up to 1,000,000 bytes. Things work OK, but not great on GAE. Loading indexes into memory is taking time when servlets are restarted. On Dec 25, 7:51 am, Toby tobias.ro...@sunnymail.mobi wrote: Hallo Jacek, Thank you for your mail. Can you give a bit more details about that search engine that you implemented? I would like to use lucene because I like to use their analyzers and things like levenshtein distance result ordering etc. Currently I use the compass-lucen framework that comes with a special adapter to store the index in the datastore:http://www.kimchy.org/searchable-google-appengine-with-compass/ I wonder if now the blob-store could be a better way to achieve the same goal. Cheers, Tobi On Dec 23, 3:18 pm, jacek.ambroziak jacek.ambroz...@gmail.com wrote: I have been using a search engine of my own design. I had first to adapt it to GAE by generalizing the index storage mechanism so that it can be *implemented* using files (originally the only way) or with Datastore. It was a good couple of days of work but it is not hard. On Dec 22, 6:33 pm, Toby tobias.ro...@sunnymail.mobi wrote: Hello, I think a sophisticated search api is what a lot of us are missing. I use currently the compass-lucene project but I am not completely satisfied with the performance. I think there is also the GAELucene project that uses a similar aproach. I guess the main issue was so far that you could not write the index files to a regular file system. I wonder if the new blob-store API could solve that issue and if anyone has done some experimentation with it. Cheers, Tobi -- 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: blobstore lucene search index
My search engine is a full-text proximity based engine which you can check out in action in an Android add called NewsDroid. The indexer part indexes Reuters News semi-continuously and a user searching on Android will be shown query hits in matching news where as many keywords as possible were found together. This is, btw, an XML search engine -- in addition to keywords you need to specify in which elements to search for text passages. I am currently working on another application of the engine, beyond news. The original version of the search engine used a number of files to store indexes. As I ported the system to GAE I had to figure out ways to store and use indexes stored as blobs in the Datastore. Basically, any file can be split into chunks of up to 1,000,000 bytes. Things work OK, but not great on GAE. Loading indexes into memory is taking time when servlets are restarted. On Dec 25, 7:51 am, Toby tobias.ro...@sunnymail.mobi wrote: Hallo Jacek, Thank you for your mail. Can you give a bit more details about that search engine that you implemented? I would like to use lucene because I like to use their analyzers and things like levenshtein distance result ordering etc. Currently I use the compass-lucen framework that comes with a special adapter to store the index in the datastore:http://www.kimchy.org/searchable-google-appengine-with-compass/ I wonder if now the blob-store could be a better way to achieve the same goal. Cheers, Tobi On Dec 23, 3:18 pm, jacek.ambroziak jacek.ambroz...@gmail.com wrote: I have been using a search engine of my own design. I had first to adapt it to GAE by generalizing the index storage mechanism so that it can be *implemented* using files (originally the only way) or with Datastore. It was a good couple of days of work but it is not hard. On Dec 22, 6:33 pm, Toby tobias.ro...@sunnymail.mobi wrote: Hello, I think a sophisticated search api is what a lot of us are missing. I use currently the compass-lucene project but I am not completely satisfied with the performance. I think there is also the GAELucene project that uses a similar aproach. I guess the main issue was so far that you could not write the index files to a regular file system. I wonder if the new blob-store API could solve that issue and if anyone has done some experimentation with it. Cheers, Tobi -- 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] java.util.Timer is in the white list but you can't use it
Hi ppl, please explain me. Maybe I'm kinda stupid but we have java.util.Timer class in the white list. But actually you can't use this class since GAE forbids threads instantiation. Now a simple straightforward question: why the heck the class is in the whitelist? Just for fun? Regards, Alex -- 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] guestbook problem...
Hi, I am new to this group and to googleapp also.. i tried it turorial of Guestbook.. It is running sucessfully in the eclipse rather its output is not coming .. as i open the localhost but the page is not appearing...Please help me out -- 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] Can we deploy Axis WebServices on Google App Engine
Can we deploy Axis webservices on Google App Engine? I'm getting below exeception when I'm tesing in my developement environment the URL : http://localhost:8080/services/Version?wsdl Sorry, something seems to have gone wrong... here are the details: Fault - ; nested exception is: java.security.AccessControlException: access denied (java.io.FilePermission C:\Softwares\jdk1.6.0\jre\lib\wsdl.properties read) AxisFault faultCode: {http://schemas.xmlsoap.org/soap/envelope/} Server.userException faultSubcode: faultString: java.security.AccessControlException: access denied (java.io.FilePermission C:\Softwares\jdk1.6.0\jre\lib\wsdl.properties read) faultActor: faultNode: faultDetail: {http://xml.apache.org/axis/}hostname:localhost -- 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] mail message
Hi , i ma tring to send mail with google app engine with java my code : Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); String msgBody = test; try { Message msg = new MimeMessage(session); try { msg.setFrom(new InternetAddress(nidadavolu.ven...@gmail.com, Example.com Admin)); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { msg.addRecipient(Message.RecipientType.TO, new InternetAddress(nidadavolu.ven...@gmail.com , Mr. User)); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } msg.setSubject(Your Example.com account has been activated); msg.setText(msgBody); Transport.send(msg); } catch (AddressException e) { // ... } catch (MessagingException e) { // ... } but i didn't get any error , but we are not receaving mail 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] JDK 1.7 in Google App Engine (GAE)
Hi, May I know is there any plan or timeline for GAE to support JDK 1.7? Thank you. Chee Kin -- 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: problem in retrieving arraylist from database
use this @Persistent(defaultFetchGroup=true) ArrayListString listval= new ArrayListString(); i guess this ll solve ur problem try u read about fetchgroup for a better understanding -- 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] Eclipse AppEngine Plugin
I have recently upgraded eclipse to Galileo. Previously, with Ganymede, I had no problems running an app locally using the Google Appengine plugin. I now cannot run Appengine code (run as ...Google Web App). I get an exception 'javax.xml.parsers.FactoryConfigurationError: Provider oracle.xml.jaxp.JXDocumentBuilderFactory not found' I have now also tried running my Ganymede installation and that falls over during a build with the same message. Could this be related to the Eclipse upgrade? Regards Kevin -- 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] Clear particular session manually
I need to clear a session manually from a servlet which has only the id of the session which needs to be cleared (long story short this is to overcome some limitation with flash not supporting cookies). I need to delete both the session from datastore and memcache. How can this be done ? (is the name of the entity in _ah_session table the id of the session ? ) What is the key of the particular session for memcache ? can it be derived from the session id ? -- 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: mail message
Hi, I tested the source code that you had contributed. It seems to operate normally. I think that the setting or the environment in the mail address is a cause. Follow this thread: http://groups.google.com/group/google-appengine/browse_thread/thread/fdfdafa51ef140fc/97d7c0492c2270bb?lnk=gstq=seleronm#97d7c0492c2270bb Please Try. thanks. On 12月24日, 午後4:34, venkat satyanarayana nidadavolu.ven...@gmail.com wrote: Hi , i ma tring to send mail with google app engine with java my code : Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); String msgBody = test; try { Message msg = new MimeMessage(session); try { msg.setFrom(new InternetAddress(nidadavolu.ven...@gmail.com, Example.com Admin)); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } try { msg.addRecipient(Message.RecipientType.TO, new InternetAddress(nidadavolu.ven...@gmail.com , Mr. User)); } catch (UnsupportedEncodingException e) { // TODO Auto-generated catch block e.printStackTrace(); } msg.setSubject(Your Example.com account has been activated); msg.setText(msgBody); Transport.send(msg); } catch (AddressException e) { // ... } catch (MessagingException e) { // ... } but i didn't get any error , but we are not receaving mail thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Relational Table using JDO
You can do some sort of relational mappings between entities but not to the full extend like RDBMS. Have you worked through the examples in http://code.google.com/appengine/docs/java/datastore/ yet? On Fri, Dec 25, 2009 at 9:36 PM, TiagoP pix...@gmail.com wrote: Hi all, I have a simple doubt that I would like to see explained. I know a bit of relational databases but I don't understand how I can do the same using JDO. As for example, I have a table users-plans which combines the table user to the table plans. In table plans I have all the plans and I just match it to the user in a middle table. Could someone explain how this would work in GAE? Thanks and Merry Christmas! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Regards, Michael Hoi Sang Chan MSc Advanced Software Engineering Department of Computer Science King's College London Strand, LONDON WC2R 2LS Tel: +447881900965 -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [google-appengine] Cron jobs fail with error Request was aborted after waiting too long to attempt to service your request.
*PING* -- 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: cannot import name signals
Same problem here: I use Django 1.0 and randomly get 500 errors mentioning cannot import name signals in the logs. On Dec 2, 11:46 pm, Koen Bok k...@madebysofa.com wrote: I'm getting lots of these suddenly. I had them a few months ago too, but didn't see them in a while. I use the appengine django 1.0. Anyone else having this too? Koen -- 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] No source code is available for type...;
Hi. As i have previously mentioned, i am a noob at GAE and GWT. Here is the thing. I had some training project, in which i wrote a composite widget i quite like. Then i created a project that i intend to turn into something meaningful, in which i wanted to use that composite widget, so in Eclipse i dragged the package with that widget from the first project to the second one, changed the package declarations in its classes to reflect its new location, and tried to initialize that widget in that new project the same way i did (or so it seems) in the trial project. And i did import that widget's package. However, when i try to compile the new project, the compilation fails, and i get the following error message: [ERROR] Errors in 'file:/Users/dtv/Documents/workspace/c-bay/src/ur/g05/smc/client/NewPageForm.java' [ERROR] Line 40: No source code is available for type ur.g05.smc.widgets.RichTextAreaWithFormatPanel; did you forget to inherit a required module? Again, the class declaration does exist in that package. And i can almost swear there were no .xml files relating to the RichTextAreaWithFormatPanel in the first project. In other words, it seems that everything is the same, but it doesn't work. Is there something i miss? Thank you in advance -- Best Regards, Timofey Danshin. -- 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: 188MB entities, 1GB data used?
Hi, second try :-). My records with text fields now converted. Total Stored Data94% 0.94 of 1.00 GBytesLimited Last updatedTotal number of entitiesSize of all entities 1:59:47 ago 187,428 93 MBytes Property Type Size Integer 35 MBytes Date/Time16 MBytes String 18 KBytes Metadata 42 MBytes and only 6 indexes. Entity and Indexes Status MarketHistoryBuy typeID ▲ , solarSystemID ▲ , date ▼ Serving MarketHistorySell typeID ▲ , solarSystemID ▲ , date ▼ Serving MarketStatsBuy solarSystemID ▲ , typeID ▲ Serving typeID ▲ , solarSystemID ▲ Serving MarketStatsSell solarSystemID ▲ , typeID ▲ Serving typeID ▲ , solarSystemID ▲ Serving I can delete it all, if it can help. Please help. On 23 дек, 12:35, chemo...@gmail.com chemo...@gmail.com wrote: Hi. I have the same issue. Fromstatistic: Last updated Total number of entities Size of all entities 3:56:43 ago 140,994 260 MBytes But inquote: Total Stored Data 96% 0.96 of 1.00 GBytes In cron I move data (with deletion) from table with text fields, sorted by key (no special and witout indexes) to 4 tables with smollest size of the data. Source table: Total Number of Mail Entities: Average Size of Entity: 436 411 KBytes Property Type Size body Text 175 MBytes (100% of the entity) date String 21 KBytes (0% of the entity) sender String 20 KBytes (0% of the entity) subject String 15 KBytes (0% of the entity) added_on Date/Time 11 KBytes (0% of the entity) Metadata 26 KBytes (0% of the entity) Result tables: Total Number of MarketHistoryBuy Entities: Average Size of Entity: 34,578 699 Bytes Total Number of MarketHistorySell Entities: Average Size of Entity: 43,494 706 Bytes Total Number of MarketStatsBuy Entities: Average Size of Entity: 27,028 543 Bytes Total Number of MarketStatsSell Entities: Average Size of Entity: 35,205 549 Bytes inserted and searched by key Total indexes: Entity and Indexes Status MarketStatsBuy solarSystemID ▲ , typeID ▲ Serving typeID ▲ , solarSystemID ▲ Serving MarketStatsSell solarSystemID ▲ , typeID ▲ Serving typeID ▲ , solarSystemID ▲ Serving (I've deleted all other indexes hour or two earlyer. Data amount instatisticdecreased day to day, but inquote- increased. On 16 дек, 14:15, Nick Johnson (Google) nick.john...@google.com wrote: -- Nick Johnson, Developer Programs Engineer, App Engine 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] API cost measurements for simple transactions
Recently I profiled App Engine Data Store Operations with AppWrench Java Console. Results was very repeatable and it inspired me to build simple empirical math model for calculating API cost of data store operations. According to my measurements the cost of basic operations is following: Get: costs 10 API megacycles per entity and this cost does not depends from entity size. Query: costs 11-13 API megacycles per entity and this cost nearly does not depends from result set size. (there is small cost(~20) when query returns now results. Put: costs 48 API megacycles - per entity if transaction is started (does not depends from entity size). If transaction is not used then you should add cost of 'Commit' to cost of 'Put' to get right value. Commit: costs 48 API megacycles - per changed or created entity + (20-40 megacycles for each changed indexed property value). I am planning to research this more but rough estimation is that formula for commit costs is: 48*n +f(n)*20*k*n where n is number of changed or created entities and k is a number of changed indexed properties. Each value in list property is threaded as separate changed indexed property value. Delete: 0 API megacycles per entity (in other words delete is free) So my initial rough conclusions are: * API cost is ~ entity count * API cost does not depends from entity size * API cost of storing data is ~number of changed indexed property values. * Deleting entities is free Does any body else tried to measure/analyze cost of data store operations? Is there any official guide to predicting/estimating API cost, for particulate queries? Thanks in advance, Pavel -- 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: Integrating websockets with appengine applications
It is a very interesting concept. You could set up a public server for people to connect alert bots from app engine to client apps so we don't have to do the plumbing. Just send a signal from app engine to the proxy and then relaying it to the client. From GAE/myapp call yourproxy.com/myalertbot yourproxy broadcasts a signal to every client listening to myalertbot every client listening to ws:yourproxy.com can now go to GAE/myapp to get more data For example, say I publish a new entry on my GAE/blog, it then sends a signal to your public proxy which relays it to every client so they can come get the entry. Just a thought while we get websockets support in GAE On Dec 24, 10:07 am, Takashi Matsuo matsuo.taka...@gmail.com wrote: Hi, Let me share my trial implementation with you.http://takashi-matsuo.blogspot.com/2009/12/integrating-websockets-wit... Recently, not quite a few people asked about how to use websockets on appengine. IMHO, current appengine itself is not so suitable for those architecture(pseudo server push) because of its 30 seconds request limit. So, I tried it with an external websockets server. Could anyone tell me what do you think? TIA -- Takashi Matsuo Kay's daddy -- 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] Am I doing this right? ( with webapp )
Hi all, am wondering if I'm doing this right. I want to split a huge py file into ten parts ( or controllers, if you will). The reason being it's neat, each part will serve a certain function. But I worry if I am taxing the app engine server bcos the imports in each part are repetitive. *app.yaml* handlers: - url: /part1 script: controllers/part1.py - url: /part2 script: controllers/part2.py # this goes on until part10.py *part1py (this is the entry point of the application)* # all required imports ( about 20 imports, some from app engine, some from external libs ) class Part1(webapp.RequestHandler): # a lot of code here # point to template path = os.path.join(os.path.dirname(__file__), 'templates/ part1.html') template_values = { 'variable ':variable } # render template self.response.out.write(template.render(path, template_values)) # the standard WSGI calls application = webapp.WSGIApplication([('/part1', Part1)],debug=True) def main(): run_wsgi_app(application) if __name__ == __main__: main() *** for part2.py until part10.py, it follows the exact same format as part1.py. It's been working for me. so the question is, can I keep doing this as my application grows ( as I add more code/functionality) ? Is this the way to expand all the way up to N numbers of .py files? What are the drawbacks? Hope you guys can give some insights on this. Been thinking about this for weeks. -- 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] use the same database in two appengine projects
Hi all, i created an app under appengine and i want to create his iphone version under another domain ... how i could use the same database in two differents appengine projects. any idea??? -- 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: Trouble creating an application
Hi Steve, how did you resolve it? I'm using a google apps account as well and I can't see any of the applications that I create. I keep getting sent back to the create an application screen. Thx! On Dec 15, 10:51 am, Steve S. st...@downmix.com wrote: Problem resolved: The apps were created in my Google Apps account. I wish the sign-up page would have told me this, though! -- 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] php with java document root
I just setup an appengine app using the quercus php with java. Got that all working fine, however I wanted to change the document root that my web files get served out of. Currently everything is being served out of the war folder, but I want to have it serve out of something like war/htdocs instead and have htdocs recognized as my document root, particularly whats stored in $_SERVER['DOCUMENT_ROOT'] for php. Using urlrewrites I was able to achieve this properly on the surface, however I wanted to get this working on the system level and not just with a bunch of rewrites. So right now on a local environment setup with apache I have the document root set to htdocs and I get something like this for the $_SERVER['DOCUMENT_ROOT']: D:/vidu/work/www.myexample.com/war/coco/htdocs On the app engine I get just the predefined base directory: /base/data/home/apps/myexample/1.338700727520182893/ So I would like to have it like this instead /base/data/home/apps/myexample/1.338700727520182893/coco/htdocs/ Rob -- 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] retrieving data via key in java
hi all, i would like to know how to use the query b select __key__ from Class-Name /b in java . The same syntax is not working, it shows the following b PrimaryExpression should be a VariableExpression with name __key__ /b Please do help me. Thank you. -- 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 make SetKey persistent?
Hello, everybody! I try to achieve simple thing - storing a set of keys. I have two classes: @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Account { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent(mappedBy=account) ListLabel labels = new ArrayListLabel(); @Persistent SetKey ids = new HashSetKey(); } @PersistenceCapable(identityType = IdentityType.APPLICATION) public class Label { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key id; @Persistent private Account account; } I created new Account Account a = new Account(); then added two Labels to Account, then added Label's keys to ids set. As result I have for ids: [Account(1)/Label(4), Account(1)/Label(3)] which looks correct. Then I called pm.makePersistent(a), pm.close(); I created new instance of PersistenceManager and restore Account object. I get back two Labels, but their keys (ids set) is empty. What did I do wrong? Thank you, Andrey -- 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: when will gae go beyond from being a toy?
On Dec 25, 7:16 am, ajaxer calid...@gmail.com wrote: 1. friendly and useful data import and export tools 2. limited offset to a fairly acceptable and almostly unlimited offset 3. add, pending or remove cron jobs from control panel 4. naked domain name binding, having no relevance with google apps or google sites. 5. unique ip address. 6. abilities of server streaming 7. raw api of socket, PIL, etc. 8. build in session support. etc.. Mysql too you called a toy. Know your history now. -- 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: Comets on Google App Engine
On Dec 23, 7:58 am, Ankur (iVEC) ankurshard...@gmail.com wrote: Is it possible to use Comets on Google App Engine when using Java? e.g. using code similar to what is given here:http://tomcat.apache.org/tomcat-6.0-doc/aio.html DWR and research article ref Joe Walker goes above feasible. Good link is cometdaily.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appeng...@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: can i get a domain 's ip address using appengine?
On Dec 25, 7:03 am, ajaxer calid...@gmail.com wrote: inside gae please. Challenging but really, you don't want it inside gae. You want it towards the user. On 12月25日, 下午2时21分, stackoverflow.com/users/108207/larson teknik...@gmail.com wrote: more extensive is something like your classic instruction dig:http://linux.about.com/od/commands/l/blcmdl1_dig.htm -- 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] Naked domain support - solved?
Hello! Just a quick note about service that anyone can use to help combat naked domain trouble. I made wwwizer.com - it redirects requests from naked domains to the same with www. prefix. Saving all paths and stuff. Of course it is not as good as having naked-domain support built in, but it is better than clicking though domain registrars interfaces. There is no signup or anything evil. Cheers. -- 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 to delete a table/entity?
your method is right but the limit is there what ever methods we use. There's always going to be a limit for scalable applications - appengine just exposes it. because the offset is limited to 1000. i can not sort data by fields in results more than some limited items Don't sort. Use indices. They can handle multiple fields. Indices are the only way to build scalable applications. On Dec 24, 9:16 pm, ajaxer calid...@gmail.com wrote: your method is right but the limit is there what ever methods we use. and you didn't get what i mean. because the offset is limited to 1000. i can not sort data by fields in results more than some limited items with out the offset limit, we can do it easily. On 12月24日, 上午2时10分, Andy Freeman ana...@earthlink.net wrote: Any application requires fetching an unbounded amount of data for a single page view is not scalable, no matter what technology you use to build it, so this problem is not appengine specific. If you need aggregations (average, median, total, etc), you have to compute them incrementally or with an off-line process. when even with the datetime = you still get a big set, how you can handle it? We're talking about paging through a dataset, presenting n (for small n) elements at a time to a user. If we're paging through by the value of field with distinct values and we want to present 20 results per page, the query for the first page is order by field with limit 20. That query has a last result. The query for the next page is field {last result's field value} order by field, again with limit 20. That query also has a last result so the form of subsequent queries should be obvious. (If you've got other conditions, such as user id or key, you need to add those as well.) Suppose that entities can have the same field value. If you don't care how those entities are ordered, the first query's order by clause can be order by field, __key__, again limit 20. The next query tries to pick up entities with the same field as the last result from the previous query. It looks like field = {last result's field's value} and __key__ {last result's key} order by __key__ and you keep using it until it fails. You then use a query like the next page query from the previous case. (I stopped mentioning limit because the value depends on what you need to fill the current page.) On Dec 22, 8:50 pm, ajaxer calid...@gmail.com wrote: when even with the datetime = you still get a big set, how you can handle it? for example you get 1 item with the most specific filtering sql. and on this filtering sql, you should have a statistic info. like how many item it is . how do you expect the appengine to handle this problem? how about at one request with many these actions? On Dec 21, 11:09 pm, Andy Freeman ana...@earthlink.net wrote: What statistics are you talking about? You're claiming that one can't page through an entity type without fetching all instances and sorting them. That claim is wrong because the order by constraint does exactly that. For example, suppose that you want to page through by a date/time field named datetime. The query for the first page uses order by datetime while queries for subsequent pages have a datetime = clause for the last datetime value from the previous page and continue to order by datetime. What part of that do you think doesn't work? Do you think that Nick was wrong when he said that time time to execute such query depends on the number of entities? You can even do random access by using markers that are added/ maintained by a sequential process like the above. On Dec 20, 7:34 pm, ajaxer calid...@gmail.com wrote: You misunderstand. if not show me a site with statistics on many fields. with more than 1000 pages please. thanks. On Dec 21, 9:06 am, Andy Freeman ana...@earthlink.net wrote: You misunderstand. If you have an ordering based on one or more indexed properties, you can page efficiently wrt that ordering, regardless of the number of data items. (For the purposes of this discussion, __key__ is an indexed property, but you don't have to use it or can use it just to break ties.) If you're fetching a large number of items and sorting so you can find a contiguous subset, you're doing it wrong. On Dec 19, 10:26 pm, ajaxer calid...@gmail.com wrote: obviously, if you have to page a data set more than 5 items which is not ordered by __key__, you may find that the __key__ is of no use, because the filtered data is ordered not by key. but by the fields value, and for that reason you need to loop query as you may like to do. but you will encounter a timeout exception before you really finished