Re: [google-appengine] Re: upload image into google app engine
2014-03-11 13:15 GMT+01:00 Vinny P vinny...@gmail.com: On Tue, Mar 11, 2014 at 12:36 AM, hitesh jain hiteshi...@gmail.com wrote: Google cloud storage is paid one from single byte storage. GCS has a 5gb free quota for the only default bucket.. http://goo.gl/KT4gQz -- 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] Deployment quota
I'm sorry, this is an unnecessary question, but I can't sleep on :) The deployment quotas docs say: The number of times the application has been uploaded by *a developer*. The current quota is 10,000 per day. Now, a day is 86,400 seconds. An optimistic average times for a deploy is 15 seconds. ok, 10s. 10*10,000 86,400. It is a elegant joke or what? -- 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/groups/opt_out.
Re: [google-appengine] New Twilio Service?
I create a new account on twilio via the special page and upgrade it but I can't found the amount of free sms. Where I can see the balance with the offer of 2000 sms? I see only my 20$ -- Gianni On Tue, Apr 2, 2013 at 9:56 PM, Vinny P vinny...@gmail.com wrote: On Tuesday, April 2, 2013 1:43:57 PM UTC-5, alex wrote: see attached screenshot. Much appreciated! Can't visit the Twilio site myself to see, the web filter at my work is apparently unhappy with Twilio. - -Vinny P Technology Media Advisor Chicago, IL @GOV on AppDotNet: https://alpha.app.net/gov -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] Re: new devappserver2 and get_by_id
Are you encoding your ids as floating point numbers before calling get_by_id()? No, I encoding as integer. Javascript send to python app something like this http://localhost:8080/api/misura/5332261958806667000/ instead of http://localhost:8080/api/misura/5332261958806667264/ No problem in production, only in local devappserver2 Please see this post: https://groups.google.com/forum/?fromgroups=#!msg/google-appengine/r7L2mH3VzLw/BfFsSTGjlbwJ Hope that helps! Ya, seams the same issue. On Tuesday, March 26, 2013 9:50:04 AM UTC-7, Giovanni Di Noia wrote: Hi, with new devappserver2 the get_by_id() method return an integer ending with 000 instead of real id. the rest of number is the same but only last 3 is ever replace with 000. What'a appens? does not seem a bug. -- Gianni -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out. -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
[google-appengine] new devappserver2 and get_by_id
Hi, with new devappserver2 the get_by_id() method return an integer ending with 000 instead of real id. the rest of number is the same but only last 3 is ever replace with 000. What'a appens? does not seem a bug. -- Gianni -- 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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: [google-appengine] db to ndb migration ... issue with collection_name
Hi, Guido explained very clearly how to do herehttp://stackoverflow.com/questions/11122846/whats-the-alternative-to-back-reference-property-in-ndb . Just add a property to the Post class @property def comments(self): return Comment.query(Comment.post == self.key) -- Gianni On Mon, Dec 31, 2012 at 2:26 AM, Toto emays...@gmail.com wrote: In my previous GAE app, I had something like a blog (Post and related Comment) Posts and Comments where 2 different models such as class Post(db.Model): headline = db.StringProperty(required = True) content = db.TextProperty(required = True) class Comment(db.Model): Comment object with many-to-one relationship content = db.TextProperty(required = True) post = db.ReferenceProperty(Post, collection_name='comment_set') Now with db, thanks to the collection_name, I could easily find the comments referring to a post ( aka back reference) using post.comment_set How are now back references handled in ndb? Is there a preferred method? Regards -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/_W5mhfhwqBEJ. To post to this group, send email to google-appengine@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. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] how does a user become an admin?
the admin users are listed in 'Permissions' page -- Gianni On Mon, Dec 17, 2012 at 9:38 PM, Emmanuel Mayssat emays...@gmail.comwrote: handlers: - url: /admin/.* script: main.app login: admin -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Web site completely down + appengine console not accessible
https://groups.google.com/d/topic/google-appengine-downtime-notify/SMd2pDJsCPo/discussion -- Gianni 2012/10/26 Santiago garcia.santi...@gmail.com All our apps are currently down! :( On Friday, October 26, 2012 12:37:48 PM UTC-2, Olivier Truemat wrote: Hi, Just had my web site totally not accessible. Also the appengine console is not accessible anymore. appid is francecorentstudents.com Could someone from Google have a look ? Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/zez85956hQcJ. To post to this group, send email to google-appengine@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. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] limite di invio messaggi
Se per messaggi intendi email, basta abilitare i pagamenti (Enable billing). -- Gianni 2012/10/9 CB made in Italy ceciliabringh...@gmail.com buongiorno, io vorrei poter mandare tutti i messaggi al giorno che voglio, anche pagando. c e un modo??? -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/wXHzPAcinr8J. To post to this group, send email to google-appengine@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. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Annourcing aeta: a test runner for Python App Engine applications
Thank you. I really needed. -- Gianni 2012/9/21 Jacob Taylor jacobltay...@google.com Hello, I am happy to announce that we open sourced aeta, the App Engine Test Appendix. aeta is a tool for running tests on your Python App Engine application. It was created at Google and is used to run many of our own tests. It features both a web interface and a command-line interface to run tests. Code and documentation are available at http://code.goo**gle.com/p/aeta/http://code.google.com/p/aeta/. We also set up a group at https://groups.google.com/group/appengine-aeta. If you have questions, suggestions or other issues you want to talk about, don't hesitate to reach out. Thanks, Jacob -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/KlOOvw6e0DoJ. To post to this group, send email to google-appengine@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. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] A.A.A. Italian GAE Developers
ping! Ma non esageriamo, direi dilettante. -- Gianni 2012/9/18 Alfredo Morresi alfredomorr...@google.com Hi guys, my name is Alfredo, I work in Google's Milan office and my job is to support Italian community around our technologies. Tech sessions, events planning, universities / local groups support and so on. I'm wondering if there are some Italian GAE developers around here, please ping me if you are one of them ;) -- .enjoy. Alfredo Developer Relations Program Manager - Italy -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/iJ-YtwydNXwJ. To post to this group, send email to google-appengine@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. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] Re: Alternate to Conversion API
I suppose html to pdf is the feature of which will feel more the lack. The alternative free and most used in python is reportlab (perhaps it could be added to the libraries supported third-party libraries at this point) . But if conversion api still under discussion, I think that the problem of low utilization depends on the tricky usage of paged media css and not in converison api in itself. -- Gianni 2012/8/22 Daniel Florey daniel.flo...@gmail.com Same problem here. We have invested a lot of time (=money) into Conversion API. So I am very frustrated and need to find a replacement. From what I can tell App Engine has been using Princexml for the conversion. Unfortunately this will not run on App Engine and costs a lot of €€€$$$. So I'm basically lost right now. Any suggestions? The Conversion API worked perfectly fine for us :-( Daniel On Tuesday, August 21, 2012 1:00:57 PM UTC+2, aswath wrote: Hello, We were deeply involved in utilizing the conversion api for the HTML to PDF conversion. Suddenly, I got the email from Google about the plan for decommissioning from Nov 2012. Does anyone has suggestions for doing the HTML to PDF conversion that is compatible with Google Appengine for Java. Regards -Aswath www.AccountingGuru.in -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/gqKJQqgouzAJ. To post to this group, send email to google-appengine@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. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] pagespeed disable_rewriters
Hi gropus, at the docs page https://developers.google.com/appengine/docs/python/config/appconfig#pagespeed i found this: enabled_rewriters, disabled_rewriters By default, some safe optimization rewriters are turned on. Other risky optimizations are not turned on. You can choose more optimizations to use by listing them in domains_to_rewrite; you can turn off default rewriters by listing them in domains_to_rewrite. 'domains_to_rewrite' is a typo or I don't understand all? because Pagespeed with the default setting, my some inline js does not work anymore. I'm searching the rewriter to disable.. -- Gianni -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
[google-appengine] Re: pagespeed disable_rewriters
ok. I solved my problem, it's not related to pagespeed service ( the default setting don't cause problem). Sorry about that but the docs question remain. -- Gianni 2012/6/28 Gianni giann...@gmail.com Hi gropus, at the docs page https://developers.google.com/appengine/docs/python/config/appconfig#pagespeed i found this: enabled_rewriters, disabled_rewriters By default, some safe optimization rewriters are turned on. Other risky optimizations are not turned on. You can choose more optimizations to use by listing them in domains_to_rewrite; you can turn off default rewriters by listing them in domains_to_rewrite. 'domains_to_rewrite' is a typo or I don't understand all? because Pagespeed with the default setting, my some inline js does not work anymore. I'm searching the rewriter to disable.. -- Gianni -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [google-appengine] No luck with the starter tutorials
try adding webapp2 in the yaml libraries: - name: webapp2 version: latest -- Gianni 2012/6/5 Andreas a.schmi...@gmail.com what is the output of the console? On Jun 4, 2012, at 4:34 PM, Coolbedog wrote: Hi there, Trying to get started with Google App Engine and Python 2.7. I've followed the first tutorial for writing a hello world program. Unfortunately, when I test the program all I'm getting is a blank screen. I've got both .py and .yaml files present. I get the same blank screen when I try the Using Users program as well. I've looked through the instructions a dozen times a can't see what I've missed. I'm using Firefox as my default browser, and my .py and .yaml files are as follows: import webapp2 class MainPage(webapp2.RequestHandler): def get(self): self.response.headers['Content-Type'] = 'text/plain' self.response.out.write('Hello, webapp World!') app = webapp2.WSGIApplication([('/', MainPage)], debug=True) application: helloworld version: 1 runtime: python27 api_version: 1 threadsafe: true handlers: - url: /.* script: helloworld.app Can anybody spot what I'm doing wrong? Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine/-/QgNTGD083XYJ. To post to this group, send email to google-appengine@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. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [giannim] [appengine-java] Re: issue with task queue implementation
It appears as if the URL being constructed when the GET request is passed to the task queue system is being rejected. Any chance you can print out the string emailList - I'm curious what is causing the problem. BTW the typo in Invalud will be fixed - remider to self, learn to spell. On Mon, Dec 19, 2011 at 12:24 AM, Vik vik@gmail.com wrote: Well I found the problem in this. It is caused by the param I am passing though not sure if its a bug in GAE. I am passing as: String emailList = emails.substring(0, 51); queue.add(withUrl(/queue/InviteFriendsQueue).param(ids, emailList).method(Method.GET)); emailList is not null and non empty. and it throws SEVERE: Exception class is :java.lang.IllegalArgumentException Dec 18, 2011 1:18:57 PM vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost SEVERE: Exception is :Invalud URL I tried passing a hardcoded value like: queue.add(withUrl(/queue/InviteFriendsQueue).param(ids, vik.ceo@gmail).method(Method.GET)); and this works fine. Please advise. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sun, Dec 18, 2011 at 12:26 AM, Vik vik@gmail.com wrote: Hie From my GAE code I am calling as Queue queue = QueueFactory.getDefaultQueue(); queue.add(withUrl(/vik/sakshum/sakshumweb/server/queue/InviteFriendsQueue).param(ids, emails.substring(beginIndex, i+1)).method(Method.GET)); and i have a servlet defined as: package vik.sakshum.sakshumweb.server.queue; public class InviteFriendsQueue extends HttpServlet{ private static final Logger log = Logger.getLogger(InviteFriendsQueue.class.getName()); public void doGet(HttpServletRequest req, HttpServletResponse resp){ log.info(Start of doPost InviteFriends); String emails = null; if(req.getParameter(ids) != null) emails = (String)req.getParameter(ids); ... } But on running I am getting: 1. Exception in execute of InviteFriends 2. E2011-12-17 10:50:59.647 vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost: Exception class is :java.lang.IllegalArgumentException 3. E2011-12-17 10:50:59.647 vik.sakshum.sakshumweb.thirdparty.api.CloudSponge.InviteFriends doPost: Exception is :Invalud URL : Please advise. Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups giannim group. To post to this group, send email to gian...@google.com. To unsubscribe from this group, send email to giannim+unsubscr...@google.com. For more options, visit this group at http://groups.google.com/a/google.com/group/giannim/?hl=en. -- Gianni Mariani Google, Sydney -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[google-appengine] Re: what happened do the datastore statistics ?
This can happen if you have large numbers of namespaces, kinds or property names. There is a limit to the size of the datastore_stats written for an application (approx 10MB for apps with entities only in the empty string namespace or 20MB for apps with entities in a non empty string namespace). The size can be easily exceeded if there are a large number of different datastore stats that need to be written. For example, if a property name or a kind name is computed, then there can be a very large number of stats entities. This then can cause the limit to be exceeded. If you're interested in a larger limit for datastore stats, please file a bug so we can track how many people care about this enough. I'd suggest in the meantime, perhaps revisiting the schema you might be using to see if there is a way of avoiding the datastore_stat explosion. On Dec 16, 4:14 pm, Alain de Raynal aderay...@gmail.com wrote: Hi everyone, the datatore statisctics page my gae console does not let me select a specific entity kind anymore and all the queries on the __Stat_Kind__ table return zero result. this started 2 or 3 days ago... is it just for my app ? Thx, Alain -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
Re: [giannim] [appengine-java] threadsafe and sessions-enabled
The session API is thread safe. Hence there is no need to single thread requests. On Sunday, September 4, 2011, Anders blabl...@gmail.com wrote: If an application has both threadsafe and sessions-enabled set to true, then will calls to the session API block so that one frontend instance can only execute one such call at a time when there are several threads running? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/DrIxHS90BRwJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com google-appengine-java%2bunsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups giannim group. To post to this group, send email to gian...@google.com. To unsubscribe from this group, send email to giannim+unsubscr...@google.com giannim%2bunsubscr...@google.com. For more options, visit this group at http://groups.google.com/a/google.com/group/giannim/?hl=en. -- Gianni Mariani Google, Sydney -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [giannim] Re: [appengine-java] Re: No of namespaces limit ?
There are costs for large numbers of namespaces but there are no hard limits on number of namespaces per app-id. The costs are somewhat obvious, e.g. an __namespace__ query will take longer, meaning you'll need to segment your query, there will be datastore stats on a per namespace basis, meaning that your meta data will expand on a per namespace basis (per namespace datastore stats coming soon). The practical limit on the number of namespaces will depend on application code. On Thu, Jun 16, 2011 at 12:31 PM, Ikai Lan (Google) ika...@google.comwrote: No limit. Ikai Lan Developer Programs Engineer, Google App Engine Blog: http://googleappengine.blogspot.com Twitter: http://twitter.com/app_engine Reddit: http://www.reddit.com/r/appengine On Thu, Jun 16, 2011 at 10:18 AM, Aswath Satrasala aswath.satras...@gmail.com wrote: Any replies on this... -Aswath On Tue, Jun 14, 2011 at 9:44 PM, Aswath Satrasala aswath.satras...@gmail.com wrote: Hello, Is there any limit on the number of namespaces per app-id.? -Aswath www.AccountingGuru.in -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups giannim group. To post to this group, send email to gian...@google.com. To unsubscribe from this group, send email to giannim+unsubscr...@google.com. For more options, visit this group at http://groups.google.com/a/google.com/group/giannim/?hl=en. -- Gianni Mariani Google, Sydney -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Deferred Task with non default queue
Hi Marcel, Yes, it should work in a production server, not on the development server. Are you trying this on the production environment? If so, let me know what your app id is. g On Apr 27, 7:28 pm, Marcel Overdijk marceloverd...@gmail.com wrote: Hi Gianni, If I understand correctly I can use the default handler for any deferred task and thus specifying the url is irrelevant. How would I send a 'deferred' Task to a specific queue? Like this? QueueFactory.getQueue(email-queue).add(TaskOptions.Builder.withPayload(newEmailTask(email))); This seems to work indeed as DeferredTaskContext.getCurrentRequest().getHeader(X-AppEngine- QueueName)printsoutthe 'email-queue'. So that's great. Now I've added queue.xml to WEB-INF folder with: queue-entries queue namedefault/name rate1/s/rate retry-parameters min-backoff-seconds1/min-backoff-seconds task-retry-limit5/task-retry-limit /retry-parameters /queue queue nameemail-queue/name rate1/s/rate retry-parameters min-backoff-seconds5/min-backoff-seconds task-retry-limit3/task-retry-limit /retry-parameters /queue queue nameother-queue/name rate1/s/rate /queue /queue-entries I've done some testing and inside the task I just throw an Exception to test the retry parameters. What I see is that the retry parameters are not picked up (at least in Development server). I keeps trying (more than the 3 time retry limit) and the backoff seconds are also not used. I see the first 3 or 4 retries within 2 seconds or so, and interval starts increasing, nut 5 between each retry. Could it be that the queue.xml is not picked up or I did something wrong? Thanks for your help and patience, Marcel On Apr 27, 12:09 am, Gianni Mariani gian...@google.com wrote: On Wed, Apr 27, 2011 at 4:19 AM, Marcel Overdijk marceloverd...@gmail.comwrote: But is it possible to change queue settings for Deferred task? A DeferredTask is just like any other task. There is no restriction on DeferredTasks with respect to queue settings or which queues you put them in. The fact that a special handler exists for deferred task is inconsequential. It's just a simplification, in that you don't need to do that for yourself. i.e. if you do not specify a URL, it will workoutof the box. The task is automatically set to the correct handler when you set the DeferredTask payload. Like a deferred Email task I would like to throttle differently then anotther queue (using Deferred Task( So baically the questions are: - With Deferred task, can you have multiple queues? Like any task. You can add a deferred task to any queue. - Is it possible to change throttling configuration per Deferred task queue? DeferredTasks may be placed in any queue. Just a note. You seem to be conflating handlers/servlet mappings with queues. There is nothing stopping you from having a single handler accept requests from any queue. In the case of the TaskOptions.payload(DeferredTask) method, it will automatically set the handler url for you if it is not otherwise specified. URL is somewhat irrelevant for deferred task since the run() method you define is essentially the entry point for the task. On Apr 26, 4:59 pm, Gianni Mariani gmari...@google.com wrote: The preconfigured URL mapping for the DeferredTaskServlet may be used for any queue. There is no need to specify your own URL mapping that I can see. On Apr 22, 8:05 pm, Marcel Overdijk marceloverd...@gmail.com wrote: I did some quick testing and I foundout: QueueFactory.getQueue(email- queue).add(TaskOptions.Builder.withPayload(new EmailTask(email)).url(/email-queue)); that with above I can enqueue adeferredtaskin the another queue (not default). I had to to use the url(/email-queue) setting otherwise it was pushed to the default __deferred__ handler. I just configured the com.google.apphosting.utils.servlet.DeferredTaskServlet and mapped it to /email-queue When I try System.out.println(queue name: + DeferredTaskContext.getCurrentRequest().getHeader(X-AppEngine- QueueName)); I see the correct e-mail-queue being printed thus so far everything seems to work. I also configured task-retry-limit5/task-retry-limit for this queue but this does not seem to work. So the setup is working but the DeferredTask / DeferredTaskServlet do not seem to look into the settings configured in queue.xml Can somebody confirm this? Do you have more information on how you determined that this is not working? On Apr 22, 11:13 am, Marcel Overdijk marceloverd...@gmail.com wrote: Maybe use additional mappings to com.google.apphosting.utils.servlet.DeferredTaskServlet
[appengine-java] Re: Deferred Task with non default queue
The preconfigured URL mapping for the DeferredTaskServlet may be used for any queue. There is no need to specify your own URL mapping that I can see. On Apr 22, 8:05 pm, Marcel Overdijk marceloverd...@gmail.com wrote: I did some quick testing and I found out: QueueFactory.getQueue(email- queue).add(TaskOptions.Builder.withPayload(new EmailTask(email)).url(/email-queue)); that with above I can enqueue adeferredtaskin the another queue (not default). I had to to use the url(/email-queue) setting otherwise it was pushed to the default __deferred__ handler. I just configured the com.google.apphosting.utils.servlet.DeferredTaskServlet and mapped it to /email-queue When I try System.out.println(queue name: + DeferredTaskContext.getCurrentRequest().getHeader(X-AppEngine- QueueName)); I see the correct e-mail-queue being printed thus so far everything seems to work. I also configured task-retry-limit5/task-retry-limit for this queue but this does not seem to work. So the setup is working but the DeferredTask / DeferredTaskServlet do not seem to look into the settings configured in queue.xml Can somebody confirm this? Do you have more information on how you determined that this is not working? On Apr 22, 11:13 am, Marcel Overdijk marceloverd...@gmail.com wrote: Maybe use additional mappings to com.google.apphosting.utils.servlet.DeferredTaskServlet The documentation onDeferredTasks is a little bit sparse... Any pointers appreciated. Basically what I would like to do is have multiple queue defined with different throttling settings. And use DeferredTask to send them to one of the queues depending on the my needs. I would have no problem with configuring additional servlet mappings using com.google.apphosting.utils.servlet.DeferredTaskServlet On Apr 22, 8:58 am, Marcel Overdijk marceloverd...@gmail.com wrote: Is it possible to useDeferredTasks outside the default queue? I would like to setup multiple queues with different config settings. For theDeferredTasks a specific handler is setup at /_ah/queue/ __deferred__ so I wonder how that would work with multiple queues -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [giannim] [appengine-java] Re: Deferred Task with non default queue
On Wed, Apr 27, 2011 at 4:19 AM, Marcel Overdijk marceloverd...@gmail.comwrote: But is it possible to change queue settings for Deferred task? A DeferredTask is just like any other task. There is no restriction on DeferredTasks with respect to queue settings or which queues you put them in. The fact that a special handler exists for deferred task is inconsequential. It's just a simplification, in that you don't need to do that for yourself. i.e. if you do not specify a URL, it will work out of the box. The task is automatically set to the correct handler when you set the DeferredTask payload. Like a deferred Email task I would like to throttle differently then anotther queue (using Deferred Task( So baically the questions are: - With Deferred task, can you have multiple queues? Like any task. You can add a deferred task to any queue. - Is it possible to change throttling configuration per Deferred task queue? DeferredTasks may be placed in any queue. Just a note. You seem to be conflating handlers/servlet mappings with queues. There is nothing stopping you from having a single handler accept requests from any queue. In the case of the TaskOptions.payload(DeferredTask) method, it will automatically set the handler url for you if it is not otherwise specified. URL is somewhat irrelevant for deferred task since the run() method you define is essentially the entry point for the task. On Apr 26, 4:59 pm, Gianni Mariani gmari...@google.com wrote: The preconfigured URL mapping for the DeferredTaskServlet may be used for any queue. There is no need to specify your own URL mapping that I can see. On Apr 22, 8:05 pm, Marcel Overdijk marceloverd...@gmail.com wrote: I did some quick testing and I found out: QueueFactory.getQueue(email- queue).add(TaskOptions.Builder.withPayload(new EmailTask(email)).url(/email-queue)); that with above I can enqueue adeferredtaskin the another queue (not default). I had to to use the url(/email-queue) setting otherwise it was pushed to the default __deferred__ handler. I just configured the com.google.apphosting.utils.servlet.DeferredTaskServlet and mapped it to /email-queue When I try System.out.println(queue name: + DeferredTaskContext.getCurrentRequest().getHeader(X-AppEngine- QueueName)); I see the correct e-mail-queue being printed thus so far everything seems to work. I also configured task-retry-limit5/task-retry-limit for this queue but this does not seem to work. So the setup is working but the DeferredTask / DeferredTaskServlet do not seem to look into the settings configured in queue.xml Can somebody confirm this? Do you have more information on how you determined that this is not working? On Apr 22, 11:13 am, Marcel Overdijk marceloverd...@gmail.com wrote: Maybe use additional mappings to com.google.apphosting.utils.servlet.DeferredTaskServlet The documentation onDeferredTasks is a little bit sparse... Any pointers appreciated. Basically what I would like to do is have multiple queue defined with different throttling settings. And use DeferredTask to send them to one of the queues depending on the my needs. I would have no problem with configuring additional servlet mappings using com.google.apphosting.utils.servlet.DeferredTaskServlet On Apr 22, 8:58 am, Marcel Overdijk marceloverd...@gmail.com wrote: Is it possible to useDeferredTasks outside the default queue? I would like to setup multiple queues with different config settings. For theDeferredTasks a specific handler is setup at /_ah/queue/ __deferred__ so I wonder how that would work with multiple queues -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups giannim group. To post to this group, send email to gian...@google.com. To unsubscribe from this group, send email to giannim+unsubscr...@google.com. For more options, visit this group at http://groups.google.com/a/google.com/group/giannim/?hl=en. -- Gianni Mariani Google, Sydney -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: How do I run DeferredTasks in a Unit Test
I'm not sure what this is not working (given that it worked previously). I'll take a look. The task is binary data. My first guess is this:- String queuedTask = taskInfo.getBody(); String is UTF-16 encoded while the body is a bunch of bytes. The process of decoding and re-encoding has a potential of corrupting the data. I suggest using *getBodyAsByteshttp://code.google.com/appengine/docs/java/tools/localunittesting/javadoc/com/google/appengine/api/taskqueue/dev/QueueStateInfo.TaskStateInfo.html#getBodyAsBytes() instead.* On Tue, Apr 26, 2011 at 11:00 PM, Brendan Doherty bren...@propertysimplified.com wrote: I've also tried the code below, however I get the following error on the line client.sendRequest(request); Perhaps I'm not encoding the task body correctly? com.google.apphosting.utils.servlet.DeferredTaskServlet: Deferred task failed exception: com.google.apphosting.utils.servlet.DeferredTaskServlet$DeferredTaskException: java.io.StreamCorruptedException: invalid stream header: EFBFBDEF String queueName = QueueFactory.getDefaultQueue().getQueueName(); ServletRunner sr = new ServletRunner(); sr.registerServlet( /_ah/queue/__deferred__, com.google.apphosting.utils.servlet.DeferredTaskServlet.class.getCanonicalName()); LocalTaskQueue localTaskQueue = LocalTaskQueueTestConfig.getLocalTaskQueue(); ServletUnitClient client = sr.newClient(); while (!getQueue().getTaskInfo().isEmpty()) { TaskStateInfo taskInfo = getQueue().getTaskInfo().iterator().next(); String queuedTask = taskInfo.getBody(); String taskName = taskInfo.getTaskName(); WebRequest request = new PostMethodWebRequest(http:/_ah/queue/__deferred__, new ByteArrayInputStream(queuedTask.getBytes()), application/x-binary-app-engine-java-runnable-task); request.setHeaderField(X-AppEngine-QueueName, queueName); try { client.sendRequest(request); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (SAXException e) { // TODO Auto-generated catch block e.printStackTrace(); } // localTaskQueue.runTask(queueName, taskName); localTaskQueue.deleteTask(queueName, taskName); } localTaskQueue.flushQueue(queueName); -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Gianni Mariani Google, Sydney -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Failed to compile jsp files.
Eric, Is this issue related to your problem? http://code.google.com/p/googleappengine/issues/detail?id=1226 /Gianni On Mon, Apr 11, 2011 at 5:29 PM, Perun Katana gabec@yahoo.com wrote: Hi Eric, this is the cause An error occurred at line: -1 in the generated java file Caused by: java.io.IOException: Cannot run program javac.exe: I had the same error and what helped - make sure you run appcfg command with JDK, not just JRE. What I did was - open the appcfg file and make sure the java is called from a JDK (place a full path to JDK if necessary) Hope it will resolve your issue. Regards Perun On 10 avr, 15:05, Eric Wu eric.sunlight16...@gmail.com wrote: My project works fine in local server. But when I upload my project to GAE, there is an error: How to solve the problem Regards -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Gianni Mariani Google, Sydney -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Error while creating user
Hi Everybody, I keep getting a timeout exception while trying to create a user in my domain. Timeout while fetching: https://apps-apis.google.com/a/feeds/orionlabs.com/user/2.0; I'm using the GData library from the 1.43.0 pack. I was told this problem was solved a long time ago, any aproach to what should I do to prevent this behavior? Greetings from Chile, Gian -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Prerelease SDK 1.3.6 is out!
Hi Jens, Keys are read only so there is no setNamespace(). The only way to set the namespace for the Key is upon creation. By default it will use the current namespace which is the string returned by NamespaceManager.get(). get() may return null if it has not been set which means that the Key's namespace will be set to the empty string (i.e. ). If you initialize a Key with an ancestor key, the namespace of the ancestor is used. If you need you would like to see KeyFactory take a namespace parameter, please file a feature request. G On Aug 4, 7:16 am, Mouseclicker jens.h...@googlemail.com wrote: The namespace/multi clientele sounds very exciting! However I am confused. Browsing through the javadoc (I did not try to compile yet) I find getNamespace() in Key and Entity. But I can't find a setNamespace() anywhere... neither in Key, nor in Entity, KeyFactory or DatastoreServiceFactory. Did I miss something? Is this expected to be added later? Can you shed some light on this? This is a long expected feature by many of us I guess... Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [giannim] [appengine-java] app engine and db server elsewhere...
SDC (Secure Data Connector) does allow you to connect to external data sources securely through URL fetch. If you can provide some kind of HTTP RPC mechanism for your app to connect to then yes. On Sun, Jul 4, 2010 at 5:47 AM, emigrant fromwindowstoli...@gmail.comwrote: hi all, can i put my java app in google app engine and have conneciton to mysql database server outside? thanks a lot/ -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups giannim group. To post to this group, send email to gian...@google.com. To unsubscribe from this group, send email to giannim+unsubscr...@google.com giannim%2bunsubscr...@google.com. For more options, visit this group at http://groups.google.com/a/google.com/group/giannim/?hl=en. -- Gianni Mariani Google, Sydney -- 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: [giannim] [appengine-java] Re: Unicode problems
Make sure you have this meta tag in your generated html file. meta http-equiv=Content-Type content=text/html; charset=utf-8 / Also, you can set a response HTTP header with the same string. On Wed, Sep 16, 2009 at 8:06 PM, George Moschovitis george.moschovi...@gmail.com wrote: Hmm, I see correct (Greek) characters in the DataViewer. But I get s in my app. The strange thing is that everything works correctly in the development server. -g. On Sep 16, 12:45 pm, leszek leszek.ptokar...@gmail.com wrote: Very interesting, I don't have any problems with Polish characters. Firstly look at your tables via data-viewer in the production environment. I see Polish characters there. You have to narrow the problem - the characters are lost during sending, persisting or retrieving. -- Gianni Mariani Google, Sydney --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
Re: [giannim] [appengine-java] Re: Unicode problems
Looking at http://lskokan.appspot.com, somehow the strings are being rendered incorrectly in the application. It would be nice to know what the rendering code looks like. On Wed, Sep 16, 2009 at 9:08 PM, George Moschovitis george.moschovi...@gmail.com wrote: Make sure you have this meta tag in your generated html file. meta http-equiv=Content-Type content=text/html; charset=utf-8 / I *do* have this tag in my html! Also, you can set a response HTTP header with the same string. OK, I will try to set the HTTP header, but I don't think this is the problem. -g. -- Gianni Mariani Google, Sydney --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
Re: [giannim] [appengine-java] Can't deploy my first guestbook application
\Temp \appcfg5145010290416497529.tmp\WEB-INF\lib\datanucleus-jpa-1.1.5.jar;C: \DOCUME~1\yb\LOCALS~1\Temp\appcfg5145010290416497529.tmp\WEB-INF\lib \geronimo-jpa_3.0_spec-1.1.1.jar;C:\DOCUME~1\yb\LOCALS~1\Temp \appcfg5145010290416497529.tmp\WEB-INF\lib\geronimo- jta_1.1_spec-1.1.1.jar;C:\DOCUME~1\yb\LOCALS~1\Temp \appcfg5145010290416497529.tmp\WEB-INF\lib\jdo2-api-2.3-eb.jar;C: \DOCUME~1\yb\LOCALS~1\Temp\appcfg5145010290416497529.tmp\WEB-INF\lib \repackaged-appengine-ant-1.6.5.jar;C:\DOCUME~1\yb\LOCALS~1\Temp \appcfg5145010290416497529.tmp\WEB-INF\lib\repackaged-appengine-ant- launcher-1.6.5.jar;C:\DOCUME~1\yb\LOCALS~1\Temp \appcfg5145010290416497529.tmp\WEB-INF\lib\repackaged-appengine- commons-el-1.0.jar;C:\DOCUME~1\yb\LOCALS~1\Temp \appcfg5145010290416497529.tmp\WEB-INF\lib\repackaged-appengine- commons-logging-1.1.1.jar;C:\DOCUME~1\yb\LOCALS~1\Temp \appcfg5145010290416497529.tmp\WEB-INF\lib\repackaged-appengine- jakarta-jstl-1.1.2.jar;C:\DOCUME~1\yb\LOCALS~1\Temp \appcfg5145010290416497529.tmp\WEB-INF\lib\repackaged-appengine- jakarta-standard-1.1.2.jar;C:\DOCUME~1\yb\LOCALS~1\Temp \appcfg5145010290416497529.tmp\WEB-INF\lib\repackaged-appengine-jasper- compiler-5.0.28.jar;C:\DOCUME~1\yb\LOCALS~1\Temp \appcfg5145010290416497529.tmp\WEB-INF\lib\repackaged-appengine-jasper- runtime-5.0.28.jar; -d C:\DOCUME~1\yb\LOCALS~1\Temp \appcfg5145010290416497529.tmp\WEB-INF\classes -encoding UTF-8 C: \DOCUME~1\yb\LOCALS~1\Temp\appcfg5145010290416497529.tmp\WEB-INF \classes\org\apache\jsp\guestbook_jsp.java -- Gianni Mariani Google, Sydney --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
Re: [giannim] [appengine-java] Java Security Error
App Engine does not allow access to JDBC. You must either use the App Engine Datastore or push you JDBC requests to another server using the UrlFetch service (perhaps using SDC). On Sun, Sep 13, 2009 at 2:14 AM, Ravi Mandliya funkyr...@gmail.com wrote: Hello everyone I just uploaded my first application, its running, and seems to be working fine, but there is a problem, I get the following error when onblur() on the textbox is activated, I have applied ajax which fetches the data from Database(IBM DB2). It generates the following error: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.io) Full error code is following: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.sun.jdbc.odbc) at java.security.AccessControlContext.checkPermission(Unknown Source) at java.security.AccessController.checkPermission(Unknown Source) at java.lang.SecurityManager.checkPermission(Unknown Source) at com.google.appengine.tools.development.DevAppServerFactory $CustomSecurityManager.checkPermission(DevAppServerFactory.java:139) at java.lang.SecurityManager.checkPackageAccess(Unknown Source) at org.apache.jasper.servlet.JasperLoader.loadClass (JasperLoader.java: 117) at org.apache.jasper.servlet.JasperLoader.loadClass (JasperLoader.java: 69) at java.lang.ClassLoader.loadClassInternal(Unknown Source) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at java.sql.DriverManager.getCallerClass(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at java.sql.DriverManager.getConnection(Unknown Source) at org.apache.jsp.validate_jsp._jspService(validate_jsp.java: 65) at org.apache.jasper.runtime.HttpJspBase.service (HttpJspBase.java:94) at javax.servlet.http.HttpServlet.service(HttpServlet.java: 806) at org.apache.jasper.servlet.JspServletWrapper.service (JspServletWrapper.java:324) at org.apache.jasper.servlet.JspServlet.serviceJspFile (JspServlet.java:292) at org.apache.jasper.servlet.JspServlet.service (JspServlet.java:236) at com.google.appengine.tools.development.PrivilegedJspServlet.access $101(PrivilegedJspServlet.java:23) at com.google.appengine.tools.development.PrivilegedJspServlet $2.run (PrivilegedJspServlet.java:59) at java.security.AccessController.doPrivileged(Native Method) at com.google.appengine.tools.development.PrivilegedJspServlet.service (PrivilegedJspServlet.java:57) 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.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:54) at org.mortbay.jetty.handler.HandlerWrapper.handle (HandlerWrapper.java:139) at com.google.appengine.tools.development.JettyContainerService $ApiProxyHandler.handle(JettyContainerService.java:313) 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.headerComplete (HttpConnection.java:830) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java: 514) 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) Thanks in advance Regards -- Gianni Mariani Google, Sydney
Re: [giannim] [appengine-java] Any way to work around 30 second request time limit?
On Sun, Sep 13, 2009 at 5:29 AM, hg hgo...@gmail.com wrote: Hi, I have a task that I need to run via cron. It takes a fair amount of time - is there any way around the 30 second request time limit? I tried Runtime.getRuntime().exec(java , but I get a permission denied error. Does anyone have any ideas? Using Task Queues may help. The idea is that you break the job into 30 second or less chunks-o-work and queue them. -- Gianni Mariani Google, Sydney --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---
[appengine-java] Re: QueueFactory.getQueue( String )
On Sep 6, 4:48 am, Vince Bonfanti vbonfa...@gmail.com wrote: I found the answer to this: the Queue.add() method throws IllegalArgumentException if the specified queue isn't configured (BTW, the message in the IllegalArgumentException is The specified queue is unknown : but doesn't actually include the queue name in the message string). This isn't as nice as what I'd like, but I can see that the queue.xml file isn't processed until Queue.add() is invoked. The Java task queue library never processes queue.xml. There is no other feedback that the queue is not configured from the API other than the exception given. I guess my workaround will be to try to add a dummy task to the queue when I create it: private static Queue queue; static { queue = QueueFactory.getQueue( myQueue ); try { queue.add(); } catch ( IllegalArgumentException e ) { queue = QueueFactory.getDefaultQueue(); queue.add(); ... } } Note that this also may fail. The default queue is only special in that one is created for you if it does not exist but it may also be configured off or paused. I'm trying to simplify configuration for users of GaeVFS (http://code.google.com/p/gaevfs/). Rather than requiring them to configure task queues for GaeVFS, I'd like to have it use the default queue by default. However, if they want to change the behavior for specific queues, then they can configure them explicitly. Should I open an issue for a simpler way to detect if a queue is configured? or is this something that's unlikely to change? I think I see where you're coming from here but if you can file a bug it would help us understand how to improve the API. Vince On Fri, Sep 4, 2009 at 6:19 PM, Vince Bonfantivbonfa...@gmail.com wrote: My first question on task queues... I'd like to design my application to use a named (configured) queue if it exists, but to drop back to using the default queue if the named queue isn't configured. I'd like to do something like this: Queue q = QueueFactory.getQueue( myQueue ); if ( q == null ) { q = QueueFactory.getDefaultQueue(); } But, the documentation for QueueFactory.getQueue( String ) implies that this isn't how it works: Attempting to use a non-existing queue name may result in errors at the point of use of the Queue object and not when calling getQueue(String). Is there a way to simply and reliably determine whether a given queue name has been configured? Vince --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en -~--~~~~--~~--~--~---