[appengine-java] channel api check user connected
when using channel api, we need to keep track of all users so that we can loop through the list and send broadcast message to all. how to know whether user still connected without require user to frequently send ping back to server that they are still opening browser? what technique do you,guru use to minimum flooding the bandwidth? 1. can hannelService.sendMessage(CHANNEL,) able to get error message if user channel already closed? (user closed browser without log out) 2. can hannelService.sendMessage(CHANNEL,) give status where client guaranteed success receive the message? -- 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] user authentication when moving off app-engine
I have a client I've developed an app-engine app for, but for reasons to silly to mention here, they'd like to move to a hosted server model. I've developed my own implementation of all the Google services my code relies on (like Memcache and TaskQueue etc.) however, I'm having a bit of a hard time with the UserService implementation. In particular, it seems I need to use the OpenID protocol to keep on allowing users to login to the system with their GMail accounts. The documentation for Googles OpenID implementation indicate that the userId is dependent on the relying parties credentials (which totally makes sense), this would mean that when our application is hosted off the App-Engine, we're going to get different userId values for users that have already authenticated to our system. This makes data migration a bit touchy. The App-Engine docs seemed to indicate that the supplied userId was the same for all apps requesting user authentication. Is there a way I can use the same mechanism for user login when my app is running on a different server? My main concern revolves around the fact that we use the Google supplied userId as a unique identifier for users rather than their email address, since the App-Engine documentation indicated that users can change their email address, and the only "stable" identifier was the userId. Has anyone migrated off the App-Engine (for whatever reason) and been able to maintain the user authentication? If not, does anyone at Google have any suggestions as to how to migrate the data such that I can recognize return users and load their historical data? Thanks in advance -- 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: VerifyError using Joda Time on GAE
I recompiled Joda from trunk and now everything is happy. Very mysterious. Jeff On Thu, Feb 24, 2011 at 5:18 PM, Jeff Schnitzer wrote: > Is anyone else having trouble with Joda time on appengine? > > I just added it to my app, and attempts to use it generate a > VerifyError like this: > > java.lang.VerifyError: (class: org/joda/time/tz/ZoneInfoProvider, > method: loadZoneData signature: > (Ljava/lang/String;)Lorg/joda/time/DateTimeZone;) Accessing value from > uninitialized register 8 > at org.joda.time.DateTimeZone.getDefaultProvider(DateTimeZone.java:454) > at org.joda.time.DateTimeZone.setProvider0(DateTimeZone.java:408) > at org.joda.time.DateTimeZone.(DateTimeZone.java:113) > at > com.similarity.queen.JodaTestServlet.service(JodaTestServlet.java:30) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) > at > org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) > > This was generated by a simple servlet method that looks like this: > > protected void service(HttpServletRequest req, HttpServletResponse > res) throws ServletException, IOException > { > DateTimeZone dtz = DateTimeZone.getDefault(); > log.info("#" + dtz.toString()); > } > > The strange thing is that when I create a from-scratch appengine > project, joda time works. I'm not doing anything special with > classloaders, and I don't have time to rip apart my project to figure > out what is somehow interfering. I can only suspect it has something > to do with the repackaged version in the SDK, but I can't tell - I'm > using the correct org.joda.* imports. > > I'm about to try recompiling Joda from scratch myself, but does anyone > have any idea what could be wrong? > > Thanks, > Jeff > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: How to POST to the BlobStore from a command line Java program?
This is what I am using: http://www.koders.com/java/fidD2DFE2EAEEE2C1A5BB56629AD65C1FF272EE51A0.aspx?s=util#L14 Best On Thu, Feb 24, 2011 at 1:06 PM, Ronmell Fuentes wrote: > Hi, > what Didier's right! > also you could use webservices REST-type, and write your own handlers > with this new way, you could perform the specific operations like: > > @POST - insert > @PUT- update > @GET - select > @DELETE - delete. > > so that, you can see that you've got all the basic operations like in a DB, > > and acording to what Didier said, you could write a POJO to store all > your data. > > Then, in the client side, you could write a program to perform all the > tasks > for maintaining these POJOs ( select, update, insert, delete ) > programaticly. > > here you can find a very helpful project about REST-type services. > > http://www.restlet.org/ > > hope this was helpful. > > cheers, > > > On Wed, Feb 23, 2011 at 11:11 PM, Didier Durand > wrote: > >> Hi guys, >> >> I don't have a direct answer to your question but I have another >> proposal: >> >> why don't replace the blobstore by a pojo containing a list of gae >> blob objects. They are limited to 1 Mbytes each but you can split your >> files into a collection that you gather via the proper structure (a >> java collection) >> >> You can then access the full servlet api (POST to store them, GET to >> retrieve them) >> >> The recent availability allows you to serve a blob while you fetch the >> next one. >> >> I see only 1 issue in this solution as of now: the 30s limit on >> interactive request meaning that each file has to be served back in >> less than 30s. Maybe too small depending on size of your files. >> >> regards >> >> didier >> >> On Feb 24, 5:13 am, Rick Smith wrote: >> > I am also looking for a similar solution. Currently my application is >> > running on a local server and I have uploaded more than 5 thousands >> file >> > in SVN. Now I want to shift on Google app engine and I have already done >> > most of the hardwork. But I do not found a programatic way to upload >> these >> > file to blob store directly and I am still waiting for a concrete >> solution >> > as I can't upload each file one by one using file system. >> > >> > It will be highly appreciated if some one from google take on this and >> > provide us a solution so that we can move on GAE. >> > >> > Regards >> > >> > Rick >> >> -- >> 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. >> >> > > > -- > Ronmell F. > > *-Information Technologies Engineering-* > ausencia de evidencia ≠ evidencia de ausencia > http://culturainteractiva.blogspot.com/ > > > -- > 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. > -- Guit: Elegant, beautiful, modular and *production ready* gwt applications. http://code.google.com/p/guit/ -- 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] VerifyError using Joda Time on GAE
Is anyone else having trouble with Joda time on appengine? I just added it to my app, and attempts to use it generate a VerifyError like this: java.lang.VerifyError: (class: org/joda/time/tz/ZoneInfoProvider, method: loadZoneData signature: (Ljava/lang/String;)Lorg/joda/time/DateTimeZone;) Accessing value from uninitialized register 8 at org.joda.time.DateTimeZone.getDefaultProvider(DateTimeZone.java:454) at org.joda.time.DateTimeZone.setProvider0(DateTimeZone.java:408) at org.joda.time.DateTimeZone.(DateTimeZone.java:113) at com.similarity.queen.JodaTestServlet.service(JodaTestServlet.java:30) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511) This was generated by a simple servlet method that looks like this: protected void service(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { DateTimeZone dtz = DateTimeZone.getDefault(); log.info("#" + dtz.toString()); } The strange thing is that when I create a from-scratch appengine project, joda time works. I'm not doing anything special with classloaders, and I don't have time to rip apart my project to figure out what is somehow interfering. I can only suspect it has something to do with the repackaged version in the SDK, but I can't tell - I'm using the correct org.joda.* imports. I'm about to try recompiling Joda from scratch myself, but does anyone have any idea what could be wrong? Thanks, Jeff -- 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] My app is NOT coming up!! is something wrong with App Engine?
This isn't useful information. Can you describe what is wrong? Follow these guidelines: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=how+to+write+a+good+bug -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Thu, Feb 24, 2011 at 9:07 AM, Sumi wrote: > My app is not coming up starting this morning...is something wrong with app > engine? > > -- > 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] Re: 1.4.2: Can't make https call from dev server
In that case, I'm closing the issue. -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter: http://twitter.com/app_engine On Thu, Feb 24, 2011 at 8:41 AM, Florian wrote: > It works for me, I can call the fb graph api again. > > -- > 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] XmppServices - Problems trying to parse Presence requests
Hi, I´m having problems when invoking the *parsePresence(request)*method. I´m getting the error message: Script processing failed.Can't determine the type of stanza from the path: /presence.groovy Any clue, anyone? The complete stacktrace is below: INFO: javax.servlet.ServletContext log: GroovyServlet Error: script: '/presence.groovy': Script processing failed.Can't determine the type of stanza from the path: /presence.groovycom.google.appengine.api.xmpp.InboundPresenceParser.parsePresence(InboundPresenceParser.java:39) GroovyServlet Error: script: '/presence.groovy': Script processing failed.Can't determine the type of stanza from the path: /presence.groovycom.google.appengine.api.xmpp.InboundPresenceParser.parsePresence(InboundPresenceParser.java:39) java.lang.IllegalArgumentException: Can't determine the type of stanza from the path: /presence.groovy at com.google.appengine.api.xmpp.InboundPresenceParser.parsePresence(InboundPresenceParser.java:39) at com.google.appengine.api.xmpp.XMPPServiceImpl.parsePresence(XMPPServiceImpl.java:194) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite$PojoCachedMethodSiteNoUnwrapNoCoerce.invoke(PojoMetaMethodSite.java:229) at org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:52) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:124) at presence.run(presence.groovy:1) at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:515) at groovy.servlet.GroovyServlet$1.call(GroovyServlet.java:120) at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:99) at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.access$300(GroovyCategorySupport.java:61) at org.codehaus.groovy.runtime.GroovyCategorySupport.use(GroovyCategorySupport.java:239) at groovy.servlet.GroovyServlet.service(GroovyServlet.java:129) at groovyx.gaelyk.GaelykServlet.super$5$service(GaelykServlet.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1058) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodOnSuperN(ScriptBytecodeAdapter.java:127) at groovyx.gaelyk.GaelykServlet$_service_closure1.doCall(GaelykServlet.groovy:69) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:149) at groovyx.gaelyk.GaelykServlet$_service_closure1.doCall(GaelykServlet.groovy) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.appengine.tools.development.agent.runtime.Runtime.invoke(Runtime.java:100) at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88) at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:233) at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:273) at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886) at groovy.lang.Closure.call(Closure.java:282) at groovy.lang.Closure.call(Closure.java:277) at org.codehaus.groovy.runtime.GroovyCategorySupport$ThreadCategoryInfo.use(GroovyCategorySupport.java:111) at org
Re: [appengine-java] NullPointerException with BlobService using Eclipse plugin
Joe, The form action should be form action="/upload" only. Did you try using that. If you still get errors when uploading make sure you have upload servlet mapped in the web.xml file Ash On Thu, Feb 24, 2011 at 10:21 AM, Joe Hudson wrote: > Ok thanks Ash. > > I actually get the URL from the BlobService. Are you saying I should use > > > And, if this is the case, I'm assuming I should only do this for local > testing, correct? Should I remove the /upload prefix when I deploy? > > Thank you very much for your help. > > > Joe > > -- > 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] NullPointerException with BlobService using Eclipse plugin
Ok thanks Ash. I actually get the URL from the BlobService. Are you saying I should use And, if this is the case, I'm assuming I should only do this for local testing, correct? Should I remove the /upload prefix when I deploy? Thank you very much for your help. Joe -- 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: URLFetchService
My guess is that the JSESSIONID (or whichever session cookie used by the service) that is received in the HTTPResponse of your first fetch() is not sent back with your second fetch. As a consequence, the service does not know you're logged in. Here is how I would solve it (I did not test that code): // ... HTTPResponse response = urlFetchService.fetch(httpRequest); List headers = response.getHeaders(); String cookies; for (HTTPHeader header : headers) if ("Set-Cookie".equals(header.getName()) cookies = header.getValue(); httpRequest = new HTTPRequest(url,HTTPMethod.POST, validateCertificate()); if (cookies != null) httpRequest.setHeader(new HTTPHeader("Cookie", cookies)); // ... You may run into the following issues, though: http://code.google.com/p/googleappengine/issues/detail?id=1704 http://code.google.com/p/googleappengine/issues/detail?id=3379 Hope it helps, Philippe -- 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] NullPointerException with BlobService using Eclipse plugin
Try with action="/upload/ On Wed, Feb 23, 2011 at 1:04 PM, Joe Hudson wrote: > Hi, > > I get a NPE when uploading a file to the blob service in my local Eclipse > environment. Can anyone help me understand what I need to do to fix this > situation? Thanks. > > I'm using App Engine 1.4.0. > > My form: > action="/_ah/upload/ > aglub19hcHBfaWRyGwsSFV9fQmxvYlVwbG9hZFNlc3Npb25fXxgJDA"> > Description > > > File > > > > > > > [WARN] /_ah/upload/aglub19hcHBfaWRyGwsSFV9fQmxvYlVwbG9hZFNlc3Npb25fXxgJDA > java.lang.NullPointerException > at > com.google.appengine.api.blobstore.dev.UploadBlobServlet.handleUpload(UploadBlobServlet.java:380) > at > com.google.appengine.api.blobstore.dev.UploadBlobServlet.access$000(UploadBlobServlet.java:72) > at > com.google.appengine.api.blobstore.dev.UploadBlobServlet$1.run(UploadBlobServlet.java:101) > at java.security.AccessController.doPrivileged(Native Method) > at > com.google.appengine.api.blobstore.dev.UploadBlobServlet.doPost(UploadBlobServlet.java:98) > at javax.servlet.http.HttpServlet.service(HttpServlet.java:637) > 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 > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) > at > com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter(TransactionCleanupFilter.java:43) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) > at > com.google.appengine.tools.development.StaticFileFilter.doFilter(StaticFileFilter.java:122) > at > org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) > at > org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) > at > org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) > at > org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) > at > org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) > at > org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418) > at > com.google.apphosting.utils.jetty.DevAppEngineWebAppContext.handle(DevAppEngineWebAppContext.java:70) > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at > com.google.appengine.tools.development.JettyContainerService$ApiProxyHandler.handle(JettyContainerService.java:349) > at > org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) > at org.mortbay.jetty.Server.handle(Server.java:326) > at > org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542) > at > org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938) > at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755) > at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218) > at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) > at > org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409) > at > org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582) > > Thanks in advance for the help. > > Joe > > -- > 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] Project Help
we are doing a project on chatting with our created application, in that how to get gmail contacts of an user in java!?plz help -- 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] file name problem other than english when saved onto blobstore
I am currently working on a project for groupware on app engine. I have been developing uploading module using blobstore. The problem is that it seems that other language is not supported by blobstore. When I try to retrieve the file name out of blobs, the file name doesn't show up properly. It is all cracked. Only English file name is normally displayed. Am I doing something wrong or Blobstore itself doesn't support multi language? Any help would be appreciated!!! -- 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] OVER_QUERY_LIMIT
I need to construct a distance matrix among some 100 locations (this is about 10K requested). In order to avoid the request quota issue I wrote a program that submit an http query every 40 seconds. That is less than 2500 queries a day My query look like this "http://maps.googleapis.com/maps/api/directions/json? origin="+lat1+","+long1+"&destination="+lat2+","+long2+"&sensor=false&units=metric" (where str(lat) and str(lon) represent are strings contain the latitude and longitude, However after 100-200 queries I start getting the OVER_QUERY_LIMIT error. Moreover, even after waiting for several hours I can not submit more queries from the same IP. That is it seems that I was blacklisted PS. I know that this is not a Java API issue, but I saw that the issue is discussed 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] My app is NOT coming up!! is something wrong with App Engine?
My app is not coming up starting this morning...is something wrong with app engine? -- 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] Import test data to local datastore
I'm aware that this issue has been brought up before, but I've not been able to get any resolution on it. Wondering if anyone has any advice that my google-foo is not finding. I would like to import some test data to the local datastore of my Java application. This would allow me to test bug fixes locally before deploying them, and speed up my development process significantly. I was able to download some data into a .csv file from my app using the python-based bulk loader (instructions here: http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/). Now I am trying to push the data to my local app, and not having any success. The command I'm running is as follows: python2.5 appcfg.py upload_data --application= --kind= --filename=data.csv --config_file=config.yaml --url=http://localhost:/remote_api/ This prompts me for a username and password. Various sites have said that I should be able to enter any random username, and a blank password. However, after I do that, I get the following stack trace: File "/usr/lib/python2.5/urllib2.py", line 387, in open response = meth(req, response) File "/usr/lib/python2.5/urllib2.py", line 498, in http_response 'http', request, response, code, msg, hdrs) File "/usr/lib/python2.5/urllib2.py", line 425, in error return self._call_chain(*args) File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain result = func(*args) File "/usr/lib/python2.5/urllib2.py", line 506, in http_error_default raise HTTPError(req.get_full_url(), code, msg, hdrs, fp) HTTPError: HTTP Error 404: Not Found [INFO] Authentication Failed At the console, it prints [WARN] No file found for: /remote_api/ But I have the remote api servlet enabled at that url in web.xml, and have been able to use it in my production app. Is bulk uploading like this to a local datastore even possible? The documentation on the bulkloader says that it's impossible to download data from a local app, but is silent about uploading. Is there another way of doing this besides the bulk loader? -- 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] URLFetchService
Hi: What I am trying to do is use the google app eng URL fetcher service to access a HTTPS url but before I can arrive to the page I need I first have to post login details to the site and then I want to navigate to the page where my data is. Basically I need to authenticate to the site using my login details and then I want to retrieve another page from the same site which I only access after I have logged in. How can I do this using URL fetcher service ? This is the code i am using for the moment. URL url = *new* URL("MY_HTTPS_URL"); URLFetchService urlFetchService= URLFetchServiceFactory.*getURLFetchService*(); HTTPRequest httpRequest = *new* HTTPRequest(url,HTTPMethod.*POST*, * validateCertificate*()); httpRequest.setPayload("login=mylogin&password=mypassword&action=login" .getBytes()); HTTPResponse response = urlFetchService.fetch(httpRequest); httpRequest = *new* HTTPRequest(url,HTTPMethod.*POST*, *validateCertificate*()); httpRequest.setPayload("action=summary".getBytes()); response = urlFetchService.fetch(httpRequest); Any help appreciated. Thank you. cyberalgo -- 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: 1.4.2: Can't make https call from dev server
It works for me, I can call the fb graph api again. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: How to POST to the BlobStore from a command line Java program?
Hi, what Didier's right! also you could use webservices REST-type, and write your own handlers with this new way, you could perform the specific operations like: @POST - insert @PUT- update @GET - select @DELETE - delete. so that, you can see that you've got all the basic operations like in a DB, and acording to what Didier said, you could write a POJO to store all your data. Then, in the client side, you could write a program to perform all the tasks for maintaining these POJOs ( select, update, insert, delete ) programaticly. here you can find a very helpful project about REST-type services. http://www.restlet.org/ hope this was helpful. cheers, On Wed, Feb 23, 2011 at 11:11 PM, Didier Durand wrote: > Hi guys, > > I don't have a direct answer to your question but I have another > proposal: > > why don't replace the blobstore by a pojo containing a list of gae > blob objects. They are limited to 1 Mbytes each but you can split your > files into a collection that you gather via the proper structure (a > java collection) > > You can then access the full servlet api (POST to store them, GET to > retrieve them) > > The recent availability allows you to serve a blob while you fetch the > next one. > > I see only 1 issue in this solution as of now: the 30s limit on > interactive request meaning that each file has to be served back in > less than 30s. Maybe too small depending on size of your files. > > regards > > didier > > On Feb 24, 5:13 am, Rick Smith wrote: > > I am also looking for a similar solution. Currently my application is > > running on a local server and I have uploaded more than 5 thousands > file > > in SVN. Now I want to shift on Google app engine and I have already done > > most of the hardwork. But I do not found a programatic way to upload > these > > file to blob store directly and I am still waiting for a concrete > solution > > as I can't upload each file one by one using file system. > > > > It will be highly appreciated if some one from google take on this and > > provide us a solution so that we can move on GAE. > > > > Regards > > > > Rick > > -- > 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. > > -- Ronmell F. *-Information Technologies Engineering-* ausencia de evidencia ≠ evidencia de ausencia http://culturainteractiva.blogspot.com/ -- 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: How to get all entity types?
Hi, Look at http://code.google.com/appengine/docs/java/datastore/metadataqueries.html: all what you need is there. regards didier On Feb 24, 8:01 am, 王宇辉 wrote: > Hi guys, > > Is there any way to get all the entity names by code? > > -- > Best regards, > Yuhui -- 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: ClassNotFoundException
Another random guess - have you specified a serialVersionUID on your serializable classes at all? Maybe it's getting confused if you've recompiled your classes. -- 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: Protocol Buffer in Google app engine
If you need to transfer datastore data as POJO-s to a java client you can use Hessian. I have tried it and I know that it works (I used Android as a client). You can find more info here: http://monkeyboy-code.blogspot.com/2010/07/using-gae-as-backend-for-android.html and here: http://monkeyboy-code.blogspot.com/2010/07/using-hessian-in-your-android.html -- 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.