Re: [appengine-java] Initialize local datastore exception

2010-04-06 Thread Wayne Fay
»»» EXCEPTION ««« Exception in thread main java.lang.NullPointerException: No API environment is registered for this thread. This generally means you haven't set things up properly. Follow the directions: http://code.google.com/appengine/docs/java/tools/localunittesting.html Wayne -- You

[appengine-java] Re: Best way to perform search on DataStore - Design Question

2010-04-06 Thread Toby
Hello, I am wondering if text search is actually on the official road map and if so when it will be available. If not, would it make sense to start a google code project to do our own implementation? I am thinking of something simple and light without the need of lots of jar. I think it is quite

Re: [appengine-java] Re: Best way to perform search on DataStore - Design Question

2010-04-06 Thread John Patterson
Yes full text search is on the road map. It can't be far away because some of the implementation has already slipped into the current release. See the protected method Query.setFullTextSearch() On 6 Apr 2010, at 16:04, Toby wrote: Hello, I am wondering if text search is actually on the

[appengine-java] Re: JAXB Support

2010-04-06 Thread Brian
I've been working with the tutorial mentioned above and it runs fine in my local environment, but when I deploy to GAE JAXB is throwing the exception detailed above. I'm baffled as to why this is running locally but failing on GAE. I though the local environment was supposed to replicate the

[appengine-java] Issue with google plugin for eclipse

2010-04-06 Thread joradom
The plugin doesn't allow me to create a new Servlet, when calling the create servlet wizard the project field appears greyed and empty. I can create a class, or any file, but of course, much more things to write are needed. just curious to know if it's a normal behaviour or some bug? I'm using

[appengine-java] How can I place JSession into cookie. Google app engine.

2010-04-06 Thread Alexander Rodnin
Сould you please tell me how to place the session identifier into the cookie, if  you are working with google app engine. 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

[appengine-java] Eclipse

2010-04-06 Thread 1900's
eclipse.buildId=unknown java.version=1.6.0_18 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=zh_CN Command-line arguments: -os win32 -ws win32 -arch x86 Error Tue Apr 06 14:38:47 CST 2010 Unable to update app: Failed to compile the generated JSP java

[appengine-java] Adding Task-Queue Tasks in Batch?

2010-04-06 Thread Seth Ladd
Aloha, The docs for the Java implementation of the Task Queue mentions this: maximum number of tasks that can be added in a batch - 100 However, I can't find any reference to adding tasks in a batch. What does the above mean, and where can I find more information about it? I'd like to be able

[appengine-java] Re: Adding Task-Queue Tasks in Batch?

2010-04-06 Thread Keith
From http://code.google.com/appengine/docs/java/javadoc/com/google/appengine/api/labs/taskqueue/Queue.html add(java.lang.IterableTaskOptions taskOptions) Submits tasks to this queue. On Apr 6, 9:54 am, Seth Ladd sethl...@gmail.com wrote: Aloha, The docs for the Java implementation

[appengine-java] Funny behavior with memcache.increment() below zero

2010-04-06 Thread Nacho Coloma
Hi all, I am trying to use memcache.increment to move to negative values, starting at 0. According to the javadoc[1]: To facilitate use as an atomic countdown, incrementing by a negative value (i.e. decrementing) will not go below zero: incrementing 2 by -5 will return 0, not -3. However, due to

Re: [appengine-java] JDO Relationship Performance Problems - what am I doing wrong?

2010-04-06 Thread Ikai L (Google)
For speed, you'll get the most gains if you denormalize when possible - yes, the relational purists are going to riot, but you don't have many of the benefits of normalization anyway such as foreign key constraints or native joins. If that isn't an option - and I really do recommend looking into

Re: [appengine-java] uncaught exception from servlet

2010-04-06 Thread Ikai L (Google)
Can you post your project somewhere? On Mon, Apr 5, 2010 at 8:07 PM, Jeevan jeevan.don...@gmail.com wrote: Am developing an app for ma college called cloud based teaching system and am making use of blogger data api. Am getting an severe error in the appengine Logs called uncaught

Re: [appengine-java] Issue with google plugin for eclipse

