Re: [appengine-java] Re: Is the any limitation on entity group size?

2010-04-13 Thread John Patterson
The datastore can only count up to 1000 results of a query - for your model you could use an ancestor query. You are probably better off keeping a counter in the parent and updating it every time you add or remove a child. Keep in mind that all writes to the entire group must be executed s

[appengine-java] Re: Is the any limitation on entity group size?

2010-04-13 Thread ailinykh
For example, I want to know a number of children. I guess if I just call list.size() it could be expensive. What are other ways? Thank you, Andrey On Apr 12, 4:18 pm, "Ikai L (Google)" wrote: > No, it should be fine UNLESS you want to load all these child objects in a > single request. As a ru

[appengine-java] Re: ordering a query

2010-04-13 Thread datanucleus
Specify ordering in one call setOrdering("nom ASC, prenom ASC"); This doesn't fix the issue with accented letters though -- 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...@go

[appengine-java] Re: JDO files

2010-04-13 Thread datanucleus
package-{datastore}.xml is there for exactly that purpose. e.g package-appengine.xml, package-hsqldb.xml, package-oracle.xml See the DataNucleus docs -- 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

[appengine-java] Re: Unit Test and JDO: The type com.google.appengine.tools.development.ApiProxyLocalImpl is not visible

2010-04-13 Thread Nick
I got it working by using the localProxy from org.datanucleus.store.appengine.LocalDatastoreDelegate On Apr 13, 2:21 pm, Nick wrote: > Thanks for the reply. > > I have followed those instructions, and I am able to run those tests > with no problems. > > However, I can not set up tests for JDO. >

[appengine-java] ordering a query

