[appengine-java] Re: return an empty result from jdo query,any help?

2011-01-20 Thread Ian Marshall
Near the line q.setRange(pageModel.getStartPos()-1, pageModel.getEndPos()); in your findByType(...) method have you tried checking the values pageModel.getStartPos() - 1 and pageModel.getEndPos() just to verify that they hold valid values? You could also try q.setRange(0, 1);

[appengine-java] Re: Struggling w/datastore relationship

2011-01-20 Thread WillSpecht
Just add a Tags list to User and a User list to Tag. This way you can search for Users with a given tag or Tags that has been used by a given user. Its still the same structure you just add another set of lists. If you do this, you will be able to quickly process each query you listed in your

Re: [appengine-java] Re: passing multiple parameters to JDOQL

2011-01-20 Thread Vik
hie any updates on this please? Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Wed, Jan 5, 2011 at 9:58 AM, Vik vik@gmail.com wrote: Hie Thanks.. This worked for me. But how do i print the complete query executed in the logs when this approach is used?

[appengine-java] Re: 620 Error with Google Geocoding service

2011-01-20 Thread culov
This isn't possible in my case because the geocoding is part of the data generation process. On Jan 19, 7:02 pm, Matt Farnell mfarn...@gmail.com wrote: I'd suggest you do the geocoding on the clients browser and pass the results back to your server if you need them. On Wed, Jan 19, 2011

[appengine-java] aggregating tasks and executing them at once? (task queues?)

2011-01-20 Thread Ivan
Hi guys, What is the best way to batch time-non-critical datastore operations? The use case is the following: In my app users can perform certain actions, which result in news items being generated: 0 - 4 per action, depending on the action. Currently I put them immediately to the datastore in a

[appengine-java] Key only query

2011-01-20 Thread Kenny
According to: http://code.google.com/appengine/docs/java/datastore/jdo/queries.html#Queries_on_Keys We are suppose to be able to get Key only query. But according to this: http://groups.google.com/group/google-appengine/browse_thread/thread/c9ef645f0f77a53e Key only result doesn't work. Has

Re: [appengine-java] Key only query

2011-01-20 Thread Stephen Johnson
Yes, it works. I use key only queries a lot. I could help more if you posted the code with the query. On Wed, Jan 19, 2011 at 6:52 AM, Kenny yuyeung...@gmail.com wrote: According to: http://code.google.com/appengine/docs/java/datastore/jdo/queries.html#Queries_on_Keys We are suppose to be

[appengine-java] Re: aggregating tasks and executing them at once? (task queues?)

2011-01-20 Thread Didier Durand
Hi, I don't see how you will save: puts are unitary actions - they can not be optimized like queries for big sets of data. By using a task, you will add the cost of saving / starting / running a task to the cost of your put operation that you will do anyway. In addition, you may even generate

[appengine-java] How to simulate transactional behaviour for two root entites?

2011-01-20 Thread ss.require
I have the next problem: My app has thousands of users. Every user has money that can be represented as the money field in the User entity. If a payable event occurs in the app then I have to make a payment between two users so I need to update money fields for two User entities in a transaction.

[appengine-java] Re: How to simulate transactional behaviour for two root entites?

2011-01-20 Thread Didier Durand
Hi, The usual way is to launch a task included in the 1st transaction for the second update. See http://code.google.com/appengine/docs/java/taskqueue/overview.html#Tasks_Within_Transactions You have the guarantee that the task is enqueued only if the 1st update succeeds. What is not guaranteed

[appengine-java] Re: How to simulate transactional behaviour for two root entites?

2011-01-20 Thread mgenov
You have to use distributed transaction as described in http://blog.notdot.net/2009/9/Distributed-Transactions-on-App-Engine The example is in python, but it can be easily rewritten in java. -- You received this message because you are subscribed to the Google Groups Google App Engine for

[appengine-java] anyone having issues with getServingUrl(blobkey) today?

2011-01-20 Thread Vinny
I keep getting an java.lang.IllegalArgumentException: Unknown error. when trying to use: http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/images/ImagesService.html#getServingUrl(com.google.appengine.api.blobstore.BlobKey) I am feeding getServingUrl() a legitimate

[appengine-java] Re: How to simulate transactional behaviour for two root entites?

