[appengine-java] Billed CPU time by far too high
Hello, I posted about this topic already 2 weeks ago. The days after that my website got back to its normal levels of CPU time. But then things got even worse. What can I do now? How can I let the responsible developers at Google let know to fix it. The situation is as follows: I have a cron job that is triggered every minute. It has an average CPU usage of 56(17) according to the dash board. On the black list I cannot see any requests other than my cron job. It is nearly the only thing that needs CPU time. Normally what I got billed everyday was about 0.2 CPU hrs a day. In the meantime it is about 1.3 CPU hrs a day! That is more than 1/5 of the free quota just for this lightweight cron job! Henning -- 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] appId not set error in development when using datastoreservice
I'm getting the following error when testing my application on my machine. I am using the datastoreservice APIs for storing data. I have the application defined in appengine-web.xml and am getting confirmation messages that those files are being read. The code that I'm invoking is as such: DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); Transaction txn = datastore.beginTransaction(); try { // create enough keys KeyRange keys = datastore.allocateIds(datatype.getDataTypeKey(), recordList.size()); Evidence that the application id should be getting set: May 9, 2010 3:32:44 AM com.google.apphosting.utils.config.AppEngineWebXmlReader readAppEngineWebXml INFO: Successfully processed XXX\war\WEB-INF/appengine-web.xml Actual error being received: java.lang.IllegalArgumentException: appId not set at com.google.appengine.repackaged.com.google.common.base.Preconditions.checkArgument(Preconditions.java: 90) at com.google.appengine.api.datastore.dev.LocalDatastoreService.getOrCreateProfile(LocalDatastoreService.java: 1133) at com.google.appengine.api.datastore.dev.LocalDatastoreService.beginTransaction(LocalDatastoreService.java: 903) 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.ApiProxyLocalImpl $AsyncApiCall.call(ApiProxyLocalImpl.java:307) at com.google.appengine.tools.development.ApiProxyLocalImpl $AsyncApiCall.call(ApiProxyLocalImpl.java:264) at java.util.concurrent.Executors$PrivilegedCallable $1.run(Executors.java:463) at java.security.AccessController.doPrivileged(Native Method) at java.util.concurrent.Executors $PrivilegedCallable.call(Executors.java:460) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) at java.util.concurrent.FutureTask.run(FutureTask.java:138) at java.util.concurrent.ThreadPoolExecutor $Worker.runTask(ThreadPoolExecutor.java:885) at java.util.concurrent.ThreadPoolExecutor $Worker.run(ThreadPoolExecutor.java:907) at java.lang.Thread.run(Thread.java:619) Any help would be very much appreciated - I can't find anyone who has run into this. -- 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] I'm new: how should I structure 3 linked tables?
Like I said in the subject, I'm new to app engine and I'm trying to get my mind in the app engine mode, so pardon my ignorance. I'm using the java implementation of GAE since I'm also using GWT. I've done a lot of work over the years with mysql, sql server, etc... and I think that the knowledge of those systems is clouding my understanding of GAE. So, please, your help would be greatly appreciated. What I'm trying to do is enable tagging in a task management system that I'm writing. The objective is to allow users to tag tasks but also, to reduce duplicate tags in the system, have a shared tag table. What will happen is that when a user tags a task the system would check to see if the tag already exists in the shared table. If the tag exists then the user's account and the current task would be linked to the tag. If the tag doesn't already exist then it would be created and the user's account and the current task would be linked to the newly created tag. I plan on linking the user's account to the tag so that the system could list all tags associated with their account so that they could filter the task list by selecting tags, similar to gmail's filter by tags feature. So basically, in MySQL I would structure these tables like so: Account --- ID EMail UserName ETC... AccountTagLink ID AccountID TagID Task -- ID Description ETC... TaskTagLink - ID TaskID TagID Tag --- ID Description And the linkages - Account.ID AcctTagLink.AccountID AcctTagLink.TagID Tag.ID Task.ID TaskTagLink.TaskID TaskTagLink.TagID Tag.ID With the above structure I could easily perform a subquery in MySQL and get all Tags associated with an account. Ex: select * from Tag where exists (select id from AcctTagLink where AcctTagLink.TagID = Tag.ID and AcctTagLink.AccountID = current account id) ...And I could do a similar query to get all tags associated with a given task. I'm not asking for an equivalent structure in GAE (however that would be nice). I just posted all that so that what I'm trying to do is perfectly clear. So, my question to you is simply this, How should I structure my data in GAE to accomplish the same end result? Thanks for reading my wall of text, and thanks in advance for any help :D -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] The website has a programming error.
I have written simple web application using GAE that contains .jsp file. In my local developement environment .jsp fine works fine, but when I deploy it on cloud, and try to access it I get the error: The website cannot display the page Most likely causes: •The website is under maintenance. •The website has a programming error. Any suggestions? Thanks, Jitu -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: The website has a programming error.
I would try to minimize the JSP-code to the point where it can be shown to other people to inspect it. :) And is this a message that is shown in your browser or is it what is in your Logs? On May 8, 3:25 pm, Jitu Surve jitusu...@gmail.com wrote: I have written simple web application using GAE that contains .jsp file. In my local developement environment .jsp fine works fine, but when I deploy it on cloud, and try to access it I get the error: The website cannot display the page Most likely causes: •The website is under maintenance. •The website has a programming error. Any suggestions? Thanks, Jitu -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Domain Setup
Hi, I have a application running on Google app engine and lets say i am accessing it through www.mysite.com (Mysite.com is registered on google apps) Now i have created another application which i want to access through newapp.mysite.com (through sub domain of above application). Is it possible? If yes then how. I tried to do following step but no success. mysite.com is already added to application-1(my main application to my domain) So now i tried to add newapp.mysite.com to application-2 under application setting of application-2, but it says Sorry, you've reached a login page for a domain that isn't using Google Apps. Please check the web address and try again. (although mysite.com do use google apps) Any idea? Ravi. -- 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] Would Blob properties slow down my queries?
Will a query be any faster/slower depending on whether the entities being queried/returned have any Blob properties? (Or is there no difference until I actually call a getter for such property?) Regards J. Záruba -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Datastore Statistics not updated for 3 days
Hello, I have some trouble with the Administration Console. Everything is very slow. Sometimes I get error page. The Datastore Statistics say: Last updated 3 days, 17:59:52 ago on the right it says that there is at least one update per day. So I am puzzled. Maybe my application got corrupted? What can I do? Toby -- 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: JDOQL and GeoPt
The syntax is perfectly fine. The fact is though, you have to have a particular java type to be supported for persistence to be able to query against it. I doubt that GeoPt is, though DataNucleus allows extensions to permit such a thing to be enabled; just that Google would have to enable those in their plugin. Over to Google ;-) -- 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: Google maps geocoder responds with 620 error since server maintenance
app engine servers still look to be blacklisted On May 7, 3:16 pm, culov cul...@gmail.com wrote: It happened on Feb. 19, after server maintenance, and it's happened again. I'm getting non-stop 620 errors whenever I try to geocode from an app engine server. I'd be very grateful if this could be fixed before the weekend! Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en. -- 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] Domain Setup
one app application, one root domain On Sun, May 9, 2010 at 5:37 PM, Ravi Sharma ping2r...@gmail.com wrote: Hi, I have a application running on Google app engine and lets say i am accessing it through www.mysite.com (Mysite.com is registered on google apps) Now i have created another application which i want to access through newapp.mysite.com (through sub domain of above application). Is it possible? If yes then how. I tried to do following step but no success. mysite.com is already added to application-1(my main application to my domain) So now i tried to add newapp.mysite.com to application-2 under application setting of application-2, but it says Sorry, you've reached a login page for a domain that isn't using Google Apps. Please check the web address and try again. (although mysite.com do use google apps) Any idea? Ravi. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: The website has a programming error.
read you log from admin console page 2010/5/9 Jaroslav Záruba jaroslav.zar...@gmail.com I would try to minimize the JSP-code to the point where it can be shown to other people to inspect it. :) And is this a message that is shown in your browser or is it what is in your Logs? On May 8, 3:25 pm, Jitu Surve jitusu...@gmail.com wrote: I have written simple web application using GAE that contains .jsp file. In my local developement environment .jsp fine works fine, but when I deploy it on cloud, and try to access it I get the error: The website cannot display the page Most likely causes: •The website is under maintenance. •The website has a programming error. Any suggestions? Thanks, Jitu -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group athttp:// groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- dream or truth -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] backup and restore null values in datastore
Hi, all I have a java project on app engine, and I use python based code to backup my datastore. jdo class public class PaymentUser { @PrimaryKey private String transId; @Persistent private String media; @Persistent private float fee; @Persistent private String currency; @Persistent private long timestamp; //getters and setter... } The backup python code:- from google.appengine.ext import db from google.appengine.tools import bulkloader import sys reload(sys) sys.setdefaultencoding('utf-8') class PaymentUser(db.Model): media = db.StringProperty() fee = db.FloatProperty() currency = db.StringProperty() timestamp = db.IntegerProperty() def AddKeys(entity_generator): for entity in entity_generator: entity['key'] = entity.key() yield entity class PaymentUserExporter(bulkloader.Exporter): def __init__(self): bulkloader.Exporter.__init__(self, 'PaymentUser', [('transId', str, None), ('media', str, None), ('fee', str, None), ('currency', str, None), ('timestamp', str, None) ]) def output_entities(self, entity_generator): bulkloader.Exporter.output_entities(self, AddKeys(entity_generator)) exporters = [PaymentUserExporter] class PaymentUserLoader(bulkloader.Loader): def __init__(self): bulkloader.Loader.__init__(self, 'PaymentUser', [('transId', str), ('media', str), ('fee', float), ('currency', str), ('timestamp', int) ]) loaders = [PaymentUserLoader] And I use appcfg to backing up my data to CSV file.problems:-- 1.The field currency either some String data or null (not take any space), because I have to backup these strings,so these nulls are.In my CSV file these nulls are str None. When I upload these data to server again,I found original nulls are replaced by string None.Here I will waste many spaces. 2. The problem is as same as the first one. But is a long property(timestamp), when I upload the data to server These None connot be converted to long value, so there are many exceptions. How can I solve it, 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.