2010-04-06 Thread Ikai L (Google)
What kind of project have you created? This looks like the issue filed here: http://code.google.com/p/googleappengine/issues/detail?id=2306 http://code.google.com/p/googleappengine/issues/detail?id=2306You'll have to provide more detail, though. How are you creating the project? On Tue, Apr 6,

[appengine-java] changes regarding 1000-result query limit

2010-04-06 Thread AJ
hi, Does the 1000-query result limit still hold for an individual query? (I know that the use of query cursors now allows 1000 results total to be fetched). Comments such as this:

Re: [appengine-java] How can I place JSession into cookie. Google app engine.

2010-04-06 Thread Ikai L (Google)
This seems redundant, even outside of App Engine. You wouldn't want to place a JSessionId into a cookie, since that is identified *by* a cookie. Likely what you are looking for is servlet session support. App Engine supports this, albeit with gotchas:

Re: [appengine-java] Funny behavior with memcache.increment() below zero

2010-04-06 Thread Ikai L (Google)
I'm looking at the standard memcached documentation: http://github.com/memcached/memcached/blob/master/doc/protocol.txt http://github.com/memcached/memcached/blob/master/doc/protocol.txtNote that underflow in the decr command is caught: if a client tries to decrease the value below 0, the new

Re: [appengine-java] Re: JAXB Support

2010-04-06 Thread Toby Reyelts
It looks like you're bundling the latest 2.2 JAXB RI. Apparently they made a change in that release which requires access to the protected method, ClassLoader.findLoadedClass. This makes it incompatible with App Engine. If you can use the previous release (2.1.2), a built-in version of JAXB, or

[appengine-java] List of sub entities does not obay list order

2010-04-06 Thread Gunnar
Hi, I need to have a one to many owned relationship and be able to reorder the list. The list is stored in the data store with new elements at the end although I add the sub entity first in the ArrayList. Any suggestions? This is the result from my test servlet. deleted all objects persisted

[appengine-java] Re: Funny behavior with memcache.increment() below zero

2010-04-06 Thread Nacho Coloma
Ok, thanks. I'm moving values to start at 10^8 instead of zero, and it seems to work fine. On Apr 6, 7:18 pm, Ikai L (Google) ika...@google.com wrote: I'm looking at the standard memcached documentation: http://github.com/memcached/memcached/blob/master/doc/protocol.txt

Re: [appengine-java] Re: Database cursor for back cursor?

2010-04-06 Thread Ikai L (Google)
Offset doesn't fetch data - it does an index scan. Going to the 10,000th result using offset will require us to pass 10,000 results first in our index, but we won't be retrieving those objects. Here's a bit of a simplification of indexes, entities and how these queries work. As you know, Bigtable

Re: [appengine-java] Re: Database cursor for back cursor?

2010-04-06 Thread Ikai L (Google)
We get a list of Keys back and figure out keys. I just realized how confusing this is - we get a list of INDEX keys back. These don't have any value; we do all storage inside the Key. We extract the keys of the Entity from the returned Index keys and do a query. On Tue, Apr 6, 2010 at 11:42 AM,

Re: [appengine-java] is createFederatedLoginURL() working?

2010-04-06 Thread Viðar Svansson
Hi I just noticed createFederatedLoginURL() but could not find any documentation for it (except for JavaDoc). Is this intended for native support for Google Marketplace? Would really appreciate some documentation on this. I am trying this out in 1.3.2 but get an error, The API package 'user' or

[appengine-java] Re: URLFetch to localhost counts as out/inbound traffic?

2010-04-06 Thread Arny
Anyone did some testing whether it's increasing the in/outbound traffic? On Apr 5, 3:55 pm, Arny arny...@googlemail.com wrote: Hi, are the URLFetches to localhost count as in/outbound traffic? Regards -- You received this message because you are subscribed to the Google Groups Google App

[appengine-java] Re: Initialize local datastore exception

2010-04-06 Thread antcasq
I know I haven't setup properly. But I don't want to do unit testing either. I would like some sample configuration file or steps in order to access the datastore outside the development server. What I have in mind is more like a batch file/operation :) Regards António Casqueiro On Apr 6, 5:00 

