[appengine-java] Is there a way to turn off Task Queue timeouts?

2010-10-12 Thread andy stevko
I really want to be able to debug step through a Task Queue initiated task and have it not time out. http method POST against URL http://0.0.0.0:8080/task/simple timed out. Also - have you noticed that the dev server does retry tasks that throw errors? This is contrary to the docs - "the develop

Re: [appengine-java] OneToOne relationship with java.lang.Long ids

2010-10-11 Thread andy stevko
The ID for the owned child User instances has to be a Key or String type because the it contains both the reference to the parent(s) and the unique id of the object. A Long alone will not contain enough information to navigate the object model to it. I usually stick with String ids for all my type

Re: [appengine-java] what is sharding?

2010-10-11 Thread andy stevko
This is a bit of a stretch for this forum. Perhaps this explanation will help you understand the database design term. http://stackoverflow.com/questions/992988/what-is-sharding-and-why-is-it-important On Mon, Oct 11, 2010 at 4:30 AM, sagar misal wrote: > can anyone please make me understand

Re: [appengine-java] Task queue with HTTP POST not working.

2010-10-10 Thread andy stevko
Does your servlet respond to POST requests? On Oct 10, 2010 10:28 AM, "apple" wrote: > I followed the codes in GAE document to make a simple task queue: > > Queue queue = QueueFactory.getDefaultQueue(); > queue.add(TaskOptions.Builder.method(TaskOptions.Method.GET).url("/ > security")); > > This w

Re: [appengine-java] Datastore, Java, JSP, JSON, AJAX, Web Page. Is it going to work?

2010-10-06 Thread andy stevko
Hi x_maras, re: using email as a primary key http://code.google.com/appengine/docs/java/users/overview.html The User object exposes a unique user ID that is guaranteed to be stable for the lifetime of the user's account, even if the email address is changed. You can use this value in a datastore

Re: [appengine-java] Many to many relation ship

2010-10-06 Thread andy stevko
Not sure why the datastore needs to know that a Car is associated with a particular User. There is no easy way for the datastore to handle cascading deletes in a M-to-M relationship w/o reference counting. Also setting the Fetch policy to load children with the parent load is not an option due to t

Re: [appengine-java] is there any proper way to create shortcut(s) for the current window object in gwt

2010-10-03 Thread andy stevko
google-appengine-java is probably the wrong group to ask this question. http://groups.google.com/group/google-web-toolkit is a better community for GWT questions. Also - did your Widget has focus when you used the keyboard? On Sun, Oct 3, 2010 at 2:30 AM, wingdings wrote: > just for like CTRL

Re: [appengine-java] Simplest key query

