[appengine-java] Re: Problems with entity groups in transactions

2009-11-03 Thread Patrizio Munzi
Hi, I think at this point that Max's knowledge is needed Max could you report on this thread please??? Thanks datanucleus wrote: Perhaps GAE/J doesn't respect that metadata extension tag then. Raise a bug on their DataNucleus plugin for it. Not related to JDO but...

[appengine-java] Re: Problems with entity groups in transactions

2009-11-03 Thread John Patterson
2009/11/2 datanucleus andy_jeffer...@yahoo.com FWIW You don't need Keys ***in JDO*** at all either ... when the JDO interface is respected and implementation details don't leak out into user space; keys should not be presented to the user IMHO. JDO is then a very good option whether you want

[appengine-java] Re: JDO Best Practices

2009-11-03 Thread leszek
DM - http://vike.googlecode.com/svn/trunk/vike/src/br/com/ximp/vike/server... Judging from above you don't use JPO but low level API. But your entity class (Actor) is dressed with JDO annotations. I don't know what will happen if entity dressed with JPA annotiation and beautified by JDO enhancer

[appengine-java] Re: Issue with com.google.appengine.api.datastore.Text?

2009-11-03 Thread Tito George
Thanks, It is working. Is this an issue? Or is it specific to Text On Nov 3, 11:00 am, Rusty Wright rwright.li...@gmail.com wrote: What happens if you change @Persistent to @Persistent(defaultFetchGroup = true) ? Tito George wrote: Enviornment: Local I have a Text field in one

[appengine-java] Re: very high error rate (88%) receiving XMPP no error msg in the log !

2009-11-03 Thread Prashant
anyone else facing same problem ? my app's today's error rate is 94% (of 832) ! --~--~-~--~~~---~--~~ 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

[appengine-java] Re: Data Store Indexes

2009-11-03 Thread Pion
Also, I updated my datastore-indexes.xml as the following: ?xml version=1.0 encoding=utf-8? datastore-indexes xmlns=http://appengine.google.com/ns/datastore-indexes/1.0; autoGenerate=true datastore-index kind=MDsIri ancestor=false property name=iri direction=asc / property

[appengine-java] Re: ClassCastException after changing PK from Long to String

2009-11-03 Thread pgoetz
Hi Jason, thank you very much for your answer. I think that you are right, but have to admit, that I cannot prove it. I have tested the application again after some time (browser has been closed in between), and everything worked fine. Is it possible, that sessions

[appengine-java] Re: RPC SerializationException if detachable=true

2009-11-03 Thread datanucleus
A simple search on this forum for GWT and detachable should give plenty of links ... as to why GWT doesn't cope seamlessly with standard bytecode-enhanced classes. Also http://groups.google.com/group/Google-Web-Toolkit-Contributors/browse_thread/thread/3c768d8d33bfb1dcseems

[appengine-java] Re: XSLT Version

2009-11-03 Thread moissinac
See http://groups.google.com/group/google-appengine-java/browse_thread/thread/9c9fb88e1b175395/f8f9a9adcfeb044f?lnk=gstq=xslt#f8f9a9adcfeb044f and you see that saxon works with App Engine And Saxon support XSLT 2 So, with Saxon, App Engine supports XSLT 2

[appengine-java] Re: Dev server datastore deadlock

2009-11-03 Thread Max Ross (Google)
I can reproduce the deadlock and I believe I have a fix. I'm not sure if it will make the next release though. Can you please file an issue so we can track this? Thanks, Max On Sat, Oct 31, 2009 at 4:31 PM, stumpy ianmcgrath.m...@gmail.com wrote: I removed the thread dump doc because the

[appengine-java] Re: Object not persisted JDO

2009-11-03 Thread Jason (Google)
Hi Julio. How are you verifying that the entity is not persisted? Are you querying for it or verifying using the data viewer? If you're not using the data viewer, please try this first -- http://localhost:8080/_ah/admin(substitute your port number for 8080). If you don't see your entities in the

[appengine-java] Re: managing root / parent objects

2009-11-03 Thread Jason (Google)
The overhead of having to fetch the inner object is negligible since you're using a direct fetch by key. You can set a @NotPersistent property of the intended type and modify your DAO methods to fetch both objects (User and FavoriteFood) and set the @NotPersistent property of the User to this

[appengine-java] Re: Inequality operator is !=, but can we add

2009-11-03 Thread Max Ross (Google)
not-equal filters are not supported in the current SDK unless you're doing not equal null, in which case we just turn it into null because the datastore considers null to be smaller than any non-null value. You can read about the supported filter types here:

[appengine-java] Re: SimpleDS: an alternative for Datastore persistence

2009-11-03 Thread Vince Bonfanti
Great! Since someone else is now using this besides me, I've added more comments. Also, I've added some testcases and fixed an issue when invoking put() with entities that contain partial keys. If your entities don't have complete keys when invoking put(), you should go get the latest code. Let

