Re: [google-appengine] unable to deploy: Java 6 applications are prevented from being deployed
Is the Compiler Compliance Level set to 1.7? It's in the Java Compiler screen. - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com On Thu, May 1, 2014 at 9:30 AM, Kent Tong kent.tong...@gmail.com wrote: Hi, I've created a new app engine project and configured it to use java 7 at the following places in Project Properties: - Java Compiler (JavaSE-1.7) - Project Facets | Java (1.7) - Scala Compiler | target (jvm-1.7) However, at deployment it keeps telling me that Java 6 applications can't be deployed. Any idea? Thanks in advance! -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Can google app engine support servlet 3.0?
On Sun, May 4, 2014 at 9:11 AM, 이찬형 kd980...@gmail.com wrote: If it can't still support, when it update to servlet 3.0 ? You might want to star this feature request: https://code.google.com/p/googleappengine/issues/detail?id=3091 - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Problem with the Google indexation related to SNI invalid SSL certificat
On Mon, Apr 28, 2014 at 8:11 PM, Frederic Hanna hanna.frede...@gmail.com wrote: [...]the origin of my concerns regarding this post was that, in some cases, it seems that web crawlers [Google] actually associates the client domain running with the invalid SSL cert with the hosting provider domain's. An example will follow. Full case here: http://serverfault.com/questions/591802/nginx-https-http-redirection-using-wildcard-error/591818?noredirect=1#comment698824_591818 *So how is the search engine handling those kind of ssl related errors, and why is it showing the bad URL?* So to clarify, you're experiencing this issue with the Google search engine, and not with any App Engine APIs, correct? If so, you'll want to redirect your question to the webmasters forum: https://productforums.google.com/forum/#!forum/webmasters - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Unable to use android client to post data to app engine back end
On Thu, May 1, 2014 at 9:23 AM, Ronald Kamulegeya ronald.kamulegeya.2...@gmail.com wrote: What happens is that code runs like say 5minutes and after i get an connection closed by peer. Here is the logcat for the error i get. 05-01 16:53:29.320: W/System.err(10603): javax.net.ssl.SSLException: Connection closed by peer Any pointers to the cause of the delay? NB . In this part of the world internet speeds are very slow(especially when using mobile devices). If you run your Android app within your PC's Android emulator, do you get the same exception? If not, how fast is the connection when compared to your mobile? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] dev_appserver.py problem
On Tue, Apr 29, 2014 at 2:24 PM, john felipe urrego mejia ingenierofelipeurr...@gmail.com wrote: Hi, please tell me how fix this: in load_module raise ImportError('No module named %s' % fullname) ImportError: No module named google.appengine.dist27.threading Did you recently upgrade your App Engine SDK? If not, have you successfully compiled this application before using this version? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] do a simple search when ran out of complex search quota
On Wed, Apr 30, 2014 at 4:03 AM, Jnnese C vegaquem...@gmail.com wrote: I ran out of complex search quota, and i still have simple search quota. But if i do a simple search , it still throws an OverQuotaException. Is it a normal situation? does anyone have the same issue? When you get the OverQuotaException, did you run other search queries simultaneously or very recently prior to the exception? Sometimes that exception will occur if you run too many search queries in a short period of time. - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Very low performance in appengine endpoints
On Sun, May 4, 2014 at 4:19 PM, DiTieM dit...@gmail.com wrote: Hello Vinni, Thank you for the quick reply. I did install appstats and try to find out if there were the bottle necks. So as you can see from the AppStats graph, the vast majority of the request is spent waiting for datastore and memcache operations - not with Endpoints processing. The problem here is you're doing too many calls to the datastore and memcache. Even worse, you're making these calls serially, rather than in parallel. I see you posted some code; I'm not entirely sure what it's supposed to do (perhaps you could expand further), but the short explanation is that you need to rewrite the code to make these calls asynchronously, to batch your get/set calls, and to make much fewer calls in the first place. See the memcache documentation at https://developers.google.com/appengine/docs/python/memcache/clientclassfor async info. On Mon, May 5, 2014 at 5:37 AM, DiTieM dit...@gmail.com wrote: I thought of using this method to avoid putting big object in memcache. How large are the objects you're storing in Memcache? Memcache objects can be as large as 1 MB: you can fit a lot of data into a single object. Push as much data into a single object or set of objects as you can, then retrieve them in one call. Consider also purchasing dedicated memcache ( https://developers.google.com/appengine/docs/adminconsole/memcache ) and see if that helps performance. - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] ndb.add_flow_exception has no effect
On Thu, May 1, 2014 at 3:29 PM, Josh Whelchel (Loudr) j...@loudr.fm wrote: I am unable to remove certain exceptions from our logs via ndb.add_flow_exception. The code above does not prevent CompletedExpectedException from appearing in the logs. This is primarily a problem because the only way that I know to 'fail' a deferred task is to throw an exception. (I know that I can use a direct taskqueue implementation with self.error(500) for this, but I'd still like to understand the functionality of ndb.add_flow_exception). It is documented here: https://developers.google.com/appengine/docs/python/ndb/functions When you see this exception, what logging level does it appear at (WARNING, DEBUG, etc)? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Searching array elements in app engine entity
On Tue, Apr 29, 2014 at 8:37 AM, Ritesh Paul ritep...@gmail.com wrote: I have an array - Books, with names of books in it. In the google app engine, I already have a database of books stored in entities. Now I want to find which of the books in the array are there in the database stored in app engine. Can someone please let me know how to proceed using JAVA? Can you describe the entities you're using to store the book data? How many properties, the names of the properties. the acceptable values of each property, and so forth? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Modules vs Multiple Scripts?
Also important: each module is allowed to scale up / down seperatly, which means you can configure the more important things to scale faster while allowing slower scaling (and thus lower costs) on less important modules On Tue, May 6, 2014 at 5:37 AM, Vinny P vinny...@gmail.com wrote: On Tue, Apr 29, 2014 at 5:18 PM, ZTNXiLUzVm sc4...@gmail.com wrote: I am developing in App Engine with Python and I understand what Modules are from reading the documentationhttps://developers.google.com/appengine/docs/python/modules/converting, but I thought the process of splitting your code into multiple scripts and mapping them in the app.yaml file was supposed to accomplish the same thing. Does splitting the code into multiple scripts not actually do anything except make the code more organized? You may be getting a little confused from the terminology. A Python module ( https://docs.python.org/2/tutorial/modules.html ) is a file containing Python code. As you said, splitting up your app into different files helps with organization, code reuse, and so forth. An App Engine module is completely different and not related to the concept of Python modules except in the most generic way. It's true that GAE modules help with code organization, but it's much more than that. Each module tends to be a fully featured application or self-contained service: for example, one module is a web site, another module implements the API, yet another supplies the backend heavy-lifting logic, and so forth. GAE modules also supply other benefits: logs are separated and you can specify different instance sizes. - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
[google-appengine] How to store a Friends List with data on each friend ?
Hi all, This is more of a design question. At the moment I have a UserAccount Entity, and it has a UserName and FriendsList data members defined as: name = db.StringProperty() friends = db.StringListProperty(indexed=False) There is also some other information associated with each friend, such as highest score, country code, total games played, etc. At the moment, I do the following: 1) Add the name of a friend to the friends data member 2) Limit the max size of the friends list :( When retrieving the list of Friends, I want all the information associated with each user account (high score, etc). I do this by iterating through the FriendsList and issuing a query for each Friend. Due to timeouts, this limits the number of friends to around 20 which sucks. How do I remove the limitation of around 20 friends in a friends list ? Some sort of clever way of doing a multiple async query ? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
[google-appengine] Re: Can google app engine support servlet 3.0?
Until the sun rises in the west and sets in the east. Until the rivers run dry, and the mountains blow in the wind like leaves… - Daenerys Targaryenhttp://en.wikipedia.org/wiki/Daenerys_Targaryenabout the Servlet 3.0 support on App Engine. On Sunday, May 4, 2014 11:11:40 AM UTC-3, 이찬형 wrote: If it can't still support, when it update to servlet 3.0 ? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] ndb.add_flow_exception has no effect
It is an ERROR. This has also been answered on Stack: http://www.google.com/url?q=http%3A%2F%2Fstackoverflow.com%2Fquestions%2F23275230%2Freducing-log-clutter-via-ndb-add-flow-exception-with-deferred-taskssa=Dsntz=1usg=AFQjCNElwORRgoFq99y54gCRuWhRIu3apQ On Monday, May 5, 2014 11:10:36 PM UTC-7, Vinny P wrote: On Thu, May 1, 2014 at 3:29 PM, Josh Whelchel (Loudr) jo...@loudr.fmjavascript: wrote: I am unable to remove certain exceptions from our logs via ndb.add_flow_exception. The code above does not prevent CompletedExpectedException from appearing in the logs. This is primarily a problem because the only way that I know to 'fail' a deferred task is to throw an exception. (I know that I can use a direct taskqueue implementation with self.error(500) for this, but I'd still like to understand the functionality of ndb.add_flow_exception). It is documented here: https://developers.google.com/appengine/docs/python/ndb/functions When you see this exception, what logging level does it appear at (WARNING, DEBUG, etc)? - -Vinny P Technology Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
Re: [google-appengine] Issues with Blobstore API for Google Cloud Storage
Hi Tim, I feel more confident with your answer because I came to the exact same design pattern. Thanks for your time Daniel Le lundi 5 mai 2014 20:29:29 UTC+2, Tim Rob a écrit : Hi Dany, Yes we made some changes to the code. In some cases we now also store the BlobKey (besides the GCS file name) which is returned from BlobstoreService.getUploads. When we use the returned BlobKey to delete the file both the BlobInfo and GCS file are correctly deleted (using BlobstoreService.delete(blobKey)). And in other cases we're directly writing to GCS using: GcsOutputChannel outputChannel = GcsService.createOrReplace([FILENAME], GcsFileOptions.getDefaultInstance()); In that case we won't end up with the extra unnecessary BlobInfo. And without BlobInfos the ImageService.getServingUrl still works fine (using a generated BlobKey). We also wrote a small task that cleans ups old BlobInfos with missing GCS files (using BlobInfoFactory). Hope that helps! Best Tim On Wednesday, April 30, 2014 4:35:57 PM UTC+2, Dany wrote: Hi Tim, I face the same issue. I can not have the BlobInfo deleted when deleting a gcs file whatever the technique (blobstoreService.delete or gcsService.delete). Have you found a clean way or a workaround that delete both the gcs file and the blobinfo ? Thanks Dany Le vendredi 12 juillet 2013 08:46:14 UTC+2, Tim Rob a écrit : Hi Vinny, Thanks for your reaction. When you're deleting from GCS, are you using the Java GCS library? Try using the function BlobstoreService.delete(blobkey) here: https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/blobstore/BlobstoreService Yes I use the Google Cloud Storage (GCS) Client Library for Java. I tried using the BlobStoreService.delete(blobKey) call but that didn't work. The thing is that after saving the file we only store the GCS file name (not the blobk Key). There is a BlobStoreService.createGsBlobKey method to recreate the BlobKey from the GCS filename, but when using that blobKey to the delete method it will delete the GCS file, but the Blob Viewer entry is still visible (giving a server error when opened). On Thu, Jul 11, 2013 at 1:41 AM, Tim Rob t...@appcoders.nl wrote: For me it would be best if the file would not appear in the Blob Viewer at all, we're using GCS and not the blobstore. But it would also be fine if we're only charged once for the storage costs. I would bet that internally, App Engine needs to record the uploads as blobs (and also show them in the blob viewer) so it can do blob manipulations on them (for instance, ImageService and getServingUrl both take BlobKey references). Even without a Blob Viewer entry it's possible to call any API method (like getServingUrl) that requires a BlobKey is possible using the BlobStoreService.createGsBlobKey to create the blobKey. We're already using this for images only stored in GCS. Being charged twice is clearly an error though. Are you sure you're being charged twice over, or is it just that the quota is shown twice? You may want to file an issue in the tracker https://code.google.com/p/googleappengine/issues/list . Yes I'm almost sure. The quota is showed once. But the stored data appears in App Engine under Blobstore Stored Data and at Billing in my API project where GCS is enabled (once). I would expect the Blobstore Stored Data in App Engine should not show any data usage, since all data is stored in our GCS account. This was already the case before, until we started using the blobstoreService.createUploadUrl call to upload files directly into GCS. Before this I was using the now deprecated Files API. Another reason to choose for blobstoreService.createUploadUrl was to prevent streaming large binary blob data through small/low memory App Engine instances. I will file an issue (unless you think I'm missing something). Thanks, Tim -- You received this message because you are subscribed to the Google Groups Google App Engine group. To unsubscribe from this group and stop receiving emails from it, send an email to google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.