[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 wrote: > Apparently there are some real issues with App Engine and Analytics > with this timeout error. Check Nick's post > in:http://groups.googl

[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. Eyal

[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 t

[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 yo

[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, "Ika

[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 { [...] @Persisten

[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 wrote: > Is there any option to contribute to this project? I am using hacks to >

[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 b

[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 multi

[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 a

[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 wrote: > Is it possible to auto-generate the datastore-ind

[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 wrote: > thanks for the detailed response didier. > > the layout of the entities is

[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 tha

[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 a

[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