2010-04-13 Thread Vincent
Hy, I want to order a query by 'nom' asc and 'prenom' asc : try { Query query = null; query = pm.newQuery(AkroreUser.class); query.setRange(fromIncl, toExcl); query.setOrdering("nom ascen

[appengine-java] JDO files

2010-04-13 Thread doom777
I want to make my model portable across different JDO implementations. For that, I somtimes need to specify different Metadata for RDBMD and Appengine. How can I do that? -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to t

[appengine-java] LocalServiceTestHelper is not supported

2010-04-13 Thread Mark
Hi Folks, I'm stumped and I haven't found any references to a solution for this one. I added to my project the example code you'll find here: http://code.google.com/appengine/docs/java/tools/localunittesting.html Eclipse is complaining about the reference to LocalServiceTestHelper with this mess

[appengine-java] Object hierarchy and GAE datastore

2010-04-13 Thread korey_sed
I have three Classes (User, Person, Company) that are all subclasses of BaseClass. Company has a list of employees Person may have a user @PersistenceCapable(detachable="true") @Inheritance(strategy = InheritanceStrategy.SUBCLASS_TABLE) public abstract class BaseObject { @PrimaryKey @Persist

[appengine-java] Re: Blob Store service createUploadUrl() and a Dispatcher Servlet

2010-04-13 Thread Rahul Ravikumar
I am seeing the problem on DevAppServer. On Apr 13, 3:08 pm, Don Schwarz wrote: > Are you seeing this problem in the DevAppServer or when deployed to > our servers?  (Or both?) > > On Tue, Apr 13, 2010 at 4:27 PM, Rahul Ravikumar wrote: > > Are there any workarounds for this issue? > > > On Apr

[appengine-java] Re: Works on development server but it doesn't on GAE (Sessions).

2010-04-13 Thread TiagoP
Sorry for the duplicate post!! On 13 Abr, 23:45, TiagoP wrote: > Can anyone help me here please? > > On 13 Abr, 17:13, TiagoP wrote: > > > > > Yes, they are enabled. > > > What I realized now is that the _ah_SESSION variable is not being > > created, > >  not even on the development server (alth

[appengine-java] Re: Works on development server but it doesn't on GAE (Sessions).

2010-04-13 Thread TiagoP
Can anyone help me here please? On 13 Abr, 17:13, TiagoP wrote: > Yes, they are enabled. > > What I realized now is that the _ah_SESSION variable is not being > created, >  not even on the development server (although it works). > > On 13 Abr, 17:10, Peter Ondruska wrote: > > > > > Have you enab

[appengine-java] Re: Works on development server but it doesn't on GAE (Sessions).

2010-04-13 Thread TiagoP
Can anyone help me please? Thanks On 13 Abr, 17:10, Peter Ondruska wrote: > Have you enabled sessions? > Seehttp://code.google.com/appengine/docs/java/config/appconfig.html#Enab... > > On Apr 13, 5:52 pm, TiagoP wrote: > > > > > Hi, > > > I have this code that works just fine on the developmen

Re: [appengine-java] Re: Blob Store service createUploadUrl() and a Dispatcher Servlet

2010-04-13 Thread Don Schwarz
Are you seeing this problem in the DevAppServer or when deployed to our servers? (Or both?) On Tue, Apr 13, 2010 at 4:27 PM, Rahul Ravikumar wrote: > Are there any workarounds for this issue? > > On Apr 12, 7:48 pm, Rahul Ravikumar wrote: >> I am using DevAppServer - >> >> I have filed an issue

Re: [appengine-java] Filter on float value in JDO query

2010-04-13 Thread Ikai L (Google)
Try this: query.setFilter("pointsEarned < 0f"); This test case below worked for me: import com.google.appengine.tools.development.testing.LocalDatastoreServiceTestConfig; import com.google.appengine.tools.development.testing.LocalServiceTestHelper; import junit.framework.Assert; import org.jun

[appengine-java] Re: Blob Store service createUploadUrl() and a Dispatcher Servlet

2010-04-13 Thread Rahul Ravikumar
Are there any workarounds for this issue? On Apr 12, 7:48 pm, Rahul Ravikumar wrote: > I am using DevAppServer - > > I have filed an issue > :http://code.google.com/p/googleappengine/issues/detail?id=3083 > > You can reproduce the problem using a dispatch servlet and the > blobstore service toge

Re: [appengine-java] Strange characters showing in incoming emails

2010-04-13 Thread Esteban Ignacio Masoero
Hi: I think I'm experiencing the same problem. Strangely, I'm sending unicode (spanish) characters, specially the 'ñ' (spanish N), and I receive them well in the body part but not in the subject part of the email, where they appear as a '?'. I noticed this issue http://code.google.com/p/googleappe

Re: [appengine-java] Implementing a Custom User System on Top of App Engine User System

2010-04-13 Thread Ikai L (Google)
You can't avoid the extra datastore query. Since we use a key-value store, store additional details inside a UserDetail class. Instead of referencing the User in a property (this creates a 1:N relationship between Usersa and UserDetail), create a Key using KeyFactory.Builder ( http://code.google.co

[appengine-java] Updating JPA Entities on AppEngine

2010-04-13 Thread laserjim
Hey, So, I define some entity Foo, and create a hundred thousand instances of it. Now I want to add a variable of entity type Bar, and want to specify a default value. Null may be a valid value, but is not the default. One solution I've seen around the intertubes is to write a script that itera

Re: [appengine-java] Datastore Statistics shows different numbers then Quota Details

2010-04-13 Thread Ikai L (Google)
Your quota also includes space for indexes. That's likely the cause of the discrepancy. On Tue, Apr 13, 2010 at 6:50 AM, dmitrygusev wrote: > Hi, > > In quota details I can see that I'm using 31% of free quota limit: > > Total Stored Data 31% 0.31 of 1.00 GBytes > > However if I go to

[appengine-java] Re: Unit Test and JDO: The type com.google.appengine.tools.development.ApiProxyLocalImpl is not visible

2010-04-13 Thread Nick
Thanks for the reply. I have followed those instructions, and I am able to run those tests with no problems. However, I can not set up tests for JDO. On Apr 13, 11:45 am, Wayne Fay wrote: > > message, "The type > > com.google.appengine.tools.development.ApiProxyLocalImpl is not > > visible". >

Re: [appengine-java] javax.persistence.Persistence is a restricted class.

2010-04-13 Thread Toby Reyelts
You can get this error if you have jars in your JDK's lib/ext folder. The dev_appserver generally rejects any classes that are found there, because that feature doesn't make sense under App Engine. (I.E. you just put your jars in WEB-INF/lib instead). On Tue, Apr 13, 2010 at 10:00 AM, hallmit wro

[appengine-java] Re: Works on development server but it doesn't on GAE (Sessions).

2010-04-13 Thread TiagoP
Yes, they are enabled. What I realized now is that the _ah_SESSION variable is not being created, not even on the development server (although it works). On 13 Abr, 17:10, Peter Ondruska wrote: > Have you enabled sessions? > Seehttp://code.google.com/appengine/docs/java/config/appconfig.html

[appengine-java] Re: Works on development server but it doesn't on GAE (Sessions).

2010-04-13 Thread Peter Ondruska
Have you enabled sessions? See http://code.google.com/appengine/docs/java/config/appconfig.html#Enabling_Sessions On Apr 13, 5:52 pm, TiagoP wrote: > Hi, > > I have this code that works just fine on the development server but > when I deploy the application, the session isn't created. > > What am

[appengine-java] Works on development server but it doesn't on GAE (Sessions).

2010-04-13 Thread TiagoP
Hi, I have this code that works just fine on the development server but when I deploy the application, the session isn't created. What am I doing wrong? HttpSession session = req.getSession(true); session.setAttribute("loggedIn", new String("true")); -- You received this message because you ar

Re: [appengine-java] Unit Test and JDO: The type com.google.appengine.tools.development.ApiProxyLocalImpl is not visible

2010-04-13 Thread Wayne Fay
> message, "The type > com.google.appengine.tools.development.ApiProxyLocalImpl is not > visible". Did you follow the instructions? http://code.google.com/appengine/docs/java/tools/localunittesting.html Wayne -- You received this message because you are subscribed to the Google Groups "Google

Re: [appengine-java] Re: Error message after updating AppEngine in my project

2010-04-13 Thread Esteban Ignacio Masoero
Some posted this issue: http://code.google.com/p/googleappengine/issues/detail?id=3051 On Tue, Mar 30, 2010 at 11:02 PM, Rahul wrote: > Ikai, > > It doesn't break anything and neither does it stops from deploying but > it just looks ugly and we might miss the real error if any during the > depl

[appengine-java] Unit Test and JDO: The type com.google.appengine.tools.development.ApiProxyLocalImpl is not visible

2010-04-13 Thread Nick
I would like to write local unit tests for jdo. I am following the following tutorial but I get an Eclipse error message, "The type com.google.appengine.tools.development.ApiProxyLocalImpl is not visible". - http://blog.appenginefan.com/2009/05/jdo-and-unit-tests.html I have tried all suggested

[appengine-java] Re: JPA: Query contains stale data (bug or future)?

2010-04-13 Thread danblack
Can anyone help me? On Apr 9, 6:47 pm, Denis Chernyshov wrote: > Here is my full log. > > 09.04.2010 12:20:15 org.datanucleus.ObjectManagerImpl > FINE: Object Manager "org.datanucleus.objectmanageri...@1dfa916" opened for > datastore "org.datanucleus.store.appengine.datastoremana...@13a1505" > 0

[appengine-java] Re: Serialization of lists for the datastore

2010-04-13 Thread Jochen Schnaidt
Update: The serialization is a bug in RPC. I got a workaround for it but the javax.jdo.JDOException still occurs. :-( On Apr 13, 3:22 pm, Jochen Schnaidt wrote: > Hi, > I’m building an application with GWT and GAE and have a problem saving > data in the datastore. In my application I generate a l

[appengine-java] Does AppEngine really include JPA Support

2010-04-13 Thread Al Sutton
>From http://code.google.com/appengine/docs/java/datastore/usingjpa.html; "The App Engine Java SDK includes an implementation of JPA 1.0 for the App Engine datastore." But from a couple of days work I've already found the following things which don't comply with the JPA spec; - Strings can't be

[appengine-java] javax.persistence.Persistence is a restricted class.

2010-04-13 Thread hallmit
hi folks, I've had a very strange issue when I'm deploying my web app in local server(jetty). I got this message: Caused by: java.lang.NoClassDefFoundError: javax.persistence.Persistence is a restricted class. Please see the Google App Engine developer's guide for more details. at com.google.app

[appengine-java] Serialization of lists for the datastore

2010-04-13 Thread Jochen Schnaidt
Hi, I’m building an application with GWT and GAE and have a problem saving data in the datastore. In my application I generate a list which consists of lists of strings, looks this way: List> trackList; It compiles but gives me a warning: [WARN] Warnings in generated://D271BF8A9063BFFBB6E2618C9E2

[appengine-java] bouncycastle add provider failure

2010-04-13 Thread mbattula
Hi, I have tried to add the bouncycastle JCE provider in the code.But at runtime it is throwing java.security.AccessControlException. is it because of my coding mistake or 'Security.addProvider' is forbidden by GAE. the stack trace is here: java.security.AccessControlException: access denied (j

[appengine-java] Implementing a Custom User System on Top of App Engine User System

2010-04-13 Thread klonq
I'm an old school Perl programmer from way back and thinking about getting back into the web_dev game. So I've been reading up on app engine and have decided to go with Java because I know even less about Python than I do Java. But my question is this, how would one go about implementing a user sy

Re: [appengine-java] Re: How to exclude the optional jars for deployment?

2010-04-13 Thread John Patterson
On 13 Apr 2010, at 19:56, Jake wrote: I mean, the latest SDK (1.3.2) isn't even in the central repository yet :) If it helps you can add this: twig http://mvn.twig-persist.googlecode.com/hg which is kept up-

[appengine-java] Re: Any examples on how to use the data store low level Java API?

2010-04-13 Thread Didier Durand
Hi Fred, The most detailed samples that I found up to now are in this book: http://www.amazon.com/Programming-Google-App-Engine-Infrastructure/dp/059652272X/ref=sr_1_1?ie=UTF8&s=books&qid=1271167954&sr=8-1 Many chapters devoted to Datastore in all its aspects. The definite reading for your needs!

[appengine-java] Datastore Statistics shows different numbers then Quota Details

2010-04-13 Thread dmitrygusev
Hi, In quota details I can see that I'm using 31% of free quota limit: Total Stored Data 31% 0.31 of 1.00 GBytes However if I go to Datastore Statistics I see that the Size of all entities it only 70 MBytes What uses 310-70=240 MBytes of my database quota? Also in Datastore Statistic

[appengine-java] Re: How to exclude the optional jars for deployment?

2010-04-13 Thread Jake
I tried using GPE 1.3 here: http://groups.google.com/group/google-appengine-java/browse_thread/thread/2212abc544b3cef5/ However, I never managed to get it working properly and gave up after a few hours. I currently use plain maven with an Ant script to run the command line GAE tools. I'll probabl

[appengine-java] Persistence, parents and keys

2010-04-13 Thread gemma
Hello! I'm currently writing an app where the datamodel has a set of Category objects with SubCategory children which represents a classification tree. I've now gotten to the stage where I'm attempting to apply these Category and SubCategory objects as attributes of an Item object, but am getting

[appengine-java] Re: java.lang.RuntimeException: java.io.NotSerializableException: + objectify framework

2010-04-13 Thread Nacho Coloma
Aditya, you need to post (at least) your stack trace to get help. On Apr 12, 9:30 am, Aditya Rathi wrote: > I have not modified anything in DWR. But the same code was working with JDO; > I have migrated it to Objectify keeping the action layer unchanged. > > This is working fine on my local envir