Re: [appengine-java] GAE Authentication Broken
Not sure... but since you are connecting through https, try to get the SACSID cookie instead of the ACSID. fabrizio On Sun, Apr 24, 2011 at 11:04 PM, Konstantin Weitz konstantin.we...@googlemail.com wrote: Hi guys, I'm trying to authenticate at a web service, running on gae, with android as described here http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app For that reason I first get the token from the phone with the following code accountManager.getAuthToken(account, ah, false, new GetAuthTokenCallback(), null); // ... String auth_token = bundle.getString(AccountManager.KEY_AUTHTOKEN); and i then request the following url in order to get the real authentication token https://+DOMAIN+/_ah/login?continue=http://localhost/auth=; + auth_token and i get the following error message (the code used to work just recently) The server encountered an error and could not complete your request. If the problem persists, please A HREF= http://code.google.com/appengine/community.html;report/A your problem and mention this error message and the query that caused it./h2 What is the problem? Did the api change? -- 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.
Re: [appengine-java] GAE Authentication Broken
In your first piece of code you used https. So you need to get the secure auth cookie from app engine (SACSID). IMHO My codes. It manages both cookies. http://fhtino.blogspot.com/2011/02/connet-android-app-to-google-app-engine.html fabrizio On Mon, Apr 25, 2011 at 12:22 PM, Konstantin Weitz konstantin.we...@googlemail.com wrote: I think my authentication token may just have expired. http://stackoverflow.com/questions/1996686/authtoken-from-accountmanager-in-android-client-no-longer-working I didn't check yet but the symptoms seem to match. It sure would be nice if the error message I get from the server would be more helpful. -- 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: Failing tasks getting duplicated
*If a task fails to execute* (by returning any HTTP status code outside of the range *200-299*), App Engine retries *until it succeeds*. http://code.google.com/appengine/docs/java/taskqueue/overview.html#Task_Execution So, if you need to run you tasks once, ensure you will return always http 200. The simpler way: put a try-catch in your servlet entry point and catch all exceptions. A quite brutal but it works. fabrizio On Sun, Apr 17, 2011 at 8:34 AM, nischalshetty nischalshett...@gmail.comwrote: Pretty weird. Let's hope someone from the GAE team peeps into this thread. I have thousands of tasks being generated every minute and there are errors when they are executed. I'm hoping they don't get duplicated. There's no way for me to know so if what you say is true then it's trouble for a lot of us. -- 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] Federated ID versus User ID
Peter, I use it as the primary key of my entity. No problem. fabrizio PS: please, do not double post on the mailing list. On Thu, Apr 14, 2011 at 2:09 AM, Peter ptr...@gmail.com wrote: Fabrizio, Thank you for your help. Once I get the user id, do I still need to run it through createKey or can I directly use the ID as the primary key? User user = userservice.getCurrentUser(); String id = user.getUserId(); Key userIdKey = KeyFactory.createKey(Users, id); Entity eUser = new Entity(Users, userIdKey); Appreciate your help. Regards, Peter -- 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.
Re: [appengine-java] User service - getCurrentUser always returns null
Have you activated Security Authentication in the web.xml? http://code.google.com/appengine/docs/java/config/webxml.html#Security_and_Authentication http://code.google.com/appengine/docs/java/config/webxml.html#Security_and_Authentication fabrizio On Wed, Apr 13, 2011 at 7:44 AM, Peter ptr...@gmail.com wrote: Folks, I am a bit confused on how to use user services correctly. Here is the relevant code snippet: public class GreetingServiceImple extends RemoteServiceServlet implements GreetingService { public string greetServer() { UserService us = UserServiceFactory.getUserService(); User user = us.getCurrentUser(); ... } } The problem is, the value returned by getCurrentUser is always null, irrespective of whether I deploy locally or at appspot. I am using Firefox as the client. I have two tabs open. On one tab, I am signed into Google mail using my gmail account. On the other tab, I am trying to run the app that I am working on. What is it that I am missing? Thank you in advance for your help. Regards, Peter -- 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.
Re: [appengine-java] Federated ID versus User ID
getUserID I see that User class has two methods to obtain id information, getFederatedIdentity() and getUserId(). Which of these two can be used as the primary key for storing per-user information. -- 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] only allowing local connections to dev server?
Perhaps a better solution: use the --address paramater http://code.google.com/appengine/docs/java/tools/devserver.html#Command_Line_Arguments http://code.google.com/appengine/docs/java/tools/devserver.html#Command_Line_Arguments fabrizio On Mon, Apr 11, 2011 at 7:56 AM, Fabrizio Accatino fht...@gmail.com wrote: I use rinetd. It's a port forwarder. http://www.boutell.com/rinetd/ fabrizio (from android) Il giorno 10/apr/2011 19.57, Luis Montes monte...@gmail.com ha scritto: When running a java webapp in eclipse it seems that I can only connect to the dev jetty instance from the localhost. Is jetty fired up only bound to 127.0.0.1? -- 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] only allowing local connections to dev server?
I use rinetd. It's a port forwarder. http://www.boutell.com/rinetd/ fabrizio (from android) Il giorno 10/apr/2011 19.57, Luis Montes monte...@gmail.com ha scritto: When running a java webapp in eclipse it seems that I can only connect to the dev jetty instance from the localhost. Is jetty fired up only bound to 127.0.0.1? I have some mobile wifi devices (android, ipad, etc.) that I'd like to test with on the LAN but it seems that I'm going to have do some tunneling or proxying to get things to work. I can't find a way to configure networking in the sdk. Is 127.0.0.1:hardcoded somewhere? Luis -- 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.
Re: [appengine-java] urlfetcher bug, weird content retrieved.
Afaik UrlFetch uses an internal cache. Note the two different heders in you logs: x-google-cache-control=[remote-cache-hit] x-google-cache-control=[remote-fetch] To force a fresh urlfetch everytime, add these headers in you request. connection.addRequestProperty(Cache-Control, no-cache,max-age=0); connection.addRequestProperty(Pragma, no-cache); Fabrizio On Sat, Feb 12, 2011 at 12:08 PM, aka1g van...@gmail.com wrote: Hi! I'm fetching webpages and parse them. I have a weird behavior that looks like GAE bug. One of the pages retrieved has a totally different content. I'm getting http://www.gamer-district.com/modules/mod_realmcore/mod_realmcore.php page, and most of the time it is retrieved incorrectly. It can be that some stale/cathed version is returned. I am logging http headers and page content.This only happens for this particular url. -- 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: Problem Authenticating against App Engine
The Nick's way is the good way. My note was about OAuth. Afaik Android AccountManager class uses ClientLogin for authentication on App Engine. Fabrizio On Sun, Feb 6, 2011 at 5:03 PM, Sky skysoftwaredes...@googlemail.comwrote: thanks for the answer. I will try it, as soon as my new mobile sim card has been activated ;). In the 2.3 emulator it worked with another account... ClientLogin: I did not find any sample code. The best documented way I found was Nick's blog. Maybe Google should provide some Tutorials/libs with sample code, that demonstrates the perfect way to authenticate an Android app with app engine using Google accounts... -- 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: Problem Authenticating against App Engine
I follow another way: 1 - get auth token from AccountManager 2 - try to get the auth Cookie from AppEngine 3 - if step 2 fails, I invalidate the Auth token and restart from step 1. My very alpha code is here: http://fhtino.blogspot.com/2011/02/connet-android-app-to-google-app-engine.html Fabrizio On Sun, Feb 6, 2011 at 8:12 PM, Sky skysoftwaredes...@googlemail.comwrote: One more question concerning the invalidation of the AuthToken. I read that it invalidates after 24h. What is when the Activity, holding the AuthToken (in NicksBlog the AppInfo class), ends (with finish() and onDestroy) and started again? In my opinion a new valid AuthToken is fetched every time the Appinfo class gets started. In this case, why do I have to invalidate the old AuthToken? On 6 Feb., 19:46, Sky skysoftwaredes...@googlemail.com wrote: thanks for the clarification! On 6 Feb., 17:16, Fabrizio Accatino fht...@gmail.com wrote: The Nick's way is the good way. My note was about OAuth. Afaik Android AccountManager class uses ClientLogin for authentication on App Engine. Fabrizio On Sun, Feb 6, 2011 at 5:03 PM, Sky skysoftwaredes...@googlemail.com wrote: thanks for the answer. I will try it, as soon as my new mobile sim card has been activated ;). In the 2.3 emulator it worked with another account... ClientLogin: I did not find any sample code. The best documented way I found was Nick's blog. Maybe Google should provide some Tutorials/libs with sample code, that demonstrates the perfect way to authenticate an Android app with app engine using Google accounts... -- 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.
Re: [appengine-java] Problem Authenticating against App Engine
Perhaps your authentication token was expired. In the android app, call .invalidateAuthToken(account.type, authToken) on AccountManager class. This releases the current authentication token. Then call again getAuthToken to obtain a new and fresh authentication token. A note: AFAIK Android uses ClientLogin and not OAuth. http://code.google.com/apis/accounts/docs/AuthForInstalledApps.html Fabrizio On Fri, Feb 4, 2011 at 11:57 PM, Sky skysoftwaredes...@googlemail.comwrote: Hi all, I am using the oauth authentication process to authenticate Android to App Engine described in Nick's blog: http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app This worked fine until today. Today the authentication on app engine fails - boolean authenticated = userServiceManager.isUserLoggedIn(); returns always false. Is anyone out there using the same authentication process and has the same problem? Are there any changes concerning the URL the cookie is fetched? HttpGet http_get = new HttpGet(https://yourapp.appspot.com/_ah/login? continue=http://localhost/auth=https://yourapp.appspot.com/_ah/login?continue=http://localhost/auth= + tokens[0]); 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-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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: UrlFecth: random java.io.IOException: Could not fetch URL: http://...myurl...
Didier, thank you for your feedback but I think the error is not related with maximum size. Infact the content is not big and I don't get a ResponseTooLargeExpetion. http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/urlfetch/ResponseTooLargeException.html Fabrizio On Thu, Feb 3, 2011 at 8:31 AM, Didier Durand durand.did...@gmail.comwrote: Hi, 1 possibility that I see: you fetch a page with a variable length (i.e dynamically generated over time: RSS stream, twitter feed, etc...) and sometimes the length is over the URL fetch service limit - exception See text at end of http://code.google.com/appengine/docs/java/urlfetch/overview.html#Responses regards didier On Feb 3, 8:23 am, Fabrizio Accatino fht...@gmail.com wrote: I have a recurring task that get content from various urls on different hosts. On some urls I get random IOException: java.io.IOException: Could not fetch URL:http://...myurl... On one url the failure rate is about 1 / 10. But it's not regular. On another url the rate is lower: 1/100. Other urls work without errors. The errors are not timeout-related. When UrlFetch encounters a timeout it throws an exception with a different message: java.io.IOException: Timeout while fetching:http://...myurl... Suggestions? Fabrizio -- 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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] Feature request: UrlFetch java : differenciate IOException causes
http://code.google.com/p/googleappengine/issues/detail?id=4502 -- 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] Google Voice + App Engine (Java)
I think your lib uses not whitelisted java API or blocked java API java.security.AccessControlException: access denied (java.lang.RuntimePermission setFactory) Following your stacktrace the problem comes from java.net.HttpURLConnection.setFollowRedirect The method is called by com.techventus.server.voice.Voice.get(Voice.java:1144) I searched using Google... is this your lib? http://code.google.com/p/google-voice-java ? If yes, download the latest source code and compile it. The latest version of Voice.java does not contain the call to java.net.HttpURLConnection.setFollowRedirect. It was replaced some revisions ago. http://code.google.com/p/google-voice-java/source/diff?spec=svn137old=115r=135format=sidepath=/trunk/src/com/techventus/server/voice/Voice.java http://code.google.com/p/google-voice-java/source/browse/trunk/src/com/techventus/server/voice/Voice.java The jar in the download area was not updated. So you need to download the source code and compile it by yourself. Fabrizio On Wed, Feb 2, 2011 at 5:34 PM, lovegoogle sinusek...@gmail.com wrote: Hello All, I tried using google voice within App Engine and it fails to execute because of the custom Security Manager that App Engine uses. From the stack trace, it looks like it is failing during the Http Connection it needs to make to send SMS. My goal is to use SMS feature within my application. I tried running the same code outside of App Engine runtime, using just my JDK as a console app and it works fine. The restriction is imposed by App Engine. Is there any way to get around it or Google Voice is a no no within App Engine. I would assume that Google Voice is a trusted code since its part of google APIs. Any pointers will really help me...Thanks. Sinu Here is the code - try { log.info(going to log in); Voice voice = new Voice(email, password); log.info(logged in); voice.sendSMS(phonenum, message); log.info(sms sent); return true; } catch(Exception e) { e.printStackTrace(); return false; } - Here is the stack trace.. - going to log in https://www.google.com/accounts/ClientLogin - OK Logged in to Google - Auth token received java.security.AccessControlException: access denied (java.lang.RuntimePermission setFactory) at java.security.AccessControlContext.checkPermission(AccessControlContext.java: 323) at java.security.AccessController.checkPermission(AccessController.java: 546) at java.lang.SecurityManager.checkPermission(SecurityManager.java: 532) at com.google.appengine.tools.development.DevAppServerFactory $CustomSecurityManager.checkPermission(DevAppServerFactory.java:166) at java.lang.SecurityManager.checkSetFactory(SecurityManager.java: 1612) at java.net.HttpURLConnection.setFollowRedirects(HttpURLConnection.java: 249) at com.techventus.server.voice.Voice.get(Voice.java:1144) at com.techventus.server.voice.Voice.getGeneral(Voice.java:361) at com.techventus.server.voice.Voice.init(Voice.java:262) at com.techventus.server.voice.Voice.init(Voice.java:211) at com.sinusekhar.cloudapps.zumba.dao.MobileDAO.sendSMS(MobileDAO.java: 15) at org.apache.jsp.zumba.jsp.play_jsp._jspService(play_jsp.java:64) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java: 377) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java: 313) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:260) 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:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.appengine.api.blobstore.dev.ServeBlobFilter.doFilter(ServeBlobFilter.java: 58) at
[appengine-java] UrlFecth: random java.io.IOException: Could not fetch URL: http://...myurl...
I have a recurring task that get content from various urls on different hosts. On some urls I get random IOException: java.io.IOException: Could not fetch URL: http://...myurl... On one url the failure rate is about 1 / 10. But it's not regular. On another url the rate is lower: 1/100. Other urls work without errors. The errors are not timeout-related. When UrlFetch encounters a timeout it throws an exception with a different message: java.io.IOException: Timeout while fetching: http://...myurl... Suggestions? Fabrizio -- 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] How to prevent google bot
robot.txt ? On Tue, Feb 1, 2011 at 2:16 PM, midi chum...@gmail.com wrote: How can I prevent google bot from accessing a java based appspot app ?. -- 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: Get execution duration of an asynchronous urlfetch
Didier, your idea is good but can/want execute activity on a task. I need simple approach: run X async urlfetch, wait for end of execution and store execution time of each fetch. I've opened a feature request on the issue tracker: http://code.google.com/p/googleappengine/issues/detail?id=4476 Fabrizio On Sun, Jan 30, 2011 at 8:28 AM, Didier Durand durand.did...@gmail.comwrote: Hi, You're right: async url fetch doesn't seem to provide any way to measure fetch time. Then, I have a proposal: why don't you schedule a task per fetch, this task will then do a regular synchronous url fetch for which measuring will be easy. So, your original servlet / task will schedule as many tasks as you have fetches and wait via a loop of Thread.sleep() until all fetches are done and their results (incl fetch time) written somewhere (datastore / memcache) that the original servlet / task can access to complete the work. The only question though: can the application afford to launch those tasks as they will incurr some overhead : some tenths of milliseconds of cpu to schedule a task and run it + cpu time to write result to cacche or ds in order to be shareable with originator. If not acceptable, I hope it will at least give you some other ideas to follow regards didier On Jan 29, 9:50 am, Fabrizio Accatino fht...@gmail.com wrote: Hello, I'm playing with async urlfetch. My ispiration was Ikai athttp:// ikaisays.com/2010/06/29/using-asynchronous-urlfetch-on-java-ap... I run some request in parallel. All works fine. But now I'd like to get info about execution time of each request. The target URLs I call are different so the response time are very different. I read the documentation but HTTPResponse does not expose a execution duration or similar value. Any idea? Fabrizio -- 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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] Get execution duration of an asynchronous urlfetch
Hello, I'm playing with async urlfetch. My ispiration was Ikai at http://ikaisays.com/2010/06/29/using-asynchronous-urlfetch-on-java-app-engine/ I run some request in parallel. All works fine. But now I'd like to get info about execution time of each request. The target URLs I call are different so the response time are very different. I read the documentation but HTTPResponse does not expose a execution duration or similar value. Any idea? Fabrizio -- 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] Unindexed properties with JDO ?
Using the datastore low-level API I can set a property to no indexed. Entity.setUnindexedProperty(); http://code.google.com/appengine/docs/java/datastore/queries.html Is there a way to get the same behaviour using JDO? I'd like to reduce the space used by indexes automatically created on the properties. Fabrizio -- 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] Task Queue API Update
Method names changed :) .url(...) -- withUrl(...) .method(...) -- withMethod(...) http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.Builder.html Fabrizio http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/taskqueue/TaskOptions.Builder.html On Sun, Jan 23, 2011 at 7:14 PM, Doug doug...@gmail.com wrote: Good Afternoon All, I am working to convert from the Task Queue Labs API to the non-labs API version. I am finding it slightly more difficult than I initially anticipated. It appears that how I was adding tasks to the queue is not compatible with the non-labs API. If I just update the imports to bring in the new API I get the error “The method url(String) is undefined for the type TaskOptions.Builder”. I have provide some example of my code below, if anyone else has converted can you give me some guidance on what I am doing wrong? Current code, using the Labs API: *import* *com.google.appengine.api.labs.taskqueue.Queue*; *import* *com.google.appengine.api.labs.taskqueue.QueueFactory*; *import* *com.google.appengine.api.labs.taskqueue.TaskOptions*; *import* *com.google.appengine.api.labs.taskqueue.TaskOptions.Method*; *import* *com.google.appengine.api.labs.taskqueue.TaskOptions.Builder*.*; … Queue add_queue = QueueFactory.getQueue(add); … for (int i = 1; i Item_counter; i++) { add_queue.add(TaskOptions.Builder.url(/add?item=+ItemURL[i]).method(Method.GET)); } Code using the non-Labs API import com.google.appengine.api.taskqueue.Queue; import com.google.appengine.api.taskqueue.QueueFactory; import com.google.appengine.api.taskqueue.TaskOptions; import com.google.appengine.api.taskqueue.TaskOptions.Method; import static com.google.appengine.api.taskqueue.TaskOptions.Builder.*; TaskOptions TOdefault = com.google.appengine.api.taskqueue.TaskOptions.Builder.withDefaults(); … for (int i = 1; i Item_counter; i++) { TaskOptions TO = new TaskOptions(TOdefault); TO.url(/add); TO.param(item, itemURL[i]); TO.method(Method.GET); add_queue.add(TO); } The new code compiles and will “run”, but I get all kinds of null pointer exceptions from the tasks when they try to run. If I switch back to the labs API it works perfectly. Can anyone help me understand what I need to do to either get my original code to work with the new API and/or what I did incorrectly with the updated code? Thanks, Doug -- 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.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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: Task queue + datastore transaction + jdo: is it possible?
Thank you very much. It works fine. :) Only a note. In my tests I didn't pass the transaction when I call the queue.add. It seems that queue.add feels the current transaction (see the example at http://code.google.com/appengine/docs/java/taskqueue/overview.html#Tasks_Within_Transactions ) My code: PersistenceManager pm = PMF.get().getPersistenceManager(); try { pm.currentTransaction().begin(); // JDO Query jdoquery = pm.newQuery(Friend.class); get object x x.setLastUpdate(new Date()); pm.makePersistent(x); // Queue Queue queue = QueueFactory.getQueue(myqueue); queue.add(taskOpts); pm.currentTransaction().commit(); } finally { if (pm.currentTransaction().isActive()) pm.currentTransaction().rollback(); pm.close(); } Fabrizio On Tue, Jan 11, 2011 at 9:29 PM, Ed Murphy emur...@yahoo.com wrote: Yes, I do this with JDO. Just add to you queue within the current transaction, for instance; PersistenceManager pm = PMF.get().getPersistenceManager(); try { // // start transaction so we can atomically check the secondary key // pm.currentTransaction().begin(); // // enqueue a task to process this ImportTask // // String theUrl = /tasks; // whatever your url will be - this is is your state; Queue queue = QueueFactory.getDefaultQueue(); queue.add( DatastoreServiceFactory.getDatastoreService().getCurrentTransaction(), TaskOptions.Builder.url(theUrl)); // // commit the transaction. // pm.currentTransaction().commit(); // we finished, so commit the transaction. } catch(DataAccessException dae) { throw dae; // let prior DataAccessException leave. } catch(Exception e) { throw new DataAccessException(e); // wrap the exception in our runtime exception. } finally { // // if the transactions is still active, then there // was an exception thrown. So we rollback the transaction. // if(pm.currentTransaction().isActive()) { pm.currentTransaction().rollback(); } // // we always close the PersistenceManager when done. // if(!pm.isClosed()) { pm.close(); } } On Jan 11, 10:45 am, Fabrizio Accatino fht...@gmail.com wrote: Hello, documentation tells I can insert a task in queue during a datastore transaction. http://code.google.com/appengine/docs/java/taskqueue/overview.html#Ta... The example uses datastore low level api. Is there a way to do the same with JDO? Thank you Fabrizio -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Restlet, GAE, Android and Google Account authentication (oauth)
Is this the ClientResource class you use? http://www.restlet.org/documentation/2.0/jse/api/org/restlet/resource/ClientResource.html If yes, ClientResource class has a setCookies method. Get the auth cookie from GAE and then set it. Also Request has setCookie http://www.restlet.org/documentation/2.1/gwt/api/org/restlet/client/Request.html Let me know if it works. http://www.restlet.org/documentation/2.1/gwt/api/org/restlet/client/Request.html Fabrizio On Tue, Jan 11, 2011 at 12:55 PM, Sky skysoftwaredes...@googlemail.comwrote: yes, that would be the way with simple httpClient. Maybe there is a way to couple the HttpClient with Restlet? It seems not to be documented... Maybe there is a way to use Restlet API or another Rest client library to do that above? Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Task queue + datastore transaction + jdo: is it possible?
Hello, documentation tells I can insert a task in queue during a datastore transaction. http://code.google.com/appengine/docs/java/taskqueue/overview.html#Tasks_Within_Transactions The example uses datastore low level api. Is there a way to do the same with JDO? Thank you Fabrizio -- 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: SQL injection on App Engine ?
I don't want to start a flame. I'd like to understand a bit more datastore and jdo and how to use them better. :) So, the problem exists. Can you confirm? I agree with you: it's a developer problem and not a jdo or datastore problem. But it's the same as the classic sql injection attack: it's always caused by developer error. Last: on GAE the problem is very less important and mitigated than classic sql. Infact in GAE you cannot inject the classic sql injection sequence like dummy' or '1'='1 . But this is due to the fact that datastore is not able to manage 1==1. So, as you wrote, it's important to use parameters and not concatenated strings. Exactly the same as classic sql. :) Have I correctly understood? Fabrizio On Sun, Jan 9, 2011 at 9:29 AM, datanucleus andy_jeffer...@yahoo.comwrote: And that is the developer who has left it open to that. Any sane developer would have put parameters in the query String q = select from Employee where managerID == :user lastName == :name; and there any vulnerability disappears. :-P Besides which the query written like that would also optimise far better -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Restlet, GAE, Android and Google Account authentication (oauth)
I'm not sure if I have undestood your question. I have done Android--GAE connection using the AccountManager class: First: get an authentication token using AccountManager (ah is App Engine): ... AccountManager mgr = AccountManager.get(context); ... AccountManagerFutureBundle accountManagerFuture = mgr.getAuthToken(account, ah, null, (Activity) context, null, null); Bundle authTokenBundle = accountManagerFuture.getResult(); authToken = authTokenBundle.get(AccountManager.KEY_AUTHTOKEN).toString(); ... Then retrive authentication cookie using DefaultHttpClient passing the authToken. The url is: String url = http://myapp.appspot.com/_ah/login; + ?continue= + URLEncoder.encode(_gaeAppBaseUrl, UTF-8) + auth= + URLEncoder.encode(authToken, UTF-8); The auth cookie is ACSID Fabrizio On Mon, Jan 10, 2011 at 10:04 AM, Sky skysoftwaredes...@googlemail.comwrote: Hello, does anyone know how to use Restlet in combination with OAUTH on GAE and Android? I searched the web and did not found any useful documentations or tutorial. Seems like this is not supported anymore? What I want to do is connecting Android to Google App engine. On App engine I want to use the Google user service (userServiceManager.isUserLoggedIn()), to authenticate the user with his Google Account. Here is my Restlet Server Code, which works well: public class UploadServerApplication extends Application { @Override public Restlet createInboundRoot() { Router router = new Router(getContext()); getConnectorService().getClientProtocols().add(Protocol.FILE); router.attachDefault(UploadServerResource.class); return router; } } Resource: UploadServerResource extends ServerResource implements UploadResource { public UploadResult upload(UploadData uploadData) { UserService userServiceManager = UserServiceFactory.getUserService(); boolean authenticated = userServiceManager.isUserLoggedIn();--- always false in my tests! if (authenticated) { ... result.setSuccess(true); } else { ...result.setSuccess(false); } return result; } - Android client code (where is the place to set Google OAuth Cookie??): ClientResource cr = new ClientResource(http://192.168.1.4:/ upload); UploadResource resource = cr.wrap(UploadResource.class); UploadData uploadData = new UploadData(); ... UploadResult result = resource.uploadTrack(uploadData); ... -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: SQL injection on App Engine ?
Datanucleus, perhaps my post was too impetuous. Sorry. Actually sql injection (not real SQL) is a small issue on GAE. You are right. GAE does not use SQL but you can inject piece of query into. A very simple example: String name = request.getParameter(name); String q = select from Employee where lastName == ' + name + '; Query query = pm.newQuery(Employee.class, q); Case1 (good): send name = smith Case2 (not good): send name = smith' || lastName == 'foo OK. It's not so dangerous. Infact you cannot send strong injections like smith' || '1'=='1 because the engine (actually) refuse it. So, you are right. No big problem. Fabrizio On Mon, Dec 27, 2010 at 10:29 AM, datanucleus andy_jeffer...@yahoo.comwrote: SQL injection ? into a database that doesn't support SQL? Please present a clear example of how such a thing can happen and what effect it can have. The application designer is the person who allows such a thing, not the underlying API -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] SQL injection on App Engine ?
In a previous post John pointed out that App Engine is subject to attacks like SQL injection. He recommended to use parametrized query instead of concatenating strings to build the query. I think he is right. Perhaps I missed some points but the docuementation does not point it out. http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html A suggestion to Google guys: add a clear warning on documentation about using concatenated queries and remove concatenated examples (or make it clear to not use them on real apps). IMHO :) Fabrizio On Sat, Dec 25, 2010 at 6:42 PM, John jwb...@gmail.com wrote: Really, it's important to use parameterized queries. Looking at this style of code causes me to assume the app will be subject to attack in the 'SQL'-injection style. (Acknowledging that what would be injected would have to be something other than SQL.) -- 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 API call mail.Send() required more quota than is available.
... or enqueue your outgoing message on a task queue with a slow run frequency (let's say 5/minutes). I do that and I'm very happy. :) Fabrizio On Sat, Dec 18, 2010 at 1:15 AM, Ikai Lan (Google) ikai.l+gro...@google.comikai.l%2bgro...@google.com wrote: 8 is fairly arbitrary, but there's always going to be a number that bothers people, be it 10, 20 or 50. You should enable billing. We only charge if you go above the daily free quota, and it raises the rate limit. That means that if you send 10 emails per minute and only do this once a month, you'll never hit this quota limit, and we'll likely not bill you since you'll still be well within our free quota. -- 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: Local datastore empty after updating to SDK 1.4.0
Ian, I had read your previous post (2010-04-15). As you wrote, I'd also like to find a more authoritatively response. But I haven't found it. :( fabrizio On Sun, Dec 5, 2010 at 11:47 AM, Ian Marshall ianmarshall...@gmail.comwrote: Does this post help? http://www.google.com/url?url=http://groups.google.com/g/f907f736/t/27097b9831aff32a/d/c16b898dcaad10ef%3Fq%3D%23c16b898dcaad10efei=aG37TNXvFoHA_Abn1qTaAgsa=tct=rescd=10source=groupsusg=AFQjCNGa_5Wk3KqMn7czeKwR0zocC07gOw On Dec 4, 2:40 pm, Fabrizio fht...@gmail.com wrote: I have a project with a local datastore. There was many entities in it. I have update the sdk from 1.3.7 to 1.4.0. Now the local datastore is empty. My app does not show data and local management tell datastore is empty (http://localhost:/_ah/admin/datastore). I've also tried to revert the local_db.bin file to my previous version from my local subversion. But it does not work. :( Any idea? Fabrizio -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Local datastore empty after updating to SDK 1.4.0
Sorry Ian, I don't understand. Do you delete the local datastore and create it again? If yes, how? Fabrizio On Sun, Dec 5, 2010 at 5:16 PM, Ian Marshall ianmarshall...@gmail.comwrote: I have a test local datastore. I also have a procedure now to delete this whenever I install a new GAE/J SDK. This solved my problem of disappearing test data. -- 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] Tasks SSL
- what error do you receive? copy and paste log - try to remove ssl. The connection is internal. (AFAIK) fabrizio On Tue, Nov 9, 2010 at 3:37 AM, Dom Derrien dominique.derr...@gmail.comwrote: Context: - Tasks as defined in http://code.google.com/appengine/docs/java/taskqueue/overview.html - Secured URLs as described in http://code.google.com/appengine/docs/java/config/webxml.html In the following excerpts, you can see I want to be sure that only administrators can access over SSL resources in the /_admin folder. This works fine when I access JSP page or call a servlet. However, the automatic task execution fails continuously on production, which generates a never ending task rescheduling... - Sample task scheduling: QueueFactory.getDefaultQueue().add(url(/ _admin/...).method(Method.GET)); - web.xml part: security-constraint web-resource-collection url-pattern/_admin/*/url-pattern /web-resource-collection auth-constraint role-nameadmin/role-name /auth-constraint user-data-constraint transport-guaranteeCONFIDENTIAL/transport-guarantee /user-data-constraint /security-constraint As tasks are issued server-side and consumed there without having transited on the public Internet (I hope so), I don't think there's a risk of having non encrypted task calls. I've just created another path for my tasks entry points (/_tasks) and the path is not covered by the SSL restriction. Is it the right way? Or did I hit a defect? Thanks, A+, Dom -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] OpenID Development server
Issue opened http://code.google.com/p/googleappengine/issues/detail?id=3922 http://code.google.com/p/googleappengine/issues/detail?id=3922 -- 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] OpenID Development server
I also noticed different urls generated by userService.createLoginURL String loginUrl = userService.createLoginURL(continueURL, null, providerUrl, attributes); On GAE I get URLs like this one: http://myapp.appspot.com/_ah/login_redir?claimid=myopenid.comcontinue=http://myapp.appspot.com/myurl It works fine. I can login with openID. On local development server I get: http://localhost:/_ah/login?continue=myurl And this does not work. :( The question remains the same: is OpenID supported by local Development server? Google guys, please, give me an hint... fabrizio On Thu, Oct 7, 2010 at 10:46 AM, Fabrizio fht...@gmail.com wrote: Hello, I'm testing OpenID (SDK 1.3.7). My env is: Eclipse + GAE Plugin. Question: is OpenID supported by local development server? I have a protected area. I force users to login with: security-constraint web-resource-collection url-pattern/protected/*/url-pattern /web-resource-collection auth-constraint role-name*/role-name /auth-constraint /security-constraint When I try to access the protected area from production I get correctly redirect to: http://MYAPP.appspot.com/_ah/login_required?continue=http://MYAPP.appspot.com/protected/ But on local development server I get: http://localhost:/_ah/login?continue=http://localhost:/protected/ Why? fabrizio -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: OpenID Development server
I have no problem opening an issue. But actually I don't understand if I have a problem/wrong_configuration or App Engine has a bug. I'm waiting for a reply from Google guys... :) fabrizio 2010/10/9 ArtemGr artem...@gmail.com OpenID support is still experimental, there are several open issues concerning it. If you feel you encountered a new problem, maybe you should file an issue! -- 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] parameter values in taskqueue that contain '' gets cut
- how have you url-encoded the parameters? Can you share the code? - have you tried Method.POST instead of GET? fabrizio On Mon, Sep 20, 2010 at 7:45 AM, mar_novice mariocape1...@gmail.com wrote: When using task queue and the parameters contain an ampersand, it gets cut off when you try to its value. example: Queue queue = QueueFactory.getDefaultQueue(); queue.add( url(/mailer) .param(msg,you me) .method(Method.GET) ); and in mailer servlet, when you try to get the value of msg ... msg = request.getParameter(msg); ... what i get is you only. The characters starting from the to the end gets cut off. I even tried to url encode first the message.. but still it gets cut off.. Is this a bug? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] task queues and retries
AFAIK if you don't catch exceptions, you'll get HTTP 500 error. Can you post your code? Are you sure that you do not try/catch the exception? fabrizio On Mon, Jul 19, 2010 at 12:38 AM, Philip Tucker ptuc...@gmail.com wrote: One of my tasks encountered a failure and wasn't retried. I think it's because the servlet returned a 200 response, but I don't know why it did since the exception bubbled all the way up to the base servlet. Do we need to explicitly return a 5xx error code in exception cases for retries to work? 07-18 02:46PM 06.907 /cleanerq 200 29515ms 9156cpu_ms 5404api_cpu_ms 0kb AppEngine-Google; (+http://code.google.com/appengine) 0.1.0.2 - - [18/Jul/2010:14:46:36 -0700] POST /cleanerq HTTP/1.1 200 0 http://11.latest.wordwisegame.appspot.com/starttasks; AppEngine- Google; (+http://code.google.com/appengine) 11.latest.wordwisegame.appspot.com ms=29516 cpu_ms=9157 api_cpu_ms=5404 cpm_usd=0.254392 queue_name=cleaner-queue task_name=5681724147391472665 exit_code=104 ... -- 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.