[appengine-java] Re: map-reduce

2012-02-02 Thread Nichole
Do you have a security-constraint in your web.xml that specifies 'role- name' as '*' or admin for the url-pattern of the servlet you used? It looks like the invoker was not yet authenticated or failed authentication. On Feb 1, 5:59 am, Sergio ksergio...@gmail.com wrote: Hi All! I catch the

[appengine-java] Re: makePersistent failing every second time since server restart

2012-02-02 Thread Nichole
you need an entity group http://code.google.com/appengine/docs/java/datastore/jdo/relationships.html or cross group transactions if you are using the HR datastore: http://code.google.com/appengine/docs/python/datastore/transactions.html or If you are not on the HR datastore and need

[appengine-java] Re: Can't see new objects in the same transaction

2012-02-02 Thread Fernando Jorge Santos
Wow man!! That works fine!! Thanks a lot... On Feb 2, 10:42 am, Nichole nichole.k...@gmail.com wrote: You'll want to use flush() instead of refresh().  flush() saves your current state to the datastore and because they are not detached, the entities within your transaction will already be

Re: [appengine-java] Re: makePersistent failing every second time since server restart

2012-02-02 Thread John Goche
NIchole, Thank you for your feedback, but how do I change my code so that I have this entity group you are mentioning? I am using the HR datastore. And how did you get to this conclusion? I am fetching every store from the datastore, detaching everything after making it persistent, and always

[appengine-java] 200 was logged when, apparently, an error happened

2012-02-02 Thread Ronoaldo José de Lana Pereira
Dear App Engine developers and googlers, Sorry for the long post, but I got something weird on my logs. A response status 200 was logged when, apparently, an error happened. Does it makes any sense, or I'm just misreading the messages from the logs? This happened a few times, and some requests

Re: [appengine-java] 200 was logged when, apparently, an error happened

2012-02-02 Thread Matthew Jaggard
I don't have a clue as to the answer, but to help those who might can you tell us if it only happens during requests that are starting new instances of your app? 2012/2/2 Ronoaldo José de Lana Pereira ronoa...@gmail.com Dear App Engine developers and googlers, Sorry for the long post, but I

[appengine-java] Re: 200 was logged when, apparently, an error happened

2012-02-02 Thread Ronoaldo José de Lana Pereira
Just another strange log: deadline exception, and 200 status code for response: 1. 2012-02-02 10:45:15.116 /pelotas/promocao-e-desconto/manicure--pedicure--design-de-sobrancelhas-no-centro---8201538 200 60338ms 0kb 187.45.240.38 - - [02/Feb/2012:04:45:15 -0800] GET

Re: [appengine-java] Re: 200 was logged when, apparently, an error happened

2012-02-02 Thread Ronoaldo José de Lana Pereira
Thaks for your answers Mat. I guess you may be right. The log for the serious problem is before the sucesfull request. I'll double check our initialization code, but on local server all our developers are running and debugging the app properly, so it may be a singular initialization problem

[appengine-java] Re: Problem with exception on server startup when GAE sdk is in svn

2012-02-02 Thread Matija
And you forgot to mention that if folder is not under svn control everything works perfectly. -- 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

[appengine-java] Re: How do I run DeferredTasks in a Unit Test

2012-02-02 Thread Riley Eynon-Lynch
Thanks for the question and answer, Brendan. Can you say what getQueue() is? -- 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

[appengine-java] Re: How do I run DeferredTasks in a Unit Test

2012-02-02 Thread Riley Eynon-Lynch
private QueueStateInfo getQueue(String queueName) { return LocalTaskQueueTestConfig.getLocalTaskQueue().getQueueStateInfo().get(queueName); } will do. Thanks again! -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view

Re: [appengine-java] Re: How do I run DeferredTasks in a Unit Test

2012-02-02 Thread Jeff Schnitzer
This is a blast from the past. There are now official tools for unit testing deferred tasks: http://code.google.com/appengine/docs/java/tools/localunittesting.html#Writing_Deferred_Task_Tests However, ignore the latch stuff - it works erratically, and if you have an even slightly complicated

[appengine-java] Sending HTTP response header Connection: close for request with Connection: keep-alive

2012-02-02 Thread Jeff Morgan
Is there a way to force GAE to send an HTTP response with header Connection: close? I have tried, response.setHeader(Connection,close); but no luck. -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To view this discussion on the

[appengine-java] Both indexes required (ASC and DESC) for 1-N relationship mapped with a List?

2012-02-02 Thread Miguel
Hi, I am working on a simple structure similar to: class Parent { ... ListChild children .. } class Child { .. Parent parent .. } mapped with a 1-N relation in JDO: field persistence-modifier=persistent name=children mapped- by=parent collection dependent-element=true

Re: [appengine-java] Both indexes required (ASC and DESC) for 1-N relationship mapped with a List?

2012-02-02 Thread Bruno Fuster
I'm not sure but maybe JDO is trying to query asceding to fetch the children before adding. On Thu, Feb 2, 2012 at 9:36 PM, Miguel doctormig...@gmail.com wrote: Hi, I am working on a simple structure similar to: class Parent { ... ListChild children .. } class Child { .. Parent