2011-01-20 Thread ss.require
First of all, thanks very much for quick and reasonable replys! --What is not guaranteed though is a rollback on the --1st update if the second fails or can't happen But it is guaranteed that the 2nd update can be rolled forward once to infinity or the 1st update can be rolled back(probably via a

Re: [appengine-java] Re: passing multiple parameters to JDOQL

2011-01-20 Thread A. Stevko
re: how do i print the complete query executed in the logs when this approach is used? Simple. Print the query string and then print the parameters. On Thu, Jan 20, 2011 at 6:35 AM, Vik vik@gmail.com wrote: hie any updates on this please? Thankx and Regards Vik Founder

[appengine-java] Re: Struggling w/datastore relationship

2011-01-20 Thread Benjamin Carlson
I just came across this document: http://www.scribd.com/doc/24330945/No-Relation-The-Mixed-Blessings-of-Non-Relational-Databases It helps, but doesn't completely answer my question. It would appear that what I'm wanting to do is an EAV (entities/attributes/values) type relationship, however,

Re: [appengine-java] Re: passing multiple parameters to JDOQL

2011-01-20 Thread Vik
Well That's fine But I would be more interested in logging the exact query fired by engine instead of separately printing individual stuff. The individual printing these elements this way is painful as well in the development process. So, any better way to print the query exactly fired by

[appengine-java] Re: How to simulate transactional behaviour for two root entites?

2011-01-20 Thread Didier Durand
Hi, Your your way of rolling back: yes, second task and infinity for limit and that should do it. My only worry was about the semantics: some operations can't be rolled back as easily as a subtraction if you just made an add. If your calculations are more complex it may some time be hard to roll

[appengine-java] storing utf-16 in the GAE datastore

2011-01-20 Thread Brother
I am receiving UTF-16 characters I must register in the database. Right now, it seems to convert into UTF-8. I am using JPA+annotation Any help appreciated -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send

[appengine-java] Re: Struggling w/datastore relationship

2011-01-20 Thread WillSpecht
So you want to be able to find all URL's saved by a User that have a certain Tag? Or, all the Users that have Tagged Tech to a URL? Or, all the Tags given a URL by a certain User? This can be done with our Model. It's actually what the second part of the video in the link is about. Merge Join

[appengine-java] Hebrew characters are messed up when receiving MimeMessage

2011-01-20 Thread all . ezra . hoch
I have an email handler that does the following: Properties props = new Properties(); Session session = Session.getDefaultInstance(props, null); MimeMessage message = new MimeMessage(session, req.getInputStream()); String content = getContent(message); where getContent is: private String

[google-appengine] High Replication Datastore and transactional get()

2011-01-20 Thread Matija
I think that now I understand why something so simple created so much misunderstanding! Get statement in high replication datastore shouldn't be transactional by default (actually datastore settings should be set to eventual consistency by default) . This is reason why there is some confusion

[google-appengine] Huge amount of database error in the last few hours

2011-01-20 Thread Raymond C.
The status page shows nothing so I have no choice but to ask here... For the last few hours, 15% of the requests end with DeadlineExceededError on db get() or put(). Anyone else having the same database issue? All errors have the below message at the end: A serious problem was encountered

[google-appengine] Re: silent-auction type application

2011-01-20 Thread Richard Arrano
Thanks for the info Nick and Robert; I actually have been using that exact talk to tweak my app and it's been extremely useful. One more thing I wanted to ask: the way I've been structuring the auction type setup is through a Task object that creates a custom class I've built that basically

[google-appengine] Google App Engine suitability for my application

2011-01-20 Thread nunojpg
For academic research I might be sugesting to use google app engine for a NTRIP Caster. A NTRIP caster is a application that receives a data stream over HTTP and allows any connected client, possibly several, to also receive the same stream over HTTP. This means that HTTP connections will

[google-appengine] Error! Put accepted 6 entities but returned 0 keys. (5 actually got updated)

2011-01-20 Thread Ubaldo Huerta
I've been noticing lately a lot of errors like this when trying to update several entities at once via db.put(entities). Here is the full stack trace. There is a strange warning at the bottom regarding exceptions during initialization but I can't find any exception, etc in the logs. I've

