[appengine-java] Re: Error after deploying the application in appspot

2011-10-04 Thread Manilal
I tried executing the same application from the following environments: 1. ant runserver 2. Eclipse 3. dev_appserver.sh (appengine-sdk) But I couldn't execute it from appspot.com. I have been behind this issue for the past one week, but without any luck. Any hints or pointers on how to debug th

Re: [appengine-java] Automatically increment version number

2011-10-04 Thread Manilal K M
On 4 October 2011 23:31, Jeff Schnitzer wrote: > Keep in mind you only get 10 versions, so you'll have to delete old > ones as you add new ones.  I don't see any way to automate that. I was not aware of this limitation. May be I have to incorporate some logic not to exceed this limit. Thank you v

Re: [appengine-java] Re: Automatically increment version number

2011-10-04 Thread Manilal K M
2011/10/4 Ronoaldo José de Lana Pereira : > Since you are using a shell script, you may want to try something smaller > that don't require you to add Ant to your deploy proccess (i.e., if your app > is in Python): > sed -e "s/@version/$(hg id -i)/g" < appengine-web.xml.in > appengine-web.xml > This

[appengine-java] Re: Server Code vs DataStore

2011-10-04 Thread Kb
Thanks . Can i display images with Objectify Framework ? i.e get output data (including image) with .get(key) method etc and then Display to client based on his input . -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to t

[appengine-java] Re: Storing query results in memcache

2011-10-04 Thread Nichole
Level2 cache might be what you want, but anyway, just to add to the dialog, I tinkered with what's available in datanucleus-core v1.1.5. Choices in datanucleus are: none, soft, and weak (jcache is not available in any version, but see below for customization) In addition to those, one can make a c

[appengine-java] Problems with JDO, one-to-many relationship and indexes

2011-10-04 Thread Miguel
Hi, I am stuck with a big problem that involves a one-to-many relationship, the jdo mapping (done via xml-metadata) and the index I have to create to mantain an order .. Here it is the main class: public class Album { [..] protected List medias = null; [..] } .. then the JDO mapping:

Re: [appengine-java] Communication between Servlets and Tasks

2011-10-04 Thread Nick Johnson
On Tue, Oct 4, 2011 at 7:15 PM, Mark Silberbauer wrote: > I would like to write a method which handles the flow of communication on > XMPP. The sequence of things I'd like to do is: > > 1. Send message. > 2. Wait for response. > 3. Process the response. > > Since we could be waiting longer than 3

[appengine-java] Re: Help: Memcache - not hitting at all

2011-10-04 Thread Uwe Maurer
On Sep 11, 9:33 pm, realdope wrote: > Here's rest of the code: > >     private static boolean has(String key) { >         return MemcacheServiceFactory.getMemcacheService().contains(key) && > get(key).length()>0; >     } > ... >         if (Memcache.hasById(id)) return Memcache.getById(id); >  

[appengine-java] java.lang.IllegalArgumentException: The requested query has expired. Please restart it with the last cursor to read more results.

2011-10-04 Thread Ronoaldo José de Lana Pereira
Is there any simple way to workaround this? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/c0JUpR-P5IUJ. To post to this group, send

[appengine-java] Re: For SSO

2011-10-04 Thread Arun Shanker Prasad
As far as I know this cannot be done. You have to lock your application to a particular domain during registration. On Oct 4, 3:35 pm, VIKASH PATEL wrote: > Hello Friends, > >             I want to implement SSO in my application, > Still i am able to make user log in with particular gmail accoun

[appengine-java] Re: Server Code vs DataStore

2011-10-04 Thread Gerald Tan
It would probably be most efficient to use the Datastore together with the Memcache. If you are new to all these things, I'd definitely recommend using the Objectify framework which completely trivializes the transfer of entities between GWT and GAE without having to use those awful DTOs. Objec

Re: [appengine-java] Re: how to bring a "huge" (http error 413) amount of data to the server?

2011-10-04 Thread Ikai Lan (Google)
Yeah, GETs will choke. POST should not if it's in the payload and in a multipart format, NOT the URL string. Can you post client side code? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Oct 4, 2011 at 1:18 PM, Jeff Schnitzer wrote: > T

Re: [appengine-java] GeoPt vs. two floats

2011-10-04 Thread Ikai Lan (Google)
AFAIK, there aren't any plans to do Geospatial indexing via GeoPt anytime in the near future. That being said, if we were to support this feature, it would make sense for us to start there or at least provide an API supporting GeoPt. Even if we didn't, you could just call getLatitude() and getLongi