[appengine-java] Re: AccessControlException on DatastoreService.put() method

2009-11-03 Thread Jason (Google)
Do you see any other exceptions under WARNING or ERROR that provides more information? How long do you wait before the exception is thrown? If it's close to 30 seconds, you could be experiencing a timeout, and you can try scaling back the number of entities written (500 is the theoretical max but

[appengine-java] Re: UnsupportedDatastoreFeatureException

2009-11-03 Thread datanucleus
Multiple calls to setFilter will overwrite the previous value. Do you really want to do that? --~--~-~--~~~---~--~~ 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

[appengine-java] memcache in hosted mode?

2009-11-03 Thread Stuart Moffatt
There are a few threads that mention using memcache in hosted mode, and having to set certain properties or configure persistence.xml, but there does not seem to be a concrete example of what / where / or how to set the parameters. Currently I have to redeploy my app to App Engine every time to

[appengine-java] Java namespace for entity in bulkloader?

2009-11-03 Thread Stuart Moffatt
I am using Nick's excellent tutorials on bulk loading, and was able to push a huge pile of entities up to production. Problem is, they looked like this: MySpecialEntity in my custom python bulkloader class and in production. The gotcha is my application is Java, and queries for: SELECT FROM

[appengine-java] Re: Maximum data size of image sent to service is not 1Mb, but 512Kb?

2009-11-03 Thread Jason (Google)
Hi Esteban. Please file any discrepancies between the development and production environments as bugs in the public issue tracker: http://code.google.com/p/googleappengine/issues/list Can you attach or link to an image that I can use to reproduce the error? Thanks, - Jason On Sat, Oct 31, 2009

[appengine-java] Re: PreparedQuery.countEntities() clarifications

2009-11-03 Thread Jason (Google)
I think you already arrived the recommended solution to the issue of counting entities. For reference, the reason that the production environment only returned at most 1,000 is an artifact of the query mechanism that App Engine uses which can only return up to 1,000 results per query. - Jason On

[appengine-java] Re: task queue limit 30 sec?

2009-11-03 Thread Jason (Google)
Hi Steve. Can you post the full stack trace of one of these exceptions? - Jason On Mon, Nov 2, 2009 at 4:30 AM, sproz stephane.spra...@gmail.comwrote: Meanwhile, could anyone let me know why I get these DeadlineExceededException ? Thanks, Steve www.sprosys.com On Oct 29, 9:55 pm,

[appengine-java] thanking uuuuuuuuu

2009-11-03 Thread raju k alias (billa)
Thank for the java version Is there any plugin for netbeans IDE --~--~-~--~~~---~--~~ 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

[appengine-java] Re: A tiny framework for working with POJO's in GAE

2009-11-03 Thread Jason (Google)
I don't see a link, but if your framework is open source, feel free to submit it to the App Engine open source projects listing by following the instructions at http://groups.google.com/group/google-appengine/web/google-app-engine-open-source-projects . - Jason On Sun, Nov 1, 2009 at 12:35 AM,

[appengine-java] UnsupportedDatastoreFeatureException

2009-11-03 Thread IlyaE
I cant wrap my head around this but i'm having an issue with doing a basic query. I have a user class that contains an embeddable class ContactInfo. ContactInfo has email, phone, and address String fields. @PersistenceCapable(identityType=IdentityType.APPLICATION) public class MyUser {

[appengine-java] Re: Issue with com.google.appengine.api.datastore.Text?

2009-11-03 Thread Rusty Wright
Beats me. It seems to be some sort of pixie dust you'll often need to apply. You don't need it for String, Long, Date, and a variety of other jdk classes, but I think you will need it for your classes. I don't understand why it's not used in the GAE web site's documentation. Tito George

[appengine-java] Re: UnsupportedDatastoreFeatureException

2009-11-03 Thread Max Ross (Google)
Andy has pinpointed the issue. You most likely don't have a field on your MyUser class named email but the error isn't being triggered on the first query because your second call to setFilter() is overwriting the reference to the nonexistent field. You'll need to pass the entire filter to

[appengine-java] How to obtain a consumer key to access a gmail account in a java based application

2009-11-03 Thread Rui
Hello everyone! I'm new to the Google API so my questions are gonna sound really easy :P I'm trying to integrate a simple service of getting a specific gmail user's contacts from his google account. Whats the most useful API google can provide for me to access such methods? Also, i realize

[appengine-java] Re: DeadlineExceededException while executing a server method.

2009-11-03 Thread Jason (Google)
Hi Sanjith. All App Engine requests must return within 30 seconds or this exception will be thrown. If you have a larger task, you can divide it into several parts and execute these in separate tasks, but each task must also return in 30 seconds or less. - Jason On Sat, Oct 31, 2009 at 11:12 AM,

[appengine-java] Re: ClassCastException after changing PK from Long to String