Re: [google-appengine] Google App Engine suitability for my application

2011-01-20 Thread Barry Hunter
No I dont think this will work on AppEngine. Firstly if your scripts regually take so long, AppEngine wont scale your application - it likes handlers to respond in less than 800ms or so. But also can't really 'stream' - in general, it works on the CGI model. Your application receives the whole

[google-appengine] Re: Google App Engine suitability for my application

2011-01-20 Thread nunojpg
On Jan 20, 3:13 pm, Barry Hunter barrybhun...@gmail.com wrote: But also can't really 'stream' - in general, it works on the CGI model. Your application receives the whole request as one whole block, and the client receives your output. Ie there is a proxy in front of the application that only

Re: [google-appengine] Re: Google App Engine suitability for my application

2011-01-20 Thread Eli Jones
I don't see why you wouldn't want to give this a try. Nothing wrong with cooking up a prototype. Offline processes can run for 10 minutes, so you have some wiggle room when dealing with importing streams into your app. Maybe you could stream from the Blobstore. There are indications that

[google-appengine] Re: Google App Engine suitability for my application

2011-01-20 Thread nunojpg
On 20 Jan, 15:54, Eli Jones eli.jo...@gmail.com wrote: Offline processes can run for 10 minutes, so you have some wiggle room when dealing with importing streams into your app. I don't see how to use offline processes for anything - I need to be receiving the data all the time, and sending it

[google-appengine] Index stuck in building state

2011-01-20 Thread Michael Bree
We have an index that appears to be stuck in the building state. It has not moved beyond 0 for almost 24 hours. The app name is 'steprep' I wonder if someone at google could check this out for us? Thanks -- You received this message because you are subscribed to the Google Groups Google App

[google-appengine] Re: Set a default deadline for urlfetch?

2011-01-20 Thread Jawon
Perfect - thank you! On Jan 18, 7:54 pm, Nick Johnson (Google) nick.john...@google.com wrote: Hi Jawon, You can do this by using an API call hook, like so: def urlfetch_timeout_hook(service, call, request, response):   if call != 'Fetch':     return   # Make the default deadline 10

[google-appengine] Datastore index with repeating property

2011-01-20 Thread Patrick Conant
I am using GAE 1.4.0 for Java. I have a JDO-annotated java class (Recipe) with a repeating String property (TagID). I have tried to generate a datastore index that would allow me to apply multiple filters to this property so that, for instance, I can find all Recipe instances that have Tag value

[google-appengine] How get link text

2011-01-20 Thread Zeynel
Hello, I am creating a new directory page to list Merchandise. The /dir/ dhp.html page has these links: ul libMerchandise/b/li ul lia href=/dirTshirts/a/li lia href=/dirMugs/a/li lia href=/dirPosters/a/li /ul libArticles/b/li libVideo/b/li /ul /dir is handled by the Directory handler which will

[google-appengine] Re: How to redirect to referring page?

2011-01-20 Thread Zeynel
On Jan 18, 11:27 pm, Nick Johnson (Google) nick.john...@google.com wrote: ... pass the continue URL in to the handler, or have separate URLs based on the origin, or use AJAX ... Thanks. I notice the problems that you mentioned when I test the app. Can you help with some more specific

[google-appengine] [SDK 1.4.1] Django version in app_config.py

2011-01-20 Thread David Mora
Hi, We are in the process or upgrading to SDK 1.4.1, one of the features we were looking for was the django initialization from the app_config.py, per SDK log: Allow Django initialization to be moved to appengine_config.py to avoid Django version conflicts when mixing webapp.template with pure

[google-appengine] Re: How get link text

2011-01-20 Thread Ernesto Karim Oltra
mmm first. Navigators nevers send the text of the link, so you cannot get it anyway. Second, you're using literals instead of variables. This line: items.filter(type =, merchandise_type) must be: items.filter(type =, merchandise_type) There are a great difference between the string

[google-appengine] Re: Huge amount of database error in the last few hours

2011-01-20 Thread Iron Mountain Foundry
+1 On Jan 20, 5:54 am, Raymond C. windz...@gmail.com wrote: The status page shows nothing so I have no choice but to ask here... For the last few hours, 15% of the requests end with DeadlineExceededError on db get() or put().  Anyone else having the same database issue?  All errors have the

