Re: [appengine-java] Re: datastore
Hi, I've sort of soft closed this group. I was supposed to put it into read-only mode a week ago, but I wanted to see if questions would still trickle in. This type of question seems pretty good for StackOverflow, where we're increasing our efforts to grow the community there. Try posting it and see? https://groups.google.com/forum/?fromgroups#!topic/google-appengine/Z6XN_64cA7w -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Wed, Mar 14, 2012 at 4:50 AM, Ian Marshall ianmarshall...@gmail.comwrote: I think that you will have to put more effective effort into posing your question to get a useful reply. What datastore persistence interface do you want to use? What is your datastore design, using which you want to store a string? What web framework do you want to use, if any? Have you read some of the GAE/J documentation? If No, then you should. If Yes, then on which part(s) are you stuck? On 13 Mar, 06:37, chhavi tyagi chhavityag...@gmail.com wrote: plz give me a very simple example to save a name in datastore. like u have a text box in index.html and a button and wen u click on the button name gets saved on datastore. -- 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] How to initialize class guestbook.PMF ?
Hi, This might be a good question for StackOverflow. We're trying to migrate these types of questions over there: https://groups.google.com/forum/#!topic/google-appengine/Z6XN_64cA7w Likely: 1. It doesn't exist 2. You are importing it incorrectly -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Wed, Mar 14, 2012 at 12:58 PM, Vaso 81n...@gmail.com wrote: javax.servlet.ServletException: java.lang.NoClassDefFoundError: Could not initialize class guestbook.PMF Probably error in CLASSPATH, what this variable must contain, need example! -- 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/-/5dBsAbIU0L4J. 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] RestMQ on GAE
A quick search digs up this: https://github.com/gleicon/restmq-appengine Warning: I haven't tried the app yet. Also - just a quick note: we will be turning this group (google-appengine-java) read-only very soon as part of our migration of QA to StackOverflow. See more details here: https://groups.google.com/forum/?fromgroups#!topic/google-appengine/Z6XN_64cA7w -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Sat, Mar 3, 2012 at 12:14 PM, jmz jjzeid...@gmail.com wrote: Hello, Has anyone successfully run RestMQ Messaging Service on GAE? It is similar to Java Messaging Service (JMS). Does anyone have any experience running a message broker on GAE? I have read the previous threads on the subject. I'm aware of TaskQueue but the issue is 1) you cannot use Java clients 2) GAE-specific technology. thx! -jmz -- 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/-/KYDmwlgU_mgJ. 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] RestMQ on GAE
Oops, guess that project is in Python. It's probably a good place to start when implementing in Java. Also note that there are pull queues for task queues, and there ARE Java clients: http://code.google.com/appengine/docs/java/taskqueue/overview-pull.html -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Mon, Mar 5, 2012 at 5:00 PM, Ikai Lan (Google) ika...@google.com wrote: A quick search digs up this: https://github.com/gleicon/restmq-appengine Warning: I haven't tried the app yet. Also - just a quick note: we will be turning this group (google-appengine-java) read-only very soon as part of our migration of QA to StackOverflow. See more details here: https://groups.google.com/forum/?fromgroups#!topic/google-appengine/Z6XN_64cA7w -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Sat, Mar 3, 2012 at 12:14 PM, jmz jjzeid...@gmail.com wrote: Hello, Has anyone successfully run RestMQ Messaging Service on GAE? It is similar to Java Messaging Service (JMS). Does anyone have any experience running a message broker on GAE? I have read the previous threads on the subject. I'm aware of TaskQueue but the issue is 1) you cannot use Java clients 2) GAE-specific technology. thx! -jmz -- 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/-/KYDmwlgU_mgJ. 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] how to beata open to certain country
App Engine provides a geolocation header. Check this out: http://googleappengine.blogspot.com/2011/06/app-engine-151-release.html It's a best effort geo-IP mapping. Give it a try. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Mon, Feb 20, 2012 at 6:12 PM, Luke travalle...@gmail.com wrote: may i know what technique do you folks use to open the application to particular countries users only during beta stage? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] GAE + Cloud SQL + Hibernate
That's right. When working with the datastore, it's probably best to understand it first by learning the low-level API. There's a trap when you start trying to think of the datastore relationally - do not do this. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Tue, Feb 14, 2012 at 10:12 AM, Paul Ford paul.f...@mavenwave.com wrote: Ikai, This is great so Hibernate on GAE works for Cloud SQL but not Datastore. I understand. Thanks paul On Tue, Feb 14, 2012 at 11:57 AM, Ikai Lan (Google) ika...@google.comwrote: Hibernate works. I've gotten Cloud SQL to work with Hibernate ... the article has just been pending for some time now. You just want to turn off connection pooling and use AppEngineDriver where a SQL Driver is expected. Example configuration XML: *?xml version='1.0' encoding='utf-8'? !DOCTYPE hibernate-configuration PUBLIC -//Hibernate/Hibernate Configuration DTD 3.0//EN http://www.hibernate.org/dtd/hibernate-configuration-3.0.dtd; hibernate-configuration session-factory !-- Database connection settings -- property name=connection.driver_classcom.google.appengine.api.rdbms.AppEngineDriver/property property name=connection.urljdbc:google:rdbms:// YOUR_CLOUD_SQL_INSTANCE_ID/guestbook/property !-- JDBC connection pool (use the built-in) -- property name=connection.pool_size1/property !-- SQL dialect -- property name=dialectorg.hibernate.dialect.MySQLDialect/property !-- Disable the second-level cache -- property name=cache.provider_classorg.hibernate.cache.NoCacheProvider/property !-- Echo all executed SQL to stdout -- property name=show_sqltrue/property !-- Drop and re-create the database schema on startup -- property name=hbm2ddl.autoupdate/property mapping resource=BLAH/ /session-factory /hibernate-configuration* -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Tue, Feb 14, 2012 at 9:08 AM, Paul Ford paul.f...@mavenwave.comwrote: Hey Lisa as far as I can tell Hibernate is not supported by GAE. This is documented on the GAE Java Whitelist. Furthermore, JPA and JDO are supported so this should provide all the ORM you need. regards paul On Tue, Feb 14, 2012 at 5:33 AM, lisandrodc lisandr...@gmail.comwrote: Does someone know a simple example application GAE with Hibernate and Cloud SQL? Supposedly Cloud SQL support. (Forming:hibernate.cfg.xml, working with MySQL locally or Cloud SQL in Server) The link: https://developers.google.com/cloud-sql/ It does not mention anything with regard to Hibernate. Thanks and regards -- 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. -- Regards Paul *Paul W. Ford │ Principal* Maven Wave Partners LLC GTalk +1.312.884.1051 M: +1.312.953.1664 paul.f...@mavenwave.com Please check out our Fusion Bloghttp://www.mavenwave.com/news-and-views-mavenwave-blog/ for more insights -- 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. -- Regards Paul *Paul W. Ford │ Principal* Maven Wave Partners LLC GTalk +1.312.884.1051 M: +1.312.953.1664 paul.f...@mavenwave.com Please check out our Fusion Bloghttp://www.mavenwave.com/news-and-views-mavenwave-blog/ for more insights -- 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
Re: [appengine-java] max keys for memcache
There isn't a limit per se (that I know of), but our implementation of Memcache has two LRU (least recently used) queues that are used to expire content based on recency of access: a global LRU for that particular Memcache instance, and an LRU for your app. The amount of memory used is subject to change and I don't know it off the top of my head. I suspect you will not be able to store a billion keys, however, as I am pretty sure this'll go over the per app memory limits. So the bigger question here is this: are you familiar with the concept of a working set in computer science? Chances are good you will not need all billion keys equally. Why not store all these objects in the datastore and only store the most accessed in Memcache? The easiest implementation will be to check memcache first before checking the datastore, and Memcache's LRU expiration will just take care of the rest for you. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Mon, Feb 13, 2012 at 4:18 AM, Luke travalle...@gmail.com wrote: Is there any limit of maximum keys i can store in memcache in any particular time. Can store billions of keys as long as each key not exist hardlimit 1 mb? Is there any exacts number? -- 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] Batch puts
One caveat: if you stuff too many entities (that are in a single entity group) into a write, you'll hit an RPC limit exception. It's pretty hard to trigger this, though. You'll need to be writing ~10mb+ worth of data in a single write to trigger it. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Tue, Feb 7, 2012 at 4:53 PM, Andrew Myers am2...@gmail.com wrote: Thanks Ikai. Appreciate the clarification! All the best, Andrew. On 8 February 2012 11:42, Ikai Lan (Google) ika...@google.com wrote: Andrew, multiple writes of entities in a single batch put to the same entity group count as 1 entity group write (but many more datastore write ops - this might be confusing), so you won't run into contention issues. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Tue, Feb 7, 2012 at 2:48 PM, Andrew Myers am2...@gmail.com wrote: Thanks Jeff. Much appreciated. I'm using Objectify too ;-) On 8 February 2012 09:28, Jeff Schnitzer j...@infohazard.org wrote: From my experiments, writing large #s of entities to a single EG in a batch put is quite fast and does not cause the throughput problem. Jeff On Tue, Feb 7, 2012 at 4:43 PM, Andrew Myers am2...@gmail.com wrote: I'm sure this is a FAQ but I haven't been able to find the answer so far. I have read there's a limit of 2-3 writes per second per entry group. If you batch out multiple entities that all have the same parent is this ok? Or does it count as multiple writes? I understand it is multiple writes in terms of write quotas but am not sure if it's a problem in terms of the writes per group per second? Many thanks, Andrew -- 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. -- 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. -- 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] Batch puts
Andrew, multiple writes of entities in a single batch put to the same entity group count as 1 entity group write (but many more datastore write ops - this might be confusing), so you won't run into contention issues. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Tue, Feb 7, 2012 at 2:48 PM, Andrew Myers am2...@gmail.com wrote: Thanks Jeff. Much appreciated. I'm using Objectify too ;-) On 8 February 2012 09:28, Jeff Schnitzer j...@infohazard.org wrote: From my experiments, writing large #s of entities to a single EG in a batch put is quite fast and does not cause the throughput problem. Jeff On Tue, Feb 7, 2012 at 4:43 PM, Andrew Myers am2...@gmail.com wrote: I'm sure this is a FAQ but I haven't been able to find the answer so far. I have read there's a limit of 2-3 writes per second per entry group. If you batch out multiple entities that all have the same parent is this ok? Or does it count as multiple writes? I understand it is multiple writes in terms of write quotas but am not sure if it's a problem in terms of the writes per group per second? Many thanks, Andrew -- 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. -- 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] Google App Engine community support is moving to Stack Overflow
It looks like your question has already been answered: http://stackoverflow.com/questions/9124564/datastore-access-is-horribly-slow-on-dev-server-if-you-have-more-than-few-object The datastore stub is that: a stub. You cannot reliable depend on it for performance data. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Mon, Feb 6, 2012 at 6:23 PM, Ruslan V rusl...@gmail.com wrote: Dear Ikai, Monday, February 6, 2012, 6:17:11 PM, you wrote: Hi App Engine Developers, In the last few years, the QA website Stack Overflowhttp://www.stackoverflow.com/ has become an invaluable tool for developer communities. We’re pleased to announce that we are migrating to Stack Overflow as the official channel for answering development questions about Google App Engine.The google-appengine http://groups.google.com/group/google-appengine group will remain open for general discussions and announcements that are better suited for the groups format. So my question that I asked here week ago has a chance of being read by somebody at Google other than hard-working Nick Johnson ? That would be nice, Ikai. /Ruslan / -- 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] writing then reading entity does not fetch entity from datastore
Can you post the code? Are you reading by key? If you are using a query, you might be exposed to the eventually consistent nature of global queries in the datastore. Or is this only in the dev appserver? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Fri, Feb 3, 2012 at 3:56 PM, John Goche johngoch...@googlemail.comwrote: Hello, I am having the following problem. I am now using the low-level google datastore API rather than JDO, that way I should be in a better position to see exactly what is happening in my code. I am writing an entity to the datastore and shortly thereafter reading it from the datastore using Jetty and eclipse. Sometimes the written entity is not being read. This would be a real problem if it were to happen in production code. I am using the 2.0 RC2 API. I have tried this several times, sometimes the entity is retrieved from the datastore and sometimes it is not. I am doing a simple query on the datastore just after committing a write transaction. (If I run the code through the debugger things run slow enough that the entity has a chance of being read back on the second pass). Any help with this issue would be greatly appreciated, Regards, John Goche -- 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] lost trying to understand JDO on BigTable: please help coding example
You don't need to implement a Primary Key class. Specify the primary field as a Key and generate the key using KeyFactory: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/KeyFactory.Builder.html You can autogenerate IDs with this method: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/KeyRange.html You'll probably get more mileage persisting the object in a single entity (treating the datastore more like a key-value store) and using a translation later to turn it into classes to work with than trying to do magic trying to get these classes to persist the way you want them to. In my opinion, you're not sacrificing code readability - you're just moving work around. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Tue, Jan 24, 2012 at 1:21 PM, John Goche johngoch...@googlemail.comwrote: On Tue, Jan 24, 2012 at 10:08 PM, Matthew Jaggard matt...@jaggard.org.ukwrote: Do you have any good reason to have separate classes rather than one big one with all the stuff that's in each? Well, the reason is that I need to reuse class B. For example class A also has a separate ListB member. The main reason I ask is that loading two entities is about twice as expensive as loading one twice the size. Tough. I cannot sacrifice code readability here. If you do have a good reason, you could still persist them as a single entity, but I'm not sure how to do this in JDO. In Objectify, you would just @Embed one class into the other. Mat. Thank you for your reply. Looking forward to hearing from someone who would know how to do this in JDO. Regards, John Goche On 24 January 2012 20:05, John Goche johngoch...@googlemail.com wrote: Hello, I have the following classes in a unidirectional 1-1 relationship to each other: class A { B b; // ... more fields } class B { String k; // ... more fields } I want k to be the primary key for class B as well as for class A. How do I accomplish this task? I've been told I need to implement a PK class but don't understand why I would need one. Given I cannot find much information on the BigTable implementation I don't even know how to think about the problem (I understand RDBMS and think of each class as having its own table, although this may be wrong). Thank you for your kind help, John Goche -- 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. -- 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] OAuth and google chrome
This is strange - there should be nothing browser specific about the session. Try to isolate the behavior by removing OAuth out of the equation. What happens when you store a variable in session scope without the OAuth flow? Does it change each time? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Tue, Jan 17, 2012 at 3:14 AM, Christopher Gabin christopher.ga...@ogys.fr wrote: Hi everyone ! I'm looking for a solution to run my connection oauth with google chrome. currently my code only works on firefox and IE but not on google chrome because when I persist in my OAuthTokenSecret a session variable when google redirect back on my aplication the value of the OAuthTokenSecret in the session variable has changed. my code JAVA : step one index.jsp GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters(); oauthParameters.setOAuthConsumerKey(CONSUMER_KEY); oauthParameters.setOAuthConsumerSecret(CONSUMER_SECRET); oauthParameters.setScope( https://www.google.com/calendar/feeds/ https://spreadsheets.google.com/feeds/;); oauthParameters.setOAuthCallback( http://myappengine/connect.jsp;); GoogleOAuthHelper oauthHelper = new GoogleOAuthHelper(new OAuthHmacSha1Signer()); oauthHelper.getUnauthorizedRequestToken(oauthParameters); String unauth = oauthParameters.getOAuthTokenSecret(); request.getSession(true).setAttribute(accessTokenSecret, unauth); out.println(a href='+oauthHelper.createUserAuthorizationUrl(oauthParameters)+'log in/a); step two after redirect connect.jsp //google chrome on the value changes each time I refreshed the page String Unauthorizedtoken = (String)request.getSession(true).getAttribute(accessTokenSecret); GoogleOAuthParameters oauthParameters = new GoogleOAuthParameters(); oauthParameters.setOAuthConsumerKey(CONSUMER_KEY); oauthParameters.setOAuthConsumerSecret(CONSUMER_SECRET); oauthParameters.setOAuthTokenSecret(Unauthorizedtoken); GoogleOAuthHelper oauthHelper = new GoogleOAuthHelper(new OAuthHmacSha1Signer()); oauthHelper.getOAuthParametersFromCallback(request.getQueryString(), oauthParameters); String accessToken =oauthHelper.getAccessToken(oauthParameters); String accessTokenSecret = oauthParameters.getOAuthTokenSecret(); People, your help is really needed here. Thanks, Christopher -- 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] JPA and Entity Groups
Answers below. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Tue, Jan 17, 2012 at 9:24 AM, Paul Bartosik paulhbarto...@gmail.comwrote: I have spent a bit of time banging up against Entity Group issues. In all cases, the problem was with my JPA. I had made mistakes in my annotations that manifested as run-time transaction and Entity Group errors . The documentation on JPA relationships and Entity Groups is pretty light. Can someone confirm my 3 assumptions below? 1. In a bi-directional relationship, the unowned side of the relationship will automatically be the Parent Entity and the owned side will be the Child Entity. No, there's nothing automatic about parent and child entity relationships with regards to JPA. In JPA parlance, parent and child refer to a one-many relationship, whereas in an entity group, the ancestry of an entity is embedded entirely within its key. 2. In a uni-directional relationship, both sides of the relationship will be in different Entity Groups. Again, there's nothing automatic about this. 3. When using JPA, there is no other way to specify the Entity Group of your entities. You can specify the entity groups of an entity by constructing the key via a KeyFactory: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/KeyFactory.Builder.html A lot of this confusion may come from the fact that the entity group concept does not map well to JDO/JPA. In a relational database, a single entity can have 1:N mappings to many different kinds of child entities (a School can have many Students, Teachers and Specialities, for instance), whereas an entity group is a single, hierarchical structuring of data (a User has many Blogs which have Entries which each have Comments). Do you have any experience with the low-level API? You'll develop some familiarity with datastore concepts if you take a look at it for a bit. Thanks for any help. -Paul -- 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] JPA and Entity Groups
On second examination, I could be wrong about JPA. I'll need to test this and see. http://stackoverflow.com/questions/4909012/how-to-create-an-object-in-a-specific-entity-group-with-jpa-google-appengine-j If you get around to this before me, can you let me know if it works? Note that as of a recent release, you can do cross entity-group transactions. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Wed, Jan 18, 2012 at 11:22 AM, Ikai Lan (Google) ika...@google.comwrote: Answers below. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Tue, Jan 17, 2012 at 9:24 AM, Paul Bartosik paulhbarto...@gmail.comwrote: I have spent a bit of time banging up against Entity Group issues. In all cases, the problem was with my JPA. I had made mistakes in my annotations that manifested as run-time transaction and Entity Group errors . The documentation on JPA relationships and Entity Groups is pretty light. Can someone confirm my 3 assumptions below? 1. In a bi-directional relationship, the unowned side of the relationship will automatically be the Parent Entity and the owned side will be the Child Entity. No, there's nothing automatic about parent and child entity relationships with regards to JPA. In JPA parlance, parent and child refer to a one-many relationship, whereas in an entity group, the ancestry of an entity is embedded entirely within its key. 2. In a uni-directional relationship, both sides of the relationship will be in different Entity Groups. Again, there's nothing automatic about this. 3. When using JPA, there is no other way to specify the Entity Group of your entities. You can specify the entity groups of an entity by constructing the key via a KeyFactory: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/KeyFactory.Builder.html A lot of this confusion may come from the fact that the entity group concept does not map well to JDO/JPA. In a relational database, a single entity can have 1:N mappings to many different kinds of child entities (a School can have many Students, Teachers and Specialities, for instance), whereas an entity group is a single, hierarchical structuring of data (a User has many Blogs which have Entries which each have Comments). Do you have any experience with the low-level API? You'll develop some familiarity with datastore concepts if you take a look at it for a bit. Thanks for any help. -Paul -- 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] JPA and Entity Groups
Yep, just double checked. JPA's @OneToMany has absolutely nothing to do with entity group hierarchies. You'll have to use KeyFactory. Re-read my original email and ignore the one that begins with on second examination .. . -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Wed, Jan 18, 2012 at 11:48 AM, Ikai Lan (Google) ika...@google.comwrote: On second examination, I could be wrong about JPA. I'll need to test this and see. http://stackoverflow.com/questions/4909012/how-to-create-an-object-in-a-specific-entity-group-with-jpa-google-appengine-j If you get around to this before me, can you let me know if it works? Note that as of a recent release, you can do cross entity-group transactions. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Wed, Jan 18, 2012 at 11:22 AM, Ikai Lan (Google) ika...@google.comwrote: Answers below. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com On Tue, Jan 17, 2012 at 9:24 AM, Paul Bartosik paulhbarto...@gmail.comwrote: I have spent a bit of time banging up against Entity Group issues. In all cases, the problem was with my JPA. I had made mistakes in my annotations that manifested as run-time transaction and Entity Group errors . The documentation on JPA relationships and Entity Groups is pretty light. Can someone confirm my 3 assumptions below? 1. In a bi-directional relationship, the unowned side of the relationship will automatically be the Parent Entity and the owned side will be the Child Entity. No, there's nothing automatic about parent and child entity relationships with regards to JPA. In JPA parlance, parent and child refer to a one-many relationship, whereas in an entity group, the ancestry of an entity is embedded entirely within its key. 2. In a uni-directional relationship, both sides of the relationship will be in different Entity Groups. Again, there's nothing automatic about this. 3. When using JPA, there is no other way to specify the Entity Group of your entities. You can specify the entity groups of an entity by constructing the key via a KeyFactory: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/datastore/KeyFactory.Builder.html A lot of this confusion may come from the fact that the entity group concept does not map well to JDO/JPA. In a relational database, a single entity can have 1:N mappings to many different kinds of child entities (a School can have many Students, Teachers and Specialities, for instance), whereas an entity group is a single, hierarchical structuring of data (a User has many Blogs which have Entries which each have Comments). Do you have any experience with the low-level API? You'll develop some familiarity with datastore concepts if you take a look at it for a bit. Thanks for any help. -Paul -- 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] Abridged summary of google-appengine-java@googlegroups.com - 8 Messages in 5 Topics
Thanks! I'll file a bug for this since it's not merely a one line fix. We'll probably want to better explain cross-entity group transactions a bit and link to the documentation on that subject. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Fri, Jan 13, 2012 at 11:12 AM, Mike Lawrence m...@systemsplanet.comwrote: Ikai, Docs still say transactions wont span entity groups: http://code.google.com/appengine/docs/java/datastore/transactions.html http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes Version 1.5.5 - Oct 11, 2011 App Engine now supports Cross Group (XG) transactions with the High Replication Datastore, which allow you to perform transactions across multiple entity groups. http://code.google.com/appengine/docs/java/datastore/transactions.html Sincerely, Mike Lawrence On Thu, Jan 12, 2012 at 12:23 AM, google-appengine-java@googlegroups.com wrote: Today's Topic Summary Group: http://groups.google.com/group/google-appengine-java/topics problem with Content-type: null with css files [1 Update] Minor update to Java SDK: 1.6.1.1 [1 Update] [No Subject] [1 Update] proxying datastore request [3 Updates] how to get the correct time for germany? [2 Updates] problem with Content-type: null with css files Ikai Lan (Google) ika...@google.com Jan 11 05:22PM -0800 We have an SDK update that resolves this issue on upload (I've also posted in a separate thread about this): ...more Minor update to Java SDK: 1.6.1.1 Ikai Lan (Google) ika...@google.com Jan 11 05:21PM -0800 Hey everyone, There's a new version of the Java SDK available for download. You can get it here: http://code.google.com/p/googleappengine/downloads/detail?name=appengine-java-sdk-1.6.1.1.zip ...more [No Subject] Aviv Keren aviv...@gmail.com Jan 11 11:08PM +0200 Ok tnx! ...more proxying datastore request meiaestro jmalbre...@gmx.de Jan 11 07:18AM -0800 Hi all! I was thinking about making my RPC calls to the server (datastore commands) more secure against java script or data stream modifications on client side (when user is already signed ...more Ikai Lan (Google) ika...@google.com Jan 11 10:44AM -0800 Hi there! - a logged in user could manipulate the RPC call (he could for example exchange his userID by the ID of someone else and access the data of this user) - to avoid that I need to ...more meiaestro jmalbre...@gmx.de Jan 11 12:31PM -0800 Thanks for the reply. You're right. I did not use the Users API, as I do not want to force the users to have a google account (or any other existing account). This will be optional at a ...more how to get the correct time for germany? vega _v...@vr-web.de Jan 11 07:24AM -0800 hi everyone. since the days are getting longer, i noticed that in 2 months ill have an error with my getTime() Method, which gives me the current time in a human friendly way. /** ...more Ian Marshall ianmarshall...@gmail.com Jan 11 08:44AM -0800 The code below is how I do this. It works for summer and winter times automajically. public static final Locale G_LOCALE_UK = Locale.UK; public static final String G_S_TIME_ZONE_ID = ...more You received this message because you are subscribed to the Google Group google-appengine-java. You can post via email. To unsubscribe from this group, send an empty message. For more options, visit this group. -- 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. -- 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] Abridged summary of google-appengine-java@googlegroups.com - 8 Messages in 5 Topics
Actually, I took a look at these docs and it seems like we do talk about cross group transactions. There are a few areas where we talk about exceptions being thrown for transactions on entities in different entity groups, but that's expected behavior. You must specify that you want a cross-group transaction. We'd definitely like to improve these docs, however. Do you have any suggestions or areas where this documentation seems confusing? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Fri, Jan 13, 2012 at 12:23 PM, Ikai Lan (Google) ika...@google.comwrote: Thanks! I'll file a bug for this since it's not merely a one line fix. We'll probably want to better explain cross-entity group transactions a bit and link to the documentation on that subject. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Fri, Jan 13, 2012 at 11:12 AM, Mike Lawrence m...@systemsplanet.comwrote: Ikai, Docs still say transactions wont span entity groups: http://code.google.com/appengine/docs/java/datastore/transactions.html http://code.google.com/p/googleappengine/wiki/SdkForJavaReleaseNotes Version 1.5.5 - Oct 11, 2011 App Engine now supports Cross Group (XG) transactions with the High Replication Datastore, which allow you to perform transactions across multiple entity groups. http://code.google.com/appengine/docs/java/datastore/transactions.html Sincerely, Mike Lawrence On Thu, Jan 12, 2012 at 12:23 AM, google-appengine-java@googlegroups.com wrote: Today's Topic Summary Group: http://groups.google.com/group/google-appengine-java/topics problem with Content-type: null with css files [1 Update] Minor update to Java SDK: 1.6.1.1 [1 Update] [No Subject] [1 Update] proxying datastore request [3 Updates] how to get the correct time for germany? [2 Updates] problem with Content-type: null with css files Ikai Lan (Google) ika...@google.com Jan 11 05:22PM -0800 We have an SDK update that resolves this issue on upload (I've also posted in a separate thread about this): ...more Minor update to Java SDK: 1.6.1.1 Ikai Lan (Google) ika...@google.com Jan 11 05:21PM -0800 Hey everyone, There's a new version of the Java SDK available for download. You can get it here: http://code.google.com/p/googleappengine/downloads/detail?name=appengine-java-sdk-1.6.1.1.zip ...more [No Subject] Aviv Keren aviv...@gmail.com Jan 11 11:08PM +0200 Ok tnx! ...more proxying datastore request meiaestro jmalbre...@gmx.de Jan 11 07:18AM -0800 Hi all! I was thinking about making my RPC calls to the server (datastore commands) more secure against java script or data stream modifications on client side (when user is already signed ...more Ikai Lan (Google) ika...@google.com Jan 11 10:44AM -0800 Hi there! - a logged in user could manipulate the RPC call (he could for example exchange his userID by the ID of someone else and access the data of this user) - to avoid that I need to ...more meiaestro jmalbre...@gmx.de Jan 11 12:31PM -0800 Thanks for the reply. You're right. I did not use the Users API, as I do not want to force the users to have a google account (or any other existing account). This will be optional at a ...more how to get the correct time for germany? vega _v...@vr-web.de Jan 11 07:24AM -0800 hi everyone. since the days are getting longer, i noticed that in 2 months ill have an error with my getTime() Method, which gives me the current time in a human friendly way. /** ...more Ian Marshall ianmarshall...@gmail.com Jan 11 08:44AM -0800 The code below is how I do this. It works for summer and winter times automajically. public static final Locale G_LOCALE_UK = Locale.UK; public static final String G_S_TIME_ZONE_ID = ...more You received this message because you are subscribed to the Google Group google-appengine-java. You can post via email. To unsubscribe from this group, send an empty message. For more options, visit this group. -- 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: problem with Content-type: null with css files
Re: Carter Going a bit off topic, but in general I have always worked at places that stage deployments. That is - you have some environment only accessible by your team that reaches live data after your verification and QA more or less have determined that in the worse case scenario, your change is not destructive in a non-recoverable manner. Alternating versions is a very good way to do this; it also offers you a very easy rollback path. Being able to rollback quickly is absolutely key to working fast when things go sour. If it were me, I'd always alternate versions on deploy and manually switch versions when I have confidence the new version is good, but you've got to find that practice that works best for you. There are bugs that only rear their heads in production. The App Engine team more or less does major version releases by deploying to test clusters, internal clusters, and then, via canarying, to the production cluster. The way staging is usually done for new APIs is that new APIs are usually available in production before we announce the release (they may only be accessible to our whitelisted apps) so we can test that, in production (because production is always a jungle), the new APIs work well. We never do a rollout without first having a rollback plan, which is what you get by alternating versions when you deploy your applications. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Fri, Jan 13, 2012 at 12:40 PM, Carter Maslan car...@maslan.com wrote: Ikai - Our site was unusable for 30 minutes while we quickly downloaded the 1.6.1.1 fix and redeployed with the new SDK. We could have deployed in two phases with a different version so that we could have discovered the bug prior to being live. Is it best practice to alternate between versions with *each and every* deployment in order to catch deployment-specific bugs? Or do you think your deployment-related testing is sufficiently good that we can rely on the integrity of deployment? thanks, Carter On Wed, Jan 11, 2012 at 5:22 PM, Ikai Lan (Google) ika...@google.comwrote: We have an SDK update that resolves this issue on upload (I've also posted in a separate thread about this): http://code.google.com/p/googleappengine/downloads/detail?name=appengine-java-sdk-1.6.1.1.zip -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Jan 10, 2012 at 3:38 PM, Shawn Brown big.coffee.lo...@gmail.comwrote: We think we know what's happening. This is something that is happening at app upload time. Can you try setting a new version name for your app, then passing the --no_batch option when using appcfg.sh? appcfg.sh --no_batch update [YOUR_WAR_DIRECTORY] Seems to solve it. I can't reproduce the error as I did by just modifying the spaces in comments in the css file anymore. Shawn -- 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. -- 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] Announcing - Java Threads Trusted Tester program
Hey everyone, We're announcing a new trusted tester program for Java developers: Java threads. This is a feature we’d like to release sometime in one of the next upcoming versions. You’d be able to create Threads using a ThreadFactory (so existing libraries that create threads through other means won’t work) and run these threads within the scope of the request. The Javadocs for this feature are already online: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/ThreadManager.html Note that if you try to deploy your application and your application has not yet been whitelisted, this will cause your application to throw a FeatureNotAvailableException. If you’re interested in taking this feature for a spin, please sign up here: https://docs.google.com/a/google.com/spreadsheet/viewform?formkey=dEstOEluU0RLdHpLRDhva0J3WDJQQWc6MQ If you are selected, you’ll be added to a Google Group where you can ask questions and provide feedback on the API. Please only sign up if you are actually interested in running this; if you don’t plan on running this on App Engine servers (either in a QA/test, staging, or, if you are brave - production!) I suggest you just test it out on the local SDK or wait for general release. You’ll need to sign an electronic NDA if you haven’t signed one before (this is pretty standard of all of our trusted tester releases). I’ll begin sending out NDAs and whitelisting users next week. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.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.
Re: [appengine-java] proxying datastore request
This seems like something you might do in a servlet filter. Have you considered user specific namespaces if you completely want user data in silos? You can set the namespace in the servlet filter: http://code.google.com/appengine/docs/java/multitenancy/multitenancy.html -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Jan 11, 2012 at 12:31 PM, meiaestro jmalbre...@gmx.de wrote: Thanks for the reply. ** ** You're right. I did not use the Users API, as I do not want to force the users to have a google account (or any other existing account). This will be optional at a later point in time. ** ** The user authentication happens on server side by a self-programmed algorithm. Username and the hash values of the user's password are stored in the datastore. So far this authentication is independent from any session ID. Hope this helps a bit. -- 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/-/_MQ2fHNOUqsJ. 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] proxying datastore request
Hi there! - a logged in user could manipulate the RPC call (he could for example exchange his userID by the ID of someone else and access the data of this user) - to avoid that I need to verify that the user ID matches the session ID assigned when he logged in. Can you describe how your code works that makes this an issue? If you're using the Users API, it shouldn't be a problem, but I suspect you are doing something where a native client call is directly translated to a low level datastore API call. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Jan 11, 2012 at 7:18 AM, meiaestro jmalbre...@gmx.de wrote: Hi all! ** ** I was thinking about making my RPC calls to the server (datastore commands) more secure against java script or data stream modifications on client side (when user is already signed in and validated). ** ** Problem: - right now all datastore requests are transmitted 1:1 from client to server via RPC calls. - a logged in user could manipulate the RPC call (he could for example exchange his userID by the ID of someone else and access the data of this user) - to avoid that I need to verify that the user ID matches the session ID assigned when he logged in. - Idea: I want to proxy every request through a single method on server side and only if the user is validated against his session the specified server method is called. ** ** Not a clue how to implement: - specify an Interface with all datastore methods available. - sending a method call (which is defined by the interface) via RPC call to the server - within the proxy method on server side verify the user and execute the method call - if applicable return the return value asynchonously Is this a common approach? If not, what is a common approach? And also: How can one avoid thievery of the session ID? I would appreciate any hint. Thanks greetings. -- 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/-/V2AK2IBABxkJ. 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] Minor update to Java SDK: 1.6.1.1
Hey everyone, There's a new version of the Java SDK available for download. You can get it here: http://code.google.com/p/googleappengine/downloads/detail?name=appengine-java-sdk-1.6.1.1.zip It's a minor version bump. We had to address an issue with the Java SDK that was causing CSS files to upload with an empty mime-type, breaking CSS rendering in many browsers. The official App Engine download page will be updated shortly. We recommend that anyone developing Java apps using SDK version 1.6.1 upgrade to this version. I want to thank everyone who helps us nail this bug, namely, Jon, Brandon, Raffaele, Pieter and James. If I missed your name I apologize! Every bit of information was helpful. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: problem with Content-type: null with css files
We have an SDK update that resolves this issue on upload (I've also posted in a separate thread about this): http://code.google.com/p/googleappengine/downloads/detail?name=appengine-java-sdk-1.6.1.1.zip -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Jan 10, 2012 at 3:38 PM, Shawn Brown big.coffee.lo...@gmail.comwrote: We think we know what's happening. This is something that is happening at app upload time. Can you try setting a new version name for your app, then passing the --no_batch option when using appcfg.sh? appcfg.sh --no_batch update [YOUR_WAR_DIRECTORY] Seems to solve it. I can't reproduce the error as I did by just modifying the spaces in comments in the css file anymore. Shawn -- 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: problem with Content-type: null with css files
Are you all on the 1.6.1 SDK? Is someone experiencing this deploying with an older SDK? If someone has a deterministically reproducible case that you can share with us (project files and everything), it'd be very helpful for us to nail this bug. We aren't able to do this with our test apps (big apps, small apps). There's got to be some parameter that's different in your apps. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Jan 9, 2012 at 4:39 PM, Jon Stevens latch...@gmail.com wrote: Just did that, redeployed and it didn't fix anything. Edited the part below to have extension.css/extension (adding a period) and now the workaround to the workaround works. jon On Mon, Jan 9, 2012 at 3:16 PM, Amy Unruh amyu+gro...@google.com wrote: For those affected, it looks like a workaround is to add the following to your web.xml: mime-mapping extensioncss/extension mime-typetext/css/mime-type /mime-mapping On Mon, Jan 2, 2012 at 3:19 PM, Jon Stevens latch...@gmail.com wrote: Well, it seems it isn't just me, so I just filed a ticket: http://code.google.com/p/googleappengine/issues/detail?id=6655 Please star it. jon On Sun, Jan 1, 2012 at 8:13 PM, Carter Maslan jcmas...@gmail.com wrote: we had the same problem and it was solved by updating the css file (with a space) and pushing again (without an app version change). Appreciate any info you find on preventing this problem. It behaved as though it was a problem in GAE's caching of static files. On Dec 30, 2011, at 8:34 PM, jnamnath jnamn...@gmail.com wrote: I got it working again by updating the version number in my appengine- web.xml and pushing the new version. Still have no idea what happened here. -J On Dec 24, 4:48 pm, jon stevens latch...@gmail.com wrote: Hey there, I've got an app up on GAE-J that when I request a .css file, I get back a Content-Type: null, which is causing Chrome/Safari to not render the page correctly. Any ideas why this would happen? Here is an example of what I see in the Chrome Developer Tools - Network - Headers. I tried adding the mime-extension to the web.xml and that didn't do anything. Request URL:http://appid.appspot.com/css/gen/main.css Request Method:GET Status Code:200 OK Request Headers Accept:text/css,*/*;q=0.1 Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3 Accept-Encoding:gzip,deflate,sdch Accept-Language:en-US,en;q=0.8 Authorization:Basic sldkjf Cache-Control:max-age=0 Connection:keep-alive Host:appid.appspot.com If-None-Match:Cf2J0A Referer:http://appid.appspot.com/ User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7 Response Headers Cache-Control:public, max-age=600 Content-Length:112490 Content-Type:null Date:Sun, 25 Dec 2011 00:23:00 GMT ETag:NfQmpA Expires:Sun, 25 Dec 2011 00:33:00 GMT Server:Google Frontend -- 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. -- 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. -- 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
Re: [appengine-java] Re: problem with Content-type: null with css files
It sounds like the data about this XML snippet is still inconclusive. - Jon Stevens reports that if you change the extension to .css, it works - Matt, in addition to using Jon's fix to the fix, you needed to increment the version to fix the broken mime-type So it's possible the XML snippet might be a red herring and it's something in the deployment/version incrementing mechanism that fixes something about the file being in a bad state. Does anyone else have anything to report? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Jan 9, 2012 at 5:01 PM, Matthew Johnson ijustmakecof...@gmail.comwrote: Jon, FYI, this fix didn't work for me until I incremented the version number. Then it worked great. Cheers, Matt On Jan 9, 2012, at 4:39 PM, Jon Stevens wrote: Just did that, redeployed and it didn't fix anything. Edited the part below to have extension.css/extension (adding a period) and now the workaround to the workaround works. jon On Mon, Jan 9, 2012 at 3:16 PM, Amy Unruh amyu+gro...@google.com wrote: For those affected, it looks like a workaround is to add the following to your web.xml: mime-mapping extensioncss/extension mime-typetext/css/mime-type /mime-mapping On Mon, Jan 2, 2012 at 3:19 PM, Jon Stevens latch...@gmail.com wrote: Well, it seems it isn't just me, so I just filed a ticket: http://code.google.com/p/googleappengine/issues/detail?id=6655 Please star it. jon On Sun, Jan 1, 2012 at 8:13 PM, Carter Maslan jcmas...@gmail.com wrote: we had the same problem and it was solved by updating the css file (with a space) and pushing again (without an app version change). Appreciate any info you find on preventing this problem. It behaved as though it was a problem in GAE's caching of static files. On Dec 30, 2011, at 8:34 PM, jnamnath jnamn...@gmail.com wrote: I got it working again by updating the version number in my appengine- web.xml and pushing the new version. Still have no idea what happened here. -J On Dec 24, 4:48 pm, jon stevens latch...@gmail.com wrote: Hey there, I've got an app up on GAE-J that when I request a .css file, I get back a Content-Type: null, which is causing Chrome/Safari to not render the page correctly. Any ideas why this would happen? Here is an example of what I see in the Chrome Developer Tools - Network - Headers. I tried adding the mime-extension to the web.xml and that didn't do anything. Request URL:http://appid.appspot.com/css/gen/main.css Request Method:GET Status Code:200 OK Request Headers Accept:text/css,*/*;q=0.1 Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3 Accept-Encoding:gzip,deflate,sdch Accept-Language:en-US,en;q=0.8 Authorization:Basic sldkjf Cache-Control:max-age=0 Connection:keep-alive Host:appid.appspot.com If-None-Match:Cf2J0A Referer:http://appid.appspot.com/ User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/535.7 (KHTML, like Gecko) Chrome/16.0.912.63 Safari/535.7 Response Headers Cache-Control:public, max-age=600 Content-Length:112490 Content-Type:null Date:Sun, 25 Dec 2011 00:23:00 GMT ETag:NfQmpA Expires:Sun, 25 Dec 2011 00:33:00 GMT Server:Google Frontend -- 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. -- 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. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java
Re: [appengine-java] DataStoreFactory
No, these should be part of the App Engine SDK. Are you using the Eclipse plugin? When you create a new Web Application Project these are already included. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Jan 5, 2012 at 2:13 AM, SAS sasuresh.as...@gmail.com wrote: Hi All, Is we need any additional lib to be included in the classpath to use the DataStoreFactory and KeyFactory in GAE? I am trying to use the both but it fires an exception like this java.lang.NoClassDefFoundError: com/google/appengine/api/datastore/ KeyFactory Regards, Suresh -- 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] Full Text Search Status?
In general we don't release ETAs on APIs, so I don't have anything new to announce at this time. Hope you've noticed that we've moved to monthly releases, so if everything goes to plan, likely in one of the next few releases (though probably not the next one). -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Jan 4, 2012 at 3:29 AM, Jaroslav Záruba jaroslav.zar...@gmail.comwrote: Any news/updates? :( -- 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/-/NcoX-BGLD2MJ. 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] Anybody else unable to use com.google.api.services.plus? Suggestions please!
Is that file included in google-api-java-client-1.6.0-beta.zip? I see this: dependencies google-http-client-extensions-android2-1.6.0-beta.jar google-api-client-1.6.0-beta.jar google-http-client-extensions-android2-1.6.0-beta-sources.jar google-api-client-1.6.0-beta-sources.jar google-http-client-extensions-android3-1.6.0-beta.jar google-api-client-extensions-1.6.0-beta.jar google-http-client-extensions-android3-1.6.0-beta-sources.jar google-api-client-extensions-1.6.0-beta-sources.jar google-oauth-client-1.6.0-beta.jar google-api-client-extensions-android2-1.6.0-beta.jar google-oauth-client-1.6.0-beta-sources.jar google-api-client-extensions-android2-1.6.0-beta-sources.jar google-oauth-client-extensions-1.6.0-beta.jar google-http-client-1.6.0-beta.jar google-oauth-client-extensions-1.6.0-beta-sources.jar google-http-client-1.6.0-beta-sources.jar LICENSE google-http-client-extensions-1.6.0-beta.jar readme.html google-http-client-extensions-1.6.0-beta-sources.jar I dug out the GAE starter project for Google+ ( http://code.google.com/p/google-plus-java-starter/source/checkout) and did this: jar xvf google-api-services-plus-v1-1.2.4-beta-sources.jar created: com/ created: com/google/ created: com/google/api/ created: com/google/api/services/ created: com/google/api/services/plus/ created: com/google/api/services/plus/model/ inflated: com/google/api/services/plus/model/ActivityObjectResharers.java inflated: com/google/api/services/plus/model/Acl.java inflated: com/google/api/services/plus/model/PeopleFeed.java inflated: com/google/api/services/plus/model/Comment.java inflated: com/google/api/services/plus/model/ActivityActorImage.java inflated: com/google/api/services/plus/model/CommentInReplyTo.java inflated: com/google/api/services/plus/model/ActivityObjectPlusoners.java inflated: com/google/api/services/plus/model/PersonOrganizations.java inflated: com/google/api/services/plus/model/CommentFeed.java inflated: com/google/api/services/plus/model/CommentActor.java inflated: com/google/api/services/plus/model/ActivityObjectReplies.java inflated: com/google/api/services/plus/model/CommentObject.java inflated: com/google/api/services/plus/model/PlusAclentryResource.java inflated: com/google/api/services/plus/model/PersonName.java inflated: com/google/api/services/plus/model/ActivityObjectAttachmentsFullImage.java inflated: com/google/api/services/plus/model/PersonUrls.java inflated: com/google/api/services/plus/model/PersonEmails.java inflated: com/google/api/services/plus/model/ActivityProvider.java inflated: com/google/api/services/plus/model/ActivityObjectAttachments.java inflated: com/google/api/services/plus/model/ActivityObjectAttachmentsEmbed.java inflated: com/google/api/services/plus/model/PersonPlacesLived.java inflated: com/google/api/services/plus/model/Activity.java inflated: com/google/api/services/plus/model/ActivityObjectActor.java inflated: com/google/api/services/plus/model/ActivityObjectAttachmentsImage.java inflated: com/google/api/services/plus/model/ActivityFeed.java inflated: com/google/api/services/plus/model/ActivityObjectActorImage.java inflated: com/google/api/services/plus/model/CommentActorImage.java inflated: com/google/api/services/plus/model/ActivityActor.java inflated: com/google/api/services/plus/model/PersonImage.java inflated: com/google/api/services/plus/model/ActivityObject.java inflated: com/google/api/services/plus/model/Person.java inflated: com/google/api/services/plus/Plus.java inflated: com/google/api/services/plus/ApiClient.java It's an older version, but it looks like it's defined there. Where did you get the 1.3.0 version from? It could have been mispackaged. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Sat, Dec 31, 2011 at 1:24 AM, Jon mrjonandr...@gmail.com wrote: Anybody got any ideas why I'm getting class def not found errors when trying to use com.google.api.services.plus? I'm using the google-api-services-plus-v1-1.3.0-beta.jar ...Which is included in the google-api-java-client-1.6.0-beta.zip. All the other classes from that zip seem to build ok. My project is a non Maven project btw. Uncaught exception from servlet java.lang.NoClassDefFoundError: com/google/api/services/plus/Plus Maybe I'm missing some dependencies or maybe app engine is sandboxing it as it compiles fine? Any suggestions greatly appreciated! -- 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/-/G0-Ks_v_CuwJ. 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
Re: [appengine-java] An O/R mapper to use with cloud sql
I've gotten Cloud SQL to work with Hibernate before. Remove the Datanucleus JAR files from war/WEB-INF/lib and you should be fine. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Jan 2, 2012 at 11:06 PM, Jeff Schnitzer j...@infohazard.org wrote: On Mon, Jan 2, 2012 at 12:22 PM, Arjan arjan.br...@gmail.com wrote: I keep getting errors of the hibernate configuration that can not read 'public static' properties. It's due to some reflection limitation on the GAE. So there may be a more fitting OR mapper to use in GAE. Are you absolutely certain of the cause? It sounds odd. Perhaps consult the wisdom of this group with stacktraces? 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. -- 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: Indexes - how to deal with them?
Paul, yes. Whenever you update an entity, any property that is not explicitly marked as unindexed will generate 2 index writes. Any update to that property will cause 2 writes to delete the old indexes and 2 writes to write the new ones. The indexes are used in queries, e.g.: select from user where name='bob' If you don't have the 'name' property indexed, you won't be able to run that query. If you never run a query against a property, mark it as unindexed. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Dec 22, 2011 at 12:02 AM, Paul pgronkiew...@gmail.com wrote: Also, another question: I don't even have datastore-indexes.xml generated, should I even have any index write ops possible without it? -- 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: Datastore write operations
That's not how to make a property unindexed in JDO. Read this blog post: http://gae-java-persistence.blogspot.com/2009/11/unindexed-properties.html -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Dec 21, 2011 at 9:39 PM, Mukesh Joshi joshi.mukesh...@gmail.comwrote: package com.testapp.shared.dataobjects; import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; //SC_CODE,SC_NAME,SC_GROUP,SC_TYPE, @PersistenceCapable public class Stock { @PrimaryKey @Persistent private String code; @Persistent private String name; @Persistent private String group; @Persistent private String type; public String getGroup() { return group; } public void setUnindexedGroup(String group) { this.group = group; } public String getType() { return type; } public void setUnindexedType(String type) { this.type = type; } public String getCode() { return code; } public String getName() { return name; } public void setCode(String code) { this.code = code; } public void setName(String stockName) { this.name = stockName; } public Stock() {} public Stock(String code, String name, String group, String type){ this.code = code; this.name = name; this.group = group; this.type = type; } } -- 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/-/kk2lo4-eikQJ. 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] What happened to Will it Play
We moved it here after Google Groups deprecated groups pages: http://code.google.com/p/googleappengine/wiki/WillItPlayInJava As a warning: this page has not been updated in a LONG time. Going forward, we'll be looking at all the resources that are currently available and either consolidating them or deprecating them entirely. Is this page linked to from anywhere else? I can fix the links if it's linked to from anywhere in the docs. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Dec 21, 2011 at 8:34 AM, Las Olas le...@pnambic.com wrote: The widely published URL for Java frameworks that are compatible with GAE seems to be down: http://groups.google.com/group/google-appengine-java/web/will-it-play-in-app-engine All attempts to reach the URL with Chrome wind-up at the group's home page http://groups.google.com/group/google-appengine-java/ Did the group content get deleted? -- 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] Datastore write operations
Can you post your class definition? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Dec 21, 2011 at 4:39 PM, Mukesh Joshi joshi.mukesh...@gmail.comwrote: I am doing a simple prototype to figure out the app engine datastore using *JDO*. The protoype included a single entity/table (Stock) with following attributes: Code, Name, Group and Type - all Strings Also, there is a cron job with backend to download a zip file, unzip it, parse and upload it to Stock table. It is working fine but I see that there 8 datastore write ops for each record inserted. I understand that for each field there is an associated index created which gets updated for each record insert/update. I'd like to know how I can avoid creating unnecessary indexes when using JDO, I just need index on two of the attributes. I tried using setUnindexedProperty but that didn't appear to help. Thanks -- 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/-/hQG2s6iFgX4J. 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: JMS Queue service in Google App Engine
So you are looking to save some data into session memory? I would advise using the session support for this: http://stackoverflow.com/questions/1134800/google-appengine-session-example -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Sun, Dec 18, 2011 at 9:57 PM, suresh ashok suresh@gmail.com wrote: Hi, I am just looking to send the Message String in the JMS Queue and retrieve it later when required, ie., Getting the user input and access that input and save it in JMS queue and later shows this string to user again.is it possible to do like this? the above given link seems to be used to assigning task not a queue. Regards, Suresh On Dec 17, 2:34 am, Ikai Lan (Google) ika...@google.com wrote: Read this documentation about Task Queues and the Pull Queues: http://code.google.com/appengine/docs/java/taskqueue/overview.html I think this is the functionality you are looking for. It's not JMS, though. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Dec 15, 2011 at 8:57 PM, suresh ashok suresh@gmail.com wrote: Hi all, What i'm looking for is a queue service that i can run locally on google app engine might be using JMS queue for the same. Any inputs and suggestions are welcome and i am trying to do for the past couple of days but still cant able to fine the solution yet. Regards, Suresh -- 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.- Hide quoted text - - Show quoted text - -- 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] need advise on processing of imported large number of mails
Save the data to the datastore and pass the key of the datastore object. Then, in the task queue task, retrieve the data from the datastore. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Sat, Dec 17, 2011 at 8:40 AM, Vik vik@gmail.com wrote: can we pass java objects like a java.util.List as params in queue.add( withUrl(/worker).param(key, key)); ? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Sat, Dec 17, 2011 at 3:47 PM, Simon Knott knott.si...@gmail.comwrote: Move the processing into the task queue - individual tasks can process for 10 minutes. Cheers, Simon -- 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/-/HrudgleNMJUJ. 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. -- 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] Use of com.google.appengine.repackaged
I usually just use the Apache Commons one: http://commons.apache.org/codec/apidocs/org/apache/commons/codec/binary/Base64.html -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Dec 19, 2011 at 11:03 AM, Carter jcmas...@gmail.com wrote: After upgrading to 1.6.1, we get this message: Use of com.google.appengine.repackaged may result in your app breaking without warning for our use of: import com.google.appengine.repackaged.com.google.common.util.Base64; Is there a preferred Base64 encoder we can use instead? -- 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] LocalDatastoreServiceTestConfig does not keep modificatins
This is to be expected. You're tearing down the helper between test runs. All tests are green because you are not using assertions. Example: assertNotNull(someInstance); There's something very bad happening in these tests: you don't ever want state to leak across tests. This is a very bad practice. You want each test to exist in its own universe. When state leaks across tests, you become dependent on the order of the tests being run (not guaranteed). You also can't parallelize tests (this is important to some people). Your tests also become incredible brittle because if a single test fails in the middle of the chain, you have a ton of tests that will fail after it that you might never be able to fix because they were all dependent on a state change in the failing test - you want that test and only that test to fail. Here's how you should write the test instead: @Test public void testFetch() { final EntityController ec = new EntityController(); // There's no point caching this. Again, don't want to leak state. final Flight flight = new Flight(origin, destination); // There also isn't really a point in making any of these final, but that's a minor nitpick ec.create(flight); Flight returnedFlight = ec.find(Flight.class, 1); assertNotNull(Should be able to find a Flight that was just created, returnedFlight); } -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Fri, Dec 16, 2011 at 6:11 AM, Alexander Orlov alexander.or...@loxal.netwrote: All tests are green but *retrive()* resp. *zFind()* are *empty* resp * null.* public class InitDatastore extends Common { private final LocalServiceTestHelper helper = new LocalServiceTestHelper(new LocalDatastoreServiceTestConfig()); final EntityController ec = new EntityController(); @Before public void setUp() { helper.setUp(); } @After public void tearDown() { helper.tearDown(); } @Test public void create() { final Flight flight = new Flight(origin, destination); ec.create(flight); } @Test public void retrieve() { System.err.println(isEmpty = + ec.retrieve(Flight.class).isEmpty()); } @Test public void zFind() { System.out.println(flight###1 = + ec.find(Flight.class, 1)); } } -- 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/-/78mOAWSJ86EJ. 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] JMS Queue service in Google App Engine
Read this documentation about Task Queues and the Pull Queues: http://code.google.com/appengine/docs/java/taskqueue/overview.html I think this is the functionality you are looking for. It's not JMS, though. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Dec 15, 2011 at 8:57 PM, suresh ashok suresh@gmail.com wrote: Hi all, What i'm looking for is a queue service that i can run locally on google app engine might be using JMS queue for the same. Any inputs and suggestions are welcome and i am trying to do for the past couple of days but still cant able to fine the solution yet. Regards, Suresh -- 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] Master/Slave - High Replication migration experience
Okay. If there's anything I can do to make things better for you in this case please let me know. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Dec 14, 2011 at 7:08 PM, Kyle Baley k...@baley.org wrote: Alas, bad timing, I suppose. We pulled the trigger because we found we could make up tons of excuses to put it off if we set our minds to it. Wait to see if anyone else had issues, wait until new pricing takes effect, wait until the migration tool is available, etc, etc. So we sucked it up. I guess the advice I have is to make sure you have a backup plan in place just in case. -- 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/-/j8pW5j0fKSIJ. 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] May datastore reuse a deleted entity key?
If you are using auto generated keys or keys generated using the allocateIds() method, no, this should never happen. In fact, any key created using allocateId will never appear again even if you never save an entity with that key. One thing to note is that that IDs are not monotonically incrementing (ID 1, 2, 3, 4, 5 ... etc) - this is very hard to do in a scalable fashion. IDs more or less are increasing, but we cannot guarantee that the ID of an entity will be greater than an entity saved before it (you might concurrently allocate two batches of IDs, for instance). -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Dec 15, 2011 at 8:59 AM, Juna juan.meng...@bcntouch.com wrote: Hi, I have been looking info about this and I haven't find an exact answer (or I haven't known read the answer). I am imagining a paranoic scenario where I delete an entity of certain kind and at some point in the future I create another entity of the same kind which receives the same key value. In this case my app relies in the datastore to generate the keys, I am not generating my own keys. I supose that an asteroid will hit my house before this issue happens, but I am curious. -- 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/-/FFDSjzwq3-IJ. 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] Text Search API
Phil, I believe you should also be able to develop against the local SDK. It just won't work when deployed. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Dec 15, 2011 at 3:49 PM, Amy Unruh amyu+gro...@google.com wrote: Phil, It's still in the Trusted Tester phase. You can sign up here if you are interested: https://docs.google.com/a/google.com/spreadsheet/viewform?formkey=dEdWcnRJUXZ2VGR3YmVsT1Q1WVB2Smc6MQndplr=1 The trial is being run in multiple stages, and the invitation pool will be expanded in later stages of testing. On Thu, Dec 15, 2011 at 10:42 AM, Phil Craven philipcrave...@gmail.comwrote: It seems as if documentation for the Full Text Search API has appeared online as well as being included in the 1.6 java api. Is this supported in appengine now? URL of the api: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/search/IndexManager.html -- 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/-/PDoCmT-J_jMJ. 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. -- 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] Design principles for a class with a lot of parameters
There are 2 main differences: 1. Indexes. You probably want to mark most of the items as unindexed to lower the cost of a datastore write and datastore storage. 2. Possible serialization/deserialization time. Items are stored as protocol buffers (http://code.google.com/p/protobuf/). I don't know off the top of my head how this performs with large arrays versus individual properties. My suspicion is that there shouldn't be a real world difference, but I haven't verified this with my own testing, and I don't know how many properties you have in mind. The documentation talks about query speed vs. get by key because that's where the bulk of the time will be spent (cross machine RPCs). -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Dec 14, 2011 at 8:19 AM, Miguel doctormig...@gmail.com wrote: I am designing the model of an app that needs a lot of values to be stored and I am thinking about which is the best in terms of retrieving-time: - define an array with all of them inside - define a property for each of them My fear is that in the second case I will have a lot of column in the datastore: which are the differences in terms of retrieving an Entity with a lot of property or an entity with just 1 array? I read a lot of documentation but it talks only about the difference between the get and the query and not about the properties' number. Thank you Michele -- 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] How to make someone an admin for your app.
... I was about to write an answer, too. Thanks for the laugh! -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Dec 14, 2011 at 7:18 AM, Drew Spencer slugmand...@gmail.com wrote: Hi coders, I've just managed to deploy my first app to my Google Apps domain ( utilitiessavings.co.uk), and it seems to be working ok, BUT I now realise that being an admin for the google apps domain does not make me an admin for the application itself, and I can't work out how to add myself as an admin for the app. I am using my regular gmail account to deploy the app, and I went to Administration Permissions in the control panel and added my google apps email as a developer, then clicked the link in the email and boom! Admin away! Yeah, I don't need help, but this is one of those situations where I solved it as I was writing the post, so I thought it might help someone in the future if I just posted it anyway. Happy coding! Drew -- 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/-/bieSsZiU4Q8J. 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] App is very slow on production - how to fix it?
Could this be startup time? A loading request? This is when we have to start up the JVM and the Wicket framework. Do subsequent requests return much faster? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Dec 14, 2011 at 1:17 AM, Paul pgronkiew...@gmail.com wrote: Hi, My app is very fast and smooth when run locally, no lag at all. But when I deploy it on server it gets really slow. Response times are few times of the acceptable ones. Pages load in 20-80ms locally, but average in production is about 500-800ms. Acceptable time would be around 100ms for most operations. I have appstats on my app, but I cannot really get what is causing the problem. I check details in appstats and I see 3 things: datastore_v3.Get11ms (8ms api) RPC Total 11ms (8ms api) Grand Total 525ms (8ms cpu+api) There are details only about datastore_v3.Get, which is not a thing causing all that lag. How can I determine what is the cause of all that? I am using 1.5.3 SDK, HR datastore and Apache Wicket framework. -- 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] Indexes - how to deal with them?
Every property creates 2 indexes, so if you don't want to incur write operations, mark properties you will never query on (select from people where age=26 - you need both an ASC and DESC index on the age property) as unindexed. Here's an old but good talk about how these indexes are used and why they are needed: http://www.youtube.com/watch?v=tx5gdoNpcZM -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Dec 14, 2011 at 1:09 AM, Paul pgronkiew...@gmail.com wrote: Hi, I am looking through my app and there are many index writes, way too many. How to handle them properly? I guess I should set unindexed to most properties, can I do it for whole entity and then just set false on fields that I want indexed? Will that work? @Extension(vendorName datanucleus, key gae. unindexed, valuetrue) Is there any way to see what is indexed and where do my index write operations come from? My other problem is that even when I am not doing any db operations, I have few hundred index write ops per day. The only thing that is happening is pingdom testing my login page, without doing anything. How can I track what is doing that operations? -- 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: Master/Slave - High Replication migration experience
I believe namespaces should work. What doesn't work is blobstore entities (datastore blobs DO work). -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Dec 13, 2011 at 11:17 PM, andrew andrew.macken...@bcntouch.comwrote: Ikai, Any additional information available on the features of this new tool? Specifically, support for copying all/multiple namespaces from one datastore to another... Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.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] Master/Slave - High Replication migration experience
Kyle, Oy, I wish you had posted earlier. We've shipped a new migration tool as part of 1.6.1 that doesn't use datastore admin to do the copies. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Sun, Dec 11, 2011 at 6:38 PM, Kyle Baley k...@baley.org wrote: I went through a Master/Slave - High Replication migration over the weekend and it didn't go well. Hoping I can get some info on if we did anything wrong but mostly wanted to relay the experience for others. I did a couple of test migrations the week before, running the migration tool through to the end and reverting at the last create alias step. I also ran through the process in its entirety with our staging and build environments. It always ran smoothly (Note the use of the ellipsis above. It's what legitimate journalists refer to as foreshadowing. Or possibly foreboding.) First hurdle: When it came time to start the migration, the Datastore Admin tool didn't appear in the console for the destination. Normally, I'm used to it not showing up in Chrome but this time, it was blank in Firefox too. IE showed a generic HTTP error page. I needed it so I could clear out the data from the destination leftover from previous migration tests. I had already deployed the same version of the app that was currently in the Master/Slave version. Eventually, I looked at the source of the admin console and found the URL for the iframe it used and launched it directly in Firefox. It was confused which of the three active Google accounts I regular use should be logged in so I chose the correct one and carried on, deleting the existing data. Next, I launched the migration tool. It hung on the Copy phase (the second step). I let it go for about half an hour. (During my trial runs, it took less than ten minutes.) So I reverted and went back to the Datastore Admin tool (which now appeared properly in the Admin Console, at least in Firefox) and deleted all the data. I went to the Datastore Viewer to verify and could not access it. I received a 500 Server Error with a link to report the error on this group. (Incidentally, I am not a big fanhttp://codebetter.com/kylebaley/2011/04/25/google-ui-faux-pas-or-how-to-show-love-hillbilly-styleof the new Google Groups, especially for AppEngine which has three to choose from) I relied on the Datastore Admin tool to tell me that the data had been cleared and tried the migration again. Once again, it hung on the copy phase, this time for almost an hour before I reverted. While it was doing its thing, I checked the Datastore Admin tool on the destination and almost from the start, it showed entity totals that were *almost* as high as the source. But they didn't move during the entire time I waited. I suspect it was reporting on old data. After reverting, I gave up on the migration tool. Before starting the whole process, I had done the following: - Switched the source app to a maintenance version that redirects all traffic to a maintenance page (and if a user is already running the app, the page is refreshed to show the maintenance page). - Backed up the data So I restored the backup to the HR app and all seems to be running smoothly on it. The source doesn't have an alias to the new app but I didn't intend to use one anyway. That's my migration experience. The app is up and running now and we just barely did it under our budget thanks to all the database reads and writes. An app that normally costs us about ten cents a day cost us almost $4.00 last night. In summary, the major parts I'm not happy with: - Datastore Admin page not showing up in any browser - The migration tool apparently not working. (There's a chance it was actually doing something and I reverted prematurely but my earlier test runs suggest something went wrong.) - 500 Server Error on the destination's Datastore Viewer. Furthermore, it seems unprofessional to direct support to a Google Group for a paid application. The 40x cost increase for the migration I'm okay with. Four dollars still isn't a lot of money. That said, I'm not sure what I would have done had we reached our budget. I'm not the billing administrator for either app. -- 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/-/VsiiGEA26eAJ. 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
Re: [appengine-java] How to export a RDBMS
How much of App Engine's documentation have you read? http://code.google.com/appengine/ This is going to be non trivial, and the answer is not something I can write out in an email unless there's an understanding of the persistence model GAE uses. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Dec 6, 2011 at 4:06 AM, deltaaruna deltaar...@gmail.com wrote: Hi all, We are converting a web based app to a cloud app. Our database is Microsoft Sql Server 2005. How can I convert this database to be used in GAE? Please someone help me. 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. -- 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: Users changing data
Yeah, that's weird. When you look at http://localhost:8080/_ah/admin, which user ID is it? Also ... are those the IDs the dev server is giving you? The dev_server should be giving pretty simple IDs, if I'm not mistaken. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Fri, Nov 4, 2011 at 7:35 AM, Mat Jaggard matt...@jaggard.org.uk wrote: I can now confirm that I do not see this behaviour in production - only on the dev server. On Nov 4, 9:01 am, Matthew Jaggard matt...@jaggard.org.uk wrote: Sure, thanks Ikai, I should have done this first time around. When putting the entity (code from around my app stuck together) log(Storing user {0}, us.getCurrentUser().getUserId()); DatastoreServiceConfig DATASTORE_CONFIG = DatastoreServiceConfig.Builder.withDeadline(5); DATASTORE_CONFIG.readPolicy(new ReadPolicy(ReadPolicy.Consistency.EVENTUAL)); DatastoreService ds = DatastoreServiceFactory.getDatastoreService(DATASTORE_CONFIG) Entity e = new Entity(UserForTesting); e.setProperty(User, us.getCurrentUser()); ds.put(e); In a separate request (and I am sure that I'm looking at the same object!) (Dull Java code removed) PreparedQuery pq = ds.prepare(new Query(UserForTesting)); ... pq.asIterable() ... e.getProperties() ... log(u.getUserId()); log('/'); log(u.getNickname()); ... On 4 November 2011 01:05, Ikai Lan (Google) ika...@google.com wrote: Can you post code? It's not clear to me what you're doing. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Nov 3, 2011 at 4:39 PM, Mat Jaggard matt...@jaggard.org.uk wrote: I have an entity that stores a user, however the user gets changed. When I put the entity in to the local datastore, the ID is like this 18530476822013922411 but when I get it out the ID is like this -1403876245. I haven't tried on production. Any ideas what's causing the issue? Have I done something wrong? Thanks, Mat. -- 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. -- 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: Number of writes per second limitation
If all 4000 entites are in a single entity group, in theory you can do this because it counts as a single transactional write. There's a maximum RPC size of 11mb (implementation detail) so if you trip this, you're in some trouble - the RPC size include not only the size of the entity but also the size of all the indexes. The problem is that this is a bad design. App Engine charges for datastore ops, so you're already using 4000 datastore write ops per request + multiples for indexes. Instead, try to figure out how to can write the data in as few entities as possible. I suspect you're still thinking relationally. You didn't answer my question about what problem you're trying to solve. What are you building? Why would 4000 writes be needed? Why can't all the data fit into a single entity? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Fri, Nov 4, 2011 at 8:31 AM, J.Ganesan j.gane...@datastoregwt.comwrote: Thank you, Gerald. I will look for alternative implementations if I can not call put() many times within a transaction. I am waiting for Ikai's comments. J.Ganesan On Nov 4, 11:02 am, Gerald Tan woefulwab...@gmail.com wrote: If there is no need to reference the objects from outside the group, you would probably find it a lot more efficient to store the while array serialized as a byte array. -- 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] Number of writes per second limitation
I'm confused ... an Object[] array? This is bad for a ton of reasons. Calling put() 4000 times in a single request is just bad for a lot of reasons. I'm not sure I understand what problem you are trying to solve. Can you explain so we can help you put together a better solution? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Nov 3, 2011 at 8:13 AM, J.Ganesan j.gane...@datastoregwt.comwrote: I have about 4000 objects to be persisted in a single request. These 4000 objects involve 5 entities, all in single entity group. Please clarify whether the following code violates the number of writes per second ( which is 5, I think) rule. public void save( Object[] savableObjectArray) // savableObjectArray.length = 4000 { // begin transaction for( Object object : savableObjectArray ) { // depending on the type of object, pick an existing entity. // There are only 5 entities. // set properties in the existing entity. datastoreService_.put( oneOfTheFiveExistingEntity ) ; // called 4000 times per request. // for a reason not apparent in the code, batch put is not possible. } // end transaction } No indexing is to be done. I am not worried about performance. My concern is only about persistence. J.Ganesan -- 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] Users changing data
Can you post code? It's not clear to me what you're doing. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Nov 3, 2011 at 4:39 PM, Mat Jaggard matt...@jaggard.org.uk wrote: I have an entity that stores a user, however the user gets changed. When I put the entity in to the local datastore, the ID is like this 18530476822013922411 but when I get it out the ID is like this -1403876245. I haven't tried on production. Any ideas what's causing the issue? Have I done something wrong? Thanks, Mat. -- 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] matching url patterns in web.xml when using mail handlers and srping
It doesn't look like the servlet specification defines this: http://download.oracle.com/otndocs/jcp/servlet-3.0-public-oth-JSpec/ The servlet specification defines: /* and *.somesuffix. You might just have to write a servlet that routes as necessary based on the URL path. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Sat, Oct 29, 2011 at 3:31 AM, Eliot Stock 1...@eliotstock.com wrote: Hi there, Until recently I had a happily working app with one mail handler and Spring MVC configured in web.xml as follows: servlet-mapping servlet-nameimageMailHandler/servlet-name url-pattern/_ah/mail/*/url-pattern /servlet-mapping servlet-mapping servlet-namespringMvc/servlet-name url-pattern//url-pattern /servlet-mapping Today I added a second mail handler, so I had to make the url pattern for both mail handlers more specific: servlet-mapping servlet-nameyahooGroupsMailHandler/servlet-name url-pattern/_ah/mail/yg*/url-pattern /servlet-mapping servlet-mapping servlet-nameimageMailHandler/servlet-name url-pattern/_ah/mail/image*/url-pattern /servlet-mapping servlet-mapping servlet-namespringMvc/servlet-name url-pattern//url-pattern /servlet-mapping Now what's happening is that the mail requests are being given to the Spring MVC servlet. The mail handler URL pattern is not matching. The mail is being sent to: image@[APP ID].appspotmail.com yg@[APP ID].appspotmail.com Both addresses bounce and I get the following in my logs, which indicates the request is going through to Spring: 1. 2011-10-29 11:18:42.541 /_ah/mail/image@[APP ID].appspotmail.com 404 6153ms 311cpu_ms 195api_cpu_ms 3kb 0.1.0.20 - - [29/Oct/2011:03:18:42 -0700] POST /_ah/mail/image@[APP ID].appspotmail.com HTTP/1.1 404 3288 - - [APP ID].appspot.com ms=6154 cpu_ms=312 api_cpu_ms=195 cpm_usd=0.009177 instance=00c61b117c977250f313d9fed8db23d827d0 2. I2011-10-29 11:18:36.398 [s~dev-gb-recyc-org/5.354303509951850075].stdout: 10:18:36,398 WARN [org.springframework.web.servlet.PageNotFound] - No mapping found for HTTP request with URI [/_ah/mail/image@[APP ID].appspotmail.com] in DispatcherServlet with name 'springMvc' I've also tried making the mappings a bit more specific, but to no avail: servlet-mapping servlet-nameyahooGroupsMailHandler/servlet-name url-pattern/_ah/mail/yg@*/url-pattern /servlet-mapping servlet-mapping servlet-nameimageMailHandler/servlet-name url-pattern/_ah/mail/image@*/url-pattern /servlet-mapping servlet-mapping servlet-namespringMvc/servlet-name url-pattern//url-pattern /servlet-mapping I'm loath to put the whole email address in there including app ID, because I have multiple environments and it'd be a manual step at deployment to edit the app ID every time I deploy. Any help greatly appreciated. Cheers, Eliot. -- 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/-/9VZubzwmd9QJ. 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] Correct way to keep track of the number of Entities of one kind.
So I hate to make this more complicated but ... Yes, this is roughly the right approach. However, if you are creating entities at a rate higher than 1/s, this pattern will break. You'll need to use the sharded counter property: http://code.google.com/appengine/articles/sharding_counters.html The example is in Python, but hopefully you understand what's happening there. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Fri, Oct 14, 2011 at 9:44 AM, Phil philippbsee...@googlemail.com wrote: Hello, I use Java with JDO for the datastore access on google app engine. I need the number of rows for the calculation of the number of pages in a cell table. This number can be very high so I don't want to calculate it when i query the data and implemented a class which holds the number of Entities: import javax.jdo.annotations.PersistenceCapable; import javax.jdo.annotations.Persistent; import javax.jdo.annotations.PrimaryKey; @PersistenceCapable public class Aggregate { @PrimaryKey @Persistent private String name; @Persistent private int count; public Aggregate(String name) { this.name = name; this.count = 0; } public String getName() { return this.name; } public void setName(String name) { this.name = name; } public int getCount() { return this.count; } public void setCount(int count) { this.count = count; } } To update the count value I do something like that. @PersistenceCapable public class SomeEntity { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY) private Key key; .. public SomeEntity() { // increment the count PersistenceManager pm = PMF.get().getPersistenceManager(); try { Aggregate aggregate = (Aggregate) pm.getObjectById(Aggregate.class, SomeEntity.class.getSimpleName()); int count = aggregate.getCount(); count++; aggregate.setCount(count); pm.makePersistent(aggregate); } catch (JDOObjectNotFoundException jonfe) { // the first someEntity ever Aggregate aggregate = new Aggregate(Player.class.getSimpleName()); aggregate.setCount(1); pm.makePersistent(aggregate); } finally { pm.close(); } } . So far, this works, but I really don't like the way how it's done. Are there any implemented tools in google app engine to handle something like that? Or is this the correct way to keep track of the number of entities? -- 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/-/lK9o1_SMdygJ. 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] Does JDO auto remove indexes that now have unindexed properties?
Mark, Interesting that it does this. One thing you might try: 1. Run a mapper job 2. Read all the entities using the low level API 3. Explicitly set properties using the low level API's setProperty() and setUnindexedProperty() methods 4. Save entities back to the datastore This definitely should remove the indexes. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Oct 13, 2011 at 6:23 AM, markabrucey markabru...@gmail.com wrote: Basically I have gone through my datastore persist-able classes and have annotated properties that I never need to query on like this: @Extension(vendorName=datanucleus, key=gae.unindexed, value=true) private Long random; I needed to test whether or not JDO removed the index when I changed the POJO by annotating a property as unindexed. So I created a simple test to read in an existing entity, updated it (with properties holding the exact same values as before), then finally queried on it using the now unindexed property random. I woud have expected for it to not appear again once updated (because the property is now unindexed), which would have suggested that JDO was handling the index deletion correctly, but it appears not. Are there any settings that I may need to change in order to allow JDO to delete the now un-needed single property indexes? Is there a way I can remove / vacuum these single property indexes (that I don't need anymore) myself? Thanks, Mark -- 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/-/whSOGsiNGrUJ. 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] Help with sharded counters and loading results.
I solved this problem by spinning off a task queue with an ETA of 1-5 minutes that would flush the total count into a different entity. The tradeoff is that count totals are delayed and it's not even close to real time, but the advantage is that it gets the best of both worlds: This code lab is slightly out of date (also may not work ... ), but there's some sample code using a deferred handler to do what I just explained. Check it out: http://io-bootcamp-datastore.appspot.com/ -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Oct 6, 2011 at 7:44 AM, Liang Ding dl88...@gmail.com wrote: stores the sum count as a property of a product entity, updates it with a cron job maybe a teade off solution On Thursday, October 6, 2011, dnkoutso dnkou...@gmail.com wrote: We have 5 shard counters per product. Both are importantI would say retrieving perhaps more important. Each shard counter is in a transaction when it is about to be incremented. I use this for representing most viewed products --- most popular products. Thanks! -- 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/-/bzXVD2r_84kJ. 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. -- My Blog: http://88250.b3log.org Open Source, Open Mind, Open Sight, Open Future! -- 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] GeoPt vs. two floats
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 getLongitude(). -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Oct 4, 2011 at 10:49 AM, Jeff Schnitzer j...@infohazard.org wrote: 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 in the future we will be able to do spatial indexing with GeoPt. I'll be honest though, the primary reason I use GeoPt is because it's more convenient to pass around one object than two floats. Jeff On Tue, Oct 4, 2011 at 7:30 AM, Eliot Stock 1...@eliotstock.com wrote: 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 on the UI (lat and long) but one GeoPt field on the entity. Cheers, Eliot -- 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/-/c8oRwyDMIIgJ. 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. -- 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] Prerelease SDK 1.5.5 available for download!
Hey everyone, Prerelease SDK 1.5.5 is now available for download! You can get it here: Python: http://code.google.com/p/googleappengine/downloads/detail?name=google_appengine_prerelease-1.5.5.zip Java: http://code.google.com/p/googleappengine/downloads/detail?name=appengine-java-sdk-prerelease-1.5.5.zip We provide prerelease SDKs as previews for things to come. New features should not work in production yet, and documentation is typically still a work in progress. Release notes are below as well as in the prerelease packages: Python === - Python 2.7 is now available as an experimental runtime for all applications using the High Replication Datastore. To upload your app to the Python 2.7 runtime, change the runtime argument in your app.yaml to python27. - We have released an experimental utility, available in the Admin Console, to assist in migrating your application to the High Replication datastore. This utility allows you to copy the bulk of your data in the background, while the source application is still serving. You then need a brief read-only period to migrate your application data while you copy the data that has changed from the time the original copy started. - We have increased the number of files you can upload with your application from 3,000 to 10,000. - We have increased the size limit for a single file uploaded to App Engine from 10MB to 32MB. - We have increased the Frontend request deadline from 30 seconds to 60 seconds. - We have increased the URLFetch maximum deadline from 10 seconds to 60 seconds. - We have increased the URLFetch Post payload from 1MB to 5MB. - App Engine now supports Cross Group (XG) transactions with the High Replication Datastore, which allow you to perform transactions across multiple entity groups. - We have released an experimental API that can write to Google Storage for Developers directly from App Engine. - We have added a graph to the admin console that displays the number of instances for which you will be billed. - In the XMPP API, get_presence() is deprecated in favor of using the inbound presence handlers documented in http://code.google.com/appengine/docs/python/xmpp/overview.html#Handling_User_Presence . - The Task Queue API 'target' parameter now accepts a new value, taskqueue.DEFAULT_APP_VERSION, which will send the task to the default frontend version, rather than the version or backend where the 'add' method is being called. - In the URLFetch API, make_fetch_call() now returns an RPC object. - Fixed an issue in the Admin Console where the Run Now button did not work for tasks with a '-' in the name. - Fixed an issue where the SDK did not decode Base64 encoded blobs. - Fixed an issue to provide a better error message when using the Mail API to send email to an invalid user address. - Fixed an issue in the SDK where a skip_files entry caused an ImportError when the library was located elsewhere in the PYTHONPATH. - Fixed an issue in the SDK index viewer where the arrows indicating whether a query was ascending or descending were not properly rendered. - Fixed an issue where httplib did not support the deadline argument for URLFetch calls. http://code.google.com/p/googleappengine/issues/detail?id=2216 - Fixed an issue where you could not schedule a cron job to run every 100 minutes. http://code.google.com/p/googleappengine/issues/detail?id=5243 - Fixed an issue in the SDK where failed tasks retried immediately instead of waiting for 30 seconds. http://code.google.com/p/googleappengine/issues/detail?id=5587 - Fixed an issue making it possible to modify request headers using the deferred library. http://code.google.com/p/googleappengine/issues/detail?id=5861 Java = - We have released an experimental utility, available in the Admin Console, to assist in migrating your application to the High Replication datastore. This utility allows you to copy the bulk of your data in the background, while the source application is still serving. You then need to take a short downtime to migrate your application data while you copy the data that has changed from the time the original copy started. - We have increased the number of files you can upload with your application to from 3,000 to 10,000. - We have increased the size limit for a single file uploaded to App Engine from 10MB to 32MB. - We have increased the Frontend request deadline from 30 seconds to 60 seconds. - We have increased the URLFetch maximum deadline from 10 seconds to 60 seconds. - We have increased the URLFetch Post payload from 1MB to 5MB. - App Engine now supports Cross Group (XG) transactions with the High Replication Datastore, which allow you to perform transactions across multiple entity groups. - We have released an experimental API that can write to Google Storage for Developers directly from App Engine. - We have added a graph to the admin console that
Re: [appengine-java] Re: Howto return all values stored in memcache?
The publicly available Memcache doesn't have this functionality either, and it's really not as simple as you might think. What if there's a lot of data? Do you need a cursor? Should you lock all Memcache shards? And so forth. If you're interested in a project that does something similar, you should check out Redis. It's a key/value store with data structures that exists all in memory, where values are asynchronously flushed to disk. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Oct 3, 2011 at 2:29 PM, mscwd01 mscw...@gmail.com wrote: That's a shame, it's a real disadvantage not having that simple functionality. Thanks for your example, although I found it a little difficult to understand it completely. Are you suggesting having an entry in the cache with a key string allKeys which maps to a List of keys belonging to all the other entities in the cache? Would this allow me to iterate through the keys, saving the entity to the datastore and then removing the entry from the cache? Also what is the putIfUntouched statement for? Thanks again On Oct 3, 9:51 pm, Bruno Fuster brunofus...@gmail.com wrote: I don't think so. You could create a key with all entities ids that need to be updated. Something like: public void saveEntity() { cache.put(key, entity); queue.add(withUrl(/entitiesToUpdate?id=+entity.getId())); } and then public void entitiesToUpdate(Long id) { IdentifiableValue i = cache.getIdentifiable(allKeys); ListLong keys = i.getValue(); keys.add(id); boolean put = cache.putIfUntouched(allKeys, i, keys); if (!put) { //response 409 for conflict due to concurrency so appengine will retry this later } } On Mon, Oct 3, 2011 at 5:38 PM, mscwd01 mscw...@gmail.com wrote: Hey How would one return all the values stored within the memcache? I have tried using entrySet() and values() methods on the cache but both result in an java.lang.UnsupportedOperationException. Ideally, I need to return all the entities stored within the cache and bulk save them to the datastore - is this possible? Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Bruno Fuster -- 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] Gmail IMAP Access
Nope, because we don't have socket support yet. Socket support isn't on our roadmap, but it's something we've been thinking about to support these use cases: http://code.google.com/appengine/docs/roadmap.html -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Oct 3, 2011 at 3:32 AM, Jared Rodriguez jrodrig...@skywaysoftware.com wrote: Is it really not possible to access GMail via IMAP on GAE? Is there a feature request in somewhere for this that we can vote up? -- 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] datastore - order by query in a many to many model
Hi Gabriel, Ah, you're hitting the first bump in learning to think non-relationally. Rather than creating 3 models, what about creating a List of categories for each Podcast and just storing that on the podcast? The tradeoff is that it won't be easy to rename a podcast category, but that shouldn't be something that happens frequently. When designing for the datastore, aim for designing for a key-value store when possible, and don't think in terms of joins. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Oct 3, 2011 at 2:30 AM, gabriel munteanu jajali...@gmail.comwrote: Hi, I have the following model [pseudo code]: db.Model(podcast, { name: StringProperty, description: TextProperty, homePageURL: StringProperty, addedDate: DateProperty }); db.Model(category, { name: StringProperty, podcastsNumber: IntegerProperty }); db.Model(podcastcategory, { category: ReferenceProperty({referenceClass: Category}), podcast: ReferenceProperty({referenceClass: Podcast}) }); I am trying to query the datastore to show in the web page the latest 5 podcasts in a certain category. Problem is my approach seems very costly: I do a query against podcastcategory and get al lentities there filtered by my category property. and i get all podcasts. then I would have to sort them in my app by addedDate. I feel that something is wrong, maybe my query or my data modelling. I would appreciate any advice or links to set me to the right direction. cheers, Gabi -- 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: Howto return all values stored in memcache?
Yeah, Redis won't work in App Engine. I was just citing it as an example of something that was designed closer to the use you were looking for (as opposed to memcache). -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Oct 3, 2011 at 3:18 PM, Bruno Fuster brunofus...@gmail.com wrote: You wont be able to run Redis on AppEngine. You can use AppScale though. http://appscale.cs.ucsb.edu/datastores.html#redis The only thing is that Redis only replicates master-slave by now, so you got a single point of failure. On Mon, Oct 3, 2011 at 7:11 PM, mscwd01 mscw...@gmail.com wrote: Thanks Ikai, if I were to get Redis working on App Engine would it work across multiple instances if it's all held in memory? Regardless, people must be using the memcache to cache data before persisting updates to the datastore, how is everyone else achieving this? On Oct 3, 10:56 pm, Ikai Lan (Google) ika...@google.com wrote: The publicly available Memcache doesn't have this functionality either, and it's really not as simple as you might think. What if there's a lot of data? Do you need a cursor? Should you lock all Memcache shards? And so forth. If you're interested in a project that does something similar, you should check out Redis. It's a key/value store with data structures that exists all in memory, where values are asynchronously flushed to disk. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Oct 3, 2011 at 2:29 PM, mscwd01 mscw...@gmail.com wrote: That's a shame, it's a real disadvantage not having that simple functionality. Thanks for your example, although I found it a little difficult to understand it completely. Are you suggesting having an entry in the cache with a key string allKeys which maps to a List of keys belonging to all the other entities in the cache? Would this allow me to iterate through the keys, saving the entity to the datastore and then removing the entry from the cache? Also what is the putIfUntouched statement for? Thanks again On Oct 3, 9:51 pm, Bruno Fuster brunofus...@gmail.com wrote: I don't think so. You could create a key with all entities ids that need to be updated. Something like: public void saveEntity() { cache.put(key, entity); queue.add(withUrl(/entitiesToUpdate?id=+entity.getId())); } and then public void entitiesToUpdate(Long id) { IdentifiableValue i = cache.getIdentifiable(allKeys); ListLong keys = i.getValue(); keys.add(id); boolean put = cache.putIfUntouched(allKeys, i, keys); if (!put) { //response 409 for conflict due to concurrency so appengine will retry this later } } On Mon, Oct 3, 2011 at 5:38 PM, mscwd01 mscw...@gmail.com wrote: Hey How would one return all the values stored within the memcache? I have tried using entrySet() and values() methods on the cache but both result in an java.lang.UnsupportedOperationException. Ideally, I need to return all the entities stored within the cache and bulk save them to the datastore - is this possible? Thanks -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- Bruno Fuster -- 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. -- Bruno Fuster -- 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] Memcache objects remain only 5 minutes
You're right: there are no guarantees around how long an item will stay in Memcache. Memcache has two Least-Recently-Used lists of items, where if you don't read or write an item, it may be pushed off the list for space. There's a per app LRU and a global LRU for apps sharing the same memcache instance. 5 minutes seems extremely short (typical eviction time of an untouched item is on the order of magnitude of a few hours), however, and I'm fairly certain with your memory size it's probably not the local LRU. I don't have any suggestions for the moment, but perhaps you can track the hit rate with getStatistics and try to determine some patterns? http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/memcache/MemcacheService.html#getStatistics() -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Sep 27, 2011 at 2:11 AM, Peter Nees peter.n...@unclestock.comwrote: My objects remain in the memcache only for about 5 minutes. I know that there is no guarantee about the caching period, but this seems abnormal. I've read that lack of memory could be the reason. The size of one object is about 50K, and I typically cache less as 50 objects. I have no flush statements in my code don't remove objects. What can be the reason for this, or how can I look for the reason? -- 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/-/cn5YIIUS5AYJ. 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: Disable 'refresh' in a page
I agree with everything everyone has said about disabling refresh. Don't interrupt basic browser functions. It's a bad idea. What problem are you trying to solve? There is probably a more intuitive way of doing this. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Sep 27, 2011 at 5:02 AM, Drew Spencer slugmand...@gmail.com wrote: I agree with Mat. Just tell your users not to refresh or give them no reason to. They aren't stupid. It's like when a site prevents me right-clicking - I hate that site and never go back. -- 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/-/uuaynCZW5rUJ. 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] Google App Engine Internet Crawler
You'll probably have to use chaining task queues or the backends API: http://code.google.com/appengine/docs/java/backends/overview.html This has the tendency to be pretty expensive, though, and you don't really get any benefits from using App Engine, so you might be better off crawling the internet with idle computer/bandwidth at your university. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Sep 27, 2011 at 4:55 AM, Rodel Ocampo rrocamp...@gmail.com wrote: Good day Developers! Any idea on how to crawl the internet in Google App Engine - Java? My thesis requires me to search a book in the internet just using the book's ISBN. Thank you very much. :D -- 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] All prices being shown as $0.00 under Billing History
Do you have an affected app ID we can look at? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Sep 26, 2011 at 9:22 PM, Arun Ramanujapuram arun_rama...@yahoo.comwrote: Hi, All prices are being shown as $0.00 under the Billing History page on the admin. console as of 9:20pm PST. If this is not the correct forum to raise, please let me know. Thanks, Arun -- 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] Transactions on entities in different entity groups ?
You currently can't, but we plan on rolling out a feature that will do this in the next few releases. It's currently in trusted tester at the moment. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Sep 26, 2011 at 10:59 PM, Santosh kumar kopp@gmail.com wrote: Hi, I want to know how to create/update the entities which are in different entity groups ? for ex: I want to update the *apple* and *carrot* entities in a transaction but those parents are not same. (Here i am in such a situation) Thanks in advance :) *S*antosh *K*umar *K* http://www.accountingguru.in/** -- 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] Will user service be available for DeferredTask?
No, deferred tasks run in a task queue. You will probably want to persist the user in the datastore and pass the userId as a parameter to the deferred task to be fetched. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Fri, Sep 23, 2011 at 11:38 PM, -sowdri- sow...@gmail.com wrote: Hi, In case, the deferred task need to identify the user who ran the task, will the state of userservice be available for the task being executed? thanks, -- 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/-/-cAeWEhnW9gJ. 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] The source code from a beginner
Hi Lucho, Some of the code is available here: http://code.google.com/p/googleappengine/source/browse/#svn%2Ftrunk%2Fjava Note that this can sometimes run a revision or so behind. I'm not sure this'll help you if you're having problems, though - we posted this for the benefit of framework and library developers. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Sep 21, 2011 at 2:26 PM, David Chandler drfibona...@google.comwrote: Hi Lucho, you looked in all the right places, but GAE is not open source. Sorry to disappoint, /dmc On Wed, Sep 21, 2011 at 5:09 PM, Lucho luche...@gmail.com wrote: Hello there, I just started with a new project on the GAE for java. This is my fist GAE project and there are some little things that I cannot find. Like where is the source code. Debugging without the source code is a real pain! The distro 1.5.1 contains only src/orm/datanucleus-appengine-1.0.9.final-src.zip src/orm/datanucleus-core-1.1.5-src.zip src/orm/datanucleus-enhancer-1.1.4-src.zip src/orm/datanucleus-jpa-1.1.5-src.zip src/orm/jdo2-api-2.3-SNAPSHOT-src.zip There are not source packages in the central maven repo nor was I able to find any on the internet search. I lack source for: appengine-local-runtime-shared.jar repackaged-appengine-ant-1.7.1.jar repackaged-appengine-jasper-el-6.0.29.jar repackaged-appengine-jasper-6.0.29.jar repackaged-appengine-tomcat-juli-6.0.29.jar repackaged-appengine-ant-launcher-1.7.1.jar appengine-jsr107cache-1.5.1.jar appengine-api-1.0-sdk-1.5.1.jar appengine-api-labs-1.5.1.jar geronimo-jpa_3.0_spec-1.1.1.jar appgine-tools-api.jar appengine-api-labs-1.5.1.jar appengine-jsr107cache-1.5.1.jar appengine-testing-1.5.1.jar gaedatastorecontainers-2.0.0.jar Can anybody please help? Thanks Lucho -- 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. -- David Chandler Developer Programs Engineer, GWT+GAE w: http://code.google.com/ b: http://turbomanage.wordpress.com/ b: http://googlewebtoolkit.blogspot.com/ t: @googledevtools -- 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] App Engine SDK 1.5.4 released!
Hey everyone, Just wanted to let you all know that App Engine SDK 1.5.4 has been released. The official announcement is here: http://googleappengine.blogspot.com/2011/09/app-engine-154-sdk-release.html The full release notes are below: Java 1.5.4 = - You can now specify the maximum size for a blob in BlobstoreService.createUploadUrl(). - Zigzag merge join queries will now continue scanning up to the 30 second Datastore query deadline. For zigzag queries that used to generate DatastoreNeedIndexException, many will now succeed. A small percentage will now instead timeout. - The SDK datastore viewer in the dev console now displays the number of Write Ops for each entity. Write Ops are the total number of entity and index writes that were required to create the entity. - The Prospective Search API is available in Java for all applications. This API is still experimental, so applications will be limited to a maximum of 1000 subscriptions. - We made a classloading improvement that we expect to help loading request latencies for projects with large numbers of jars. - Added support for the set_default_version flag to Appcfg. - The Java Remote API now recognizes the HTTP_X_APPENGINE_INBOUND_APPID. This means that the Datastore Admin copy functionality will work when using Java's Remote API with the destination app. - Fixed an issue that incorrectly allowed creation of tasks with whitespace in the url. - Fixed the error message for transaction not found to be more descriptive. - Fixed an issue with the dev appserver's local Blobstore implementation trying to modify an immutable collection. http://code.google.com/p/googleappengine/issues/detail?id=3081 - Fixed an SDK issue where CONFIG, FINE, FINER, FINEST logging messages were not displayed. http://code.google.com/p/googleappengine/issues/detail?id=4591 -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai -- 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] New Billing Model,
Without knowing what you are doing, as a general suggestion I say use rough approximations and charge per op instead of trying to match App Engine's pricing cent for cent. A few months ago, someone in this group posted a very good analogy about how everyone pays the same amount of money at a buffet even if they eat different amounts of food; that's the level you should be thinking about pricing. Doing your suggested pricing is also difficult because when you turn on multithreading (concurrent requests, you WANT to do this), it will be a bit harder to map exact amount of milliseconds used per request because you could potentially be serving many requests in parallel. We did something similar with cpu_ms pricing before, where some operations always cost a certain amount of ms no matter what, even though in real life there was a lot more variance due to network congestion, CPU congestion, etc. One more pricing analogy: lawyers have systems that track how long they spend on the phone. They don't do this to pass the cost of the long distance phone call to their clients (cents). They do this so they can (at least in my experience) round up to the nearest 5 minute increment and bill at $400-$1000 dollars an hour. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Fri, Sep 9, 2011 at 2:57 AM, Tom Taylor ttay...@encircle.co.uk wrote: Hi, We are currently developing a multi-user Java application on App Engine where we want to pass on the cost of the computing resources used to each individual user (plus our markup of course). The computing resources are composed of tasks placed on the task queue. The url of each item on the task queue can easily be related back to a specific user. Inside the tasks we make a few data store calls and some memcache calls and some urlfetch calls (as we're using the gdata apis to talk to Google apps apis). My question is: we were planning to use the *QuotaService *api to get the cpu cycles used and charge accordingly - but under the new billing model, as I understand it, this is no longer appropriate. Can anyone suggest a way forward with this? I have set up the appstats module - and it seems all the info I need is available to do the calculations under the new billing model - but can I get to this information programatically. I've had a good search through the api docs and didn't find anything. As a side note we are using multi tenancy for the datastore - with the userid as the namespace. So I think I have the datastore resources used per user under control. regards Tom -- 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/-/sBsX1KLs7P0J. 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] Compiled jsp file: FileNotFoundException
I just posted to downtime notify, though we've already completed rolling back the change we made to high replication apps. We're working on rolling back the change for master/slave apps. I'll be updating both downtime-notify and this bug here: http://code.google.com/p/googleappengine/issues/detail?id=5812 -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Sep 7, 2011 at 4:41 PM, Anders blabl...@gmail.com wrote: This is clearly a GAE bug, because the file is there in other instances/requests. From the log: java.lang.RuntimeException: java.io.FileNotFoundException: /base/data/home/apps/s~tweetvote2/1.353082386135622494/_ah/java_compiled/WEB-INF/classes/org/apache/jsp/about_jsp.class -- 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/-/Jq4ELxgA7eoJ. 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] Some Java classes are not uploaded during deploy
Your issue is likely related to this: http://code.google.com/p/googleappengine/issues/detail?id=5812 I just posted to the downtime-notify list about this. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Sep 7, 2011 at 2:13 PM, Paul Schmidt paulrschm...@gmail.com wrote: I just added three new classes to my application; they're very similar to existing ones. The functionality works in the dev environment, but not live: at least one class is missing from the deploy. It (like many others) is loaded via Class.forName and newInstance. I see the .class files in the staging directory, but once deployed the app throws a java.io.FileNotFoundException when it tries to load it. Are there limits to the number of classes in a package or something? -- 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/-/5uMSJk4Si7AJ. 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] OAuth and Appengine java
Looks like you're trying to implement a consumer. You don't need to enable federated login. Can you provide your server side provider code? You can't use OAuth to auth against something expecting UserService. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Aug 29, 2011 at 1:39 AM, Erlend Hamnaberg ngar...@gmail.com wrote: Hi. I am attempting to use OAuth in my appengine app. I can't even get to the app, as google accounts hijacks my session before that happens. Do I need to enable federated login? App id: sykle-til-jobben I've attached the code I've used to connect to appengine http://code.google.com/appengine/docs/java/oauth/ is really sparse with documentation. Looking at: http://code.google.com/appengine/docs/python/oauth/overview.html http://code.google.com/apis/accounts/docs/OAuth_ref.html Does not help me either. What have I done wrong? -- Erlend -- 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] Exporting and Importing data from Java application
Yes, this can be done all in Java. You may have to write your own handlers, though. What have you written so far? The bulkloader is completely written in Python, -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Aug 25, 2011 at 9:38 AM, Kesava Neeli nke...@gmail.com wrote: Hi, I am exploring how to import/export data from appengine datastore. In Pyhton section of docs, there is good explanation on how to do this http://code.google.com/appengine/docs/python/tools/uploadingdata.html. I also found nice blog at http://ikaisays.com/2010/06/10/using-the-bulkloader-with-java-app-engine/. I hope this article would be included somewhere on google appengine docs. My question may be lame. I am wondering whether all the import/export functionality could be done entirely within a java application. The docs say that you can set up the RemoteApi part in java servlets and after that it's invoking 3-4 python commands to build the config file, download upload data with various parameters. Can we do all those steps with some google java API? Thanks Neeli -- 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/-/PpPYugrjnwAJ. 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] Twitter real time notification using backends
No, it won't work in backends. It'll work up to the request deadline and stop. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 24, 2011 at 12:56 PM, Efi Merdler-Kravitz efi.merd...@gmail.com wrote: Hello everybody, Did any of you tried to register to the Streaming API that twitter uses using backends ? The streaming API requires to keep the connection open, I was wondering if any of you tried to implement it on GAE ? Thanks. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.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: Upload attachments Google Sites
There's AppEngineFile in Java. It's not 100% File compatible, but it's something you can use. It writes to the blobstore. Alternative, you can use a datastore blob property. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Aug 23, 2011 at 10:28 PM, Thomas Wiradikusuma wiradikus...@gmail.com wrote: Hi Ikai, Just wondering, is it possible if instances are given limited space temp dir where programs can write to it? It will greatly help 3rd party frameworks which use file system for temp data. On Aug 24, 5:53 am, Ikai Lan (Google) ika...@google.com wrote: Hah, I should have looked at the code. Yeah, my example writes the thing to disk. Thanks for the catch, Stephen! -- 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] ClassNotFoundException for java.util.HashMap$Entry
It's hard to say based on this information alone. I hate to say it, but if you've got a good version and a bad version, it's time to binary search on what has changed between versions to zone in on the problem. If you use git git bisect is a lifesaver. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 24, 2011 at 2:33 AM, Jeremy Brown jeremy.r.br...@gmail.comwrote: Does anyone know why I would be seeing this error message: java.lang.ClassNotFoundException: java.util.HashMap$Entry I had some code that was working fine. I'm upgrading a couple of jar libraries to newer versions and testing on a version other than the default. I've gotten quite a few weird errors and this is one of them. Any ideas? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Problem deploying to GAE
There was a period of deploy issues; hopefully this has been resolved. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Fri, Aug 19, 2011 at 8:41 PM, Sarah sarah.aslani...@gmail.com wrote: Unable to update: java.io.IOException: Error posting to URL: https://appengine.google.com/api/appversion/clonefiles?app_id=salam-worldversion=1; 500 Internal Server Error htmlhead meta http-equiv=content-type content=text/html;charset=utf-8 title500 Server Error/title /head body text=#00 bgcolor=#ff h1Error: Server Error/h1 h2The server encountered an error and could not complete your request.pIf the problem persists, please A HREF= http://code.google.com/appengine/community.html;report/A your problem and mention this error message and the query that caused it./h2 h2/h2 /body/html at com.google.appengine.tools.admin.AbstractServerConnection.send1(AbstractServerConnection.java:277) at com.google.appengine.tools.admin.AbstractServerConnection.send(AbstractServerConnection.java:238) at com.google.appengine.tools.admin.AbstractServerConnection.post(AbstractServerConnection.java:213) at com.google.appengine.tools.admin.AppVersionUpload.send(AppVersionUpload.java:605) at com.google.appengine.tools.admin.AppVersionUpload.cloneFiles(AppVersionUpload.java:468) at com.google.appengine.tools.admin.AppVersionUpload.beginTransaction(AppVersionUpload.java:428) at com.google.appengine.tools.admin.AppVersionUpload.doUpload(AppVersionUpload.java:121) at com.google.appengine.tools.admin.AppAdminImpl.doUpdate(AppAdminImpl.java:300) at com.google.appengine.tools.admin.AppAdminImpl.update(AppAdminImpl.java:52) at com.google.appengine.tools.admin.AppCfg$UpdateAction.execute(AppCfg.java:617) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:160) at com.google.appengine.tools.admin.AppCfg.init(AppCfg.java:67) at com.google.appengine.tools.admin.AppCfg.main(AppCfg.java:63) com.google.appengine.tools.admin.AdminException: Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/clonefiles?app_id=salam-worldversion=1; 500 Internal Server Error -- 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/-/niAQHTWW1TUJ. 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] Upload attachments Google Sites
I just took a look at the GData library, and it shouldn't be that hard to convert an InputStream to a File instance. Here's something I found searching: http://www.roseindia.net/java/java-conversion/InputstreamToFile.shtml -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Sun, Aug 21, 2011 at 8:01 AM, Nicolò Brognoli nicolo.brogn...@gmail.comwrote: Hello, I want to upload an InputStream object onto Google sites. The sites API manage only File objects, but I can't use the OuputStream to generate the File from the InputStream. How can I upload the InputStream object to Google Sites? Should I do that with a POST request? And if so, how can I create such request? Thanks. -- 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/-/xu1WcvMjvXMJ. 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] How to use HTTPURLCONNECTION to post data to a form containing captcha+multiple choice values
Is your site showing the captcha? If so, I know I'm not answering the question, but have you considered this? http://www.google.com/recaptcha -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Sat, Aug 20, 2011 at 3:06 AM, Arvind Chari arvind.ik.ch...@gmail.comwrote: Hello, I have a situation where I want to submit a form using POST to http://domain.com/submit.php. This form has a couple of text boxes, and then a captcha field. The captcha text box is named CAPTCHA and the actual captcha image linked to it, is generated by http://domain.com/captcha.php. My question is, how do I treat the captcha? Should I treat is as just an ordinary text box and fill random value for it, before submission? If this is not the case, then how to treat this specific scenario, how to display/obtain value of captcha and then submit this value along with other (fixed) values? Regards, Arvind. -- 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] Mail API calls - Quota
We've reduced the free quota on new applications. If you enable billing, you should still have the same billing quota. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Sun, Aug 21, 2011 at 7:41 AM, realdope rte...@gmail.com wrote: Hi, According to http://code.google.com/appengine/docs/quotas.html#Billable_Quotas_and_Fixed_Quotas, Resource Free Default Quota Billing Enabled Default Quota Daily Limit Maximum Rate Daily Limit Maximum Rate Mail API Calls 7,000 calls 32 calls/minute 1,700,000 calls 4,900 calls/minute Recipients Emailed (billablehttp://code.google.com/appengine/docs/quotas.html#Billable_Quotas_and_Fixed_Quotas ) 100 recipients 8 recipients/minute 100 recipients free; 7,400,000 recipients maximum 5,100 recipients/minuteAccording to Admin console quota details, it says Mail API Calls [image: 0%] 0% 0 of 100 Okay Recipients Emailed [image: 0%] 0% 0 of 2,000 Okay I must be terribly confused but why the discrepancy in free daily limit in Mail API calls and Recipients Emailed? -- 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/-/2-H9e7zt3PEJ. 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: sitemap.xml and urllist.txt
Vik, it probably has something to with your web.xml file. On a related note, are you at all interested in GAE consulting? It sounds like you're carrying a lot of weight on your own shoulders, and there are plenty of experts in this forum that wouldn't mind taking on an additional contract! -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Aug 22, 2011 at 6:52 AM, Vik vik@gmail.com wrote: any help on this please? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org On Wed, Aug 10, 2011 at 12:31 PM, Vik vik@gmail.com wrote: Hie I have sitemap.xml and urllist.txt files in my web root folder of my gwt+gae app. However, on deploying these files are still not accessible. I can see other files at the same place like sitemap.html is accessible. Any advise why this is happening? Thankx and Regards Vik Founder http://www.sakshum.org http://blog.sakshum.org -- 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] Cloud computing projects for engineering students
Feel free to repurpose anything you want from here: http://io-bootcamp-datastore.appspot.com/ It's a tutorial session I did about the datastore from Google IO. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Sun, Aug 21, 2011 at 5:29 AM, Ravindra Dastikop ravindra.dasti...@gmail.com wrote: Hello All For last 3 years, I have been specializing in cloud computing and have introduced an elective for V semester engineering http://cloudcomputingcourse.blogspot.com I have already asked my students to do GAE based projects and here is an example http://sdmcetcon1.appspot.com Kindly suggest me some more projects that I can assign my students to explore GAE further http://dastikop.blogspot.com regards Ravindra dastikop -- 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] Android authentication broken?
Can you describe the errors you're seeing? Exceptions that are thrown, etc? It doesn't work isn't a particularly helpful error report. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Mon, Aug 22, 2011 at 7:00 AM, Erlend Hamnaberg ngar...@gmail.com wrote: Hi all. I'm using Google appengine from Android, and have been using this [1] method for auth. Is there something that has changed recently? It used to work a couple of weeks ago. Coming back from vacation it failed to work. Any pointers? 1: http://blog.notdot.net/2010/05/Authenticating-against-App-Engine-from-an-Android-app Best regards Erlend -- 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/-/fS-61cGsFCsJ. 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] ApplicationError: 10: Unknown when writing to blobstore using FileService
We're surfacing a bad error here. Basically, you get this error message if you hold the file open too long; we recommend around 30 seconds. I'll file a bug internally to get a better error message. Can you break this up into multiple writes? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 5:32 PM, Mike Prince m...@mikeprince.com wrote: I'm trying to write a Java serialized HashMapString,Long to the blobstore using the FileService and getting an Unknown error 10. I'm guessing there's 10,000+ items in the map. Below is the code I'm using, followed by the stack trace. Can someone clue me in on what I'm doing wrong? And yes, it works fine in the development environment ;) Thanks, Mike public class Filer { private static final FileService fileService = FileServiceFactory.getFileService(); private static final BlobstoreService blobstoreService = BlobstoreServiceFactory.getBlobstoreService(); public static String save( Object value ) throws IOException { if( value == null ) return null; AppEngineFile file = fileService.createNewBlobFile( text/plain ); return save( file, value ); } private static String save( AppEngineFile file, Object value ) throws IOException { // Open a channel and write out object FileWriteChannel writeChannel = fileService.openWriteChannel( file, true ); ObjectOutputStream out = new ObjectOutputStream( Channels.newOutputStream( writeChannel ) ); out.writeObject( value ); // Close it up out.close(); writeChannel.closeFinally(); return file.getFullPath(); } And here's the exception... org.apache.jsp.tasks.create_002duser_002dsegment_jsp _jspService: Failed to create user segment java.io.IOException at com.google.appengine.api.files.FileServiceImpl.translateException(FileServiceImpl.java: 501) at com.google.appengine.api.files.FileServiceImpl.makeSyncCall(FileServiceImpl.java: 479) at com.google.appengine.api.files.FileServiceImpl.append(FileServiceImpl.java: 426) at com.google.appengine.api.files.FileServiceImpl.append(FileServiceImpl.java: 171) at com.google.appengine.api.files.FileWriteChannelImpl.write(FileWriteChannelImpl.java: 49) at com.google.appengine.api.files.FileWriteChannelImpl.write(FileWriteChannelImpl.java: 41) at java.nio.channels.Channels.write(Channels.java:80) at java.nio.channels.Channels.access$000(Channels.java:64) at java.nio.channels.Channels$1.write(Channels.java:151) at java.io.ObjectOutputStream $BlockDataOutputStream.drain(ObjectOutputStream.java:1855) at java.io.ObjectOutputStream $BlockDataOutputStream.setBlockDataMode(ObjectOutputStream.java:1764) at java.io.ObjectOutputStream.writeFatalException(ObjectOutputStream.java: 1558) at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java: 346) at com.yumyumlabs.foundation.appengine.util.Filer.save(Filer.java:42) at com.yumyumlabs.foundation.appengine.util.Filer.save(Filer.java:33) at com.yumyumlabs.server.recipe.model.UserSegment.saveUsers(UserSegment.java: 51) at org.apache.jsp.tasks.create_002duser_002dsegment_jsp._jspService(create_002duser_002dsegment_jsp.java: 104) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) 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.handle(ServletHandler.java: 390) 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 org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:327) at org.mortbay.jetty.servlet.Dispatcher.forward(Dispatcher.java:126) at org.tuckey.web.filters.urlrewrite.NormalRewrittenUrl.doRewrite(NormalRewrittenUrl.java: 213) at org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java: 171) at org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java: 145) at org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java: 92) at org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java: 381) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at
Re: [appengine-java] DatastoretimeExceptions
Yes, master/slave is known to have issues. We're encouraging developers to look at migrating to high replication datastore. Have you taken a look at this yet? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Thu, Aug 18, 2011 at 1:40 AM, Aswath Satrasala aswath.satras...@gmail.com wrote: It is master/slave. Now, I am not seeing those exceptions. Thanks -Aswath On Wed, Aug 17, 2011 at 1:00 AM, Ikai Lan (Google) ika...@google.comwrote: Aswath, is your application on master/slave or high replication? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Aug 9, 2011 at 3:59 AM, Aswath Satrasala aswath.satras...@gmail.com wrote: Hello All, Recently for the past 2-3 days, I see the logs with DatastoreTimeoutExceptions. Anyone experiencing the same... -Aswath www.AccountingGuru.in. -- 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. -- 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: java.net.SocketTimeoutException: Timeout while fetching
Oh, so you have two applications? What is application B doing that might timeout? Does it timeout 100% of the time or just sometimes? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 9:32 AM, Luke travalle...@gmail.com wrote: yes. after enable threadsafetrue/threadsafe , still getting java.net.SocketTimeoutException: Timeout while fetching my applicationA is crawler with HTMLUnit, in appengine, it is uses to crawl applicationB inside appengine as well. I only need to enable always on for applicationA only right? -- 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] Connecting App with domain, can't add domain to google apps
It's likely because you are using a banned word in the domain name. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Aug 16, 2011 at 2:19 PM, f1ames dr.odpowi...@gmail.com wrote: I created some app and I just wanted to add a domain. I registered the domain earlier, so I use use existing domain to register my domain in google apps, I put the name(shittter.net) and then I got en error like Google Apps does not currently support this domain name. Is this because of domain name or something else? -- 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/-/sdm8C5txctsJ. 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] Deploy Issues in 1.5.3
Can you provide any more reproduction details? I'm going to try this in a bit but anything you can give us will help. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 12:25 PM, Robert Lancer robert.lan...@gmail.comwrote: Getting Found interface com.google.appengine.tools.admin.Application, but class was expected - as soon as deploy button was hit, tried it on two of my projects. -- 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/-/DewU65_2W38J. 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] Deploy Issues in 1.5.3
Alright, I've easily reproduced this: 1. Update SDK 2. Try to deploy via eclipse plugin Seems to error out right away. Let me see if there's an Eclipse plugin update. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 1:46 PM, Ikai Lan (Google) ika...@google.comwrote: Can you provide any more reproduction details? I'm going to try this in a bit but anything you can give us will help. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 12:25 PM, Robert Lancer robert.lan...@gmail.comwrote: Getting Found interface com.google.appengine.tools.admin.Application, but class was expected - as soon as deploy button was hit, tried it on two of my projects. -- 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/-/DewU65_2W38J. 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] Does the SDK in WEB-INF/lib Get Deployed?
Yes, these get deployed, and yes they are needed online because they provide the interfaces to the APIs. These are essentially thin clients. Fortunately, because we calculate a hash on each of the files, they're not reuploaded each time because we already have an identical file online. I'm not sure how much impact this would have on startup time if you're doing classpath scanning to remove some of these classes. You're welcome to try and let us know what the results are. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 11:03 AM, objectuser kevin.k.le...@gmail.comwrote: I'm wondering if JARs like appengine-api-1.0-sdk-1.5.2.jar in WEB-INF/lib get uploaded when I deploy from Eclipse. Are these items needed in the Google environment? I'm asking because I'm wondering if removing (if viable) would reduce my startup time, which seems to come in anywhere from 10s to 20s. Thanks. -- 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/-/2TbrcIZmZ4oJ. 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] Deploy Issues in 1.5.3
Follow this issue: http://code.google.com/p/googleappengine/issues/detail?id=5612 -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 1:59 PM, Ikai Lan (Google) ika...@google.comwrote: Alright, I've easily reproduced this: 1. Update SDK 2. Try to deploy via eclipse plugin Seems to error out right away. Let me see if there's an Eclipse plugin update. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 1:46 PM, Ikai Lan (Google) ika...@google.comwrote: Can you provide any more reproduction details? I'm going to try this in a bit but anything you can give us will help. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 12:25 PM, Robert Lancer robert.lan...@gmail.comwrote: Getting Found interface com.google.appengine.tools.admin.Application, but class was expected - as soon as deploy button was hit, tried it on two of my projects. -- 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/-/DewU65_2W38J. 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] Deploy Issues in 1.5.3
Looks like this is just the Eclipse plugin. Command line deploys with appcfg.cmd are going through just fine. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 2:25 PM, Ikai Lan (Google) ika...@google.comwrote: Follow this issue: http://code.google.com/p/googleappengine/issues/detail?id=5612 -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 1:59 PM, Ikai Lan (Google) ika...@google.comwrote: Alright, I've easily reproduced this: 1. Update SDK 2. Try to deploy via eclipse plugin Seems to error out right away. Let me see if there's an Eclipse plugin update. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 1:46 PM, Ikai Lan (Google) ika...@google.comwrote: Can you provide any more reproduction details? I'm going to try this in a bit but anything you can give us will help. -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Wed, Aug 17, 2011 at 12:25 PM, Robert Lancer robert.lan...@gmail.com wrote: Getting Found interface com.google.appengine.tools.admin.Application, but class was expected - as soon as deploy button was hit, tried it on two of my projects. -- 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/-/DewU65_2W38J. 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] DatastoretimeExceptions
Aswath, is your application on master/slave or high replication? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Aug 9, 2011 at 3:59 AM, Aswath Satrasala aswath.satras...@gmail.com wrote: Hello All, Recently for the past 2-3 days, I see the logs with DatastoreTimeoutExceptions. Anyone experiencing the same... -Aswath www.AccountingGuru.in. -- 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] Delay for later request
It probably has to do with loading requests. Does your app take a long time to load? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Tue, Aug 9, 2011 at 9:49 AM, WillSpecht willspe...@gmail.com wrote: I am have created a search bar similar to facebook that shows you names and pictures as you type into a search bar. e.g. typing jo would bring up a drop down of John Smith and Michael Jordan. This works really well on the development server, and even works really well in production, when the user searches immediately after loading the page. If I wait on the page, say 30 seconds to a min. Then try and use the search bar, it takes a very long time to show the results. Sometimes as long as 15 seconds, when it used to be immediate. Can someone explain what is going on here. Is there any way I can keep this request hot? My search bar implements the JQuery autocomplete bar and uses Jquery ajax gets to fetch the results. -- 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] Creating an image into the blobstore by programmation
What is the error you see? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Sun, Aug 14, 2011 at 11:26 AM, Christian Goudreau goudreau.christ...@gmail.com wrote: Hi everyone, I tried unsuccessfully to create image pragmatically on the server side and add it to the blobstore. By following the instructions in the tutorial about writing file, I end up with an error on that line: AppEngineFile file =fileService .createNewBlobFile(text/plain); I want to use the html5 new multiple upload input to add a lot of images into my blobstore. If anyone has encountered something similar, please help me. thanks, -- Christian Goudreau www.arcbees.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. -- 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] Errors occurred during the build. Errors running builder 'Profiling Builder' on project ### Unknown local variable 7
Do you have 7 somewhere? Maybe you copied and pasted a line number? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Sun, Aug 14, 2011 at 1:32 PM, scorpion pushkar...@gmail.com wrote: Hi Every1, Has any1 seen the above message. I get this while trying to compile. Here is the list of software - WinXP SP3 Eclipse SDK Version: 3.6.2 Google Eclipse plugin for appengine - 1.5.2 GWT - 2.3.0 jdk -1.6.024 This message doesnt seem to appear in any log files etc. Obviously the project name above is replaced with ###. How do I work around. I think this started happening when I upgraded the versions of appengine/GWT. tia -- 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] How to increase mapper quota?
What's your task queue quota set at? -- Ikai Lan Developer Programs Engineer, Google App Engine plus.ikailan.com | twitter.com/ikai On Fri, Aug 12, 2011 at 1:01 PM, Rob Patel robpate...@gmail.com wrote: I am using google app engine Mapper API to delete all rows (approx. 2M) for a particular entity in my GAE datastore. However, even though I have a billed account, I still get - com.google.appengine.tools.mapreduce.MapReduceServlet processMapper: Out of mapper quota. Aborting request until quota is replenished. Consider increasing mapreduce.mapper.inputprocessingrate (default 1000) if you would like your mapper job to complete faster. How do I specifically increase the mapper quota? I need to remove the records urgently, but cannot find any documentation to increase mapper quota. Can someone please help? If there is any other best practices I should follow, please let me know. thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.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.