Re: [appengine-java] Re: how to bring a "huge" (http error 413) amount of data to the server?

2011-10-04 Thread Jeff Schnitzer
That doesn't sound right. You should have no trouble POSTing 20k to GAE. I wouldn't be surprised if GETs choked though. Jeff On Tue, Oct 4, 2011 at 9:47 AM, Gerald Tan wrote: > You'll have to use the Blobstore API and allow the user to upload the xml > into the blobstore > > -- > You received

[appengine-java] Re: Quick way to delete datastore entities?

2011-10-04 Thread J
The Datastore Admin page is blank for me as well. Weird. Anyone? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/BjbuI_lKIzEJ. To p

[appengine-java] Server Code vs DataStore

2011-10-04 Thread Kb
I am making a GWT App which uses GWT RPC to get data from server. Which is Better-> 1. Uses if/switch statements(around 1000) in server code 2. Store in Datastore and on RPC retrieve data from DataStore. any Simple example code for GWT GAE Datastore. Thanks. -- You received this message bec

[appengine-java] Mobile subdomain in app engine

2011-10-04 Thread WillSpecht
Can someone give me a basic rundown of how to set up a mobile site on app engine. I already have a standard site set up but I want to use the same data store to run a mobile site. I would like to redirect mobile users to m.mydomain.com. Basically both sites will be the same I just want to show the

Re: [appengine-java] Automatically increment version number

2011-10-04 Thread Jeff Schnitzer
Keep in mind you only get 10 versions, so you'll have to delete old ones as you add new ones. I don't see any way to automate that. Jeff On Tue, Oct 4, 2011 at 2:09 AM, Manilal wrote: > I'm using the commandline version of appcfg command to deploy Java > application. I would like to create a ne

Re: [appengine-java] GeoPt vs. two floats

2011-10-04 Thread Jeff Schnitzer
It really isn't a big deal. Store two floats if you want. The reasons I use GeoPt a lot: * GeoPt shows up nicely in the datastore viewer * You can store arrays of GeoPt * The storage cost should be slightly less than two floats because there is metadata only for one field. * Maybe some day i

Re: [appengine-java] Re: Automatically increment version number

2011-10-04 Thread Ronoaldo José de Lana Pereira
Since you are using a shell script, you may want to try something smaller that don't require you to add Ant to your deploy proccess (i.e., if your app is in Python): sed -e "s/@version/$(hg id -i)/g" < appengine-web.xml.in > appengine-web.xml This is just a in-mind-one-liner script, not sure ab

Re: [appengine-java] Re: Automatically increment version number

2011-10-04 Thread Manilal K M
2011/10/4 Ronoaldo José de Lana Pereira : > I use Mercurial as SCM, and the command hg id -i and hg id -n give's me the > current revision id and hash. To be able to have full control on what > version is running on the server side, we use the following ant tasks: > This one filter an "appengine-we

[appengine-java] Re: how to bring a "huge" (http error 413) amount of data to the server?

2011-10-04 Thread Gerald Tan
You'll have to use the Blobstore API and allow the user to upload the xml into the blobstore -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengin

[appengine-java] Re: Automatically increment version number

2011-10-04 Thread Ronoaldo José de Lana Pereira
I use Mercurial as SCM, and the command hg id -i and hg id -n give's me the current revision id and hash. To be able to have full control on what version is running on the server side, we use the following ant tasks: This one filter an "appengine-web.xml.in" file, that is under version control,

[appengine-java] What is the best buffer size when using a BufferedWriter with the BlobStore WriteChannel?

2011-10-04 Thread Ronoaldo José de Lana Pereira
When writing to the WriteChannel, what is a reasonable ammount for the buffer size? I'm planning to use this buffered writer with Apache Velocity, to let Velocity write directly to the Channel and generate a large report (~10MB). FileWriteChannel writeChannel = FileServiceFactory.getFileServic

[appengine-java] Re: Read appengine file and save it's contents into a byte[]

2011-10-04 Thread Gerald Tan
FileReadChannel implements http://download.oracle.com/javase/6/docs/api/java/nio/channels/ReadableByteChannel.html You should be able to figure out it out from there -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this dis

Re: [appengine-java] GeoPt vs. two floats

2011-10-04 Thread Bruno Sandivilli
I don't recomend both VRaptor and Objectify, for business/enterprise projects. And the advantage is that it facilitates for you , for example, use libraries like GeoModel. 2011/10/4 Bruno Fuster > I'm using GeoPt 'cause it might have improvements in the future, like > nearby search. > I'm not su

