[appengine-java] Re: Highly Frustrated By Entity Groups / Transactions

2010-07-27 Thread jd
On Jul 27, 5:24 pm, Bill bill.milli...@gmail.com wrote: Not in order, it can't.  The parent must know the children in order to accomplish that. Try putting some kind of index in the child - a time stamp or order field (100, 200...) Sounds like you have architected your solution to do too

[appengine-java] Re: Loading request timings

2010-06-22 Thread jd
BTW, should it not be necessary to minimise dependencies? Would love some more details on how this should work! e.g. do you load an entire jar on demand from some shared repo based on a hash - or individual classes? On Jun 22, 10:39 am, John Patterson jdpatter...@gmail.com wrote: Hi Toby,

[appengine-java] Re: Error while downloading Data

2010-06-21 Thread jd
Hi Manish, You might want to try the RemoteDatastore to download or upload you data to a remote application. http://code.google.com/p/remote-datastore/ You install it somewhere that will only be run once like this: // install api proxy in app init code RemoteDatastore.install(); // divert the

[appengine-java] Re: Transaction exception when not using a transaction ?

2010-06-08 Thread JD
/python/datastore/transactions.h... On Fri, Jun 4, 2010 at 5:45 PM, JD liva...@gmail.com wrote: After debugging, I was able to get rid of the exception by removing a pm.newQuery() which was happening on a different entity group. To me this is a bug in App Engine, as there is no reason

[appengine-java] Re: Transaction exception when not using a transaction ?

2010-06-04 Thread JD
be frustrating. -C On Jun 3, 6:33 am, JD liva...@gmail.com wrote: I added a call to flush() after every change on the PM-managed object, but that did not help. Also doing a pm.flush() does not throw this exception, but doing a pm.close() does - which seems to be contrary to your

[appengine-java] Re: Transaction exception when not using a transaction ?

2010-06-03 Thread JD
entity group as multiple flushes won't be very efficient. -C On Jun 2, 8:26 pm, JD liva...@gmail.com wrote: I have a PersistenceManager PersistenceManager pm = PMF.get().getPersistenceManager(); which I use to do a bunch of operations on different objects, but WITHOUT transaction (run

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-05-03 Thread jd
Yep, many to many relationships work well. They can also be polymorhic and use inheritance with no problems. On May 3, 12:09 am, Michael Shtelma mshte...@gmail.com wrote: Hi all, I have looked at twig, I liked it a lot, but there is one issue about many to many relationships. Does Twig

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-05-03 Thread jd
On May 2, 2:40 pm, jtuchscherer jtuchsche...@gmail.com wrote: John, are you saying that Twig, Objectify, SimpleDS, Slim3 and Siena don't have this problem? I can only definitivly speak for Twig but I am certain that the others also would not suffer this problem or many many of the other

[appengine-java] Re: Class XXX has multiple relationship fields of type YYYY

2010-05-03 Thread jd
On May 4, 12:02 am, Michael Shtelma mshte...@gmail.com wrote: When I have tried using them, I got really strange exception. Twig was not able to determine the key for some dependent entities...I think I was doing smth wrong... Ah yes, when you have circular references and you use auto

[appengine-java] Re: GPE 1.3 Tutorial?

2010-03-24 Thread jd
On Mar 24, 3:53 am, Keith Platfoot kplatf...@google.com wrote:  It is still possible to use the Google Plugin for Eclipse with an App Engine project, but it may require a few hacks or manual steps in order to keep the runtime WAR directory in sync with your changes.   I found this Eclipse

[appengine-java] Problem with login when testing locally

2010-03-23 Thread JD
I'm getting this exception trying to use GAE to login in my local environment. java.lang.NullPointerException at com.google.appengine.api.users.dev.LoginCookieUtils.encodeEmailAsUserId(LoginCookieUtils.java: 89) at

[appengine-java] TransactionalTaskException when enqueuing more than 5 tasks

2010-03-08 Thread JD
I am enqueuing tasks within a transaction. tx.begin() for (int i=0;i10;i++) { Queue queue = QueueFactory.getDefaultQueue(); TaskOptions task = url(/taskurl); task.param(param, value); queue.add(task); } tx.commit(); I constantly get TransactionalTaskException when enqueuing task

[appengine-java] How to get application version from within code ?

2010-03-03 Thread JD
Is there anyway to get the application version (from appengine- web.xml) ? In python the version is put in os environment, wondering if java has something similar. Thx -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to

[appengine-java] App Engine Plugin for Eclipse Stuck During Install Ubuntu 9.10