[google-appengine] IRC Office hours January 19th, 2011 transcript

2011-01-20 Thread Ikai Lan (Google)
Hey guys, below is the transcript for January 19th, 2011 office hours. I wanted to thank Robert Kluin and Mike Wesner for helping out! -- Ikai Lan Developer Programs Engineer, Google App Engine Blogger: http://googleappengine.blogspot.com Reddit: http://www.reddit.com/r/appengine Twitter:

[google-appengine] Billing and Google checkout with Google Apps account

2011-01-20 Thread PK
I read in the site that Google checkout is only possible with a regular individual Google account. I just migrated my Google Apps domain, among other improvements I now see that it allows many services including Google Checkout. So I am wondering is the stated restriction still in place for even

[google-appengine] Access to *.appspot.com from Israel: Bezeq International

2011-01-20 Thread Ikai Lan (Google)
Hey guys, I know this is an old subject, but I'm bringing it up again because reports are still trickling in that Bezeq International customers are still having issues connection to *.appspot.com. If you are a Bezeq international customer and experience connectivity issues with appspot.com, can

Re: [google-appengine] Re: Google Maps geocoding from GAE Java -- CONSTANT 620 ERRORS

2011-01-20 Thread Jeff Schnitzer
Set up a cheap proxy elsewhere. The smallest rackspace cloud instance is $11/mo. Jeff On Wed, Jan 19, 2011 at 8:19 PM, culov cul...@gmail.com wrote: I've been geocoding from GAE for over a year now and I've only had these issues sporadically, especially after server maintainence.

Re: [google-appengine] Re: silent-auction type application

2011-01-20 Thread Nick Johnson (Google)
Hi Richard, This occurs because the dev_appserver is single-threaded, and so the SDK implementation of the Channel API can't get any data until the task finishes executing. Why do you want to spend time waiting in a task? Why not kick off a new task when you get new data from the user, send the

[google-appengine] related to tal repeat

2011-01-20 Thread smita
I develop web application by using Python,Zope Page Template,googleappengine .I create check box using tal repeat statement that repeat the item contains in list. This list item is given as value of check box. Issue is to give name to checkbox other than list itam. How can I give different name

Re: [google-appengine] Increased Datastore Latency yet the status page is 100% normal

2011-01-20 Thread Robert Kluin
Hi Raymond, You might want to star issue 2378. http://code.google.com/p/googleappengine/issues/detail?id=2378 Robert On Wed, Jan 19, 2011 at 19:13, Raymond C. windz...@gmail.com wrote: AppEngine team notified us the Increased Datastore Latency issue happened on the datastore,

[google-appengine] tasks piling up in my queues since the recent updates

2011-01-20 Thread Risto Haukioja
Hi, I've been running robustly on appengine for the last several months, with a lot of work done by my taskqueue workers. ( tasks are querying data using the twitter apis ) Since the last few days, a lot of my tasks are piling up and staying in the queue for extended time periods. I don't see

Re: [google-appengine] high replication datastore consistency

2011-01-20 Thread Robert Kluin
I agree, the docs really should elaborate on this topic in general. 1) As I understand, it is because the updates within an entity group are strongly consistent, whereas updates across entity groups may not be. When you try to read the data with an ancestor, it will all be read from the same

Re: [google-appengine] Can't use dashboard

2011-01-20 Thread CodeRedSportsAdmin
code-red -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post to this group, send email to google-appengine@googlegroups.com. To unsubscribe from this group, send email to google-appengine+unsubscr...@googlegroups.com. For more options,

Re: [google-appengine] Re: Google App Engine suitability for my application

2011-01-20 Thread Robert Kluin
How will you get the data? Will you fetch it or will it be sent to your app? Either way, the data will not be sent to your code until the connection has completed. So you will not really be able to 'process line by line.' What are your clients? If they are browsers, while you are processing

Re: [google-appengine] Hosting third party software

2011-01-20 Thread Rajkumar Radhakrishnan
Hi, If you are still looking for an alternative custom database software, for use with Google Apps, I welcome you should check out the app I am building over Google App Engine : iFreeTools Creator http://creator.ifreetools.com. Some sample walk-through posts for building custom database apps