2009-11-03 Thread John Patterson
Sessions are also stored in memcache. To clear this you can write a simple page that calls memcache.clearAll(); 2009/11/3 pgoetz pgo...@pgoetz.de Hi Jason, thank you very much for your answer. I think that you are right, but have to admit, that I cannot prove it. I have tested the

[appengine-java] Re: Problems with JDO Query.setCandidates(Collection)

2009-11-03 Thread Jason (Google)
App Engine's DataNucleus plugin doesn't support the setCandidates method for querying a select group of entities -- all queries currently target the full datastore. You're welcome to file a feature request in the datanucleus-appengine issue tracker, but this isn't likely to be prioritized in the

[appengine-java] Re: Maximum data size of image sent to service is not 1Mb, but 512Kb?

2009-11-03 Thread Esteban Ignacio Masoero
Jason: I've created this issue: http://code.google.com/p/googleappengine/issues/detail?id=2353, so you can have all the info you need to test both problems. Thanks again! Esteban On Tue, Nov 3, 2009 at 4:35 PM, Jason (Google) apija...@google.com wrote: Hi Esteban. Please file any

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-03 Thread bryce cottam
Sounds good James. The owned relationship between Book and Chapter is just defined by the fact that Book has a collection of Chapter as a member variable. If the relationship is bi-directional (i.e. Chapter has a Book as a member variable) then you use the mappedBy field in the @Persistent

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-03 Thread James H
Ok Bryce...I'm back. Going to test with your ideas now. In my case, I tend to avoid generic column names like id in favor of bookId and chapterId so I should not have any naming conflicts (at least rarely). Also, my FK embedded classes should not have any collections though I have a feeling

[appengine-java] Re: What defines a single transaction in JDO?

2009-11-03 Thread Jason (Google)
Can you try moving your query into the first transaction and report if this makes a difference? - Jason On Fri, Oct 30, 2009 at 7:10 PM, RoryD rory1doug...@gmail.com wrote: I'm aware of the restriction on operating on multiple entity groups in a single transaction, but I thought the

[appengine-java] Re: task queue limit 30 sec?

2009-11-03 Thread Vince Bonfanti
Here's one I got a few days ago. It looks like it timed-out while just queuing up a task: Uncaught exception from servlet com.google.apphosting.api.DeadlineExceededException: This request (8b0dab1ffe61eb3f) started at 2009/10/31 16:30:47.041 UTC and was still executing at 2009/10/31 16:31:16.438

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-03 Thread James H
Consider this test case. A Person belongs to 1 or more Institutions so there's 2 ways you would want to query this. Query #1: Given a particular Person then which Institutions does he belong to? Query #2: Given a particular Institution then which Persons are members? Assume entity Person and

[appengine-java] Re: using maven with jpa

2009-11-03 Thread Rusty Wright
I don't know if this will help (maybe it's the datanucleus-core dependency with a scope of runtime), but here's my pom for jdo. This is a dependency pom; it encapsulates the dependencies for app engine datanucleus jdo. Put it in a directory by itself, create a src dir (not sure if that part

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-03 Thread Rusty Wright
I don't know if this will help, but I finally figured out how to do parent queries using the parent's primary key. At the moment I don't see what advantage there is if you're storing a reference to the parent object in the child and using mappedBy in the parent, but here's what I have, in

[appengine-java] Re: managing root / parent objects

2009-11-03 Thread Rusty Wright
Great, thanks for answering that question. It's nice to know it's a possible solution; as we can see from the Bryce Cottam, James H, Diana Cruise, et. al. thread, dealing with these unowned child objects that are in various places, it's a puzzle. My latest thinking is that using clone() for

[appengine-java] Re: Issue with com.google.appengine.api.datastore.Text?

2009-11-03 Thread Tito George
Thanks Rusty. I will keep this in mind.. On Nov 4, 12:13 am, Rusty Wright rwright.li...@gmail.com wrote: Beats me.  It seems to be some sort of pixie dust you'll often need to apply.  You don't need it for String, Long, Date, and a variety of other jdk classes, but I think you will need it

[appengine-java] Re: ClassCastException after changing PK from Long to String

2009-11-03 Thread pgoetz
Thank you very much! I will do that just as a backup solution for the next time I want to clear the sessions. On Nov 3, 7:05 pm, John Patterson jdpatter...@gmail.com wrote: Sessions are also stored in memcache.  To clear this you can write a simple page that calls memcache.clearAll();

[appengine-java] Re: AppEngine Java stability concerns

2009-11-03 Thread Jerome
Hi Ross, Thank you for your response. I will monitor the downtime notify group from now on. Even though this was a planned outage, I am still quite concerned that a complete downtime of over 1h is necessary on your infrastructure... What is the strategy you suggest to your customers to handle

[appengine-java] Re: Master/Detail relations and redundant data handling

2009-11-03 Thread bryce cottam
Hi James, sorry for the delay, My design is currently similar to what you proposed. However, in your example, I'd probably make 2 classes: PersonFK and InstitutionFK.: public class PersonFK { private Key id; private String firstName; private String lastName; private String