[appengine-java] Exact JVM version
Hi App Engine team, Would you be able to provide information about the exact JVM version that App Engine is running? I ask because I believe I might be the victim of an XML-parsing bug that only affects JVM versions: 1.6.0_06, 1.6.0_13, and 1.6.0_17. However, on App Engine, whenever I print out System.getProperty(java.vm.version), it only gives me the very non- specific 1.6.0 instead of the usual format: 16.0-b13 (on a desktop JVM). I've tried searching around but I couldn't find a definitive answer. So I thought I'd ask here: what is (or how can I find out) the exact JVM version you guys are running? If it's a custom version, can you at least tell me if it's forked from one of the three versions I listed above? Thanks! -Adrian -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: mapreduce - passing filters
I know, but I would prefer to discuss it first (offline is OK). I don't want to start submitting patches without first confirming that * I got the concepts correctly (there are a lot of possible implementations). * The design is coherent with whatever direction the project is taking. * The project is open to submissions of this kind. Otherwise, it's a waste of time for everyone. On Wed, Nov 10, 2010 at 6:58 PM, Maxim Veksler ma...@vekslers.org wrote: Don't think Google would mind if you submit a patch, you have the source code under SVN available from here http://code.google.com/p/appengine-mapreduce/source/browse/ On Wed, Nov 10, 2010 at 6:08 PM, Nacho Coloma icol...@gmail.com wrote: Is there any option to contribute to this project? I am using hacks to do the filtering, and it seems easy to implement. I would love to discuss things first, but appengine-mapreduce seems like a read-only project to me. It's fine but I would like to help it move forward. On Nov 8, 10:11 pm, Ikai Lan (Google) ikai.l+gro...@google.comikai.l%2bgro...@google.com wrote: There was talk about supporting it, but the priority is getting out the shuffle/reduce steps first. appengine-mapreduce is an open source project. You can probably just edit/subclass DatastoreInputFormat.java and add the filter functionality: http://www.google.com/codesearch/p?hl=en#XwsseYUY0Ps/trunk/java/src/c. .. -- 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 Mon, Nov 8, 2010 at 12:28 PM, Brad bseef...@finallythebasics.com wrote: Ikai, Are there any plans to support filter functionality in the future? I have a similar situation where I want to iterate over a collection that is big enough to be used by the mapper framework, but much smaller than the actual collection size of all entities of that kind. Brad On Nov 8, 11:56 am, Ikai Lan (Google) ikai.l+gro...@google.comikai.l%2bgro...@google.com ikai.l%2bgro...@google.com ikai.l%252bgro...@google.com wrote: No, the mapper will go over everything. If the number of entities is small, you are better off placing an indexed property on ONLY these fields, then just iterating over them with a cursor and either a local client making multiple HTTP calls to your App Engine app or chained task queues. -- 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 Sun, Nov 7, 2010 at 5:58 AM, aswath satrasala aswath.satras...@gmail.com wrote: Hello, I want to perform few aggregations on entities of a kind that are filtered by the property. The entities I want to perform the aggregation is small compared to the complete entity set. Is there any way to pass the filters to the mapper, so that only those entities are retrieved and aggregation is performed *Regards -Aswath http://vs-accounting.appspot.com Accounting for Indian markets.* -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.comgoogle-appengine-java%2B 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to
[appengine-java] Sas70 certification for Google App Engine
Hi, I read that Google Apps successfully went through SAS 70 Type II audit (http://googleenterprise.blogspot.com/2008/11/sas-70-type-ii-for- google-apps.html) Is there an equivalent certifications for App Engine ? Where can I find infos ? It's important for some business-critical applications to be migrated to App Engine to get such a guarantee. Thanks didier -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests
Hi Didier, thanks for your reply. Those instructions are for generating an index file while running the dev server and hitting it locally with your browser. What I am talking about is during running JUnit test cases using the LocalServiceTestHelper. That helper lets you write unit tests against the datastore and seems ideal to be able to generate indexes from since your unit tests should hit every kind of query you have. G On Nov 10, 11:03 pm, Didier Durand durand.did...@gmail.com wrote: Hi George, Did you follow the instructions ofhttp://code.google.com/appengine/docs/java/config/indexconfig.html#Us... ? That should be the answer to your question regards didier On Nov 10, 8:26 pm, gholler georgehol...@gmail.com wrote: Is it possible to auto-generate the datastore-indexes.xml while running JUnit tests that use the LocalServiceTestHelper (with LocalDatastoreServiceTestConfig)? It seems like it would be great to have the file automatically generated and then deployed with maven. Unfortunately I don't see the file being generated. Thanks, George -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests
Hi Didier, thanks for your reply. Those instructions are for generating an index file while running the dev server and hitting it locally with your browser. What I am talking about is during running JUnit test cases using the LocalServiceTestHelper. That helper lets you write unit tests against the datastore and seems ideal to be able to generate indexes from since your unit tests should hit every kind of query you have. G On Nov 10, 11:03 pm, Didier Durand durand.did...@gmail.com wrote: Hi George, Did you follow the instructions ofhttp://code.google.com/appengine/docs/java/config/indexconfig.html#Us... ? That should be the answer to your question regards didier On Nov 10, 8:26 pm, gholler georgehol...@gmail.com wrote: Is it possible to auto-generate the datastore-indexes.xml while running JUnit tests that use the LocalServiceTestHelper (with LocalDatastoreServiceTestConfig)? It seems like it would be great to have the file automatically generated and then deployed with maven. Unfortunately I don't see the file being generated. Thanks, George -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Why can't i persist a BitSet
I am trying to store a BitSet to my data store but when I try to use it I get the following error: java.lang.IllegalArgumentException: thisRuleSet: java.util.BitSet is not a supported property type. Can I not store a BitSet even though it is serializable and if I can't, what is the suggested work around? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Are Text properties still not lazy loaded?
Hi, Is a Text property lazy loaded when I query for an instance of that class? It seems to not be lazy loaded as of 2008, wondering if that's still the case?: http://groups.google.com/group/google-appengine/browse_thread/thread/81ac0c2bba6e37c8/291625c1099711b0?lnk=gstq=text+lazy#291625c1099711b0 I ask because I'm wondering if a query for a class is spending time deserializing my large Text properties, or waiting until I actually access them (if ever) after the query is already performed, Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] AppEngine Inquiries
hi , now i have mobile application need to communicate with AppEngine Account to store Data retrieve it whenever need it . another appEngine need this Data to make statistics about this Data . now the Question : what is the perfect way to Do That : 1 - make the mobile App Send This Data To both of AppEngine accounts . 2 - make the mobile App send the data to the first AppEninge Account and make communication between the two AppEngine Accounts. what is the perfect solutions to do that ?? Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] how to send DataStore Between To Java AppEngine Accounts
hi , is there a direct way to send dataStore from on appEngine Account to another one ??? how can i do this ?? thanks . -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] App Engine Really Slow after certain time of no requests
Hi all, I have had a number of performance issues on initial loading of my app engine application. Part of it is already solved by using Caching. However, my application is still very slow when first loading a servlet after a certain amount of time of inactivity (I think about 1 minute). After this period of inactivity it takes from 3 to 6 seconds to load. Next requests take typically 400 MS. The initial load time is not acceptable for the actual application. Anyone any experience with this? How can I avoid this? I already considered implementing following solutions to keep application / servlet in memory 1/ call application every minute from external application 2/ setup a cron job performing a request every minute to actual servlet I think both are a solution but honestly not my preferred solution as I expect performance from this platform. BRL -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Why can't i persist a BitSet
You can serialize the BitSet into a ByteArrayOutputStream, then persist a Blob wrapper around resulting byte array On Nov 11, 11:21 am, WillSpecht willspe...@gmail.com wrote: I am trying to store a BitSet to my data store but when I try to use it I get the following error: java.lang.IllegalArgumentException: thisRuleSet: java.util.BitSet is not a supported property type. Can I not store a BitSet even though it is serializable and if I can't, what is the suggested work around? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests
Something like the following will setup the datastore helper and create the datastore-indexes-auto.xml: LocalDatastoreServiceTestConfig dsConfig = new LocalDatastoreServiceTestConfig(); File location = new File(war/WEB-INF/appengine-generated/ local_db.bin); dsConfig.setBackingStoreLocation(location.getAbsolutePath()); // And it seems that for the local ds service to be able to load the local_db.bin file, the local // environment must match the app id and version as stored in the file. String xml; try { xml = FileUtils.readFileToString(new File(war/WEB-INF/ appengine-web.xml)); } catch (IOException e) { throw new RuntimeException(e); } String application = StringUtils.substringBetween(xml, application, /application); String version = StringUtils.substringBetween(xml, version, /version); // Default behavior is to keep everything in RAM. Tell the local services to use the file system dsConfig.setNoStorage(false); // Create the local services. gaeDatastoreHelper = new LocalServiceTestHelper(dsConfig); gaeDatastoreHelper.setEnvAppId(application); gaeDatastoreHelper.setEnvVersionId(version); // Calling setUp() will start the local ds service and load the local_db.bin file. gaeDatastoreHelper.setUp(); This way, you can even write tests against a previously generated local_db.bin if you want. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Session GAE
Read this: http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions Though if you have that disabled and attempt to use sessions locally, it will throw an error. -- 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 Wed, Nov 10, 2010 at 10:30 PM, idnoob ironand...@gmail.com wrote: Hi all! Session enable in eclipse but error happen in GAE. I know that GAE has session disable, how to enable session with GAE? Many thanks! :) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Are Text properties still not lazy loaded?
Text properties were never actually lazy loaded. We only lazy loaded them to match the JDO/JPA spec. In practice, the entire entity was being read and we just weren't populating the entity. Try running AppStats - though I suspect the deserialization shouldn't be *that* slow. -- 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, Nov 11, 2010 at 8:38 AM, Mark mar...@gmail.com wrote: Hi, Is a Text property lazy loaded when I query for an instance of that class? It seems to not be lazy loaded as of 2008, wondering if that's still the case?: http://groups.google.com/group/google-appengine/browse_thread/thread/81ac0c2bba6e37c8/291625c1099711b0?lnk=gstq=text+lazy#291625c1099711b0 I ask because I'm wondering if a query for a class is spending time deserializing my large Text properties, or waiting until I actually access them (if ever) after the query is already performed, Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Problem with session
If i try to use my application on localhost, i haven't problem. But if i deploy my app, and then i try to use my app, i meet somw problem with session. In a nutshell, the app need login to accessing the homepage, with logging user object is memorized in session. So i sign-in in the app, and i am redirected on the homepage. And unitl now all is ok. But if i from the homepage click on link to the same page (homepage) it seems that the user, that is memorized in session, isn't in session, so i am redirected to the login page. Why this? Why on localhost the app work, but the same app on google app engine doesn't work as i want? PS: Java code for getting or memorizing a user object is right (on localhost it's work) PS2: user object is not Google user object, but it's object defined by me -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Session GAE
I solved my problem this night, enabling session in eclipse in xml permit the use of session locally but When you deploy your project on GAE , session scope doesn't run . Then i solve my problem using this guide : http://idnoob.altervista.org/blog/how-toenable-session-in-google-app-engine/ Many Thanks ! Bye! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: Are Text properties still not lazy loaded?
Yeah, you might want to break it up in that case. If you don't use bigChunkOfJson frequently, put it in a different object that you can generate the key for on the fly (so you can use a get by key instead of needing to use a query). -- 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, Nov 11, 2010 at 1:55 PM, Mark mar...@gmail.com wrote: Thanks Ikai. I have an entity that has a bunch of Text properties, they can each be quite large. I wanted to avoid loading them if they're not going to be used for a specific query. For example, I have a list of GameRoom objects: class GameRoom { String gamename; String mapname; Text bigChunkOfJson1; Text bigChunkOfJson2; Text bigChunkOfJson3; } If a user wants to get a listing of games my service is hosting, it's probably not wise for me to deserialize each bigChunkOfJson property to give them a simple game listing. Only if they join a game do I need to touch those Text properties. I read the Relationships page again and it seems that child objects are lazy loaded: Child objects are loaded from the datastore when they are accessed for the first time. If you do not access the child object on a parent object, the entity for the child object is never loaded. If you want to load the child, you can either touch it before closing the PersistenceManager (e.g. by calling getContactInfo() in the above example) or explicitly add the child field to the default fetch group so it's retrieved and loaded with the parent So I figure I could split my class up like: class Game { String gamename; String mapname; MoreInfo more; } So if I query for Game instances, so long as I don't access the MoreInfo object, that data won't be fetched (if I understand correctly). Then I can put all my Text objects in that class, Thanks http://code.google.com/appengine/docs/java/datastore/relationships.html On Nov 11, 3:56 pm, Ikai Lan (Google) ikai.l+gro...@google.comikai.l%2bgro...@google.com wrote: Text properties were never actually lazy loaded. We only lazy loaded them to match the JDO/JPA spec. In practice, the entire entity was being read and we just weren't populating the entity. Try running AppStats - though I suspect the deserialization shouldn't be *that* slow. -- 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, Nov 11, 2010 at 8:38 AM, Mark mar...@gmail.com wrote: Hi, Is a Text property lazy loaded when I query for an instance of that class? It seems to not be lazy loaded as of 2008, wondering if that's still the case?: http://groups.google.com/group/google-appengine/browse_thread/thread/. .. I ask because I'm wondering if a query for a class is spending time deserializing my large Text properties, or waiting until I actually access them (if ever) after the query is already performed, Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.comgoogle-appengine-java%2B 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: App Engine Really Slow after certain time of no requests
I definitely experience this problem to. I have a cron job that runs every 15 minutes to alleviate the problem but it annoys me. On Nov 11, 12:48 pm, GeneralSlaine lennart.ben...@gmail.com wrote: Hi all, I have had a number of performance issues on initial loading of my app engine application. Part of it is already solved by using Caching. However, my application is still very slow when first loading a servlet after a certain amount of time of inactivity (I think about 1 minute). After this period of inactivity it takes from 3 to 6 seconds to load. Next requests take typically 400 MS. The initial load time is not acceptable for the actual application. Anyone any experience with this? How can I avoid this? I already considered implementing following solutions to keep application / servlet in memory 1/ call application every minute from external application 2/ setup a cron job performing a request every minute to actual servlet I think both are a solution but honestly not my preferred solution as I expect performance from this platform. BRL -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.