[appengine-java] Re: No API environment is registered for this thread

2010-11-10 Thread Didier Durand
Hi Eyal, Good to know that some GData calls to Analytics may last longer than the App Engine limit. Keep us posted! didier On Nov 10, 9:57 am, Eyal twoworldsf...@gmail.com wrote: Apparently there are some real issues with App Engine and Analytics with this timeout error. Check Nick's post

[appengine-java] Re: No API environment is registered for this thread

2010-11-10 Thread Eyal
Apparently there are some real issues with App Engine and Analytics with this timeout error. Check Nick's post in: http://groups.google.com/group/google-analytics-data-export-api/browse_thread/thread/3f9956a25d718b59 btw., I compiled and run the demo application but the timeout still exists.

[appengine-java] How to write a JPA unit test for GAE?

2010-11-10 Thread lp
hi all, i have been attempting to convert my existing JPA code over to GAE. All is working so far except for the unit tests. i read code.google.com/appengine/docs/java/tools/localunittesting.html but it doesnt describe how to get an entityManager involved in usefull unit tests. so this is my

[appengine-java] Re: How to write a JPA unit test for GAE?

2010-11-10 Thread Didier Durand
Hi, Entities that you persist in the datastore are grouped in so called entity groups for reason of scalability and transactionality That means that the ds groups your entities on various data servers according to their keys: this mechanism is not transparent - it generates the exception that

[appengine-java] Re: why Google Instant Previews works with ajax? .. and still they dont crawl ajax sites?

2010-11-10 Thread timwhunt
Actually, it's pretty understandable that these two things are different. The process is related, but different enough that it's reasonable they handle it differently. The instant preview loads the page in a browser (perhaps a specially modified browser embedded in another application), and then

[appengine-java] Re: mapreduce - passing filters

2010-11-10 Thread Nacho Coloma
Is there any option to contribute to this project? I am using hacks to do the filtering, and it seems easy to implement. I would love to discuss things first, but appengine-mapreduce seems like a read-only project to me. It's fine but I would like to help it move forward. On Nov 8, 10:11 pm,

[appengine-java] JDO: Reorder owned list relationship

2010-11-10 Thread Tobias
Hello, I am trying to use a JDO based model in conjunction with GWT's new RequestFactoryServlet. My (example) application edits Recipes, a Recipe owns a list of Ingredients: @PersistenceCapable(identityType = IdentityType.APPLICATION, detachable = true) class Recipe { [...] @Persistent

[appengine-java] Re: Only have 3/10 apps but cannot add another!

2010-11-10 Thread SimonH
SOLVED I reported the issue on the SMS issues form got an auto-reply saying my account has been activated. All seems to work fine now! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to

Re: [appengine-java] Re: mapreduce - passing filters

2010-11-10 Thread Maxim Veksler
Don't think Google would mind if you submit a patch, you have the source code under SVN available from here http://code.google.com/p/appengine-mapreduce/source/browse/ On Wed, Nov 10, 2010 at 6:08 PM, Nacho Coloma icol...@gmail.com wrote: Is there any option to contribute to this project? I am

[appengine-java] Re: Initializing DataStore with minimal required values

2010-11-10 Thread Starman
I created a datastore manipulation service that can execute, using the task queue service, pieces of code found in 'plugins'. I have plugins for the initial sourcing and some others to create test and demo data. I favor this approach over the bulk uploader as you need to also prepare for the task

[appengine-java] Auto generating datastore-indexes.xml during unit tests

2010-11-10 Thread gholler
Is it possible to auto-generate the datastore-indexes.xml while running JUnit tests that use the LocalServiceTestHelper (with LocalDatastoreServiceTestConfig)? It seems like it would be great to have the file automatically generated and then deployed with maven. Unfortunately I don't see the file

[appengine-java] Re: How to write a JPA unit test for GAE?

2010-11-10 Thread lp
thanks for the detailed response didier. the layout of the entities is fine, as transactions are not used in the application itself, but as a artefact for unit testing. i only placed the unit tests into a transaction for the purposes of flushing the to entityManager. since txn dont work for

[appengine-java] Re: GAE or EC2

2010-11-10 Thread jacek.ambroziak
Ikai, I do not think you really addressed JY's pain, which I also share. Some of us have invested a lot of time and energy into building GAE-based services. We would like to move to production stage but frequent denials of service make our applications look bad to customers. Also, for what I am

[appengine-java] Re: Auto generating datastore-indexes.xml during unit tests