[appengine-java] Re: JDO Relationship Performance Problems - what am I doing wrong?

2010-04-06 Thread Matt Hall
Thanks for the response, could you point me to somewhere where I can read about batched queries by key in JDO? Or do I need to go to the low level API for that? I think the conclusion I'm coming to here is 1) I shouldn't have made the detail for each order as a separate object, (although this has

Re: [appengine-java] elegant way of implementing sequence generator

2010-04-06 Thread Ikai L (Google)
Memcache data is never persisted to disk, so in the event of a Memcache server restart, you will lose all the data in Memcache. In addition, Memcache evicts items based on an LRU cache: if you don't use data for a while and space is needed, the item will be removed from your cache to allow for

[appengine-java] Re: JDO Relationship Performance Problems - what am I doing wrong?

2010-04-06 Thread Steve Pritchard
Before proposing a solution, what is your expected active user base. 1000's or 1,000,000s or something in between. Steve On Apr 6, 3:50 pm, Matt Hall matt.h...@gmail.com wrote: Thanks for the response, could you point me to somewhere where I can read about batched queries by key in JDO? Or do I

Re: [appengine-java] Blogger API

2010-04-06 Thread Ikai L (Google)
You'll want to read the GData docs here: http://code.google.com/apis/blogger/docs/2.0/developers_guide.html Here are the Java specific docs: http://code.google.com/apis/blogger/docs/2.0/developers_guide_java.html On Mon, Apr 5, 2010 at 3:04 AM, Jeevan jeevan.don...@gmail.com wrote: hello am

Re: [appengine-java] appcfg.sh update keeping asking for email/password

2010-04-06 Thread Ikai L (Google)
Are you still having this issue? Does it give you an error trace? On Sun, Apr 4, 2010 at 1:17 PM, Bendanpa benda...@gmail.com wrote: I am very sure that I gave correct email/password. Anybody have the same issue? Thanks, Bendanpa -- You received this message because you are subscribed to

[appengine-java] Re: Trying a clean compile gives The parameter is incorrect

2010-04-06 Thread John V Denley
Thanks to the guys on the GWT forum for helping me solve this problem. It did turn out to be a classpath problem and there follows an explanation of the steps I took to discover the issue and how I solved it: To find out the classpath used: In Eclipse select Debug view by going to Window|Open

Re: [appengine-java] JPA: Query contains stale data (bug or future)?

2010-04-06 Thread Ikai L (Google)
It looks like you are changing the elements of the List themselves and not the List. You'll have to mark the object as dirty:

Re: [appengine-java] Re: JDO Relationship Performance Problems - what am I doing wrong?

2010-04-06 Thread Jeff Schnitzer
The most important number in my mind is the number of line items in an order. If you're seeing 20s+ queries, it must be a pretty large number. Objectify (and Twig) support queryable collections of embedded objects, so you can put all the line items in a single order object. There are some

[appengine-java] A catch-all servlet?

2010-04-06 Thread Mark
Hi, I'm using GWT and GAE. I want to serve my project's one and only jsp file no matter what url is entered by the user in their browser. So the web.xml file looks like this: welcome-file-list welcome-fileUserMaps.jsp/welcome-file /welcome-file-list servlet

[google-appengine] How can I combine Eclipse and Dreamweaver?

2010-04-06 Thread windows
I am not familiar with code. How can I import the files I build to Eclipse? -- 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-appeng...@googlegroups.com. To unsubscribe from this group, send email to

[google-appengine] How many taks can be created within one request?

2010-04-06 Thread conman
How long does it take to create task? In the docs it is suggested to create one task for each email to send out (in case of the mass email scenario). So if I have a list with 10.000 subscribers and I want to inform them all, then I would have to create 10.000 tasks. But how many taks can be

Re: [google-appengine] number of models limit?

2010-04-06 Thread Nick Johnson (Google)
Hi Alkis, 2010/4/5 Alkis Evlogimenos ('Αλκης Ευλογημένος) evlogime...@gmail.com Is there a limit in the number of model kinds per application? I am considering a design where the number of models is going to be in the order of 500k. I understand the model viewer in the admin console will be

Re: [google-appengine] Incoming email being bounced

2010-04-06 Thread Nick Johnson (Google)
Hi, App Engine does not apply spam filtering on incoming email. Have you checked the logs on your App Engine app? It's likely your app is returning a non-200 status code, resulting in the email being rejected. -Nick Johnson On Sun, Apr 4, 2010 at 11:53 PM, ccjensen

Re: [google-appengine] The global conservation law bug

2010-04-06 Thread Nick Johnson (Google)
Hi Dexter, Lack of global transactions is not a bug, but rather a consequence of having a distributed datastore. While it's possible to introduce them, it imposes a large additional overhead, which most users don't want. For details on one way to implement extended transactions on App Engine,

[google-appengine] Re: Incoming email being bounced

2010-04-06 Thread ccjensen
yea, you are right. It's full of exceptions: 'ascii' codec can't encode character u'\xe6' in position 2: ordinal not in range(128) Thanks for pointing me in the right direction. I feel a bit silly for not checking the logs :) On Apr 6, 11:54 am, Nick Johnson (Google) nick.john...@google.com

[google-appengine] Application Limit

2010-04-06 Thread Benjamin Hutchins
I've done a few searches and found that this group is the only place that mentions the Application Limit of 10 applications assigned to your account when first using Google App Engine. I have just reached that limit after making various projects and want to find a way to increase it, a few of my

[google-appengine] User Authentication

2010-04-06 Thread Hans-Jürgen Schumacher
Hello, As far as I understood all the user of an apps must have a GoogleMail- Account. This would be ok but I want to limit the user of a apps to a certain usergroup. I cant buy a google apps domain for this purpose so the only chance to try the appengine could be if there is any possibility to

[google-appengine] Datastore Advice

2010-04-06 Thread timwhunt
Hi, I'm having trouble deciding the best way to use the datastore for a new app, so I am hoping I can get some advice. I'm trying to decide the best way to keep my app fast and scalable. You can think of it as an RSS reader. I'm trying to find a good way of keeping track of what articles each

[google-appengine] Stuck Index?

2010-04-06 Thread gadget lab
Hi I have been trying to set up the blog based on bloog (bloog.billkatz.com) The when I run this locally on my own machine it works as you would hope/ expect. However when uploaded to the GAE the indexes remain in the state building and have remained as such for about 24hrs now. I have tried

[google-appengine] Re: User Authentication

2010-04-06 Thread johnwlockwood
While anyone could authenticate on your site, you could have a list of email addresses of the people authorized to access your site, and in your view handler, check them against the list and if they are not on it, redirect them away to a 'not authorized page'. -John On Apr 6, 3:58 am,

Re: [google-appengine] Datastore Advice

2010-04-06 Thread Nick Johnson (Google)
Hi Tim, I would suggest dividing articles into three categories (for each user): 1) Unread articles 2) Read articles 3) 'Unseen' articles. The first two can be implemented by means of a 'UserArticle' entity that represents the read/unread status of an article. I would suggest making them child

