[appengine-java] Re: Metadata in Datastore Statistics
Indexes... On Mar 2, 11:25 am, Aswath Satrasala aswath.satras...@gmail.com wrote: Hello, I am looking at the Datastore Statistics screen What is Metadata, that is showing in the pie chart in that screen -Aswath -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: JPA Query setMaxResult vs DB Read Ops number
amen :-) On Feb 24, 3:13 pm, Matthew Jaggard matt...@jaggard.org.uk wrote: The first one :-) On 22 February 2012 21:01, Peter Han devifr...@gmail.com wrote: situation: - user entities in db (properties id, name, sex, age) - you want to get the oldest of them with min. age 10 createQuery(select u from User u where u.age=10 order by age desc) query.setMaxResults(1) !!! query.getResultList(); how GAE handles this situation? 1. search in index table where age=10 and only the oldest 2. found 1 entity key 3. read entity 4. return entity OR 1. find all of them in index table where age=10 2. found X entity keys 3. read all entities 4. return only the oldest of them (because JPA maxResults=1) 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.
[appengine-java] JPA Query setMaxResult vs DB Read Ops number
situation: - user entities in db (properties id, name, sex, age) - you want to get the oldest of them with min. age 10 createQuery(select u from User u where u.age=10 order by age desc) query.setMaxResults(1) !!! query.getResultList(); how GAE handles this situation? 1. search in index table where age=10 and only the oldest 2. found 1 entity key 3. read entity 4. return entity OR 1. find all of them in index table where age=10 2. found X entity keys 3. read all entities 4. return only the oldest of them (because JPA maxResults=1) 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.
[appengine-java] cross group transactions java sdk 1.6.1.1 ant compile fails with missing method transactionsoptions.builder.withXG(boolean)
I can not create a transactionoptions object with transactionoptions.builder.withXG(true) I get missing method error withXG(boolean) I can create a transactionoptions object with transactionoptions.builder.withDefaults() But apart from that not enabling cross group transactions, the compilation still fails anyway with cannot appy datastore.beginTransaction to transactionOptions another post I saw mentioned a similar a similar issue in relation to the use of jdo which presumably uses the low-level api internally using beginTransaction() ie without any options works fine this is on windows 7 java 6 update 29 gae sdk 1.6.1.1 ant compile -- 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/-/3jHeXDDa6CYJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email 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] Using email service and avoiding spam
Hi, When using appengine email service my emails regulary go to spam. I guess it has something to do with return path emails being something like 3-ksftwojc40rgb3z5-t53x3rz2.t536vav8+av9al61byr8@m3kw2wvrgufz5godrsrytgd7.apphosting.bounces.google.com Any suggestions on how to avoid that? The from email is one of the registered admins of the app. br, Peter -- 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/-/_dUeVKI_J2UJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: StackOverflowError when using remote API
It seems we are the only ones facing this issue... -- 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/-/BDMR1e6RhzEJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: StackOverflowError when using remote API
Hi! I face exactly the same issue (using latest SDK 1.6.0). Have you managed to find any workaround or a way to solve this issue? P.S. There is no such issue in GAE bug tracker, could you please register one. -- 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/-/DwSb6wizZ0AJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: calling backend servlet from a corn job servlet
?xml version=1.0 encoding=UTF-8? cronentries cron url/long-task/url description/description scheduleevery 30 minutes/schedule targetname-of-the-backend/target /cron /cronentries On Oct 20, 4:16 am, fachhoch fachh...@gmail.com wrote: I have a heavy duty servlet whihc takes long time to run , so I added a backed.xml and want to call this servlet through a corn job servlet , please tell me how to call the backend from a corn job? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: calling backend servlet from a corn job servlet
http://www.pdjamez.com/2011/05/google-app-engine-backends-part-deux/ On Oct 23, 5:42 pm, Peter Dev dev133...@gmail.com wrote: ?xml version=1.0 encoding=UTF-8? cronentries cron url/long-task/url description/description scheduleevery 30 minutes/schedule targetname-of-the-backend/target /cron /cronentries On Oct 20, 4:16 am, fachhoch fachh...@gmail.com wrote: I have a heavy duty servlet whihc takes long time to run , so I added a backed.xml and want to call this servlet through a corn job servlet , please tell me how to call the backend from a corn job? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Memcache objects remain only 5 minutes
Thanks, examination of these statististics learned me that had during the handling of one service call multiple (unnecessary) puts and gets of the same object to memcache. I changed this that I have maximum one read, and one put. Avoiding this unnecessary activity increased the time in cache significantly (many hours now). -- 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/-/JzlHxGVgAuAJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Memcache objects remain only 5 minutes
Thanks, examination of these statististics learned me that had during the handling of one service call multiple (unnecessary) puts and gets of the same object to memcache. I changed this that I have maximum one read, and one put. Avoiding this unnecessary activity increased the time in cache significantly (many hours now). -- 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/-/6jwnyeDooosJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Memcache objects remain only 5 minutes
Thanks, examination of these statististics learned me that had during the handling of one service call multiple (unnecessary) puts and gets of the same object to memcache. I changed this that I have maximum one read, and one put. Avoiding this unnecessary activity increased the time in cache significantly (many hours now). -- 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/-/wVC4RyMfmwYJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email 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] DB API read Quota vs. sessions-enabled true
sessions-enabledtrue/sessions-enabled App Engine stores session data in the datastore and memcache, all values stored in the session must implement the java.io.Serializable interface. in java session.getAttribute(XY) calls Datastore API READ if data in Memcache not found? (free limit 50K/24hour) Thx. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: GAE - Vote counting system
After each vote we want to send back the actual state of voted object (actual votes)... so, we need to store the number of votes and not only the deltas. Actual state of the votes we could store in backends cache, and in batch write changes in db. What do you think about this solution? I appreciate your answers! Thx -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: GAE - Vote counting system
Price: - with backends lets say 3 B2 machines = 350USD/Month - UrlFetch Data Sent/Received 0,15USD/GB Limit: - URL Fetch Daily Limit 46,000,000 calls this can be a problem...but I see it is possible to request an increase Write data parallel in DB: Task Queue with rate every 30second could be a solution (check timestamps in cache and write in DB) RESET counters = empty cache in Backends reset counter of object in DB Backends cache = HashMap with shared counter values or counter values without sharding (just increment value in java hashmap is fast enough) With backends we don’t need sharding I thinkwhat do you think? Thx. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: GAE - Vote counting system
Shared counter is cool and I use it... but if you have millions of objects I cannot imagine how to manage them. 1 000 000 obj x 100 shards = 10 000 000 counters 1. How to reset them to 0 in specified periods? 2. How to set the shared sum for each object to show top 100 objects? 3. Too much DB API Calls (each vote makes write in DB) Any ideas...? Thx -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: GAE - Vote counting system
Sorry, 100 000 000 counters On Sep 27, 4:53 pm, Peter Dev dev133...@gmail.com wrote: Shared counter is cool and I use it... but if you have millions of objects I cannot imagine how to manage them.1 000 000obj x 100 shards =10 000 000counters 1. How to reset them to 0 in specified periods? 2. How to set the shared sum for each object to show top 100 objects? 3. Too much DB API Calls (each vote makes write in DB) Any ideas...? Thx -- 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] Memcache objects remain only 5 minutes
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.
[appengine-java] Re: Using async-session-persistence
http://code.google.com/appengine/articles/managing-resources.html For Java HTTP sessions, write asynchronously - HTTP sessions (Java) lets you configure your application to asynchronously write http session data to the datastore by adding async-session-persistence enabled=true/ to your appengine-web.xml. but parameter 'queue-name' is required! :-) On Sep 3, 8:53 pm, John supp...@weespr.com wrote: http://code.google.com/p/googleappengine/issues/detail?id=5774 Star it On Aug 30, 7:28 pm, Spines kwste...@gmail.com wrote: I'm getting this same error after enablingasync-session-persistence, except 100% of the time. It shows this error in the logs: javax.servlet.ServletContext log: _ah_queue_deferred: Deferred task failed exception: com.google.apphosting.utils.servlet.DeferredTaskServlet $DeferredTaskException: java.lang.ClassNotFoundException: com.google.apphosting.runtime.jetty.DeferredDatastoreSessionStore $DeferredSave Any ideas? On Aug 1, 7:34 am, gk goran.kar...@googlemail.com wrote: Greetings, still have not found any clues what could cause async-session- persistence tasks to fail with HTTP status code 415 (Unsupported Media Type). Any ideas? On Jul 27, 9:16 pm, gk goran.kar...@googlemail.com wrote: I am experimenting with async-session-persistenceenabled=true queue-name=default/ to store https session data; at first it seems to work fine with the default default queue settings; multithreading is switched on for the application. It appears that there is some kind of collision, as the tasks seem to succeed when the rate of incoming requests is low. When I open a browser window and reload 50 pages from the site at once it seems to work fine and the queue is filled up with some tasks. Most ot the tasks succeed. The problem is that around 30% of the async-session-persistence tasks fail repeatedly with HTTP status code 415 (Unsupported Media Type) and there is no further indication of the cause in the queue or in the server log. -- 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] GAE - Vote counting system
We are developing an application, where users can vote for many objects. (for example, voting the best music video of the week) - This means, we have millions of possible objects to vote for, and millions of users To our best knowledge, after taking in consideration different options, the best (or the only) voting system is: Memcache+Bulk DB write in DB - If number of objects in Memcache will achieve a specified limit (for example 3000) then write in DB. The writing speed into DB is about 100/sec. This also means, if we would set the above mentioned 3000 objects, the writing would last for 30 sec... The problem; during save in DB, voting must be blocked. In other words, if from many millions of objects, there are 3000 achieved voted objects, we need to write it into DB and it can happen too many times, and blocking the whole voting mechanism. If we do not block the voting whilst writing in DB, the result could be wrong number of votes from cache (see Workflow: step 3). Workflow: 1. vote received 2. find object in memcache 3. if not found in memcache get from DB and put it in 4. increment the number of votes of the object in memcache 5. check object number in memcache 6. if necessary, save in DB and empty memcache ... -- 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] Datastore APIs new pricing - Query (FirstResult/MaxResults)
Datastore APIs new pricing - Query (FirstResult/MaxResults) http://code.google.com/appengine/kb/postpreviewpricing.html#two_entities_fetched_operations_consumed - one more question. Query like this: Query query = session.createQuery(select u from User u order by u.age); query.setFirstResult(10); query.setMaxResults(30); = 20 read ops (first 10 skipped) or 30 read ops (GAE read all the 30 entities in background)? AND which price is valid: http://code.google.com/appengine/articles/managing-resources.html (0.7usd mil/read ops) or http://www.google.com/enterprise/cloud/appengine/pricing.html (0.07usd 10k/ read ops) 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.
[appengine-java] Datastore APIs new pricing - Query (FirstResult/MaxResults)
http://code.google.com/appengine/kb/postpreviewpricing.html#two_entities_fetched_operations_consumed *** Query like this: Query query = session.createQuery(select u from User u order by u.age); query.setFirstResult(10); query.setMaxResults(30); = 30 read ops (first 10 skipped) or 40 read ops (GAE read all the 30 entities in background)? *** Second question which price is valid: http://code.google.com/appengine/articles/managing-resources.html (0.7usd mil/read ops) or http://www.google.com/enterprise/cloud/appengine/pricing.html (0.07usd 10k/read ops) 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.
[appengine-java] Re: GAEJ down!
Do you happen to be deleting a lot of entities? It happens to me before (can't access console) and it's a know bug, thou I am not sure it's fixed or not. Can you access other admin pages? Sometimes the bookmarked link become invalid and need to relogin from the login page. On Aug 12, 1:01 am, JT jem...@gmail.com wrote: It was an error at appengine.google.com. What log are you talking about if you can not even get to dashboard? On Aug 11, 2011 10:33 AM, kartik kudada kartik.kud...@gmail.com wrote: Did you check with logs in dashboard? On Thu, Aug 11, 2011 at 7:33 PM, MANISH DHIMAN manisd...@gmail.com wrote: I am even not able to open statistic page when my application is getting down. It gives 500 error when I tries to open app engine home page. On Aug 11, 6:47 pm, Sébastien Tromp sebastien.tr...@gmail.com wrote: It is usually caused by an exception at instance start-up time. Could you please have a look at the logs, and see if there is a relevant stack trace? -- Sébastien Tromp On Thu, Aug 11, 2011 at 2:31 PM, MANISH DHIMAN manisd...@gmail.com wrote: It is happening since last three days On Aug 9, 5:47 am, doright doug.stodd...@gmail.com wrote: got the following error message a few times this morning: Error: Server ErrorThe server encountered an error and could not complete your request. If the problem persists, please report http://code.google.com/appengine/community.html your problem and mention this error message and the query that caused it I can't even log into the dashboard. Please advise -- 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] Re: Development server deletes automatically-generated datastore indices
I've noticed the same problem today. I hope the SDK will be updated to make life easier for developers. On Jul 1, 9:29 am, Ian Marshall ianmarshall...@gmail.com wrote: Yes, the essence of what you describe below is what I plan to do - what a pain, though. It's a pity that the dev app server doesn't look at the automatically- generated indices at launch-time, but I'll live with it. On Jul 1, 8:22 am, Cyrille Vincey cvin...@qunb.com wrote: Yes, I have noticed the same behaviour. My workaround: once a index has been automatically generated, I copy its xml configuration from datastore-indexes-auto.xml to datastore- indexes.xml. Thus I consider datastore-indexes-auto.xml as automatic propositions. On Jun 30, 12:14 pm, Ian Marshall ianmarshall...@gmail.com wrote: I have my datastore-indexes.xml configuration file set as datastore-indexes autoGenerate=true /datastore-indexes I make successive runs of the development server. Each time before stopping it, I wait a couple of minutes for updates to be flushed to local_db.bin and datastore-indexes-auto.xml. I have found that successive runs of the development server can cause previously-existing automatically-generated datastore indices to be erased (even though the datastore data in local_db.bin is preserved). Has anyone else found this? Is this expected behaviour or a glitch? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: gaeom - new option for lightweight, high performance object mapping
Hi Roberto, I should have a complete example ready for posting in the next couple of days. The application I'm currently working on is using Spring for request routing and Codehaus Jackson for JSON encoding - seems to work pretty well. Since gaeom does not alter the classes or wrap them in proxies, most encoding frameworks should just work (e.g. GWT serialization, XStream, etc). Let me know how it goes! Cheers, pete On Jul 20, 11:59 pm, Roberto Saccon rsac...@gmail.com wrote: Great. I am currently a happy user of slim3, but I am always interested in evaluating other approaches. Do you have somewhere a simple, but complete example app ? Is there a particular JSON encoder/decoder you recommend for using with gaeom ? -- 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] gaeom - new option for lightweight, high performance object mapping
Greetings Java Appengine folks, I've just released the first beta of gaeom 1.0.0-b1. gaeom (google app engine object mapper) is a lightweight, easy to use, and performant object / datastore mapping framework. The framework is under active development towards 1.0, and has solidified to the point of releasing the first beta. For those interested in taking a look at a fresh take at this space, please check out: http://www.gaeom.org Let me know if you have any feedback or questions. Rock on, pete -- 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] gaeom - new option for lightweight, high performance object mapping
Hi Ikai, Nah - I bought that dragon logo at a clip-art site. I think it was originally intended to be a tattoo design - it might look good on my left shoulder... Best, pete -- 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/-/xfxEhNTXQtgJ. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email 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] Deploying My Web Application in google App engine
Hi All, I am new to this Google App engine. I am very much interested with this. I have developed web application with combination of Struts,Spring and hibernate and MySQL as a backend. I planning to deploy this application in google App engine. Is this possible to deploy my application? If yes, Please provide documentation to go ahead for deploying. Regards, A. Peter Jerald. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How to make an unindexed property, indexed
Define property as indexed and re-put every entity (use mapreduce for that). -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Are GAE servers multicore ?
http://code.google.com/appengine/docs/java/overview.html : The JVM runs in a secured sandbox environment to isolate your application for service and security. The sandbox ensures that apps can only perform actions that do not interfere with the performance and scalability of other apps. For instance, an app cannot spawn threads, write data to the local file system or make arbitrary network connections. An app also cannot use JNI or other native code. The JVM can execute any Java bytecode that operates within the sandbox restrictions. http://code.google.com/appengine/docs/java/runtime.html : By default, each web server processes only one request at a time. If you mark your application as thread-safe, App Engine may dispatch multiple requests to each web server in parallel. To do so, simply add a threadsafetrue/threadsafe element to appengine-web.xml as described in Using Concurrent Requestshttp://code.google.com/appengine/docs/java/Using_Concurrent_Requests . -- 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] Berkeley DB JE
you cannot use bdbje in gae. use datastore to store data. -- 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] Does user id need to go through createKey?
Folks, Once I get the user id, do I still need to run it through createKey or can I directly use the ID as the primary key? User user = userservice.getCurrentUser(); String id = user.getUserId(); Key userIdKey = KeyFactory.createKey(Users, id); Entity eUser = new Entity(Users, userIdKey); Appreciate your help. Regards, Peter 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.
[appengine-java] Any GqlQuery example for Java?
Folks, I found quite a few Python examples for GqlQuery but couldn't find any for Java. Can someone point me in the right direction? For starters, what is the namespace to import? Thank you in advance for your help. Regards, Peter -- 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] Federated ID versus User ID
Hello, I need to store per-user information into the datastore. I am using user services to obtain user information. UserService us = UserServiceFactory.getUserService(); User user = us.getCurrentUser(); I see that User class has two methods to obtain id information, getFederatedIdentity() and getUserId(). Which of these two can be used as the primary key for storing per-user information. Thank you in advance for your help. Regards, Peter -- 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] Datastore - best way to insert/update a record
Folks, In my GAE datastore, the Users table contains two fields - email addr and counter. Each time a user accesses a specific object, I need to increment the counter. The logic is as follows: 1. SELECT Email, Counter FROM Users Where Email = emailAddr 2. If record not found, create one and set counter value to 1 3. If record found, increment the counter value and save it back. I am wondering what is the best way to achieve this in Java. Thank you in advance for your help. Regards, Peter -- 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] Best practice for multithreaded access/update to entity
Hi Ikai, Could you expand your answer a little? Do you mean that I don't need to manage a timestap/version if I use transactions? Or do you mean I should use transactions to combine a read (to check for a changed timestamp/version) with a write? If I don't manage the timestamp myself, how does AppEngine know another process change the data since the last read? part of the key? Sorry for those beginner questions, I started using the datastore via the JDO API with a relational background, but it looks it isn't always the best fit for typical datastore issues. Objectify looks much better as it is specifically designed for it. Thanks every one for your answers Peter -- 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] Best practice for multithreaded access/update to entity
Perfect, exactly the info I needed! Thanks a lot Jeff. Peter -- 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 authenticate from iPhone client to App Engine server
Ikai, Thank you for your help. Regards, Peter -- 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] Breakpoint not being hit in Eclipse
Folks, I am using Eclipse 3.6. I have installed the App Engine plugin for Eclipse, App Engine SDK, GWT, etc. I just created a sample Web Application Started Project. I am able to run it as Project--Debug As--Web Application. From Firefox, I am able to navigate to http://localhost: and see that the web page is working as expected. The generated server side class is GreetingServiceImpl that extends RemoteServiceServlet. It has a method called greetServer that the client side invokes. When I put a breakpoint in greetServer, the debugger never stops at the breakpoint even though the web page works as expected. I am wondering if I am missing something. Thank you in advance for your help. Regards, Peter -- 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] How to authenticate from iPhone client to App Engine server
Folks, I am planning to develop a client-server application. The client will be an iPhone/Android application. The server will be running on App Engine. I intend to implement only SOAP based services on the server side. One issue that I need to resolve is that of authentication. In the iPhone app, I can pop up a form for the user to enter gmail address and password. The idea is to pass in the username and password over to the server. However, I don't know if App engine exposes any API that takes username/password and returns a login token for the user. I would appreciate your help if you can point me in the right direction. Also, if there is a better way to handle authentication, please share it with me. Regards, Peter -- 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] Breakpoint not being hit in Eclipse
Thank you for your help. I am already in debug perspective. Regards, Peter -- 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] Best practice for multithreaded access/update to entity
I have an application that accesses a user entity. This entity also contains a number of user specific settings that the user can update. Some of those settings are updated by different servlets in parallel (for instance uploading a profile picture to the blobstore) I'm having some serious issues keeping everything in sync. If I'm not careful, I can easily overwrite updates that have been done in another thread. I have the feeling this is a recurring issue for many GAE application, so I'm looking for some best practices of how to deal with it. In the relational world, often a version column is added. Before updating a row, the version number in the database is compared to the one in memory. I suppose I can implement something like that on GAE too, but I was wondering whether there are better/other options available in the NoSQL world. Regards, Peter -- 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] how to cancel uploading request by url created by createUploadUrl()
I am working on multi uploading using blobstore. Everything's done so far except canceling uploading after calling url(_ah/upload/...) created by createUploadUrl(). The url is called by ajax. When the cancel button is clicked while a file is still being uploaded, ajax function, abort() is called. But after aborting ajax request, uploading process is still on going on server side, and finished successfully. Is there any way to stop the uploading process? I need to find a way to stop the request before a callback is made. Please help me out. It would be greatly appreciated. Peter -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Protocol Buffer in Google app engine
Just a note on Java-to-Java serialization: This is not going to work 100% while protobuf serialization should work. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Why I alwayas stop after I fetch a url?
Hi Martin, Try closing the reader or reading the complete response data. Peter -- 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] 1.4.2: Can't make https call from dev server
We are using a custom remote delegate to route datastore rpc call to live production test site on appspot. We did this because sometimes we want to develop with live data. However after upgrading to 1.4.2, https outbound call starts failing (see below). If we change to http, then it works again. It seems like some class is marked as restricted in this release. Is it intentional? What's the reason behind not allowing outbound https call? Thanks. java.lang.NoClassDefFoundError: javax.net.ssl.SSLHandshakeException is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.appengine.tools.development.agent.runtime.Runtime.reject(Runtime.java: 51) at com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationException(URLFetchServiceImpl.java: 114) at com.google.appengine.api.urlfetch.URLFetchServiceImpl.access $100(URLFetchServiceImpl.java:22) at com.google.appengine.api.urlfetch.URLFetchServiceImpl $1.convertException(URLFetchServiceImpl.java:86) at com.google.appengine.api.utils.FutureWrapper.get(FutureWrapper.java: 69) at com.pekca.main.delegate.RemoteDelegate$1.get(RemoteDelegate.java: 163) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: java.lang.OutOfMemoryError: Java heap space
Try using the low level API and do keys only query with limit of 1000 (and delete them) repeatedly instead of retrieving whole objects. I am guessing the out of memory is due to large amount of objects returned by the query. Keys only query also use much less api cpu. On Feb 12, 9:22 pm, Benjamin bsaut...@gmail.com wrote: I'm getting errors when a task kicks off to delete a lot of data based on a timestamp. I enabled billing and already chewed through $0.50 in CPU time, but i'm still getting the error message. Is there anything else I should do? I was trying to avoid splitting the task up with a result limit or something, i really just need to blow away persisted objects that have a timestamp older than a specified date - this snippet of code causes the error: PersistenceManager pm = PMF.get().getPersistenceManager(); Calendar d = Calendar.getInstance(); long retVal = 0; if (expDays 0) { d.add(Calendar.DATE,(expDays * -1)); Query q = pm.newQuery(RecordedValue.class,pointFK== k timestamp d); q.declareImports(import java.util.Date); MapString, Object args = new HashMapString, Object(); args.put(k,pointId); args.put(d, d.getTime()); retVal = q.deletePersistentAll(args); } pm.close(); return retVal; -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How to produce a synchronized timestamp?
I would be interested on Google's answer whether instances' clock are guaranteed to be in sync.. I would hope so. -- 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: Incoming Email - DKIM Verification needs AE-support/whitelisting-DNS-lookup
http://code.google.com/p/googleappengine/issues/detail?id=4501 -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Incoming Email - DKIM Verification needs AE-support/whitelisting-DNS-lookup
Is there issue for this? I would love to star 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.
[appengine-java] Using the Python datastore replication in Java
http://code.google.com/appengine/docs/adminconsole/datastoreadmin.html#Copying_Entities_to_Another_Application Anyone successfully transfer a table from one app to another? I need to update a test app with data from a production app, and the bulk download utility just take too long (and too many errors) for large number of entities (100k+). I followed the instruction and when I starts a sample transfer (table with only 5 entries), the source app repeatedly fire mapreduce jobs that get terminated with 600,000ms api usage. -- 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] How to get external URL from servlet?
I can't figure, how to get external absolute URL from internal relative address. Can somebody help? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: How to get external URL from servlet?
I know this method) But i want generic solution. I have found some way: (new URL(req.getScheme(),req.getServerName(),req.getServerPort(),/local/path)).toString(); 2010/12/14 Didier Durand durand.did...@gmail.com Hi, it is appid.appspot.com/relative_url where appid is the apid that you selected when registering the app. regards didier On Dec 14, 2:38 am, Peter Savelyev laialnar...@gmail.com wrote: I can't figure, how to get external absolute URL from internal relative address. Can somebody help? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Output encoding / JPEG does not seem to work
Are you using dev server? The image service on dev server does the most basic thing possible and ignore most params. You might have issue working with PNG files as well. Deploy to a live test server and the image service should work. By default, jpeg encoding is quality 85 (according to my trials), set it to higher if you need better quality but size will go up. On Nov 13, 8:57 am, John ad...@weespr.com wrote: When I use a lower quality encoding, the size of the resulting photo is the same not matter what. JPEG 100 or JPEG 60 gives me the exact same image size when applying a couple transformations. I tried with different types of photos, same result. Anyone had success with tweaking the encoding quality ? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Simulating 500 error code
def get(self) self.error(500) should work but never triwd myself Ice13ill napsal(a): Is it possible in App engine Java to simulate on development mode (or production mode) the 500 internal server error ? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Does ImageService support join image?
I think what you are looking for is Composite. Look at the javadoc of the image service and service factory, there's a way to create composite and there's a function to take a list of composites to compose a single image. On Nov 1, 4:33 am, Secret mafa...@gmail.com wrote: I have try the API. Seems the ImageService do not support join image. I have piece of code to join as below, it needs to convert to GAE version . Any idea? BufferedImage img1 = ImageIO.read(new ByteArrayInputStream(byte1)); BufferedImage img2 = ImageIO.read(new ByteArrayInputStream(byte2)); int w = img1.getWidth() + img2.getWidth(); int h = img1.getHeight(); if (img1.getHeight() img2.getHeight()) h = img2.getHeight(); System.out.println(w: + w + h: + h); BufferedImage combined = new BufferedImage(w, h, BufferedImage.TYPE_INT_RGB); Graphics g = combined.getGraphics(); g.drawImage(img1, 0, 0, null); g.drawImage(img2, img1.getWidth(), 0, null); g.dispose(); ByteArrayOutputStream bytes = new ByteArrayOutputStream(); MemoryCacheImageOutputStream toFs = new MemoryCacheImageOutputStream( new BufferedOutputStream(bytes)); ImageWriter writer = ImageIO.getImageWritersBySuffix(ext).next(); writer.setOutput(toFs); IIOImage image = new IIOImage(combined, null, null); ImageWriteParam params = writer.getDefaultWriteParam(); writer.write(null, image, params); return bytes.toByteArray(); -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Eclipse plugin insists on copying DataNucleus jars to war/WEB-INF/lib
Hi Max, Does it copy on startup or build? I am using Eclipse 3.5 , 3.6 and it doesn't copy to lib always. It happens when SDK is changed or maybe on startup. Regardless, I wanted to do the same thing and what I did is write an ANT task that runs every build. The ANT task removed the libs that I don't want, including the JDO classes. Looking at the list of libs, how do you get rid of: geronimo-jpa_3.0_spec-1.1.1.jar geronimo-jta_1.1_spec-1.1.1.jar jsr107cache-1.1.jar I remember when I remove those, something won't work. Maybe I need to try again, but those files are very small anyway. I also remove the MapReduce libs when I don't need to run data migration task. One of those libs are huge. On Oct 26, 9:45 am, Maxim Veksler ma...@vekslers.org wrote: Hello, My project needs only 2 jars from GAE/J: appengine-api-1.0-sdk-1.3.8.jar appengine-api-labs-1.3.8.jar The rest of the jars supplied by the plugin are API's that are not used by our application and thus not required as part of the deployment: appengine-jsr107cache-1.3.8.jar datanucleus-appengine-1.0.7.final.jar datanucleus-core-1.1.5.jar datanucleus-jpa-1.1.5.jar geronimo-jpa_3.0_spec-1.1.1.jar geronimo-jta_1.1_spec-1.1.1.jar jdo2-api-2.3-eb.jar jsr107cache-1.1.jar I've tried to delete these jars and deployed the app to GAE/J -- It works great and the application is running happily ever after. The thing is GAE Eclipse plugin insists on recopying the jars to the project war/WEB-INF/lib folder (* it's unclear the when it decides to do so). I even tried to edit the values of filesCopiedToWebInfLib from the settings file .settings/com.google.appengine.eclipse.core.prefs which also did not help (further more -- The plugin just updated this entry back to it's original state... why put a configuration option if you ignore it?) I want these jars removed for 2 reasons: - 1. It makes the project lighter, removes clutter and is generally better to pull small project over wire. - 2. I remember reading in the mailing list that fewer jars help improve the application cold start times. I'm not talking about projects like spring that have large startup penalty but simply having jar flles in the classpath. Don't know if this is true and I haven't done any benchmarks to verify this. OTOH to be on the safe side -- Why test if I can simply not upload the unwanted jars and be done with it? So, in conclusion - What is the proper method (if any) to instruct GAE Eclipse Plugin to skip checking and copying of jar's that are basic GAE sdk jars into my WEB-LIB/lib folder? Thanks for reading, Maxim. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Handle internal 500 error gracefully
In doc for java: Note: At present, you cannot configure custom error handlers for some error conditions. Specifically, you cannot customize the 404 response page when no servlet mapping is defined for a URL, the 403 quota error page, or the 500 server error page that appears after an App Engine internal error. I vaguely remember a few patches ago, there's a way to specify error page for the 500 internal error? Is it true? If so how to setup the pages? I am starting to see this 500 error more consistently in certain sequence of event (but the log never shows the 500, I suppose this happens before hitting the JVM). Sequence of event: 1. HTTP post that triggers an immediate Task Queue task 2. The Task Queue job is immediately called but timing out (it calls some external URL and can block) 3. The HTTP call in step 1 returns successfully and the client javascript reload the page, thus triggering another request. This request triggers the 500 error. I am guessing request #3 give 500 because the server is busy on #2 and app engine couldn't spin up another instance? I am setting the queue delay to 10 seconds and see if this will alleviate the problem. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: CreateProcess error=87
Thx for your quick answer. After I posted this message I found a solution for my problem: http://groups.google.com/group/google-web-toolkit/browse_thread/thread/4c89f5df36e4fe7b I moved my App Engine SDK-s jars to another folder with sorter path, and replaced my original App Engine library with this new one. And this solved my problem. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] CreateProcess error=87
Hi I have a strange problem. Eclipse cannot clean and build my Google App Engine project. It says: DataNucleus Enhancer has encountered a problem. Cannot run program C:\Program Files\Java\jdk1.6.0_20\bin \javaw.exe (in directory location_of_my_project): CreateProcess error=87, The parameter is incorrect. I updated to App Engine SDK 1.3.8. I have Eclipse Version: Helios After a short search i found a solution on the internet, that the classpath is too long. I edited my .classpath file : classpath classpathentry kind=src path=src/ classpathentry kind=con path=com.google.appengine.eclipse.core.GAE_CONTAINER/ classpathentry kind=con path=org.eclipse.jdt.launching.JRE_CONTAINER/ classpathentry exported=true kind=con path=org.eclipse.jdt.USER_LIBRARY/JSON/ classpathentry kind=con path=org.eclipse.jdt.junit.JUNIT_CONTAINER/4/ classpathentry kind=con path=org.eclipse.jdt.USER_LIBRARY/ ApacheIO/ classpathentry kind=output path=war/WEB-INF/classes/ /classpath and when i removed the line containing com.google.appengine.eclipse.core.GAE_CONTAINER the build was sucessfull. Thats ok but the are many errors in my project now, so thats not the correct solution. Has anybody a solution for my problem? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Unable to deploy 1.3.8 project
Ok. I installed a new Eclipse (Helios), install the Google plugin with only 1.3.8, created a new project, deploy to production, and still, the version is still Google App Engine/1.3.7. You can hit the url that print the version here: http://9.latest.vikispottest.appspot.com/vikispot9 I don't think it's my setting issue. Can anyone verify? On Oct 18, 10:41 pm, Peter Liu tinyee...@gmail.com wrote: I created a brand new project with 1.3.8 sdk, deploy to live server, and the SystemProperty.version is still: Google App Engine/1.3.7. Can anyone help? How do I verify what version of jars I deployed to production? @SuppressWarnings(serial) public class VikiSpot8Servlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setContentType(text/plain); String ver = SystemProperty.version.get(); resp.getWriter().println(ver); //resp.getWriter().println(Hello, world); } } -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: alishascardwall.com Forbidden 403 Error
Try again to delete www mapping to GAE, create mapping to some dummy sites.google.com, and then delete sites and create mapping to GAE. See if that works. It is kind of strange as usually if the mapping is wrong you get error 404 not 403. On Oct 17, 6:17 am, Aditya Yadav aditya.ya...@gmail.com wrote: The log shows no Errors, 403 or otherwise. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How to get rid of a hanging mapreduce job?
Did you clear the Default queue as well? It's possible that the task queue backed off due to failure and retry at later time. But then it if it happens long time ago the queue should have given up already. On Oct 17, 5:37 am, burnayev burna...@gmail.com wrote: I deleted the mapreduce-related entities long time ago and it was inconsequential. On Oct 17, 2:50 am, Peter Liu tinyee...@gmail.com wrote: I had the same problem. I fix it by deleting the entries of the 2 map reduce table. Go to to the datastore viewer and there's 2 Kind used by map reduce. By the way, how to mark the task as completed? When my task is done it always end with the Unknown state. I asked this question before but there was no answer. On Oct 16, 9:30 am, burnayev burna...@gmail.com wrote: Mapper API for Java. Usedhttp://ikaisays.com/2010/07/09/using-the-java-mapper-framework-for-ap... as a starting point. On Oct 15, 5:45 pm, Guillermo Schwarz guillermo.schw...@gmail.com wrote: Which map reduce library are you using? Saludos, Guillermo Schwarz. El 15-10-2010, a las 18:44, burnayev burna...@gmail.com escribió: Here's the scoop... One of my first mapreduce jobs didn't want to complete by itself. It did not want to abort either. To get rid of the sucker I deployed a new application version and deleted the one the job was running against. I also manually deleted all the residual state mapreduce created in the datastore. That seemed to kill most of it. However now, 5 days later, there are still two artifacts - mapperCallback and controllerCallback - that disturb my serenity (and keep sucking the juice) by popping up every hour or so. Obviously they are looking for a job that exists no more and fail miserably with a stack trace similar to below. Is there a way to make them go away? java.lang.RuntimeException: Couldn't find MR with job ID: job_1286643750234_0001 at com.google.appengine.tools.mapreduce.AppEngineJobContext.getConfigurationFromRequest( AppEngineJobContext.java: 157) at com.google.appengine.tools.mapreduce.AppEngineJobContext.init (AppEngineJobContext.java: 110) at com.google.appengine.tools.mapreduce.MapReduceServlet.handleController( MapReduceServlet.java: 507) at com.google.appengine.tools.mapreduce.MapReduceServlet.doPost (MapReduceServlet.java: 222) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter (ParseBlobUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter (SaveSessionFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle (WebAppContext.java: 418) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle (AppVersionHandlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest (HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable (RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest( JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest (JavaRuntime.java: 261) at com.google.apphosting.base.RuntimePb
[appengine-java] Re: JPEG Quality OutputSettings NoClassDefFoundError
It appears that I keep deploying 1.3.7 when my dev is 1.3.8. I try switching versions back and forth and getting the new updated plugin in Eclipse (Helios), and it's still deploying 1.3.7. I will try to create a brand new project and deploy it to see which version it deployed... On Oct 18, 9:02 pm, Peter Liu tinyee...@gmail.com wrote: Anyone have this working? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: JPEG Quality OutputSettings NoClassDefFoundError
I created a brand new project with 1.3.8 sdk, deploy to live server, and the SystemProperty.version is still: Google App Engine/1.3.7. Can anyone help? @SuppressWarnings(serial) public class VikiSpot8Servlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setContentType(text/plain); String ver = SystemProperty.version.get(); resp.getWriter().println(ver); //resp.getWriter().println(Hello, world); } } On Oct 18, 9:02 pm, Peter Liu tinyee...@gmail.com wrote: Anyone have this working? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Unable to deploy 1.3.8 project
I created a brand new project with 1.3.8 sdk, deploy to live server, and the SystemProperty.version is still: Google App Engine/1.3.7. Can anyone help? How do I verify what version of jars I deployed to production? @SuppressWarnings(serial) public class VikiSpot8Servlet extends HttpServlet { public void doGet(HttpServletRequest req, HttpServletResponse resp) throws IOException { resp.setContentType(text/plain); String ver = SystemProperty.version.get(); resp.getWriter().println(ver); //resp.getWriter().println(Hello, world); } } -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How to get rid of a hanging mapreduce job?
I had the same problem. I fix it by deleting the entries of the 2 map reduce table. Go to to the datastore viewer and there's 2 Kind used by map reduce. By the way, how to mark the task as completed? When my task is done it always end with the Unknown state. I asked this question before but there was no answer. On Oct 16, 9:30 am, burnayev burna...@gmail.com wrote: Mapper API for Java. Usedhttp://ikaisays.com/2010/07/09/using-the-java-mapper-framework-for-ap... as a starting point. On Oct 15, 5:45 pm, Guillermo Schwarz guillermo.schw...@gmail.com wrote: Which map reduce library are you using? Saludos, Guillermo Schwarz. El 15-10-2010, a las 18:44, burnayev burna...@gmail.com escribió: Here's the scoop... One of my first mapreduce jobs didn't want to complete by itself. It did not want to abort either. To get rid of the sucker I deployed a new application version and deleted the one the job was running against. I also manually deleted all the residual state mapreduce created in the datastore. That seemed to kill most of it. However now, 5 days later, there are still two artifacts - mapperCallback and controllerCallback - that disturb my serenity (and keep sucking the juice) by popping up every hour or so. Obviously they are looking for a job that exists no more and fail miserably with a stack trace similar to below. Is there a way to make them go away? java.lang.RuntimeException: Couldn't find MR with job ID: job_1286643750234_0001 at com.google.appengine.tools.mapreduce.AppEngineJobContext.getConfigurationFromRequest( AppEngineJobContext.java: 157) at com.google.appengine.tools.mapreduce.AppEngineJobContext.init (AppEngineJobContext.java: 110) at com.google.appengine.tools.mapreduce.MapReduceServlet.handleController( MapReduceServlet.java: 507) at com.google.appengine.tools.mapreduce.MapReduceServlet.doPost (MapReduceServlet.java: 222) at javax.servlet.http.HttpServlet.service(HttpServlet.java:713) at javax.servlet.http.HttpServlet.service(HttpServlet.java:806) at org.mortbay.jetty.servlet.ServletHolder.handle (ServletHolder.java: 511) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1166) at com.google.apphosting.utils.servlet.ParseBlobUploadFilter.doFilter (ParseBlobUploadFilter.java: 97) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.runtime.jetty.SaveSessionFilter.doFilter (SaveSessionFilter.java: 35) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at com.google.apphosting.utils.servlet.TransactionCleanupFilter.doFilter (TransactionCleanupFilter.java: 43) at org.mortbay.jetty.servlet.ServletHandler $CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java: 388) at org.mortbay.jetty.security.SecurityHandler.handle (SecurityHandler.java: 216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java: 182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java: 765) at org.mortbay.jetty.webapp.WebAppContext.handle (WebAppContext.java: 418) at com.google.apphosting.runtime.jetty.AppVersionHandlerMap.handle (AppVersionHandlerMap.java: 238) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java: 152) at org.mortbay.jetty.Server.handle(Server.java:326) at org.mortbay.jetty.HttpConnection.handleRequest (HttpConnection.java: 542) at org.mortbay.jetty.HttpConnection $RequestHandler.headerComplete(HttpConnection.java:923) at com.google.apphosting.runtime.jetty.RpcRequestParser.parseAvailable (RpcRequestParser.java: 76) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404) at com.google.apphosting.runtime.jetty.JettyServletEngineAdapter.serviceRequest( JettyServletEngineAdapter.java: 135) at com.google.apphosting.runtime.JavaRuntime.handleRequest (JavaRuntime.java: 261) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:8483) at com.google.apphosting.base.RuntimePb$EvaluationRuntime $6.handleBlockingRequest(RuntimePb.java:8481) at com.google.net.rpc.impl.BlockingApplicationHandler.handleRequest (BlockingApplicationHandler.java: 24) at com.google.net.rpc.impl.RpcUtil.runRpcInApplication (RpcUtil.java: 418) at com.google.net.rpc.impl.Server$RpcTask.runInContext(Server.java: 572) at com.google.tracing.TraceContext$TraceContextRunnable $1.run(TraceContext.java:448) at com.google.tracing.TraceContext.runInContext(TraceContext.java: 688)
[appengine-java] Re: alishascardwall.com Forbidden 403 Error
Go to Google Apps domain control panel a remove www mapping to your GAE application and add it again. On Oct 16, 5:13 am, Aditya Yadav aditya.ya...@gmail.com wrote: I purchased a domain alishascardwall.com for my appid: alishascardwall and removed Sites and enabled www mapping for my appid. While alishascardwall.appspot.com works fine alishascardwall.com gives a Forbidden 403 error. I've created 2 other domains for my other apps and I have followed the same steps exactly. The system doesn't allow me to remove the www mapping or remove the GAE service from my account. So I think something got corrupted in the process. Need some help getting this working. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: alishascardwall.com Forbidden 403 Error
What does nslookup tell about your DNS name: nslookup -q=cname www.kaibo.eu. (replace kaibo.eu with your domain name) On Oct 16, 8:37 am, Aditya Yadav aditya.ya...@gmail.com wrote: Peter, Thanks for the reply. I have already tried that before posting. I went into Google Apps and tried removing the www mapping which it didn't let me. I click and nothing happens. I tried disabling the service. That doesn't work too, nothing happens. Thats why I concluded that something got corrupted somehow. And I'm unable to do anything to fix it. Aditya -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: alishascardwall.com Forbidden 403 Error
I presume you do not have anything in your application logs (error 403), do you? On Oct 16, 10:30 am, Aditya Yadav aditya.ya...@gmail.com wrote: C:\Documents and Settings\adityayadav76nslookup -q=cnamewww.alishascardwall.co m *** Can't find server name for address 192.168.1.1: Non-existent domain *** Default servers are not available Server: UnKnown Address: 192.168.1.1 Non-authoritative answer:www.alishascardwall.comcanonical name = ghs.google.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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: SDK 1.3.8 released!
Apparently the newer version of SDK is not available yet. On Oct 15, 3:14 pm, Cyrille Vincey crll...@gmail.com wrote: Am I the only one who cannot download the eclipse 1.3.8 update ? On 15/10/10 14:51, Guillaume Laforge glafo...@gmail.com wrote: Excellent, thank you! The instances view is really nice and interesting! I just wanted to also mention that while upgrading one of my apps, one controller wasn't compiling against the new SDK, as there had been a little rename refactoring of a method: FetchOptions.Builder#withDefault is now: FetchOptions.Builder#withDefaults Notice the final 's'! Perhaps you could publish a list of API differences between releases? I know some OSS projects publish such documents for helping people upgrade to newer versions, or for showing users what the new APIs are. Anyhow, well done for this release! Guillaume On Fri, Oct 15, 2010 at 05:44, Takashi Matsuo tmat...@google.com wrote: Hello App Engine Developers! We're very happy to announce that SDK 1.3.8 is released today. There are many new cool features, so please download the new SDK and enjoy it! You can download the new SDK from: http://code.google.com/appengine/downloads.html Our blog post includes some screenshots of new features in admin console: http://googleappengine.blogspot.com/2010/10/new-app-engine-sdk-138-in... es-new.html Here are release notes: Java --- Version 1.3.8 = - You can run task queue tasks immediately from the admin console. - Added an OutputSettings class to the Images API to specify the JPEG encoding quality when running in production. - Support for login of multiple Google accounts within an app, and longer login sessions. For more information see: http://www.google.com/support/accounts/bin/answer.py?answer=181599 - In queue.xml, the maximum allowed bucket size is now 100. - Removed limits on zigzag merge-join queries. Therefore the error The built-in indices are not efficient enough for this query and your data. Please add a composite index for this query. will no longer be thrown in most cases, enabling more types of queries without indexes. - The whitelist has been updated to include java.net.InetAddress and some interfaces and abstract classes in javax.xml.soap, including javax.xml.soap.SOAPMessage. - Fixed an issue reserving App Ids by owners of emails containing periods, multiple cases, and googlemail.com address. http://code.google.com/p/googleappengine/issues/detail?id=1196 - Fixed an issue where TaskOptions had no public getters, making testing impossible. http://code.google.com/p/googleappengine/issues/detail?id=3243 - Fixed an issue on the development server where PNGs were being returned as JPEGs. http://code.google.com/p/googleappengine/issues/detail?id=3661 Python - Version 1.3.8 == - Builtin app.yaml handlers are available for common application functions, such as appstats. http://code.google.com/appengine/docs/python/config/appconfig.html#Bu... n_Handlers - The Admin Console now provides an experimental tool to delete all entities in the datastore or all entities of a given type. This is available only if enabled using the datastore_admin builtin. Deleting entities will count against application quota. http://code.google.com/appengine/docs/python/datastore/creatinggettin... deletingdata.html#Deleting_Entities_in_Bulk - You can run task queue tasks immediately from the Admin Console. - You can now specify the quality of JPEG images via the Image API's execute_transforms function. Available in production only. - Support for login of multiple Google accounts within an app, and longer login sessions. For more information see: http://www.google.com/support/accounts/bin/answer.py?answer=181599 - In queue.yaml, the maximum allowed bucket size is now 100. - Precompilation is now enabled by default. To disable, use the --no_precompilation flag when updating your app. - BlobInfo now has an open() method that returns a BlobReader. - BlobReader now accepts a BlobInfo. - Removed limits on zigzag merge-join queries. Therefore the error The built-in indices are not efficient enough for this query and your data. Please add a composite index for this query. will no longer be thrown in most cases, enabling more types of queries without indexes. - Fixed an issue with task queue tasks not running on the dev_appserver when using Python 2.6. - Fixed an issue on the dev_appserver where auto task running wasn't working for BulkAdd. - Fixed an issue reserving App Ids by owners of similarly-named mails accounts containing periods, multiple cases, and googlemail.com address. http://code.google.com/p/googleappengine/issues/detail?id=1196 - Fixed an issue on the development server where PNGs were being
[appengine-java] Re: App Engine and IP Addresses
For performance reasons Google Frontend servers use keep-alives by default unless you request non-persistent connection with http request header connection: close. On Oct 11, 5:34 pm, Benjamin bsaut...@gmail.com wrote: Guys - thank you. It's working great. I'm actually impressed at how I can us the IP i get from google.com or appspot.com and as long as I provide the host my POST get's directed to my app engine app. I will post more about this in my blog:http://nimbits.blogspot.com/ I now have an Arduino Microcontroller board with an Ethernet shield that can post it's data directly to my Nimbits Data Logging Service on App Engine :http://www.nimbits.com The Arduino C code is simply a basic web client (using ethernet.h) that does: client.println(GET /service/currentvalue? point=testemail=bsaut...@gmail.comformat=json HTTP/1.1); client.println(Host:nimbits1.appspot.com); client.println(Accept-Language:en-us,en;q=0.5); client.println(Accept-Encoding:gzip,deflate); client.println(Connection:close); client.println(Cache-Control:max-age=0); client.println(); Worth mentioning that I had trouble with http keep alives - i had to add a connection close header. Not sure why. On Oct 10, 5:36 pm, Maxim Veksler ma...@vekslers.org wrote: Exactly. Usehttps://addons.mozilla.org/en-US/firefox/addon/6647/tosee what headers your browser send as part of the HTTP GET request and emulate them in C code. Should work :). On Sat, Oct 9, 2010 at 11:45 PM, Peter Ondruska peter.ondru...@gmail.comwrote: When connecting to IP address you need to use HTTP host header so that GAE knows which application/virtual server you want. On Oct 9, 6:26 pm, Benjamin bsaut...@gmail.com wrote: I've been working on a challenge over the past couple of days and I could really use a knowledge transfer on App Engine, Domains and IP addresses. I seem to be missing something. I'm trying to write a library for Arduino Micro-controllers to do HTTP Posts to a servlet hosted on appengine. For example The URL of the servlet is http://nimbits1.appspot.com/service/currentvalue?point=testformat=json Do to limitations on the Arduino device, i need to get an IP Address that will resolve to nimbits1.appspot.com first, before doing my post to /service/currentvalue?point=testformat=json I have the C code to request an IP from DNS of a domain which works without a problem. So far so good. My problem is my requests seem to hit a brick wall when I try to use the IP instead of the Domain in my requests. Let's say I ping nimbits1.appspot.com - I get 74.125.113.121 or 72.14.204.141 back from the DNS Server. This takes me to Google servers, but not my app. I'm guessing that the server want the subdomain in the request but i'm not provided one. I registered a new domain: nimbits.org on godaddy and followed Nick Johnson's fine tutorial on mapping naked domains to have nimbits.org redirect to nimbits1.appspot.com (As a permanent redirect without masking) http://blog.notdot.net/2009/12/Naked-domains-on-App-Engine if i navigate tohttp://nimbits.orgIredirect ok tohttp:// nimbits1.appspot.com Further, if i do a wget in a linux terminal I can see the IP's i'm resolving to: benja...@ben-ubws01:~$ wget nimbits.org --2010-10-09 12:20:43-- http://nimbits.org/ Resolving nimbits.org... 64.202.189.170 Connecting to nimbits.org|64.202.189.170|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location:http://nimbits1.appspot.com[following] --2010-10-09 12:20:44-- http://nimbits1.appspot.com/ Resolving nimbits1.appspot.com... 64.233.169.141 Connecting to nimbits1.appspot.com|64.233.169.141|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: `index.html.10' [ = ] 3,376 --.-K/s in 0.003s 2010-10-09 12:20:44 (1.18 MB/s) - `index.html.10' saved [3376] If i try and navigate to any of the above IP Addresses i.ehttp:// 64.233.169.141 I endup on google or godaddy, but not my app. Any help would be greatly appriciated. I may have to resort to having users point their arduino to an internal web server that can forward the request, but having arduino devices post directly to app engine would be very cool. -Ben -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message
[appengine-java] Re: App Engine and IP Addresses
When connecting to IP address you need to use HTTP host header so that GAE knows which application/virtual server you want. On Oct 9, 6:26 pm, Benjamin bsaut...@gmail.com wrote: I've been working on a challenge over the past couple of days and I could really use a knowledge transfer on App Engine, Domains and IP addresses. I seem to be missing something. I'm trying to write a library for Arduino Micro-controllers to do HTTP Posts to a servlet hosted on appengine. For example The URL of the servlet is http://nimbits1.appspot.com/service/currentvalue?point=testformat=json Do to limitations on the Arduino device, i need to get an IP Address that will resolve to nimbits1.appspot.com first, before doing my post to /service/currentvalue?point=testformat=json I have the C code to request an IP from DNS of a domain which works without a problem. So far so good. My problem is my requests seem to hit a brick wall when I try to use the IP instead of the Domain in my requests. Let's say I ping nimbits1.appspot.com - I get 74.125.113.121 or 72.14.204.141 back from the DNS Server. This takes me to Google servers, but not my app. I'm guessing that the server want the subdomain in the request but i'm not provided one. I registered a new domain: nimbits.org on godaddy and followed Nick Johnson's fine tutorial on mapping naked domains to have nimbits.org redirect to nimbits1.appspot.com (As a permanent redirect without masking) http://blog.notdot.net/2009/12/Naked-domains-on-App-Engine if i navigate tohttp://nimbits.org I redirect ok tohttp://nimbits1.appspot.com Further, if i do a wget in a linux terminal I can see the IP's i'm resolving to: benja...@ben-ubws01:~$ wget nimbits.org --2010-10-09 12:20:43-- http://nimbits.org/ Resolving nimbits.org... 64.202.189.170 Connecting to nimbits.org|64.202.189.170|:80... connected. HTTP request sent, awaiting response... 301 Moved Permanently Location:http://nimbits1.appspot.com[following] --2010-10-09 12:20:44-- http://nimbits1.appspot.com/ Resolving nimbits1.appspot.com... 64.233.169.141 Connecting to nimbits1.appspot.com|64.233.169.141|:80... connected. HTTP request sent, awaiting response... 200 OK Length: unspecified [text/html] Saving to: `index.html.10' [ = ] 3,376 --.-K/s in 0.003s 2010-10-09 12:20:44 (1.18 MB/s) - `index.html.10' saved [3376] If i try and navigate to any of the above IP Addresses i.ehttp://64.233.169.141 I endup on google or godaddy, but not my app. Any help would be greatly appriciated. I may have to resort to having users point their arduino to an internal web server that can forward the request, but having arduino devices post directly to app engine would be very cool. -Ben -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Tell data store not to selected index properties on bulkupload
Just define entity properties with indexed=False, e.g. class Authorization(db.Model): domain = db.StringProperty(required=True) code = db.StringProperty(required=True, indexed=False) # update = db.DateTimeProperty(required=True, auto_now_add=True) and then bulkload On Oct 4, 6:26 pm, Maxim Veksler ma...@vekslers.org wrote: Hello, I would like to disable indexing for properties I know I won't be using for query filtering to save storage space. I have used bulkuploader to push ~500mb of data into the datastore. These Entities contain lot's of properties which won't be used for filtering, for ex. CountryName I would like to exclude these properties from the indexing, and purge the existing index. Not sure about how datastore works, so I'll ask all my questions at once: Can I disable indexing for properties or does single property indexes always created without me being able to control it? Can tell app engine to truncate existing index and not recreate it (to reclaim the disk space) ? Can I retrospectively upload an index.yaml file (I did not had this file before) to delete the unneeded indexes created? Will this index.yaml configuration will take effect on my next bulkupload operation as well? Thanks for helping, Maxim. [1]http://code.google.com/appengine/docs/java/configyaml/indexconfig.html -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: IOException instead of 404
It is expected behavior to throw IOE if you cannot connect. HTTP status 404 can only be sent after connection succeeded. Peter On Sep 21, 7:08 am, hector hrov...@gmail.com wrote: I'm using the URLFetchService to access some web services from my domain. Today I was testing the connection to one of my services, but I didn't realize that my app server was down. The expected behavior was that I would get a 404 in the HTTPResponse, but instead I'm seeing a java.io.IOException. Here's the top of the stacktrace. Hope this helps... Uncaught exception from servlet java.io.IOException: Could not fetch URL:https://.../google-dsapi-svc/addama/datasources/... at com.google.appengine.api.urlfetch.URLFetchServiceImpl.convertApplicationException(URLFetchServiceImpl.java: 106) at com.google.appengine.api.urlfetch.URLFetchServiceImpl.fetch(URLFetchServiceImpl.java: 39) at org.systemsbiology.addama.coresvcs.gae.services.Proxy.doProxy(Proxy.java: 183) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: How to implement global address book/list in google app engine
Sign up for Google Apps and use Contacts API http://code.google.com/p/gdata-java-client/ to manipulate shared contacts. On Sep 13, 11:29 am, Saurabh Saxena saurabhsaxena.saur...@gmail.com wrote: Hi, Can some one help me how to implement global address book or list in google app engine. Thanks forthe help in advance. Regards, Saurabh -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Query BlobInfo in Java?
Just enable billing and set a minimal amount per day. I think it's 1 or 2 dollar. It won't charge you unless you run out of free quota, and if it charges you the max you can be charged is capped. On Sep 6, 5:39 pm, Gladys Anne Nicdao ganic...@gmail.com wrote: Hi! Are you using a billable account in appengine? I'm wondering if I can use the blobstore service even with a free account. If not, are there other alternatives for blobstore so that I can upload and retrieve a file? Thanks On Tue, Sep 7, 2010 at 2:57 AM, Peter Liu tinyee...@gmail.com wrote: Just what I needed. Thank you. On Sep 6, 1:38 am, Sergio Lopes slo...@gmail.com wrote: I'm using the Datastore API to query __BlobInfo__ entity directly. In my case, for example, I can have multiple versions of the same filename but I need to get the last one. So: Query query = new Query(__BlobInfo__); query.addFilter(filename, FilterOperator.EQUAL, filename); query.addSort(creation, SortDirection.DESCENDING); DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); PreparedQuery pq = datastore.prepare(query); ListEntity entList = pq.asList(FetchOptions.Builder.withLimit(1)); Hope that helps... On 6 set, 05:13, Peter Liu tinyee...@gmail.com wrote: Hi all, Anyone know a simple way to query BlobInfo? Simple use case will be query the BlobInfo that has a specific file name. It seems there's a method to query BlobInfo for Python but I can't find it for java. Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2bunsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Query BlobInfo in Java?
Hi all, Anyone know a simple way to query BlobInfo? Simple use case will be query the BlobInfo that has a specific file name. It seems there's a method to query BlobInfo for Python but I can't find it for java. Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Can't flush response
It will not work, GAE in production will send response at once. See http://code.google.com/appengine/docs/java/runtime.html#Responses On Sep 6, 10:42 am, Sergio Lopes slo...@gmail.com wrote: Hi everybody I'm trying to use flushBuffer() of HttpServletResponse. I have some use case here where I need to send some response to the user and later send a little more. But flushBuffer() doesn't seem to be working in production. Locally everything works with the SDK, but in production the response only shows up when the last byte is sent (not when flushBuffer is called). Any idea? Thanks Sérgio -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Query BlobInfo in Java?
Just what I needed. Thank you. On Sep 6, 1:38 am, Sergio Lopes slo...@gmail.com wrote: I'm using the Datastore API to query __BlobInfo__ entity directly. In my case, for example, I can have multiple versions of the same filename but I need to get the last one. So: Query query = new Query(__BlobInfo__); query.addFilter(filename, FilterOperator.EQUAL, filename); query.addSort(creation, SortDirection.DESCENDING); DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); PreparedQuery pq = datastore.prepare(query); ListEntity entList = pq.asList(FetchOptions.Builder.withLimit(1)); Hope that helps... On 6 set, 05:13, Peter Liu tinyee...@gmail.com wrote: Hi all, Anyone know a simple way to query BlobInfo? Simple use case will be query the BlobInfo that has a specific file name. It seems there's a method to query BlobInfo for Python but I can't find it for java. Thanks! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: The title of email displays wrongly in localization
Have try encoding to quoted printable this way: msg.setSubject(MimeUtility.encodeText(_subject, UTF-8, Q)); http://groups.google.com/group/google-appengine-java/browse_thread/thread/7479beb80a97992f/36156bbdee1b9fa2?lnk=gstq=encode+subject#36156bbdee1b9fa2 On Aug 26, 3:23 am, Tony genesoft...@gmail.com wrote: Hello, I have a problem to dispay the title of email if it includes Chinese. I tried: [1] ... String title = 测试标题; message.setSubject(title); ... And [2] ... String title = 测试标题; title = MimeUtility.encodeText(title); message.setSubject(title); ... Both titles are displayed as ?. If the program works in Tomcat (without GAE/GWT), the 2nd is ok. Please let me know, if you have any idea to handle the title localization issue? Thanks in advance, Tony -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Invalidating users session
http://code.google.com/p/googleappengine/issues/detail?id=3049 On Aug 10, 1:25 pm, Ice13ill andrei.fifi...@gmail.com wrote: Still, it seams that _ah_SESSION objects are not always cleaned automatically... On Aug 7, 12:53 pm, Hariharan Anantharaman hariharan.ananthara...@gmail.com wrote: When i tried using session.Invalidate method, during logout, the logout time increased and the cpu consumption by logout was also high. I could not find reason behind it. Thanks Hari 2010/8/6 Ice13ill andrei.fifi...@gmail.com This is more of a java servlet/session question, but it's also referring AppEngine's user service: Is there a way of invalidating a certain user's session ? for example, an admin modifies a certain user's permissions and because of that, i need to invalidate that user's session. Can i do this with standard java classes like HttpSession, ServletContext etc. Or if i use app engine's user service, can i invalidate in the admin's call another's user google session (to force him to login to google again?) PS. regardin ah_SESSION objects, are they cleaned by the app engine's mechanism? (when i call session.invalidate()) or do i have ti build my own logic to clean them? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Uploading Data on Development Server(On local machine)
http://code.google.com/appengine/docs/python/tools/uploadingdata.html Loading Data Into the Development Server If you'd like to test how your data works with the app before uploading it, you can load it into the development server. Use the -- url option to point the tool at the development server URL. For example: appcfg.py upload_data --config_file=album_loader.py -- filename=album_data.csv --kind=Album --url=http://localhost:8080/ remote_api app-directory On Jul 31, 12:28 pm, MANISH DHIMAN manisd...@gmail.com wrote: Hi Friends, I want to upload data on my local machine in development mode. May any one provide me information about how to achieve 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-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Update on Datastore Performance Status
Charging for Datastore CPU usage will be re-enabled on Tuesday, August 3rd http://googleappengine.blogspot.com/2010/07/update-on-datastore-performance-status.html -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Documentation amendment request: allowed sender E-mail addresses
Raise an issue for that please and send the link, I'd start it right away. On Jul 15, 10:52 am, Ian Marshall ianmarshall...@gmail.com wrote: Is this the right place to make a documentation amendment request? If not, should I raise an issue instead? On Jul 14, 1:48 pm, Ian Marshall ianmarshall...@gmail.com wrote: In the GAE/J documentation at Google App Engine | Java | Services | Mail | (Mail Java API) Overview | Sending Mail with URL http://code.google.com/intl/en/appengine/docs/java/mail/overview.html... it states ... the sender address of a message must be the email address of an administrator for the application, the Google Account email address of the current user who is signed in, or any valid email receiving address for the app (see Receiving Mail). In contrast, in the documentation at Google App Engine | Java | Services | Mail | Using JavaMail to Send Mail | Senders and Recipients with URL http://code.google.com/intl/en/appengine/docs/java/mail/usingjavamail... it states The sender must be either the address of a registered developer for the application, or the address of the user for the current request signed in with a Google Account. Please can these two texts be unified by including any valid email receiving address for the app in both parts? (On a more minor point: the overview is very extensive with many of the details repeated in the sections following. Again, Google might care to eliminate duplication here.) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Documentation request: case sensitivity of sender E-mail addresses
:-) Raise an issue for that please and send the link, I'd start it right away as well. On Jul 15, 10:52 am, Ian Marshall ianmarshall...@gmail.com wrote: Is this the right place to make a documentation amendment request? If not, should I raise an issue instead? On Jul 14, 2:09 pm, Ian Marshall ianmarshall...@gmail.com wrote: In the GAE/J documentation at Google App Engine | Java | Services | Mail | (Mail Java API) Overview | Receiving Mail with URL http://code.google.com/intl/en/appengine/docs/java/mail/overview.html... it states Your app can receive email at addresses of the following form: 'str...@appid.appspotmail.com' I want my app to send E-mails with the sender address of this form, but I have discovered the hard way that this form of sender E-mail address must(?) be fully in lower case after the @. Trying to send from administrat...@[myappid].appspotmail.com fails with the exception javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Illegal Arguments (java.lang.IllegalArgumentException: Unauthorized Sender: Unauthorized sender)) whilst sending from administrat...@[myappid].appspotmail.com is permitted by GAE/J. Jason's post in unable to send email, got javax.mail.SendFailedException dated 13 July 2009 with URL http://groups.google.com/group/google-appengine-java/browse_thread/th... mentions this case sensitivity. In the interests of continuous improvement, please could the documentation be amended to point out the case sensitivity requirements of (the various components of) sender addresses? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Response character encoding
Hi I want to set the character encoding of the HTTP response to UTF-8. In local deploying with Eclipse everythig is OK with the JVM parameter (-Dfile.encoding=UTF-8), but when i deploying my application to App Engine the character encoding goes wrong, and the ajax response String displayed in my web page is not UTF-8. What can I do? Can I set the given JVM option to my application somehow? Thx Peter -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Unnecessary memcache request from jetty SessionManager?
How I understand memcache: cache.containsKey(some-key) tells you whether there is such key in memcache and cache.get(some-key) retrieves the value for key You could skip asking for existence of the key in memcache only in case you expect to return non-null values (and null being non-existent object), I may be wrong but this is how I understand memcache. On Jun 8, 11:07 am, dmitrygusev dmitry.gu...@gmail.com wrote: Can somebody comment on: http://code.google.com/p/googleappengine/issues/detail?id=3319 -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Eclispe deploy version check failed but deployed?
The admin console have the new version available but the check in eclipse keep failing. It's somewhat annoying because I have to quit eclipse to stop the check. Uploaded 12 files. Initializing precompilation... Deploying new version. Will check again in 1 seconds. Will check again in 2 seconds. Will check again in 4 seconds. Will check again in 8 seconds. Will check again in 16 seconds. Will check again in 32 seconds. Will check again in 60 seconds. Will check again in 60 seconds. Will check again in 60 seconds. Will check again in 60 seconds. Will check again in 60 seconds. Will check again in 60 seconds. Will check again in 60 seconds. Will check again in 60 seconds. Will check again in 60 seconds. Will check again in 60 seconds. Will check again in 60 seconds. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Datastore Performance Growing Pains
http://googleappengine.blogspot.com/2010/06/datastore-performance-growing-pains.html So until performance has returned to a state we are proud of, and that you are satisfied with, your applications will not be charged for Datastore CPU costs effective on your May 31st bill. When we are convinced we have returned Datastore performance to a level we consider acceptable, we will give you a 7-day notification on this blog before we begin charging again (Note: Your Datastore CPU budget will still control your app’s CPU usage though you will not be charged for the Datastore CPU. So please don’t turn your budget to $0 during this period). -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: AppEngine does not shut down application gracefully
It does not say in docs (yet, maybe an issue should be raised on this) but Google's statement regarding destroy: http://groups.google.com/group/google-appengine-java/browse_thread/thread/e18a454a1479b14a/b011dfa9a17c18c5 On May 27, 8:08 am, dmitrygusev dmitry.gu...@gmail.com wrote: Hi, I wrote a simple servlet to count application instances GAE allocates to serve my application. Here is the code: public class ApplicationInstancesCounterServlet extends HttpServlet { private static MemcacheService memcacheService; @Override public void init() throws ServletException { super.init(); memcacheService = MemcacheServiceFactory.getMemcacheService(); memcacheService.increment(ApplicationInstancesCounterServlet.class.getName( ), 1L, 0L); } @Override public void destroy() { memcacheService.increment(ApplicationInstancesCounterServlet.class.getName( ), -1L, 0L); super.destroy(); } } But what I see after ~12 hours is value 222. Which, I think, number of application starts (new instance created every 3 minutes), but seems the destroy method never called. Can I know somehow that app instance is shutting down? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: AppEngine does not shut down application gracefully
Actually there is an issue already destroy() is never called by the servlet container http://code.google.com/p/googleappengine/issues/detail?id=2164 so just star it to get the docs fixed. On May 27, 8:08 am, dmitrygusev dmitry.gu...@gmail.com wrote: Hi, I wrote a simple servlet to count application instances GAE allocates to serve my application. Here is the code: public class ApplicationInstancesCounterServlet extends HttpServlet { private static MemcacheService memcacheService; @Override public void init() throws ServletException { super.init(); memcacheService = MemcacheServiceFactory.getMemcacheService(); memcacheService.increment(ApplicationInstancesCounterServlet.class.getName( ), 1L, 0L); } @Override public void destroy() { memcacheService.increment(ApplicationInstancesCounterServlet.class.getName( ), -1L, 0L); super.destroy(); } } But what I see after ~12 hours is value 222. Which, I think, number of application starts (new instance created every 3 minutes), but seems the destroy method never called. Can I know somehow that app instance is shutting down? -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] GAE/J 1.3.4 in http://dl.google.com/eclipse/plugin/3.5
Hello, is there any chance 1.3.4 will make it into Eclipse? Thanks. Peter -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] How to hide static file from the user
Hi, After toying with App Engine for a few hours, I've found that in order to hide a static file from the web content path you have to go through the following two steps. First, since App Engine has a special way to serve the static file, you have to add the xml below to appengine-web.xml to exclude it from being treated as static file. static-files exclude path=/**.xhtml / /static-files [from the doc: Many web applications have files that are served directly to the user's browser, such as images, CSS stylesheets, or browser JavaScript code. These are known as static files because they do not change, and can benefit from web servers dedicated just to static content. App Engine serves static files from dedicated servers and caches.] Second, create a filter to stop the web container from serving the file from the web content path. filter filter-namerestrict/filter-name filter-classmyapp.RestrictAccessFilter/filter-class /filter filter-mapping filter-namerestrict/filter-name url-pattern*.xhtml/url-pattern /filter-mapping I'd like to know if there are simpler ways to achieve the same result. (I know files in WEB-INF are always hidden but there are times that it is not that convenient e.g. JSF :-) Peter -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Billed CPU time by far too high
Henning, you must have misunderstood Ikai’s answer :-) You were given discount previously and now you are billed as others ;-) On May 12, 1:58 pm, Henning Dierolf henning2...@hotmail.de wrote: Hi Ikai, it's also possible that you were being *underbilled* previously and that we've corrected billing information. that is quite interesting. Google just can decide that someone is underbilled so he/she has to pay an extra 700% on CPU time. So not everyone has to pay the same for the same good. I think that this is quite ridiculous. Probably it does not make sense to invest in this platform anymore but better develop my software on another cloud service like Amazon. Henning Date: Mon, 10 May 2010 08:40:22 +0200 Subject: Re: [appengine-java] Billed CPU time by far too high From: ika...@google.com To: google-appengine-java@googlegroups.com If you are actually being billed, you'd fill out this form right here:http://code.google.com/appengine/kb/billing.html 1.3 CPU hours is still significantly under the free quota, so this probably wouldn't be an option for you. I'd advise running AppStats to profile where all the additional CPU usage is coming from. This information would be extremely helpful both to you as well as to other developers who may experience the same issues. Without knowing additional information, it's also possible that you were being *underbilled* previously and that we've corrected billing information. On Sun, May 9, 2010 at 10:08 AM, Henning henning2...@hotmail.de wrote: Hello, I posted about this topic already 2 weeks ago. The days after that my website got back to its normal levels of CPU time. But then things got even worse. What can I do now? How can I let the responsible developers at Google let know to fix it. The situation is as follows: I have a cron job that is triggered every minute. It has an average CPU usage of 56(17) according to the dash board. On the black list I cannot see any requests other than my cron job. It is nearly the only thing that needs CPU time. Normally what I got billed everyday was about 0.2 CPU hrs a day. In the meantime it is about 1.3 CPU hrs a day! That is more than 1/5 of the free quota just for this lightweight cron job! Henning -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en. -- Ikai Lan Developer Relations, Google App EngineTwitter:http://twitter.com/ikaiDelicious:http://delicious.com/ikailan Google App Engine links: Blog:http://googleappengine.blogspot.comTwitter:http://twitter.com/app_engine Reddit:http://www.reddit.com/r/appengine -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en. _http://redirect.gimas.net/?n=M1004xjajah2 Über Messenger günstiger telefonieren? Sagen Sie Ja zu JAJAH! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: when session expires in the data store
public class SessionCleanup extends StandardServlet { private static final long serialVersionUID = 7896915936685966869L; private static final Logger logger = Logger.getLogger(SessionCleanup.class.getName()); private Cache cache = null; private static final String EXPIRES = _expires; @Override public void init() throws ServletException { try { final CacheFactory cacheFactory = CacheManager.getInstance().getCacheFactory(); cache = cacheFactory.createCache(Collections.emptyMap()); } catch (final CacheException e) { logger.log(Level.SEVERE, failed to configure cache, e); } } @Override protected void processRequest(final HttpServletRequest request, final HttpServletResponse response) throws ServletException, IOException { final long now = new Date().getTime(); final DatastoreService datastore = DatastoreServiceFactory.getDatastoreService(); final Query query = new Query(_ah_SESSION); // TODO make this a task for (final Entity session : datastore.prepare(query).asIterable(FetchOptions.Builder.withLimit(100))) { Long expires = (Long) session.getProperty(EXPIRES); if (expires now) { final Key key = session.getKey(); datastore.delete(key); final StringBuilder sb = new StringBuilder(Removed session with expiration ).append((new Date(expires)).toString()); if (cache != null) if (cache.containsKey(key.getName())) { cache.remove(key.getName()); sb.append(, also from memcache); } logger.log(Level.INFO, sb.toString()); } } } } On May 8, 8:20 pm, Joe Fawzy joewic...@gmail.com wrote: Hi Peter thanks for your reply and for the link to the other thread it will be great if u posted the code thanks a lot Joe On May 8, 7:50 pm, Peter Ondruska peter.ondru...@gmail.com wrote: expires field is long and can be used as Date.getTime(). Seehttp://groups.google.com/group/google-appengine-java/browse_thread/th... and if you need hint on code for cleaning up expired sessions let me know. I can post the source. On May 8, 3:54 pm, Joe Fawzy joewic...@gmail.com wrote: Hi dear actually the session data cannot be analyzed that easy as it is just a blob of the session with all the web framework things and the expires field is an int so i do not know how this translate to date to delete non expired ones any help thanks Joe On May 8, 3:30 pm, Piotr Tarsa piotr.ta...@gmail.com wrote: I think you should do some cron job. I think keeping expired sessions can be an useful feature. You can dump session to your local disk and analyze them. For example you can log some user actions to sessions and then analyze them offline. 2010/5/8 Joe Fawzy joewic...@gmail.com Hi i have thausands of entries in my ah_SESSION data store table, it dates several days back it does not expire or delete, i think it is non sense to keep all the sessions even that expired in the web container in the data store if it expires , when it expires? and how to trigger that if it does not expires or auto delete? is it a feature? How can i delete them? do i have to do it myself? or appengine have a setting for it? i know i can do it in code .. but What is your experience with it? Joe -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://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
[appengine-java] Re: when session expires in the data store
expires field is long and can be used as Date.getTime(). See http://groups.google.com/group/google-appengine-java/browse_thread/thread/b146bd93c417561c# and if you need hint on code for cleaning up expired sessions let me know. I can post the source. On May 8, 3:54 pm, Joe Fawzy joewic...@gmail.com wrote: Hi dear actually the session data cannot be analyzed that easy as it is just a blob of the session with all the web framework things and the expires field is an int so i do not know how this translate to date to delete non expired ones any help thanks Joe On May 8, 3:30 pm, Piotr Tarsa piotr.ta...@gmail.com wrote: I think you should do some cron job. I think keeping expired sessions can be an useful feature. You can dump session to your local disk and analyze them. For example you can log some user actions to sessions and then analyze them offline. 2010/5/8 Joe Fawzy joewic...@gmail.com Hi i have thausands of entries in my ah_SESSION data store table, it dates several days back it does not expire or delete, i think it is non sense to keep all the sessions even that expired in the web container in the data store if it expires , when it expires? and how to trigger that if it does not expires or auto delete? is it a feature? How can i delete them? do i have to do it myself? or appengine have a setting for it? i know i can do it in code .. but What is your experience with it? Joe -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.comgoogle-appengine-java%2B unsubscr...@googlegroups.com . For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] How to fix missing jars problem?
Folks, I was using App Engine 1.3.2 with Eclipse so far. Today, I decided to use the newer one that is available. I changed the SDK version setting in Preferences--Google--App Engine from 1.3.2 to 1.3.3. After doing this, I now see 3 warnings in my project: The App Engine SDK JAR appengine-api-labs-1.3.3.jar is missing in the WEB-INF/lib directory The App Engine SDK JAR appengine-jsr107cache-1.3.3.jar is missing in the WEB-INF/lib directory The App Engine SDK JAR appengine-api-1.0-sdk-1.3.3.jar is missing in the WEB-INF/lib directory Can someone please tell me how to get rid of these warnings? Thank you in advance for your help. Regards, Peter -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: Skipping files when deploying?
code.google.com/appengine/docs/java/config/appconfig.html On May 2, 5:38 pm, Jaroslav Záruba jaroslav.zar...@gmail.com wrote: When deploying a Python app files can be filtered-out from the deployment process (i.e. not uploaded to GAE), as described here:http://code.google.com/appengine/docs/python/config/appconfig.html#Sk... Is this possible also with Java app? Regards J. Záruba -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group athttp://groups.google.com/group/google-appengine-java?hl=en. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] GAE Blog: Making your app searchable using self merge-joins
http://googleappengine.blogspot.com/2010/04/making-your-app-searchable-using-self.html -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.