[appengine-java] Re: Processing large xml-files with JAXB in app engine

2010-12-30 Thread androidDeveloper
I forgot to say that the cause for the DeadlineExceededException was log4j, which is unable to log very large strings (xml). Nevertheless is JAXB in my opinion not the first choice when parsing large xml files, because of the worse performance. On 28 Dez., 23:06, androidDeveloper wrote: >

[appengine-java] Re: Processing large xml-files with JAXB in app engine

2010-12-28 Thread androidDeveloper
hat you need to > > check their requirements againt the JRE list that I provided im my > > previous post: you are never sure that the next version will require a > > class unsupported by GAE. > > > regards > > > didier > > > On Dec 26, 11:44 am, androidDe

[appengine-java] Re: Processing large xml-files with JAXB in app engine

2010-12-26 Thread androidDeveloper
Hi, This approach would be my next choice. but implementing and testing this should be more complex as with JAXB? On 26 Dez., 08:54, Didier Durand wrote: > Hi, > > I use the xml parsing classes that are natively part of GAE JDK > itself : javax.xml.parsers.DocumentBuilder, > javax.xml.parsers.Do

[appengine-java] Re: Processing large xml-files with JAXB in app engine

2010-12-26 Thread androidDeveloper
Hi, do you validate your XML with an xsd? Have you done any extra configuration for JAXB? And do you parse very large XML? My Code looks like this. It hangs when parsing and validating large XML files. I think the problem may be, that with JAXB too many classes are created. Here is my code, which

[appengine-java] Processing large xml-files with JAXB in app engine

2010-12-21 Thread androidDeveloper
Hi all, I need to parse large xml files. My first try was using JAXB. It works ok for smaller xml files, but when a large xml is parsed, I get an DeadlineExceededException and the quota on app engine seems to raise up very fast... Furthermore the new JAXB2 jar (JAXB2_20101209.jar) is too large to

[appengine-java] Re: 500 Internal Server Error:Unable to update app: Error posting to URL: https://appengine.google.com/api/appversion/clonefiles?

2010-12-18 Thread androidDeveloper
I got the same problem since today. Changing the version number did not change anything. Maybe a Google server problem? someone had this problem in 2009. So this is possibly not a new problem... http://www.mail-archive.com/google-appengine-java@googlegroups.com/msg03589.html On 17 Dez., 09:02, G

[appengine-java] Blob values in datastore and too many indexed properties

2010-12-14 Thread androidDeveloper
I got an "IllegalArgumentException: Too many indexed properties for entity" Exception when saving an entity that looks like this: ... @Persistent @Element(dependent = "true") @Order(extensions = @Extension(vendorName="datanucleus", key="list- ordering", value="aDate

[appengine-java] Re: removing element from list not persisted in datastore

2010-09-10 Thread androidDeveloper
ays > need to call JDOHelper.makeDirty before persisting to get things > working properly.  Otherwise I get special-case bugs saving an empty > list, or a list w/ one item in it. > > So try JDOHelper.makeDirty(enhtityInstance, propertyNameAsString); and > let us know if that helps. > >

[appengine-java] removing element from list not persisted in datastore

2010-09-08 Thread androidDeveloper
Hi all, I read the post http://groups.google.com/group/google-appengine-java/browse_thread/thread/fbd26de27f77f470 which describes a problem with the local datastore and empty lists. This problem seems to be fixed. But maybe I have found another one. I have a list "List favoritesUserId" in a i

[appengine-java] Re: nested embedded classes and IllegalArgumentException: out of field index :-1

2010-09-04 Thread androidDeveloper
I have to correct my previous post: D is an embedded class in B and not in C! On 4 Sep., 16:42, androidDeveloper wrote: > Hi all, > > I have 4 classes: A, B, C and D: > Class A is the root class. > B is a child of A. > C is a child of B. > D is an embedded class in C. > t

[appengine-java] nested embedded classes and IllegalArgumentException: out of field index :-1

2010-09-04 Thread androidDeveloper
Hi all, I have 4 classes: A, B, C and D: Class A is the root class. B is a child of A. C is a child of B. D is an embedded class in C. the classes look like the one at the end of the post. When I Insert an instance of class A, I get the following exception: java.lang.IllegalArgumentException: out

[appengine-java] Performance issue - accessing child objects in Datastore

2010-09-01 Thread androidDeveloper
Hi all, in my app I use a relationship between two entities. Here is an example: class parentClass { ... @Persistent(dependent = "true") private childClass child; ... } class childClass { ... @Persistent private String parentEncodedKey; ... } What is the fastest way to access the parent and the

[appengine-java] Re: Best practice modeling a 1:n user-relationship with List properties

2010-08-31 Thread androidDeveloper
er.class); > q.setFilter("userKey == userKeyParam"); > q.declareParameters("String userKeyParam"); > q.execute(appUserKey); > > With the appUserKey you pass to q.execute you get the 10-50 users > which are your friends. > Does this make sense? > > On 30

[appengine-java] Re: Best practice modeling a 1:n user-relationship with List properties

2010-08-30 Thread androidDeveloper
ss); > execution gives you the List you can iterate through and > get the nicknames. > > In general: Use List and you'll save yourself a lot of > hassle ;-) > > Hope this helps, > Fred > > On 24 Aug., 12:53, androidDeveloper wrote: > > > Hi all, > &g

[appengine-java] Security issue with Google account on Gwt-client site

2010-08-27 Thread androidDeveloper
Hi all, as written in thread http://groups.google.com/group/google-appengine-java/browse_thread/thread/3033d853fc0a7209/3e56400d7859387d?lnk=gst&q=google+account+gwt+client+#3e56400d7859387d it is not possible to use the Google Account class (com.google.appengine.api.users.User) on GWT-client sit

[appengine-java] Re: Best practice modeling a 1:n user-relationship with List properties

2010-08-27 Thread androidDeveloper
f nickname is a field of MyAppUser): > Query q = pm.newQuery(MyAppUser.class); > q.setFilter("userKey == userKeyParam"); > q.declareParameters("String userKeyParam"); > > q.execute(appUserKey); > > will give you a list of his friends. > > Hope this helps, > F

[appengine-java] Best practice modeling a 1:n user-relationship with List properties

2010-08-24 Thread androidDeveloper
Hi all, I am trying to model a 1:n relationship between different "myAppUser" instances on Google App Engines Datastore. MyAppUser has a reference to 0...n other users (friends). MyAppUser is currently defined as showed below: class MyAppUser { @PrimaryKey @Persistent(valueStrategy = IdGeneratorS