2010-11-10 Thread Didier Durand
Hi George, Did you follow the instructions of http://code.google.com/appengine/docs/java/config/indexconfig.html#Using_Automatic_Index_Configuration ? That should be the answer to your question regards didier On Nov 10, 8:26 pm, gholler georgehol...@gmail.com wrote: Is it possible to

[appengine-java] Re: How to write a JPA unit test for GAE?

2010-11-10 Thread Didier Durand
Hi, Instead of flushing, did you try a PersistenceManager.close() that should lead to the same effect ? After the close, you get a new pm via the PMF and that should do it. regards didier On Nov 10, 10:57 pm, lp lucio.picc...@gmail.com wrote: thanks for the detailed response didier. the

[appengine-java] Re: How to write a JPA unit test for GAE?

2010-11-10 Thread lp
Instead of flushing, did you try a PersistenceManager.close() that should lead to the same effect ? After the close, you get a new pm via the PMF and that should do it. i dunno if i can do that so easily as the entityManager is injected by spring. i have a very very very simple example that

[appengine-java] Queue/Task service: different behavior between Dev and GAE

2010-11-10 Thread Didier Durand
Hi, The queue service as use in junit test below behaves differently between Dev and Prod on Gaej: the exception message is slightly different. On gaej, the message doesn't give the queue name used but Unknown: see if/then/code. It's less precise so harder for debugging on production. I would

[appengine-java] Re: Queue/Task service: different behavior between Dev and GAE