2010-03-03 Thread JD
I try to install the plugin for eclipse through eclipse's install new software, however after it resolves dependencies and asks me to accept the license, it hangs at 4% during the install. Eclipse itself doesn't hang, but the install never moves past 4%. I've let it sit on the install for about

[appengine-java] Task queues and transaction support

2010-01-25 Thread JD
is not compatible with com.google.appengine.api.datastore.Transaction expected by the task queue API. Is this a bug ? JD -- 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 google-appengine-j

[appengine-java] Re: Memcache question

2010-01-18 Thread jd
There is no event mechanism with memcache. You would need to store items in memcache and the datastore at the same time. If memcache doesn't have it check the datastore. On Jan 18, 4:44 am, Andrei gml...@gmail.com wrote: Is there a way to code Memcache that would notify when particular entry

[appengine-java] Re: 1000 Entity limit

2010-01-18 Thread jd
You can iterate over _more_ than 1000 results. From the horses mouth (sorry Don): http://groups.google.com/group/google-appengine-java/browse_thread/thread/4dc3cd9e6113fe16# On Jan 17, 11:58 pm, Paul Jacobs paul.r.jac...@gmail.com wrote: Can I get a quick confirmation? The 1000 entity limit

[appengine-java] Re: String as Primary key in JDO

2010-01-16 Thread jd
Just String#toLowerCase() the key when you store them On Jan 17, 1:11 am, sahil mahajan sahilm2...@gmail.com wrote: I am using String as primary key in JDO. But it is case sensitive. It considers name and NAME as different. Can I make it case sensitive? -- Regards Sahil Mahajan -- You

[appengine-java] Re: Cannot have a java.lang.Long primary key and be a child object

2010-01-16 Thread jd
You cannot create a data model in JDO-GAE that is agnostic of its environment. Twig allows your domains classes to use any key type you want or even none at all. class Parent { String name; @Entity(relation=child) Child child; } class Child { String name; } This will be correctly

[appengine-java] Re: Any examples for low level datastore? or suggest another way?

2010-01-15 Thread jd
-valued property so you can even query properties them like show all tables with a column named 'age'. more info and the source here: http://code.google.com/p/twig-persist/ JD On Jan 15, 10:35 am, Joel Weight digitalj...@gmail.com wrote: Wow, biggest code review ever for me.  As a disclaimer

[appengine-java] Re: How to store/retrieve inheritance and composition in Datastore

2010-01-15 Thread jd
the instance. Usually this is not needed because Twig can use the generic type of the Field to know that the Collection is of C's. JD On Jan 15, 3:59 am, Federico Keen federicok...@gmail.com wrote: Hi guys, I'm trying to use the datastore with a model like this: Class A extends C

[appengine-java] HardDeadlineExceededError stack trace

