[appengine-java] Re: Possible to Add Child to Owned One to Many Relationship Without Loading All Children?

2009-10-21 Thread leszek
You hit the nail on the head. As far as I know there is nothing like sequence in Google App Engine. Either you need to have another entity with a counter and increase it in transactional way. Or you can use memcache.

[appengine-java] Re: Servelts versus JSPS

2009-10-21 Thread leszek
JSP is nothing more than servlet code woven with html and some tags to make generating html pages more easy. Almost everything you can do in sevlet code you can do also in JSP page. So it is a design decision what logic should be kept in JSP and what logic should tackled in a classic servlet

[appengine-java] Re: Can fliter the child class based on parent class's property?

2009-10-21 Thread leszek
It is not possible, your query filter should contain only 'direct attributes of the class. if you want to run query based on class number you need to have to duplicate this property from Classroom to Student. But I don't understand your problem. If you have 'one to 'many' relationship and want

[appengine-java] Re: why dont my two longs equal each other?

2009-10-21 Thread John V Denley
AHHH, that actually explains a lot of other problems I have been seeing with Long that i wasnt expecting so why would anyone use Long rather than long? Im guessing that long is actually a basic datatype I suppose I can go look that up myself though! Thanks for your help and input... I

[appengine-java] Re: why dont my two longs equal each other?

2009-10-21 Thread Max Zhu
persistence layer will try to set a null if one field has not been initialized, which leads to an exception. So you shall not try to persist a primitive type use Comparable.compare(Comparable o) instead, as nclemeur suggested. On Wed, Oct 21, 2009 at 6:20 PM, John V Denley

[appengine-java] Re: JDO/JPA Snippets That Work: Change of venue!

2009-10-21 Thread Jorge
Thanks for the lead Jason! I didn't know that page was there. Jorge Gonzalez On Oct 20, 12:25 pm, Jason (Google) apija...@google.com wrote: Hi Jorge. Have you seen the App Engine Cookbook? Users are free to post and search for code snippets:http://appengine-cookbook.appspot.com/ - Jason

[appengine-java] Re: Possible to Add Child to Owned One to Many Relationship Without Loading All Children?

2009-10-21 Thread Nacho Coloma
Maybe what you are looking for is DatastoreService.allocateIds(). On Oct 21, 9:35 am, leszek leszek.ptokar...@gmail.com wrote: You hit the nail on the head. As far as I know there is nothing like sequence in Google App Engine. Either you need to have another entity with a counter and increase

[appengine-java] Re: Removing jsessionid from URLs

2009-10-21 Thread Nacho Coloma
This is indeed the case if Jetty can check that cookies are properly handled by the client. But on the first access, Jetty has no way to check that cookies are accepted by the client so it will add the jsessionid automatically. This is why search engines suffer from this problem. If you use

[appengine-java] Re: having problems with JDO query serialization to memcache...

2009-10-21 Thread Larry Cable
cheers ... makes sense! On Oct 20, 2:05 pm, Jason (Google) apija...@google.com wrote: No. The StreamingQueryResult class, which is a List used by DataNucleus to store query results, does not implement Serializable which is required for all objects stored in memcache. But you can create

[appengine-java] LIKE query workaround for the Low Level API

2009-10-21 Thread George Moschovitis
Hi, what is the suggested way to emulate an SQL LIKE 'prefix%' query using the low level Datastore API? thanks, George. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to

[appengine-java] Re: Unicode problems

2009-10-21 Thread George Moschovitis
FYI, I fixed the problem with a little patch in narwhal (the commonjs implementation used by Jack): narwhal/engines/rhino/lib/binary-engine.js exports.B_DECODE_DEFAULT = function(bytes, offset, length) { return String(new Packages.java.lang.String(bytes, offset, length, UTF-8)); }

[appengine-java] Re: AccessControlException on OutputStream#write(byte b[], int off, int len)

2009-10-21 Thread Toby Reyelts
Can you send your app-id? (privately if you wish) On Wed, Oct 21, 2009 at 1:46 AM, Thomas Wiradikusuma wiradikus...@gmail.com wrote: Hi, The following Groovy snippet throws exception: byte[] responseData = byteOut.toByteArray()

[appengine-java] JDO/JPA Snippets That Work - Optimistic Locking With @Version

2009-10-21 Thread Max Ross
http://gae-java-persistence.blogspot.com/2009/10/optimistic-locking-with-version.html --~--~-~--~~~---~--~~ 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: local datastore cleanup