2010-11-10 Thread Didier Durand
Forgot source code: here it is @Test public void testInvalidQueue() { Queue queue = QueueFactory.getQueue(foo); try { queue.add(); fail(); } catch (IllegalStateException e) {

[appengine-java] Session GAE

2010-11-10 Thread idnoob
Hi all! Session enable in eclipse but error happen in GAE. I know that GAE has session disable, how to enable session with GAE? Many thanks! :) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group, send email to

Re: [google-appengine] Re: Index problem with GAE for Java

2010-11-10 Thread Jeff Schwartz
Sorry, I didn't realize at first that you were using jdo and so you are correct, jdo will require package names for the pojo entity. However, you might want to rethink using that particular geomodel implementation if it requires jdo and select one that allows you more flexibility in you

[google-appengine] Re: RequestTooLargeError

2010-11-10 Thread mattbeedle
Ok, I see, I thought that fetch was just a straight forward HTTP POST, but now looking at the documentation I see that is part of the appengine python API (I'm not a python programmer). Thanks for the email limits link. So, that's the first part of my question answered, I definitely now

[google-appengine] Re: Problems pointing my GoDaddy domain to App Engine (no other posts have been able to help!)

2010-11-10 Thread dar
You do not need to transfer the domain to google apps. However, it sounds like you have not configured appengine to know about the cname you created at godaddy. Have you followed the instructions at this link? http://code.google.com/appengine/docs/domain.html On Nov 9, 8:45 pm, Kevin M

[google-appengine] Working with Query results

2010-11-10 Thread Zeynel
Can someone help me understand how to access the results of a query? This is my model: class Rep(db.Model): mAUTHOR = db.UserProperty(auto_current_user=True) mUNIQUE = db.StringProperty() mCOUNT = db.IntegerProperty() mDATE = db.DateTimeProperty(auto_now=True) mDATE0 =

Re: [google-appengine] Working with Query results

2010-11-10 Thread Wim den Ouden
Hi Zeynel, I don't use templates but as a guess i think you use result.mCOUNT To sort you can read the result in a list and sort on this or maybe the template engine has a solution for this. gr wim On Wed, Nov 10, 2010 at 2:56 PM, Zeynel azeyn...@gmail.com wrote: Can someone help me understand

[google-appengine] Re: Working with Query results

2010-11-10 Thread Zeynel
On Nov 10, 9:11 am, Wim den Ouden wdenou...@gmail.com wrote: I don't use templates but as a guess i think you use result.mCOUNT Ok. So I try something like this: for result in RESULTS: WEIGHT = (datetime.datetime.result.mDATE.toordinal()) * result.mCOUNT but I get this error: WEIGHT =

Re: [google-appengine] Re: Working with Query results

2010-11-10 Thread Wim den Ouden
result is not part of datetime.datetime, use ( (datetime.datetime(result.mDATE.toordinal()) * result.mCOUNT) On Wed, Nov 10, 2010 at 3:38 PM, Zeynel azeyn...@gmail.com wrote: On Nov 10, 9:11 am, Wim den Ouden wdenou...@gmail.com wrote: I don't use templates but as a guess i think you use

[google-appengine] GqlQuery problem (WHERE NOT)

2010-11-10 Thread Elias
Hi, I want to find all employees from a company where the telephone number is NOT empty. Now I have this: db.GqlQuery(SELECT * FROM Employee WHERE company = :company AND phone :nophone, company=company, nophone=None) But this always prints out empty results although there are items with

[google-appengine] Re: GqlQuery problem (WHERE NOT)

2010-11-10 Thread Tim Hoffman
Unless you have specifically stored None as a value in the phone field you won't be able to do this. You can only find values in the index. You can't find things that have no value. If you phone field is a string you could find = 'a' or ' '. Something that starts alphabetically before all

[google-appengine] Re: RequestTooLargeError

2010-11-10 Thread Tim Hoffman
Hi urllib/2 and everything else (httplib) etc.. all sit on top of urlfetch. You have to work within the confines of urlfetch. Rgds T On Nov 10, 9:30 pm, mattbeedle mattbee...@googlemail.com wrote: Ok, I see, I thought that fetch was just a straight forward HTTP POST, but now looking at the

[google-appengine] Re: RequestTooLargeError

2010-11-10 Thread mattbeedle
ok, thanks for you response, but I do not know python and I really could do with a little help here. I think we have established that fetch will not work for me, thank you. It would be really great then if someone could suggest to me a different way of solving this issue. I just want to get the

Re: [google-appengine] Re: deploy failures

2010-11-10 Thread Martin Ceperley
Don't know if this has anything to do with your problems, but my (python) deployments began failing recently because my error_handlers: page directive, defined in app.yaml, was pointing to an error page in a subdirectory. When I moved it up to the top-level directory it worked. Filed a bug

[google-appengine] Hiring Python GAE Developer in NYC

2010-11-10 Thread Ted Roden
Hello Everybody, I'll keep this short since I know it doesn't apply to everybody. I run a company based in NYC and we're looking to hire Google App Engine developers (using python). If you or someone you know may be a good fit, please hit me up. A better description of who were are, what we do,

[google-appengine] Re: deploy failures

2010-11-10 Thread Stream18
Exactly the same problem for me since yesterday. I'm using both eclipse plugin and appcfg. On Nov 9, 2:22 pm, Alexandru Farcaş alex.far...@expert-group.biz wrote: I also receive this error : SEVERE: Received IOException parsing the input stream for my_path/war/WEB_INF//web.xml) I am using java

[google-appengine] Bad entity in Datastore

2010-11-10 Thread jdwx
Hello, I have a datastore entry that is not viewable i.e. I get A server error has occurred. when I click on the entry in the datastore viewer. This particular data entry is causing my app to crash too when I try to retrieve and display it. Does anyone know the reason? Thank you. Gerald --

[google-appengine] Zend Application on Google App Engine

2010-11-10 Thread ashish jindal
Hi, I want to Run a PHP Zend Framework application on Google App Engine. Tell the Procedure for the same, I will be highly obliged. Thank you in anticipation Regards, Ashish Jindal -- You received this message because you are subscribed to the Google Groups Google App Engine group. To post

Re: [google-appengine] Re: RequestTooLargeError

2010-11-10 Thread Robert Kluin
Hey Matt, My first thoughts: If you run the other site, maybe you can break the email into parts then reassemble the parts at the other end. Maybe it would be easier to break the email up and store the parts on AE. Then send a request to your other site to 'fetch' the email from your AE app.

Re: [google-appengine] Bad entity in Datastore

2010-11-10 Thread Robert Kluin
Hi Gerald, Is there any information in your logs? If not maybe you want to provide a little more info about the context, such as the model def, how data gets in, how you get it out, etc... Robert On Wed, Nov 10, 2010 at 10:45, jdwx jdwxj...@gmail.com wrote: Hello, I have a datastore

Re: [google-appengine] Bad entity in Datastore

2010-11-10 Thread 风笑雪
You can try to retrieve it by low level api: from google.appengine.api import datastore print datastore.Query('model_name', {'attr_name =': xxx}).Get(1) -- keakon On Wed, Nov 10, 2010 at 11:45 PM, jdwx jdwxj...@gmail.com wrote: Hello, I have a datastore entry that is not viewable

[google-appengine] Random CPU Billing

2010-11-10 Thread Steve
Hi, I've been trying to understand how CPU usage is calculated / billed. Because I could not correlate the amounts consumed with what I expected, I set up a special handler which just returns a 200 response, nothing else. I then set up a cron job to call that special url every couple minutes.

Re: [google-appengine] Architecture approaches for puts

2010-11-10 Thread Eli Jones
How big is the average entity for this Model that you are putting to? (Are you just putting one entity at a time?) If you create a separate Model with the same properties but no indexes, how long and how much CPU does it use up on a put (in comparison to your fully indexed model)? Also, what do

Re: [google-appengine] Random CPU Billing

2010-11-10 Thread Eli Jones
Did you expand the logs to see if any of those were cold starts? I'm guessing that the higher CPU ones were newly created instances. And, or all of the runs were cold starts.. since doing imports on cold start can be all over the place for CPU MS usage. (Though, the recent datastore maintenance

[google-appengine] Re: Random CPU Billing

2010-11-10 Thread Steve
Eli, All five were on the same instance, and as noted in my original post, I also checked each call and none of them indicated that they were responsible for starting a new instance. So no, it's not a cold start issue. And it's not an import issue because all of them used the same single

[google-appengine] Re: Problems pointing my GoDaddy domain to App Engine (no other posts have been able to help!)

2010-11-10 Thread Kevin M
Yes I have On Nov 10, 8:31 am, dar dher...@gmail.com wrote: You do not need to transfer the domain to google apps.  However, it sounds like you have not configured appengine to know about the cname you created at godaddy. Have you followed the instructions at this

Re: [google-appengine] Re: Random CPU Billing

2010-11-10 Thread Eli Jones
Sorry, I guess I glossed over that part of your e-mail and just keyed in on the 5 minute time period of the log. Do your instances generally last 5 minutes or longer? I have a chained task that runs every 5 minutes for 80 times a day. Only occasionally do I see it hit a warm instance (pretty

[google-appengine] Re: Random CPU Billing

2010-11-10 Thread Steve
Hi Eli, Sorry if my reply sounded snippy. Today I've spent over an hour on the phone arguing with ATT and my frustration with them bled through. I reread what I wrote and really wasn't happy with my tone. Sorry! -- You received this message because you are subscribed to the Google Groups

[google-appengine] jars in WEB-INF/lib for deployment

2010-11-10 Thread haole
i'm wondering which jars are required to be in the WEB-INF/lib directory when i deploy. i have a bunch that were automatically added when i created an appengine project in eclipse, but it seems like the app should already have a lot of these jars in the production classpath. am i supposed to add

[google-appengine] Re: Zend Application on Google App Engine

2010-11-10 Thread Greg
Here's how to run PHP on appengine: Step 1: Wait. Appengine currently supports python and java. There are rumours that PHP may be added at some stage, but there aren't any official comments from Google, and certainly not any indication of when this might happen. Depending on your circumstances,

Re: [google-appengine] Working with Query results

2010-11-10 Thread djidjadji
RESULTS = QUERY.fetch(10) RESULTS.sort(key=lambda x: x.mDATE.toordinal() * x.mCOUNT) What is a list of model instances? You can start by learning some basic python. Read the tutorial on the python.org website, or in the help file (on windows platform) 2010/11/10 Zeynel azeyn...@gmail.com: Can

[google-appengine] Re: Mystery data usage

2010-11-10 Thread Erik
Thanks for the info Ikai. I starred issue 2740, hopefully we will be able to view index statistics sometime in the future. Being able to delete the datastore without having to delete each entity would be nice too, it can become expensive very quickly to make mistakes. On Nov 9, 7:44 pm, Ikai Lan

Re: [google-appengine] Zend Application on Google App Engine

2010-11-10 Thread Robert Kluin
You can star issue 13. http://code.google.com/p/googleappengine/issues/detail?id=13 You might also look into quercus. Have no idea how well it works, but it has been mentioned numerous times. Robert On Wed, Nov 10, 2010 at 03:56, ashish jindal er.ashishjin...@gmail.com wrote: Hi, I

[google-appengine] Re: Bad entity in Datastore

2010-11-10 Thread jdwx
Hello guys, I am using Java. Usually when I am storing data, it will be a number of objects at the same time. I will first create many objects and then use persistenceManager.makePersistentAll(Objects); persistenceManager.close(); My system sometimes, will need to edit a few of these Objects,

[google-appengine] Re: Bad entity in Datastore

2010-11-10 Thread jdwx
I found the issue. Datastore cannot seem to store '%' sign! What is the workaround if I want to store '%' sign e.g. I want to store a string that says Congratulations, you got 100%!. Thank you. On Nov 11, 11:22 am, jdwx jdwxj...@gmail.com wrote: Hello guys, I am using Java. Usually when I am