2010-01-12 Thread jd
Hi, From a task servlet I catch DeadlineExceededException put another task on the queue to continue the work. This was working well until a few days ago - recently it has been throwing a HardDeadlineExceededError after the new ask is added to the queue resulting in many tasks executing (i.e. the

[appengine-java] Re: TaskQueue 10s limit? really?

2010-01-10 Thread jd
Tasks can use 30 seconds before a DeadlineExceededExecption is thrown. What you are seeing is a task being fired while your application is loading. If your app takes more than 10 seconds to load you can get these. The only solution is to improve the startup time of your app which can be a very

[appengine-java] Re: Incoming mail handler runs slow

2010-01-06 Thread jd
To avoid these long loading requests you can either make your app faster to load or keep it warm by pinging a page with a cron job, say every minute. Cron jobs will only work on the default (live) version so I wrote a PingTaskServlet that simply places another task in the queue and finishes. On

[appengine-java] QuotaService

2010-01-06 Thread jd
Hi, Should the QuotaService be working? I always get 0 for getCpuTimeInMegaCycles() -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from

[appengine-java] Re: why my app on GAE first access is so slow

2010-01-06 Thread jd
I use a task to ping itself every minute... no need to use external servers. I find that one minute seems enough but that occasionally there are still loading requests as Google serves my request from a different server - maybe to rebalance load? The app is much more responsive now but I assume

[appengine-java] Re: GWT + GAE Performance

2009-12-19 Thread jd
A pure GWT application is a lot less demanding on server side resources as most of the UI processing is off loaded to the client. Also, a problem that I have run into with running a traditional web framework on GAE is that loading requests can take a long time and cause requests to be aborted (if

[appengine-java] Re: embedding parent object in parent-child relation with jdo

2009-12-18 Thread jd
Could you not split your query into two? The first to find the parent and the second to return all children with an ancestor query. Alternatively, Twig makes embedding objects very simple. If you use the AnnotationTypesafeDatastore you can achieve the above with a single annotation: @Component

[appengine-java] Re: Many Request was aborted after waiting too long to attempt to service your request errors

2009-12-17 Thread jd
If your cron job has to wait longer than 10 seconds while your app is reloading you will get this message. Do you also see a loading request in the logs just after or before this error message? If so then it is interesting that despite your 1 minute ping, engine is still swapping out your app.

[appengine-java] Re: where I should put the Task Queue code?

2009-12-13 Thread jd
Hi, task queues are just a way to call a url some time in the future. As Jason mentioned above, for a tasks handler you should probably just create a servlet (extend HttpServlet) because you do not need to generate a nice webpage as the result of the call - no one will see it. In the

[appengine-java] Re: Loading request time

2009-12-12 Thread jd
add to your startup time. Are you initializing anything on startup? On Tue, Dec 8, 2009 at 10:29 PM, jd jdpatter...@gmail.com wrote: Hi, My application takes over 10 seconds on loading requests to output its log messages.  During this time, simultaneous requests are aborted because

[appengine-java] Loading request time

2009-12-08 Thread jd
Hi, My application takes over 10 seconds on loading requests to output its log messages. During this time, simultaneous requests are aborted because they cannot be serviced within the 10 second limit. What is the best way to optimise startup time? I have already turned on precompilation. Is

[appengine-java] Re: conceptual question: parent Key

2009-10-29 Thread jd
Another benefit is that you can do an ancestor query without a kind. i.e. show all descendants of an entity regardless of their kinds. Also you can query for descendants regardless of whether they are direct descendants (children) or not (e.g. grandchildren). I guess you could simulate the last

[appengine-java] Twig - Alternative to JDO

2009-10-27 Thread jd
Hi, While working on my latest project I created a small framework as an alternative to using JDO for storing objects in the datastore. I've called it Twig and made it open source to share the love. I hope it can save others as much time and frustration as it has saved me.

[appengine-java] Delete all from datastore

2009-09-24 Thread jd
Hi, is it possible to delete all entities from the datastore? I can see how I can delete entities from a single kind at a time but do not know how to query for all kinds or list all kinds. Thanks, John. --~--~-~--~~~---~--~~ You received this message because

[appengine-java] Re: Local datastore slow

2009-09-24 Thread jd
? On Tue, Sep 22, 2009 at 6:36 AM, jd jdpatter...@gmail.com wrote: Hi, I am testing my app locally and finding that storing entities is very slow.  I have less than 500 entities of and the time to persist the datastore seems to be increasing: INFO: Time to persist datastore: 43293

[appengine-java] Local datastore slow

2009-09-22 Thread jd
Hi, I am testing my app locally and finding that storing entities is very slow. I have less than 500 entities of and the time to persist the datastore seems to be increasing: INFO: Time to persist datastore: 43293 ms Then occasionally I get an exception: Caused by:

[appengine-java] Re: Maven

2009-08-23 Thread jd
the Eclipse plugin for those. That means configuring maven to use the /war folder. Now at least I get the enhancer running incrementally and can deploy at the click of a button. JD --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[appengine-java] Inheritance in JDO

2009-08-23 Thread jd
Hi, I have a structure similar to this this: class Zoo { Animal animal; } class Zebra implements Animal { } class Donkey implements Animal { } All classes are annotated as PersistenceCapable etc and enhanced. I get this error: javax.jdo.JDOUserException: Field animal is declared as a

[appengine-java] Owned relationship with generated parent key

2009-08-22 Thread jd
Hi, I want to create an owned one to many relationship where the key for the parent is auto generated. Is this possible to to in a single transaction? Or do I need to commit the parent first so I can then get its key and set the parent key on the child? Thanks, John

[appengine-java] Class not being enhanced

2009-08-20 Thread jd
Hi, I am getting an error Caused by: org.datanucleus.exceptions.ClassNotPersistableException: The class com.example.Update is not persistable The datanucleus console shows this: DataNucleus Enhancer (version 1.1.4) : Enhancement of classes DataNucleus Enhancer completed with success for 4

[appengine-java] Re: Class not being enhanced

2009-08-20 Thread jd
Figured it out: On my mac the enhancement log goes to /var/folders/T4/ T4W7RbfJF0CmVJO2UEnIIU+++TI/-Tmp-/ Also, to fix my problem I just needed to add a new folder to in Eclipse to the ORM settings panel. Cheers, John --~--~-~--~~~---~--~~ You received this