2010-10-02 Thread andy stevko
Hi Paul, FWIW, Here is a slightly edited version of my JDO query by id. Perhaps it can help you get over this bump. @SuppressWarnings("unchecked") public Account lookupAccountById( PersistenceManager pm, Long accountId) { logger.fine("looking up account id=" + accountId ); // look up

Re: [appengine-java] Re: Creating Folder/Directory at Runtime

2010-10-01 Thread andy stevko
.com, I > will create a domain new_domain. I will then have > www.webpage.com/new_domain/ > if I can create this directory at runtime. Thanks again! > > On Oct 1, 11:00 am, andy stevko wrote: > > No - all local disk write access is not permitted. > > > > http://code

Re: [appengine-java] JDO unique Long ID keys across entity groups

2010-09-30 Thread andy stevko
Perhaps you can weaken the P-C relationship by making C separate entities and, instead of P storing a list of C objects, P stores a list of C ids. On Thu, Sep 30, 2010 at 3:28 AM, Fred wrote: > Hi Group, > > I know key ids are only unique across entity groups so what GAE + JDO > gives me is: >

Re: [appengine-java] Creating Folder/Directory at Runtime

2010-09-30 Thread andy stevko
No - all local disk write access is not permitted. http://code.google.com/appengine/docs/java/runtime.html The Filesystem A Java application cannot use any classes used to write to the filesystem, such as java.io.FileWriter. An application can read its own files from the filesystem using classes

Re: [appengine-java] Problem with persist a child class

2010-09-30 Thread andy stevko
My only thought is that you should clean your project and have datanucleus rebuild the persistent classes entirely. On Wed, Sep 29, 2010 at 2:34 PM, lisandrodc wrote: > Hi andy! I have tried delete my local_db and the problem persist. > The exception is in the next code, in the call of the buil

Re: [appengine-java] Re: Not Able To Move To The Cloud

2010-09-29 Thread andy stevko
Yes, it is simple - You are missing the leading slash in your . Perhaps you can learn how to configure tomcat web.xml files with this very nice blog post. http://tomcat-configure.blogspot.com/2009/01/tomcat-web-xml.html You can also learn how what matches the regular expression by using this test

Re: [appengine-java] Re: Not Able To Move To The Cloud

2010-09-29 Thread andy stevko
Dave is correct the tag must match the app id. The is best incremented from deployment to deployment as well. This is easily maintained using the eclipse project properties google appengine tab. Your web xml url pattern is the problem. Try using a absolute uri rather than a relative uri as the r

Re: [appengine-java] Re: Urgent: Getting only Server Error (500) since ~12:30 am (September 28th)

2010-09-28 Thread andy stevko
Ditto on the high error rate on my app too. app_id=ninuku-archivist Whats going on here?? On Tue, Sep 28, 2010 at 8:08 AM, mscwd01 wrote: > I've been getting the second issue you mentioned for the last few > days. Sometimes the error rate is above 50%. Don't expect to get any > help from Googl

Re: [appengine-java] Re: Problem with persist a child class

2010-09-25 Thread andy stevko
Hi Lisandro, Perhaps you didn't understand my last line of reasoning re: is your datastore empty... I suspect that the schema for your classes has migrated - i.e. a member that was Long and is now String or vice-versa A close read of the datastore docs says: http://code.google.com/appengine/docs/j

Re: [appengine-java] Problem with persist a child class

2010-09-24 Thread andy stevko
I've managed to make class inheritance work for me using JDO. The only difference I see between my annotations and yours is I'm using @Inheritance(customStrategy = "complete-table") InheritanceStrategy

Re: [appengine-java] Re: problem, please help me

2010-09-18 Thread andy stevko
> > > > > > > > > > > > > > > > > and nothing done ? > > > > what can i do else ??? > > > > On Sep 18, 1:43 am, andy stevko wrote: > > > > > Perhaps you can figure this out by

Re: [appengine-java] Re: problem, please help me

2010-09-17 Thread andy stevko
ote > > > > > > > what is the problem in it ?? > > On Sep 18, 12:51 am, andy stevko wrote: > > Seems pretty straight forward You need to define an index for 'Quote' > > I suggest looking at > > .../war/WEB-INF/appengine

Re: [appengine-java] problem, please help me

2010-09-17 Thread andy stevko
Seems pretty straight forward You need to define an index for 'Quote' I suggest looking at .../war/WEB-INF/appengine-generated/datastore-indexes.xml and datastore-indexes-auto.xml and correct the settings. http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Defining_Inde

Re: [appengine-java] [IDEA] Circumventing app engine cold start with a warm up

2010-09-16 Thread andy stevko
I was just thinking about this issue during an interview this morning. I like your initServlet idea and think that it could also be used during takedown to cleanup any external resources (like batched sequence counters). An alternative for the scaling from 1 server to many startup problem is to n

Re: [appengine-java] Delete indexes for application

2010-09-15 Thread andy stevko
run appcfg.py vacuum_indexes as described in http://code.google.com/appengine/docs/python/datastore/queriesandindexes.html#Big_Entities_and_Exploding_Indexes On Tue, Sep 14, 2010 at 11:43 AM, Barada Sahu wrote: > Hi, > I need to delete the indexes for my java app as the column name has > chang

Re: [appengine-java] Re: Collections usge in Appengine Java

2009-12-09 Thread andy stevko
Sorry for not seeing this earlier - I missed your reply post in the mail stream. FetchGroups are documented at http://www.datanucleus.org/products/accessplatform_1_1/jdo/fetchgroup.html#dfg The xml metadata they show is generated by the @FetchGroup annotation which is documented at http://www.dat

Re: [appengine-java] Collections usge in Appengine Java

2009-12-02 Thread andy stevko
This is a common issue. You need to define a @FetchGroup( ) for your class that names that member then add the FetchGroup to your persistence manager. @FetchGroup( name="children", members={ @Persistent(name="childcollection") }) public class //--- PersistenceMa