[appengine-java] Re: SSLHandshakeException in GAE 1.4.2
If you are seeing this issue on the dev environment, it is an issue being discussed in this thread: http://groups.google.com/group/google-appengine-java/browse_thread/thread/c19d8407128e3eae# Jerome On Feb 19, 4:46 am, Jing Zhang jin...@gmail.com wrote: Hi, I'm experiencing a problem making a HttpURLConnection to a HTTPS based website. This issue is new in GAE 1.4.2 and did not exist in 1.4.0. The website I'm trying to connect to is: https://sandbox.itunes.apple.com/verifyReceipt The error that is thrown is: (javax.net.ssl.SSLHandshakeException) javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate for:https://sandbox.itunes.apple.com/verifyReceipt Would someone from the Google team please take a look at this issue? Thank you. -- 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] Unable to start embedded HTTP server, AccessControlException
I am receiving the exact same problem. The directory in question is indeed writable ... it creates the .policy file okay, but doesn't seem to delete it. If i run it inside of Eclipse it works; if i run it outside of Eclipse i get this issue. java.security.AccessControlException: access denied (java.io.FilePermission C:\Users\alan\AppData\Local\Temp\test2372885730606789235.policy delete) Any hints as to what is going on here? -- 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] XMPP Encoding problems/ XHTML-IM
Hi After having some trouble to figure out what the 'asXml(true)' method in the MessageBuilder class does I finally figured out how to get XHTML-IM style marked up messages to work. If you're having the same problems, please have a look at my blog post about that topic: http://blog.squix.ch/2011/02/sending-xmpp-messages-from-google-app.html What I still couldn't figure out is how to apply a specific encoding to the XHTML-IM part of the message. When I sent some none ASCII characters in a message I only get scrambled results. A message 'Warnstreiks bei der Telekom könnten in der kommenden Woche für Kunden spürbar werden.' is received by the client as 'Warnstreiks bei der Telekom k?nnten in der kommenden Woche f?r Kunden sp?rbar werden.' (the umlauts are replaced by question mark). I also tried to use StringEscapeUtils.escapeHtml(myMessage) to escape the special characters, but it seems that something in beetween escapes again... Digging in news groups also turned out that this had been an issue to the plain text message and had been resolved by the GAE team: http://code.google.com/p/googleappengine/issues/detail?id=2072 Does anyone have a solution for this nasty problem? Dani -- 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: Can't GET with parameters
Yes, all my calls could be posts, but that's not very restful. -- 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: 1.4.2: Can't make https call from dev server
I've opened an issue for this at http://code.google.com/p/googleappengine/issues/detail?id=4603 Same deal here on OS X. On Feb 17, 8:21 am, Tom Phillips tphill0...@gmail.com wrote: JVM (On Windows 7), I've tried a few for the development server including: java version 1.6.0_22 Java(TM) SE Runtime Environment (build 1.6.0_22-b04) Java HotSpot(TM) 64-Bit Server VM (build 17.1-b03, mixed mode) Using java.net.HttpURLConnection to connect tohttps://api.twilio.comand getting: javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate for:https://api.twilio.com api.twilio.com is only accessible over SSL so this problem is hampering development of our application with 1.4.2 /Tom On Monday, February 14, 2011 4:22:51 PM UTC-5, frew wrote: Hey everybody, In order to help me diagnose the problems, could you respond with what JDK (Platform, JDK manufacturer (e.g. Sun, OpenJDK), and version) you're running? As a temporary stopgap, if you're using URLFetch service, you can use the doNotValidateCertificate() method in FetchOptions (http://code.google.com/appengine/docs/java/javadoc/com/ google/appengine/api/urlfetch/FetchOptions.htmlhttp://code.google.com/appengine/docs/java/javadoc/com/google/appengi...) to disable validation. -Fred On Feb 13, 5:02 am, harri mauria hma...@googlemail.com wrote: I am having similar problems with the recently released version com.google.appengine.eclipse.sdkbundle.1.4.2_1.4.2.v201102111811 Problems happen with the development server, not in production. I am performing Facebook login credentials authentication in the callback url. Interrupt stack is below: HTTP ERROR 500 Problem accessing /loginfacebookcallback. Reason: Could not verify SSL certificate for: https://graph.facebook.com/oauth/access_token?omitted Caused by: javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate for:https://graph.facebook.com/oauth/access_token?omitted at com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationExc eption(URLFetchServiceImpl.java: 114) at com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchService Impl.java: 41) at com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler $Connection.fetchResponse(URLFetchServiceStreamHandler.java:418) at com.google.apphosting.utils.security.urlfetch.URLFetchServiceStreamHandler $Connection.getInputStream(URLFetchServiceStreamHandler.java:297) atwww.superpass.de.server.UrlFetcher.get(UrlFetcher.java:60) Following message is printed to the console: I/O exception (javax.net.ssl.SSLPeerUnverifiedException) caught when processing request: HTTPS hostname invalid: expected 'graph.facebook.com', received '*.facebook.com' Retrying request Regards, Harri On Feb 13, 11:27 am, Lior Harsat lior@gmail.com wrote: I am having a similar problem with https: I have been testing the SDK and I found one bug which seems critical. When I call the URLFetchService.fetch API with a https URL I get a javax.net.ssl.SSLHandshakeException. for example when I fetch https://spreadsheets.google.com/feeds/ list/ I get javax.net.ssl.SSLHandshakeException: Could not verify SSL certificate for:https://spreadsheets.google.com/feeds/list/... When I switch back to an older SDK this doesn't happen. Is there a Help us test Prerelease SDK 1.4.2 thread I can post this to? Can anyone confirm this bug reproduces? Thanx, Lior On Feb 12, 11:57 am, Peter Liu tiny...@gmail.com wrote: We are using a custom remote delegate to route datastore rpc call to live production test site on appspot. We did this because sometimes we want to develop with live data. However after upgrading to 1.4.2, https outbound call starts failing (see below). If we change to http, then it works again. It seems like some class is marked as restricted in this release. Is it intentional? What's the reason behind not allowing outbound https call? Thanks. java.lang.NoClassDefFoundError: javax.net.ssl.SSLHandshakeException is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime .java: 51) at com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationExc eption(URLFetchServiceImpl.java: 114) at com.google.appengine.api.urlfetch.URLFetchServiceImpl.access $100(URLFetchServiceImpl.java:22) at com.google.appengine.api.urlfetch.URLFetchServiceImpl $1.convertException(URLFetchServiceImpl.java:86) at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java: 69) at
[appengine-java] Re: Can't GET with parameters
In other words, you are asking Google to support something that is out of standard. If each software developer will not respect any standards, then everything will become incompatible. Really wrong way to go. If you want to include any data in body, then it's definitely POST, not GET request. -- 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: Can't GET with parameters
In other words, I am asking google to support something which, while possibly out of spec, is extremely common and represents a reasonable real-world practice. So real world, in fact, that their own local simulator supports it just fine. Also, just to be clear, I don't see anything in the spec that prevents a get from having a body: http://www.w3.org/Protocols/rfc2616/rfc2616-sec9.html#sec9.3 bjorn On Sun, Feb 20, 2011 at 4:13 PM, Alexander Maslov alexmas...@gmail.comwrote: In other words, you are asking Google to support something that is out of standard. If each software developer will not respect any standards, then everything will become incompatible. Really wrong way to go. If you want to include any data in body, then it's definitely POST, not GET request. -- 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.
[appengine-java] Re: Authorize.net compatibility
A little more experimenting and it looks like the system works, but the provided java library has issues. I think this is because it uses apache http client for url connections, but I didn't dig deep enough to see for sure. bjorn -- 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: Deleting in batches of keys in a loop
Thank you, Didier. I will take a look at that article. Cheers J.Záruba -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-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: XStream and Google App Engine
Hi Sean, After patching XStream for GAE, I was able to convert my objects toXml() But was not able to use fromXml(). I was continuously receiving reflection errors. Would be grateful if you could elaborate on which part of you did successfully?? -- 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] [Unable to Deploy Web Application Project from Eclipse build with latest GWT Plugin]
Thanks for reading, Brand new to the platform, I got the following environment OS X 10.6.6 HELIOS SR1 Cocao 32 bit App Engine SDK 1.4.2 GWT 2.2.0 I basically install Eclipse, Install the Eclispe Plug In and SDK's from google, create a new project using the Web Application Project wizard. I then configure the App Engine Deploy page with target app created in the App Engine Account Enter my password and press deploy ... and I get an exception saying that me user and password don't match (see below) .. Any Ideas. Best Unable to update: com.google.appengine.tools.admin.ServerConnection $ClientLoginException: Email patr...@meghaconsulting.com and password do not match. at com.google.appengine.tools.admin.ServerConnection.getAuthToken(ServerConnection.java: 275) at com.google.appengine.tools.admin.ServerConnection.authenticate(ServerConnection.java: 226) at com.google.appengine.tools.admin.ServerConnection.send(ServerConnection.java: 155) at com.google.appengine.tools.admin.ServerConnection.post(ServerConnection.java: 86) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java: 582) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java: 400) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java: 112) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java: 56) at com.google.appengine.eclipse.core.proxy.AppEngineBridgeImpl.deploy(AppEngineBridgeImpl.java: 271) at com.google.appengine.eclipse.core.deploy.DeployProjectJob.runInWorkspace(DeployProjectJob.java: 146) at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java: 38) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54) Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://www.google.com/accounts/ClientLogin at sun.reflect.GeneratedConstructorAccessor26.newInstance(Unknown Source) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java: 27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at sun.net.www.protocol.http.HttpURLConnection $6.run(HttpURLConnection.java:1496) at java.security.AccessController.doPrivileged(Native Method) at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java: 1490) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java: 1144) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java: 234) at com.google.appengine.tools.admin.ServerConnection.connect(ServerConnection.java: 350) at com.google.appengine.tools.admin.ServerConnection.getAuthToken(ServerConnection.java: 258) ... 11 more Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: https://www.google.com/accounts/ClientLogin at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java: 1441) at sun.net.www.protocol.http.HttpURLConnection.getHeaderFieldKey(HttpURLConnection.java: 2354) at sun.net.www.protocol.https.HttpsURLConnectionImpl.getHeaderFieldKey(HttpsURLConnectionImpl.java: 287) at com.google.appengine.tools.util.ClientCookieManager.readCookies(ClientCookieManager.java: 123) at com.google.appengine.tools.admin.ServerConnection.connect(ServerConnection.java: 348) ... 12 more -- 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: Urgent: GAE app is incredibly slow!
Hi Anatoliy, I had same problem last week. ( Feb.14 - Feb.18) Error code 203 had been occurred every time I tried to access my application and I couldn't access the application.(always 500 error) I don't know the cause of error and how to fix it, but this error does not appear right now. In my case, time solved the problem. Also console shows no running instances for this application!? I think maybe this is normal.If you don't enable always On feature. Instance will sleep if there is no access for 1 or 2 minutes. I found 2 issues related to this problem. http://code.google.com/p/googleappengine/issues/detail?id=3706 http://code.google.com/p/googleappengine/issues/detail?id=4544 imai On 2月21日, 午前6:53, Anatoliy anatoliy.arteme...@gmail.com wrote: A bit more info: I cannot access the application any more. Also console shows no running instances for this application!? -- 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: Urgent: GAE app is incredibly slow!
A bit more info: I cannot access the application any more. Also console shows no running instances for this application!? -- 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] Urgent: GAE app is incredibly slow!
I've got two apps (everdynamicsite and domoroi) which have *exacly same code *base and similar datastore content. everdynamicsite site is very very slow starting from last night domoroi is as quick as usual I enabled appstats, that shows great gaps beween datastore operations like below: @110ms *datastore_v3.Get* real=58ms api=66ms @2708ms *memcache.Get* real=15ms api=0ms But I'm not sure that these are cause for problems because for other requests appstats' Grand Total shows 88ms, but response times are still very-very slow! Does it mean some sort of environmental issue at GAE side? I'm confident that this issue is not with my local setup as other people get similar results at other locations. To me it looks like the request is hanged somewhere before it reaches everdynamicsite, as the request processing time (based on log records) is less than a second! Even /appstats/details?time=1298213007287 requests take tens of seconds before response is received Now few times in a row I get this message in the log file: A serious problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. If you see this message frequently, you should contact the App Engine team. (Error code 203) That looks really weird. What could be done to solve the problem? Anatoliy -- 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] How do I determine the order of HTTP requests?
I periodically have a large number of requests (thousands) to my site in the space of a few seconds. I need to record the order in which the requests access the site so I can do downstream processing. The order does not have to be exact, I only need resolution down to 1 second: I don't care which order two requests are in if they are 10 ms apart. However I do care which order they are in if they are 1500 ms apart. The only problem is that I cannot figure out how to do this. I though about creating a datastore entity that contains a timestamp for each request to the site. (It doesn't matter if two or more entities have the same timestamp.) However I understand the clocks between machines in App Engine are not necessarily synchronised and could vary wildly. It would be ok for business logic if they only varied by 1-1.5 seconds at the most but I don't think this can be guaranteed. I thought about using memcache's atomic increment function instead of a timestamp for each new request but this could be wiped at any time so is no good. Even if the wipe occurs rarely, I cannot afford it to happen just once. How can I solve this type of problem? Best wishes, Dan -- 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: How do I determine the order of HTTP requests?
I don't think it will be feasible with any accuracy. Your requests are going to be served by different running appengine instances . These instance's clocks are not synchronised and can be way out of sync, definately out of sync by more than a second. Rgds T -- 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] task repeats itself
We expect to reduce the frequency of these repeat executions. There is a existing issue for this, which we'll update when it rolls out: http://code.google.com/p/googleappengine/issues/detail?id=1789 -- 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] Too many versions(403) error messages when uploading the app and other web console problems.
Hi all: After I uploaded the 10th version of my app, I got the Too Many Versions (403) error messages by using appcfg.py command. I tried to delete one of the versions by the web interface, but it didn't work with no error message. Even I tried to create another new application, it failed with no error message. How can I do to solve this problem? PS: Environment: Win7 64bits with python 2.5.2 and ssl 1.15 Br, Lanma -- 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] Where is it advisable to put JPA mapped Entity classes?
Hello, I will appreciate some guide as to where exactly to put JPA mapped Entity classes. At the moment I have it under com.foo.server.domain. But whenever I compile the app, GWT returns: No source code is available for type com.foo.server.domain.Users; did you forget to inherit a required module? -- -- 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] Subclassing webapp.RequestHandler and GAE error logging
Does Google App Engine's error logging (as seen on the Dashboard) rely on webapp.RequestHandler.handle_exception being called? In other words, if I subclass webapp.RequestHandler, implement handle_exception, and one of my code paths does not call webapp.RequestHandler.handle_exception, will the dashboard continue to count/display these crashes? Example: class RequestHandler(webapp.RequestHandler): def handle_exception(self, e, *args): if False: return webapp.RequestHandler.handle_exception(self, e, args) Note that I'm trying to implement a custom error handler for all crashes to, say, send the error to another service and render a custom error page. -- 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: Subclassing webapp.RequestHandler and GAE error logging
Nevermind, I think I answered my own question via Nick Johnson's post here: http://stackoverflow.com/questions/1318960/python-gae-web-request-error-handling ...it looks like it's safe to call handle_exception on all code paths b/c only the debug version prints anything to response.out. On Feb 20, 11:13 am, kamens kam...@gmail.com wrote: Does Google App Engine's error logging (as seen on the Dashboard) rely on webapp.RequestHandler.handle_exception being called? In other words, if I subclass webapp.RequestHandler, implement handle_exception, and one of my code paths does not call webapp.RequestHandler.handle_exception, will the dashboard continue to count/display these crashes? Example: class RequestHandler(webapp.RequestHandler): def handle_exception(self, e, *args): if False: return webapp.RequestHandler.handle_exception(self, e, args) Note that I'm trying to implement a custom error handler for all crashes to, say, send the error to another service and render a custom error page. -- 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: Partial put() ?
I believe that by not explicitly setting indexing to False, you're getting an implicit index on every item (apart from non-idexables like Texts). If these item values change a lot, your put() may be quite expensive and slower than expected. You might also end up wondering why you've got so much storage related to indices. Even without values that change, your index structure is still very likely to greatly affect your put() performance. Are you sure this is what you want/ need? My limited experience has me now striving to push index updates into task queues whenever feasible to keep the on-line handler put() as fast as possible. This often results in a separate index-only db class linked to the original record via its id value. Doesn't solve every problem, but will certainly be much faster (again that statement is based on my limited experience). I'm starting to get used to this setup, and find it a fairly decent workaround to avoiding potential DeadlineExceeded issues in the on-line handler. Hope this helps, stevep On Feb 19, 11:32 am, Daniel danielkra...@gmail.com wrote: I have a model that holds a bunch of game data: class MyGame(db.Expando): sender=db.StringProperty() senderScore=db.IntegerProperty(default=0) senderChatWaiting=db.BooleanProperty(default=False) senderResigned=db.BooleanProperty(default=False) senderHideGame=db.BooleanProperty(default=False) recipient=db.StringProperty() recipientAccepted=db.BooleanProperty(default=False) recipientScore=db.IntegerProperty(default=0) recipientChatWaiting=db.BooleanProperty(default=False) recipientResigned=db.BooleanProperty(default=False) recipientHideGame=db.BooleanProperty(default=False) bucket=db.TextProperty() board=db.TextProperty() currentPlayer=db.IntegerProperty(default=0) whosTurn=db.StringProperty() whosWaiting=db.StringProperty() moveID=db.IntegerProperty(default=1) lastPlayed=db.StringProperty() lastPointsRecieved=db.IntegerProperty(default=0) chatLog=db.StringListProperty() created=db.DateTimeProperty(auto_now_add=True) lastUpdate=db.DateTimeProperty(auto_now_add=True) gameFinished=db.BooleanProperty(default=False) gameResigned=db.BooleanProperty(default=False) I have a single method that updates all of these values for a particular existing game record and does a single .put() at the end to save it. Is it possible that only some of the items are updated and not others.. a partial put()? I was assuming that a put() would either succeed or fail, but not partially succeed. I'm trying to track down a bug in my app and curious if it's possible I have a partial write.. if not the bug is probably elsewhere in my server code or client. Thanks Daniel -- 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] Helloworld Tutorial - Segmentation Fault
There's a bug report in the python issue tracker that might be relevant, although it's filed against Python 2.7: http://bugs.python.org/issue9146 Try import _ssl; import _hashlib to see if this is the same bug. If so, it looks like an OpenSSL problem. -- 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: Scaling capabilities of GAE
On Friday, February 18, 2011 4:10:21 PM UTC-5, Calvin wrote: Probably, but it would be really expensive. Also, until high-replication was available the site would have had to shut down during datastore maintenance. Microblogging platform that runs on App Engine: http://code.google.com/p/jaikuengine/ Yeah, Twitter never would have survived if it had uptime problems /sarcasm. -- 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: How do I determine the order of HTTP requests?
I think the whole clocks aren't synchronized thing is a myth; Google doesn't guarantee synchronization but I'd be shocked if the servers are actually not using NTP. -- 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: Where is it advisable to put JPA mapped Entity classes?
I have resulted into using DTO to provide the client information about my Entity. My DTO has the same getter and setter signatures just like it's respective Entity. But still getting No source code is available for type com.foo.UsersDTO; did you forget to inherit a required module? How do I then access persisted Entity objects from the client-side? On Sun, Feb 20, 2011 at 4:46 PM, Kayode Odeyemi drey...@gmail.com wrote: To provide more details, I am sending data to the server via GWT-RPC. On the server I'm returning an Entity class object mapped by JPA. So on the client, I requested for the object via the normal way (AsyncCallback). So when I compile the code, GWT reports a No source code error, meaning I'm referencing the server class on the client side. Some of my findings report that I either create the Entity on the client side so that GWT can find it or create an implementation of the Entity on the client side overriding all the necessary methods. I am not sure about the former as I believe the Entity is meant to be on the server because it needs access to JPA. On the later, I have no idea of how to implement that as the Entity needs access to JPA (GWT can't compile server code on the client side!). Any clues please. On Sun, Feb 20, 2011 at 4:10 PM, Kayode Odeyemi drey...@gmail.com wrote: Hello, I will appreciate some guide as to where exactly to put JPA mapped Entity classes. At the moment I have it under com.foo.server.domain. But whenever I compile the app, GWT returns: No source code is available for type com.foo.server.domain.Users; did you forget to inherit a required module? -- -- -- Odeyemi 'Kayode O. B.Sc(Hons) Econs, Application Developer Systems Engineer (Sun Certified Professional), Oracle Certified Associate, Solaris Systems Administrator, Drupal Developer Website: http://sinati.com http://www.sinati.com Socialize with me: http://profile.to/charyorde, http://twitter.com/charyorde, http://www.google.com/profiles/dreyemi Skype:drecute -- 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: How do I determine the order of HTTP requests?
I was just experimenting with a way to get multiple servers synchronized to within a second. Here's what I came up with: https://gist.github.com/836228 It grabs the date header off of a fetch request and calculates the delta between the server's time and the canonical time. Then when you call synchronize(date) it subtracts that delta from the supplied datetime. The date header doesn't return microseconds, and you have to consider that the round-trip time adds inaccuracy, so I think +/- 1 second is the best that can be done. In my brief tests I was seeing that the app engine time was basically the same as canonical time without doing any of this hackery. -- 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: BadValueError: Error converting pb: meaning: 7
Hi, Sorry, did not read the exception message closely enough: 'datetime.timedelta' object is not callable. Do you use datetime.timedelta in your code? Perhaps datetime.timedelta is getting overwritten by a timedelta object. Robert On Sun, Feb 20, 2011 at 02:00, burg burga...@gmail.com wrote: Hi Robert, Thanks for the reply! The problem with this error is that it is inconsistent. Some requests return this error and some don't. There are no caches which might be hiding this. Also this error is not apparent in the dev server. On Feb 14, 8:03 pm, Robert Kluin robert.kl...@gmail.com wrote: Hi Alon, Looks like you might be giving a bad value to a datetime property. Robert On Mon, Feb 14, 2011 at 06:29, burg burga...@gmail.com wrote: now I'm also getting this sporadically from the admin console: 2011-02-14 02:02:44.815 /admin_console/datastore?kind=Entity 500 79ms 116cpu_ms 116api_cpu_ms 0kb Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/ 9.0.597.102 Safari/534.13,gzip(gfe) 62.219.126.27 - alon [14/Feb/2011:02:02:44 -0800] GET /admin_console/ datastore?kind=Entity HTTP/1.1 500 768 http://3.company- proxy.appspot.com/admin_console/datastore Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_6; en-US) AppleWebKit/534.13 (KHTML, like Gecko) Chrome/9.0.597.102 Safari/534.13,gzip(gfe) 3.company- proxy.appspot.com ms=79 cpu_ms=117 api_cpu_ms=117 cpm_usd=0.003427 E 2011-02-14 02:02:44.802 Error converting pb: meaning: 7 name: expires value int64Value: 0x4b21500a798d6 multiple: false Exception was: 'datetime.timedelta' object is not callable Traceback (most recent call last): File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/webapp/__init__.py, line 515, in __call__ handler.get(*groups) File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/admin/__init__.py, line 671, in get result_set, total = self.execute_query() File /base/python_runtime/python_lib/versions/1/google/appengine/ ext/admin/__init__.py, line 616, in execute_query entities = query.Get(start + num)[start:] File /base/python_runtime/python_lib/versions/1/google/appengine/ api/datastore.py, line 1352, in Get batch = batcher.next_batch(limit) File /base/python_runtime/python_lib/versions/1/google/appengine/ datastore/datastore_query.py, line 1105, in next_batch batch = self.__next_batch.get_result() File /base/python_runtime/python_lib/versions/1/google/appengine/ api/apiproxy_stub_map.py, line 534, in get_result return self.__get_result_hook(self) File /base/python_runtime/python_lib/versions/1/google/appengine/ datastore/datastore_query.py, line 1028, in __query_result_hook for result in query_result.result_list()] File /base/python_runtime/python_lib/versions/1/google/appengine/ datastore/datastore_rpc.py, line 110, in pb_to_query_result return self.pb_to_entity(pb) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/datastore.py, line 205, in pb_to_entity return Entity._FromPb(pb) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/datastore.py, line 844, in _FromPb value = datastore_types.FromPropertyPb(prop) File /base/python_runtime/python_lib/versions/1/google/appengine/ api/datastore_types.py, line 1638, in FromPropertyPb 'Error converting pb: %s\nException was: %s' % (pb, msg)) BadValueError: Error converting pb: meaning: 7 name: expires value int64Value: 0x4b21500a798d6 multiple: false Exception was: 'datetime.timedelta' object is not callable -- 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 athttp://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.
[google-appengine] Re: Scaling capabilities of GAE
chuckle. -- 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: How do I determine the order of HTTP requests?
Calvin, does Google serve robots.txt off of one machine? Otherwise it seems like you might be making a request to another cluster with the same problem to 'adjust' your times. Yeah, this hack is based on the assumption that Google is more careful about maintaining the clocks on their www servers than they are about the app engine cluster, which could be false. The hack could be pointed at another page that is known to be served off a single server. Since the time is only requested once per app engine instance (unverified assumption), it shouldn't put too heavy a load on that page. -- 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: Need help with redirection
Hi Robert, Thanks for the response! I have practiced the guestbook app 2 times for learning, and now the 3rd time, as I'm following it for making my own app. My data comes from some API, where in I'm passing a keyword. My problem is, I want to use a set of template values commonly throughout the site, no matter to what URL I'm going to. For example, if I want a value 'site-header':'Hello!', I want it to be same on all the pages. I have to pass it every time template.render function renders a page! I want to do it so that I can have a templating sort of flow for the site. Like, any where I call {{site-header}}, it should get the same value. And one more doubt, how to redirect to a third party site from my app? I made a tutorial for the app I'm making, and I want to redirect people to it for learning it. I tried this: My div='nav' has a like to my site: a href='/learn'Learn/a My main.py file: app = webapp.WSGIApplication([ ('/', Init), ('/learn', Learn)] class Learn(webapp.RequestHandler): def get(self): self.redirect('myblog.com') This isn't working! When I click the link, I get http://localhost:8080/myblog.com in the address bar (I'm working locally) and I tried hard coding the address, but it doesn't work either! Am I doing something wrong? Thanks, Rutwick On Feb 18, 4:11 am, Robert Kluin robert.kl...@gmail.com wrote: Hi Rutwick, It sounds like you might want to very carefully and thoroughly go through the guestbook app as-is and try to understand how all of the pieces work. Where does the data for your app come from? Can you post some code showing us what you've tried? Robert On Thu, Feb 17, 2011 at 12:23, Rutwick rutwic...@gmail.com wrote: Hi GAE Gurus, I'm fairly new to GAE. I'm making an APP which gets some data from a RESTful API. My home page has the form to take the keyword for searching, and below that a div which will hold the data returned from the API. The problem is, when someone first opens the homepage, that div will hold a message 'Please enter a keyword', which I'm sending in the 'template_values' dictionary, which also contains the site title, description etc. Once a person enters a keyword and clicks submit, I want the returned data to be displayed in same div. How to I redirect to the homepage on submitting the keyword, along with the returned data and the old values? I'm not using a datastore so I couldn't use the method given in the guestbook app which gets the values from the datastore and if no values are available, shows a message to enter a greeting. 'self.redirect', or the render method wipes out my old values, which include my site title, desc. etc! Please someone tell me a method to do it! Thanks for any help in advance. Rutwick blog.rutwick.com -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options, visit this group athttp://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] Tip: [...WHERE prop = :1 AND prop :2] with accents?
The first string - abc is not a Unicode string. Have you tried prefixing it with 'u' to make it one? What exception do you get? -Nick Johnson On Fri, Feb 18, 2011 at 10:16 PM, Sahid Orentino Ferdjaoui sahid.ferdja...@gmail.com wrote: Hello all, db.GqlQuery(SELECT * FROM MyModel WHERE prop = :1 AND prop :2, abc, uabc + u\ufffd) I used this to make a search. But if the string has an accent. That don't work. may be you have a solution for me? --sahid -- 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. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-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] ETA for programmatic creation of Blobstore images?
Hi Will, On Fri, Feb 18, 2011 at 7:01 AM, Will Merydith will.meryd...@gmail.comwrote: I was happy to see that in the App Engine Blog's latest post, a link to the technical roadmap says, Programmatic Blob creation in Blobstore It's low on the list, but maybe that does not indicate priority. Is there an ETA on this feature? We don't give ETAs on features on the roadmap outside the general guideline that we aim to get features on the roadmap out within about 6 months. I assume this means the API will be updated to provide methods for storing images via path/uri (in addition to the POST method provided now). I'm not sure what you're asking here. The API will allow creation of blobs from inside App Engine, by calling API methods. Blobs created this way will be identical in all respects to uploaded blobs. -Nick Johnson -- 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. -- Nick Johnson, Developer Programs Engineer, App Engine Google Ireland Ltd. :: Registered in Dublin, Ireland, Registration Number: 368047 -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-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: How do I determine the order of HTTP requests?
Is there any reason that using an atomically incrementing memcache counter would not work? If you have a counter in memcache and increment it, then use the returned value as an index, you could store these in the datastore and then simply iterate them in ascending order. Just make sure you come up with a way around the monotonically increasing counter thing (but you'd have this issue with timestamps as well). -- 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: How do I determine the order of HTTP requests?
I probably should have read your post more closely. My mistake. Carry on. -- 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] como configurar my domain .com
hello, I know how to configure my app to use with my domain. com. thank you very much. -- 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] GAE Spring Roo
Hi Don't know if this is the best place to pose my question, but here goes: After generating a GAE project with Spring Roo and importing it into SpringSourceToolSuite, does anyone know how to convert it to a GAE project so that it can be used with the Google STS plugin? thanks Paul -- 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] 401 Error on receiving e-mails and cron jobs
Hi All As instructed in the docs I included security constraints in web.xml for servlets handling receiving of emails and running a cron job. Because of addition of security constraint, my web app started throwing HTTP 401 unauthorized errors. As soon as I removed these security constraints, I worked fine with no 401 error. But the app requires me to apply constraint. How do I go forward with this? Please help me guys. Thanks Akash Mohan -- 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] Display Image as Greyscale - GAE PIL
Hi there, I'm moving from Django to GAE Python, there's only one thing I'm struggling with. I create a thumbnail of all my images as greyscale/grayscale and store them alongside my full colour thumbnails. But can't get it working in Google App Engine. Any help would be awesome. I'd love to simply make a call in a URL: http://site.com/images/gHf557hHk?colour=false Which simply shows a grey/gray version. Here's how I was doing it in Django/PIL ... But it doesn't translate to GAE. thumb = image.resize(size, Image.ANTIALIAS) thumb = thumb.convert('L') Any ideas would be amazing. Thanks so much in advance, hope you're well ... -- 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] Exception invoking jsxGet_cookie using HTMLUnit 2.8
Hi, I get the exception: java.lang.RuntimeException: Server Error: Wrapped com.gargoylesoftware.htmlunit.ScriptException: Exception invoking jsxGet_cookie Error occurs when trying to run HTMLUnit 2.8 against a GWT web page. It works when trying to fetch the html unit home page. Also if I run it within a main method in the same project this code works, but not within app engine: final HtmlPage page4 = webClient.getPage(http://gwt.google.com/ samples/Showcase/Showcase.html#!CwBasicPopup); log.info(page4.getTitleText()); Any ideas? -- 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: Could not verify SSL certificate
The same problem on Win7/32bit, java version 1.6.0_23 (same problem on 1.6.0_20) Java(TM) SE Runtime Environment (build 1.6.0_23-b05) Java HotSpot(TM) Client VM (build 19.0-b09, mixed mode, sharing) GAE 1.4.0 - working - 1.4.2 - not -- 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.