[google-appengine] Re: Datastore Advice

2010-04-06 Thread timwhunt
Thanks Nick!! So to make sure I understand: In the last step of your process for getting a list of unread articles, I'd first get the 'UserArticle' entities marked as Unread, and I'm assuming each UserArticle entity would contain the key for the actual article entity. So I'd get the Unread

Re: [google-appengine] How many taks can be created within one request?

2010-04-06 Thread Ikai L (Google)
Have you run AppStats yet? It shouldn't take too long, but tasks do have to be stored somewhere, so there is a cost. The optimal solution is likely a hierarchical tree of task creation (1000s, then 100s, then 10s). On Tue, Apr 6, 2010 at 2:01 AM, conman constantin.christm...@googlemail.com

Re: [google-appengine] number of models limit?

2010-04-06 Thread Ikai L (Google)
I also recommend against doing this. With this many Entity kinds, don't use Entity kind as metadata. Store that in a field, and you'll save yourself a lot of headaches. 2010/4/6 Nick Johnson (Google) nick.john...@google.com Hi Alkis, 2010/4/5 Alkis Evlogimenos ('Αλκης Ευλογημένος)

Re: [google-appengine] Application Limit

2010-04-06 Thread Ikai L (Google)
Yes, please fill out the billing support form: http://code.google.com/support/bin/request.py?contact_type=AppEngineBillingSupport You'll have to justify the increase, though. On Tue, Apr 6, 2010 at 6:34 AM, Benjamin Hutchins m...@benhutchins.comwrote: I've done a few searches and found that

Re: [google-appengine] The global conservation law bug

2010-04-06 Thread Ikai L (Google)
To add on to Nick's note: global, distributed transactions are very expensive to do for all your writes. Even in the case of Slim3, the overhead is a multiplier on a write - you'll want to be very careful where you use this. If you use it on an operation that's frequent, you'll be paying a huge

[google-appengine] Re: How many taks can be created within one request?

2010-04-06 Thread conman
Hi Ikai, thanks for your reply. I will look into AppStats for performance measurement. Regarding the optimal solution you suggested I must say that it seems to make the application code verry hard to understand and maintain. I would really like google to drop the timeout restriction for running

Re: [google-appengine] Stuck Index

2010-04-06 Thread Ikai L (Google)
I've nudged these to error. Go ahead and run vacuum_indexes on these. On Fri, Apr 2, 2010 at 10:59 AM, halv0112 halv0...@gmail.com wrote: My app (beneighbor-ly) has a stuck index. How long is typical to wait for an index to build? It has been a few hours now. Thanks! -- You received

Re: [google-appengine] Stuck Index?

2010-04-06 Thread Ikai L (Google)
I'm assuming the app id is gadgetlabsblog (there was a typo in your email). I've placed these into error. Go ahead and run vacuum. On Tue, Apr 6, 2010 at 2:53 AM, gadget lab gadgetlabsad...@googlemail.comwrote: Hi I have been trying to set up the blog based on bloog (bloog.billkatz.com)

Re: [google-appengine] Stuck Index?

2010-04-06 Thread Ikai L (Google)
What's your application ID? On Wed, Mar 31, 2010 at 6:06 PM, Patrick Twohig patr...@namazustudios.comwrote: I have an index that appears to be stuck, how do I unstick it? -- Patrick H. Twohig. Namazu Studios P.O. Box 34161 San Diego, CA 92163-4161 -- You received this message because

Re: [google-appengine] Please Delete Index that I can't delete

2010-04-06 Thread Ikai L (Google)
I've moved this index to error .Go ahead and run vacuum_indexes on it. On Fri, Apr 2, 2010 at 5:42 PM, Monden ams.tran...@gmail.com wrote: Hi. I am a Japanese developer. I have been trying to delete indexes, but I am not succeeding. Perhaps, because of Building status not finish. Please

Re: [google-appengine] Re: How many taks can be created within one request?

2010-04-06 Thread Ikai L (Google)
It looks like we limit the number of tasks created to 100 anyway. As far as dropping the timeout, more likely than not, we'll push developers towards thinking in terms of MapReduce when we release that, as it'll allow better throughput (and it allows us to take advantage of existing

Re: [google-appengine] number of models limit?

2010-04-06 Thread 'Αλκης Ευλογημένος
I want to build a popularity metric on a tree of entities. Say my popularity model looks like this: class Popularity(db.Model): hourly = db.FloatProperty() daily = db.FloatProperty() weekly = db.FloatProperty() monthly = db.FloatProperty() yearly = db.FloatProperty() Now say I want to

Re: [google-appengine] number of models limit?

2010-04-06 Thread Ikai L (Google)
Well, I'm glad you've done your homework. Have you gone through our datastore article series yet? http://code.google.com/appengine/articles/datastore/overview.html http://code.google.com/appengine/articles/datastore/overview.htmlLet us know how this approach works for you. Could be a very

Re: [google-appengine] number of models limit?

2010-04-06 Thread 'Αλκης Ευλογημένος
I forgot to mention the most efficient solution: GAE team provides a way to have composite indexes on unindexed properties. This way the problem is solved quite elegantly: Popularity.all(keys_only=True).order('-hourly').ancestor(db.Key.from_path('_DoesNotMatter', 'eu/Sweden')).fetch(N) For

Re: [google-appengine] Re: What's the fastest way to get the 1st and last item from a result?

2010-04-06 Thread Wesley C (Google)
agreeing with ryan here that you'll need to do a pair of questions, regardless of whether you do it via a Query or GqlQuery. however, a better question would be: what are you trying to do, and why do you need the first and last keys? non-relational datastores are generally not geared up for doing

Re: [google-appengine] Cannot Deploy or Delete Application

2010-04-06 Thread Ikai L (Google)
It looks like you have been able to deploy the application. We had an issue earlier that prevented users from deploying, but this should have been resolved. Can you let us know if you continue to have difficulties? On Wed, Mar 31, 2010 at 8:18 PM, atjs a...@andrewlabs.com wrote: I can't deploy

Re: [google-appengine] Re: unable to delete versions of App

2010-04-06 Thread Ikai L (Google)
I've filed a bug with the production team. They'll get around to it when they do a sweep of these ghost versions. You can have up to 100 versions, so these should not block you from continuing to develop. On Thu, Apr 1, 2010 at 8:04 AM, mandar khadilk mkhad...@gmail.com wrote: apptadd On Mar

Re: [google-appengine] google data api

2010-04-06 Thread Ikai L (Google)
Are you using the GData client library? You'll want to include this in your classpath. Check out this guide here: http://www.wikihow.com/Add-JARs-to-Project-Build-Paths-in-Eclipse-(Java) On Tue, Mar 30, 2010 at 2:17 AM, Jeevan jeevan.don...@gmail.com wrote: hello am working on a project

Re: [google-appengine] Error 401: --- begin server output --- Must authenticate first. When deploying the app.

2010-04-06 Thread Ikai L (Google)
Can you give this a try with Python 2.5.x? I've heard reports of deploy issues with 2.6. On Sun, Apr 4, 2010 at 8:26 AM, codes47 code...@gmail.com wrote: I m using windows-XP (SP2). I Installed Django-1.1,python2.6 and google appengine... I make a simple App on django named as vichintan. I

Re: [google-appengine] distribution and users

2010-04-06 Thread Ikai L (Google)
1. That's if you want users to authenticate. You could also use OpenID, Facebook Connect, or anything to auth users. We don't force users to use Google Accounts to authenticate. We just make it really easy to do so. 2. Data is stored per app. Your application is responsible for partitioning per

Re: [google-appengine] Recurring javascript errors

2010-04-06 Thread Ikai L (Google)
Are you trying to make AJAX calls to a different domain? Really strange that Doubleclick would try to access a parent frame. On Mon, Mar 29, 2010 at 2:42 PM, pythono arjun.va...@gmail.com wrote: Hey there, I keep getting the following javascript error messages (in the Chrome javascript

Re: [google-appengine] When using frames, authentication does not happen....

2010-04-06 Thread Ikai L (Google)
Can you link us to the page where this is happening? I'm not quite clear about what it is you're describing. On Tue, Mar 30, 2010 at 8:39 PM, sri srira...@gmail.com wrote: Hi, I am using frames in my html. On left hand, I have signout (I use google's signout servlet). On the right side is

Re: [google-appengine] Re: What's the fastest way to get the 1st and last item from a result?

2010-04-06 Thread José Moreira
Hi i posed the question to optimize this tool i was working on http://github.com/matrixownsyou/MultiTaskBob it works by serially segmenting records in buckets of X records, by the keys: segemnt1, startkey1, endkey2 segemnt2, startkey3, endkey4 this should be fast since it only selects

Re: [google-appengine] Re: What's the fastest way to get the 1st and last item from a result?

2010-04-06 Thread José Moreira
btw the datastore in wich i was ask to do a ask and for which i developed the tool, i was told it holded million records initially but it had 45 million after all, so the meta refresh trick didnt hold here. my colleague ended up not using the tool :/ No dia 6 de Abril de 2010 23:41, José

[google-appengine] AppEngine Query from your browser

2010-04-06 Thread dhruvbird
Hello all, I was just trying out some stuff and managed to get data store query working from javascript on the browser. http://gaequery.appspot.com/ So, I made an appspot app. for demonstrating that. You can now write applications entirely in Javascript(with custom server side code for auth.