2009-10-21 Thread Jason (Google)
Hi Nikolay. What are your application IDs? - Jason On Tue, Oct 20, 2009 at 12:34 AM, Nikolay Gorylenko n0...@jug.ua wrote: This problem lasts for 3 weeks on Google AppEngine console. I switched to another applicationId, and everything was good for few moments - i was able to see my data.

[appengine-java] Re: Java vs. Python X-AppEngine-Estimated-CPM-US-Dollars

2009-10-21 Thread Jason (Google)
Aside from keeping steady HTTP traffic to your site, I'm afraid not. But as I wrote in my last post, we're making updates over the next few releases to drive this startup time lower. - Jason On Tue, Oct 20, 2009 at 2:06 AM, Marcel Overdijk marceloverd...@gmail.comwrote: Is there any other way

[appengine-java] Re: Spring MVC + Sitemesh problem

2009-10-21 Thread appenginetester
Thanks for this post, i thought i was going insane. I have deployed and redeployed dozens of times and see the same isssue -- empty site, no logs. Everything works fine in local eclipse environment. The deplyment to the app engine works with no errors. But when I access the application, there is

[appengine-java] Re: having problems with JDO query serialization to memcache...

2009-10-21 Thread a.maza
thanks jason for clarifying this. just to be sure since Larry's class carries the detachable=true annotation: keep detachable memcached objects their ability to be re-attached later on? thanks, andr On 21 Okt., 18:22, Larry Cable larry.ca...@gmail.com wrote: cheers ... makes sense! On Oct

[appengine-java] Re: having problems with JDO query serialization to memcache...

2009-10-21 Thread datanucleus
Just to mention, JDO (and DataNucleus) supports a Level2 cache, and can use javax.cache (GAE/J memcached) and is a single PMF property to turn it on. That way you don't need to play around putting objects into the L2 cache and getting them out yourself, its done for you.

[appengine-java] Re: Spring MVC + Sitemesh problem

2009-10-21 Thread Abhinav Lele
Have you tried increasing the log levels ? -- Abhinav -Original Message- From: appenginetester jsand...@zerofeelistings.com Sent: 21 October 2009 23:46 To: Google App Engine for Java google-appengine-java@googlegroups.com Subject: [appengine-java] Re: Spring MVC + Sitemesh problem

[appengine-java] Re: Paging through large data sets

2009-10-21 Thread Jason (Google)
There is probably some way to integrate the statistics API into a general purpose paging library, but I don't think it's necessary. Perhaps this could be useful to determine how many pages of data are available, but if you're using the paging techniques described in

[appengine-java] Re: AccessControlException (SerializablePermission enableSubclassImplementation) - Wicket on GAE

2009-10-21 Thread Esteban Masoero
Hi there: We've been running a wicket app on gae since last month, but without the need of implement memcache-based implementation of Wicket's IPageStore. Why are you doing that? (our wicket version is 1.3.7) Regards, Esteban a.maza escribió: Hi, I am trying to get Apache Wicket running

[appengine-java] Re: about missing values

2009-10-21 Thread Jason (Google)
No. If an entity does not have a value set for a particular property (null IS a value, different from missing), then it won't appear in any query results involving that property. You'll need to continue sifting through every entity to see if a value is set, and if not, setting it directly. - Jason

[appengine-java] Re: having problems with JDO query serialization to memcache...

2009-10-21 Thread Esteban Masoero
Thanks!. Although it wouldn't be a distributed cache, right? datanucleus escribió: Just to mention, JDO (and DataNucleus) supports a Level2 cache, and can use javax.cache (GAE/J memcached) and is a single PMF property to turn it on. That way you don't need to play around putting objects into

[appengine-java] Re: having problems with JDO query serialization to memcache...

2009-10-21 Thread datanucleus
Thanks!. Although it wouldn't be a distributed cache, right? Why? It will be exactly the same cache as what Google provide ... since DataNucleus puts things into it and gets them out, saving you the job of doing it. Nothing else is different --~--~-~--~~~---~--~~

[appengine-java] Re: having problems with JDO query serialization to memcache...

2009-10-21 Thread Esteban Masoero
You're right, I just misunderstood your comment. Thanks, Esteban datanucleus escribió: Thanks!. Although it wouldn't be a distributed cache, right? Why? It will be exactly the same cache as what Google provide ... since DataNucleus puts things into it and gets them out, saving you

[appengine-java] Re: select count(*) ?

2009-10-21 Thread Jason (Google)
The query restrictions are an artifact of the way App Engine's datastore is constructed, which makes certain operations (e.g. queries and reads) very fast and scalable but does limit the types of queries you can make, though you can typically get around these restrictions by re-thinking your model

[appengine-java] Re: Help me in Guestbook googlecode.