Re: [appengine-java] GeoPt vs. two floats

2011-10-04 Thread Bruno Fuster
I'm using GeoPt 'cause it might have improvements in the future, like nearby search. I'm not sure about Spring form beans. I would recommend VRaptor with Pico and Objectify for better startup time. On Tue, Oct 4, 2011 at 11:30 AM, Eliot Stock <1...@eliotstock.com> wrote: > Hi there, > > What's

[appengine-java] GeoPt vs. two floats

2011-10-04 Thread Eliot Stock
Hi there, What's the advantage, if any of using GeoPt ( http://code.google.com/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types) over using two float fields? I've found the disadvantage is that Spring form beans are difficult to work with when you have two hidden fields o

Re: [appengine-java] Automatically increment version number

2011-10-04 Thread Marcelo Liberato
You can automate it by manipulating appengine-web.xml in your build process. On Tue, Oct 4, 2011 at 6:09 AM, Manilal wrote: > I'm using the commandline version of appcfg command to deploy Java > application. I would like to create a new version on each deployment. I know > that the version numbe

Re: [appengine-java] Why the 10 second URL fetch limit?

2011-10-04 Thread Luis Montes
Woohoo! fixed in 1.5.5 You guys, rock. Thanks, Ikai! -Luis On Fri, Jun 17, 2011 at 9:41 PM, Ikai Lan (Google) wrote: > Let me see what it'll take to get this moved into App Engine for Java. With > concurrency, instance hours based quotas, and "knobs" for tuning instance > scheduling, it migh

[appengine-java] Communication between Servlets and Tasks

2011-10-04 Thread Mark Silberbauer
I would like to write a method which handles the flow of communication on XMPP. The sequence of things I'd like to do is: 1. Send message. 2. Wait for response. 3. Process the response. Since we could be waiting longer than 30s for the response (step 2) I'll be teeing up a task to take care of

[appengine-java] upload problem? help

2011-10-04 Thread ChinLun
I try to save file information such as filename,blobkey,Date when uploading a file , and print all of that later on JSP. It works flawless on localhost, but after deploy to app engine my JSP can not dynamic create filename, can anyone tell me what's wrong, thx very much below is part of my code

[appengine-java] how to bring a "huge" (http error 413) amount of data to the server?

2011-10-04 Thread CAA
hi everyone. my problem is probably pretty simple i have xml files which i want to bring to the (java gae based) server (from a java based client). the xml-string its about ~16-20k charakters - which results in a http error 413 (Request entity too large) when i try to send it via get or pos

[appengine-java] Read appengine file and save it's contents into a byte[]

2011-10-04 Thread Stefanos Antaris
Hi to all, i am using AppEngineFile in order to retrieve the saved blob items. I need to send that file as an attachment using the mail api so i need to convert the file's contents into the byte array. Could anyone give me a hint on that? The blob items are of various types including .java, .zip,

[appengine-java] Re: Prerelease SDK 1.5.5 available for download!

2011-10-04 Thread Ronoaldo Pereira
Awesome news!!! Congrats to the team! Thanks for the hard and wonderful work. I'll try it out right now! Can't wait for the final release. Best Regards, -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion

[appengine-java] For SSO

2011-10-04 Thread VIKASH PATEL
Hello Friends, I want to implement SSO in my application, Still i am able to make user log in with particular gmail account but i want user logs in with google apps account and the application should be display in universal navigation bar.. so please help me if anyone has demo cod

[appengine-java] Re: Moderation enabled

2011-10-04 Thread jbcolmena
Hi Jason, Don't mean to bother, but it's been 24 hours already... -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/LeGX2r1VoY8J. To

[appengine-java] Automatically increment version number

2011-10-04 Thread Manilal
I'm using the commandline version of appcfg command to deploy Java application. I would like to create a new version on each deployment. I know that the version number can be changed in appengine-web.xml, but I would like to automate the process and keep the old versions intact. thanks Manilal

[appengine-java] Re: Error after deploying the application in appspot

2011-10-04 Thread Manilal
Thanks for your reply, I tried the command you suggested, but no luck. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To view this discussion on the web visit https://groups.google.com/d/msg/google-appengine-java/-/BNo3-7iRo0YJ.

[appengine-java] Datastore Reads Quota How to know wich request to improve?

2011-10-04 Thread Guillaume B.
Hello, I reach some limits on the datastore read quotas and I would like to improve my code to limit this but I cannot find any log to know wich request must be improve something like Datastore Reads Usage /dowrite.do 14% /doread.do 12% /myprofile.do 1% Or is there some java API so I