2009-10-21 Thread Jason (Google)
If you don't want to modify the JDOQL query, then you should be able to filter using a conditional in the loop. Something like: if (g.getAuthor().getEmail().equals(user.getEmail())) { // ... } Does this work? Is this what you're trying to do? - Jason On Tue, Oct 20, 2009 at 4:07 AM, Jefferson

[appengine-java] Re: Servelts versus JSPS

2009-10-21 Thread Hung
Thanks both for the quick responses. Leszek you are right with the MVC. I'm not great at writing web applications since i am fairly new to the whole situation but all of my web applications have been written with ASP.NET MVC. It seems then so far the way i have been writting my applications is

[appengine-java] Re: AccessControlException (SerializablePermission enableSubclassImplementation) - Wicket on GAE

2009-10-21 Thread Esteban Masoero
a.maza: That's correct, I'm using HTTPSessionStore because of the filesystem writing restriction. However, I'm interested in the implementation you are trying to do, so if you decide to share it with the community when it's done, I'll be happy to give it a try ;). Moreover, we have a

[appengine-java] using contains(Key) in JDO query

2009-10-21 Thread king
Can anyone help me to figure out how to write a query to do contains (Key) in JDO? Here is my scriplet: select from + master.class.getName() + where detailKeySet.contains(' + detail.getKey().toString() + ') where detailKeySet is a SetKey collection holding all the keys of the details for the

[appengine-java] Re: Possible to Add Child to Owned One to Many Relationship Without Loading All Children?

2009-10-21 Thread lent
Thanks Nacho. I asked the same question in google appengine chat irc and got the same answer. Will have to use the allocate id feature in low level api. Len On Oct 21, 7:41 am, Nacho Coloma icol...@gmail.com wrote: Maybe what you are looking for is DatastoreService.allocateIds(). On Oct

[appengine-java] Re: Java vs. Python X-AppEngine-Estimated-CPM-US-Dollars

2009-10-21 Thread david.zverina
Keeping steady HTTP traffic does not work either. I have a script which 'http pings' my application every 30 seconds. Yet my app-engine instance experienced 70 spin downs yesterday alone! I am REALLY looking to this update - until then I'd highly recommend staying away from Spring! On Oct 21,

[appengine-java] Re: Discussion on will-it-play-in-app-engine

2009-10-21 Thread Bob Schellink
Its worth mentioning that Apache Click 2.1.0 ships with an in-memory FileItemFactory implementation for Apache FileUpload. Meaning Click's file upload component works out of the box. Click uses OGNL for certain operations which clashes with GAE security manager. The solution, as mentioned in

[appengine-java] Re: having problems with JDO query serialization to memcache...

2009-10-21 Thread Larry Cable
excellent! On Oct 21, 11:20 am, datanucleus andy_jeffer...@yahoo.com wrote: Just to mention, JDO (and DataNucleus) supports a Level2 cache, and can use javax.cache (GAE/J memcached) and is a single PMF property to turn it on. That way you don't need to play around putting objects into the L2

[appengine-java] Re: java.lang.NoClassDefFoundError: com/google/appengine/api/datastore/CompositeIndexManager

2009-10-21 Thread Dominik Steiner
Hi, I got the same error, can you try adding the following jars to your classpath appengine-api-stubs.jar appengine-api.jar appengine-local-runtime.jar HTH Dominik On Oct 20, 7:21 am, stanlick stanl...@gmail.com wrote: I have configured my test environment according to the notes found here.

[appengine-java] Re: LIKE query workaround for the Low Level API

2009-10-21 Thread Roy Smith
Answered in this thread http://groups.google.com/group/google-appengine-java/browse_thread/thread/958851cc674d0c70/7403586fae9ffe20?lnk=gstq=startswith#7403586fae9ffe20 On Wed, Oct 21, 2009 at 6:34 PM, George Moschovitis george.moschovi...@gmail.com wrote: Hi, what is the suggested way to

[appengine-java] Re: Removing jsessionid from URLs

2009-10-21 Thread nclemeur
Ok, I have learned something new today :) You will only have this problem if you are creating a user session for each and every request. If you are a bit more conservative for creating user sessions (for example, storing data in cookies for the anonymous user) maybe this issue would

[appengine-java] Re: using contains(Key) in JDO query

2009-10-21 Thread Yasuo Higa
Hi king, On Thu, Oct 22, 2009 at 6:19 AM, king kingalpha...@gmail.com wrote: Can anyone help me to figure out how to write a query to do contains (Key) in JDO?  Here is my scriplet: select from + master.class.getName() + where detailKeySet.contains(' + detail.getKey().toString() + ')