[appengine-java] Re: Memory Leak in the EntityManagerFactory?

2010-03-15 Thread David Fuelling
Hey Max, Took a heap dump using two different scenarios. In test 1, I set the - Xmx to 100M, and in test 2 I set the max to 512M, and am comparing the difference between the number of objects across the two memory scenarios. In my code, I'm running a for-loop that executes 5000 times, and most

[appengine-java] Re: JPA enhancement problem (DataNucleus)

2010-03-13 Thread David Fuelling
I get this issue pretty often too, although my experience is that you likely have an issue with one of your entities (sometimes your entity can be properly coded, but there could be a fluke with how DataNucleus +GAE interpret a particular feature/annotation, especially with JPA). For example, I

[appengine-java] Re: Memory Leak in the EntityManagerFactory?

2010-03-13 Thread David Fuelling
you're bumping into.  Have you tried taking a heap dump to see what exactly is building up? On Fri, Mar 12, 2010 at 1:27 PM, David Fuelling sappe...@gmail.com wrote: I have a JUnit test class that is attempting to test some JPA datastore create operations, and I'm getting results that *seem

[appengine-java] Named TaskQueue not working (Task Queue)

2010-02-06 Thread David Fuelling
I'm trying to use a named TaskQueue in my app as follows, but am unable to use a named-queue. Here's my code: Queue queue = QueueFactory.getQueue(named-queue); TaskOptions to = TaskOptions.Builder.param(param, paramValue); to = to.url(/queues/named-queue-runner); queue.add(to); Upon calling

[appengine-java] Re: Error in Production Datastore Explorer

2010-01-31 Thread David Fuelling
Hi Wesley, Thanks for the heads up. Any reason an empty-String cannot be used for a Link? I was coding defensively by making all Link object default to an empty String (since in order to do anything with them I need to constantly be calling the getValue() function on the Link). Now, I have to

[appengine-java] Re: Error in Production Datastore Explorer

2010-01-26 Thread David Fuelling
Hi, I responded directly to your email with out app-id. Any ideas? Thanks! david On Dec 28 2009, 10:39 pm, Ikai L (Google) ika...@google.com wrote: What is your application ID? On Tue, Dec 22, 2009 at 2:18 PM, David Fuelling sappe...@gmail.com wrote: Hello, I am getting an error

[appengine-java] Empty DataNucleus Enhancer Log

2010-01-08 Thread David Fuelling
Is there a special trick to viewing the DataNucelus enhancer log in Windows Vista? In my {$USER}\AppData\Local\Temp directory I see new files like enhance5972975064635271229.log get created whenever the enhancer runs, but they're always empty. Am I looking in the wrong spot? Also, I have my

[appengine-java] Re: Datanucleus initialization performance

2010-01-07 Thread David Fuelling
You could setup a cron job to hit a servlet every minute to keep your container alive. That way your app is always fresh (unless you get so much traffic that new instances need to spawn up for scaling purposes). david On Jan 5, 2:52 pm, Todd Lindner todd.lind...@gmail.com wrote: Since Google

[appengine-java] Re: authentication

2009-12-22 Thread David Fuelling
I've been testing out Spring Security 3.0 combined with RPX from Janrain. Basically I can authenticate via Google, Facebook, Twitter, OpenID, Yahoo, Live, etc. Works great (although startup is a bit slower than normal due to Spring -- using the precompile option helps). On Dec 22, 6:02 am,

[appengine-java] Using the DataNucleus parent-pk extension?

2009-12-20 Thread David Fuelling
Kind of an involved question, but I'm wondering if it's possible to use the parent-key pattern with JPA to search for N child entities of a given parent that have a particular property. I can get this to work if I include the parent object in my child entity, but I'd like it to work when I just

[appengine-java] StackOverFlowError on JPA Remove() with @OneToMany and abstract base classes.

2009-12-20 Thread David Fuelling
I'm pretty sure my issue is a bug, but upon further reflection I figured I'd bring it to light here in the discussion groups just to be sure. Here's the issue, with test code: http://code.google.com/p/googleappengine/issues/detail?id=2541 Basically, I'm trying to model a User entity that has

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

2009-12-12 Thread David Fuelling
Thanks Max, that fixed my problem with the inheritence. One other question: What version of the ORM code is currently included in the 1.2.8 SDK? I only ask because I noticed that the release notes for ORM VERSION 1.0.4 Final includes Support datastore cursors, and am wondering if that is

[appengine-java] Statistics and JUnit

2009-12-12 Thread David Fuelling
I'm running some JUnit tests to excercise my data-layer classes using the TestEnvironment patter implementing ApiProxy.Environment (i.e., so I can test my code's datastore operations inside of JUnit). The tests run fine, except when I try to interact with the Statistics from inside of a test.

[appengine-java] Re: FetchType.Lazy produces JDODetachedFieldAccessException while FetchType.EAGER does not...

2009-12-12 Thread David Fuelling
Sorry for not clarifying -- my example is all JPA, and the import statements in my code imply the following: @javax.persistence.OneToOne @javax.persistence.Embedded On Dec 11, 5:06 am, Rusty Wright rwright.li...@gmail.com wrote: Are you mixing ORMs? �...@onetoone is JPA and @Embedded is JDO?  

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

2009-12-10 Thread David Fuelling
Hmm...looks like I'm not using @MappedSuperclass in my abstract parent class. I'll give that a try and see if it fixes things. On Dec 9, 8:27 pm, David Fuelling sappe...@gmail.com wrote: Thanks Max!  Just updated to 1.2.8 and ran into this problem.  The workaround looks good, though I think

[appengine-java] FetchType.Lazy produces JDODetachedFieldAccessException while FetchType.EAGER does not...

2009-12-10 Thread David Fuelling
I have an entity with a ListString in it as follows: @OneToOne(fetch = FetchType.LAZY) @Embedded public SetString getWords() { return words; } public void setWords(SetString words) { this.words = words;

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

2009-12-09 Thread David Fuelling
Thanks Max! Just updated to 1.2.8 and ran into this problem. The workaround looks good, though I think you specified the boolean value wrong if you want to disable this error. Should be: property name=datanucleus.appengine.multipleRelationsOfSameTypeAreErrors value=false/ In my case, the app

[appengine-java] Re: Querying child objects

2009-10-30 Thread David Fuelling
Bump. I'm running into this same exact problem -- I have the same type of entity setup, and am do a key-only query on a non-root object. Also getting the same exact Illegal argument error. I get the error whether I'm running in a transaction or not (which is strange -- I have my property

[appengine-java] Re: Querying child objects

2009-10-30 Thread David Fuelling
datanucleus.appengine.autoCreateDatastoreTxns to). So, given that this is a simple keys-only query scenario (i.e., no entity manipulation or updating is going on), why is the DataNucleus/ JPA code trying to make some updates to entity Date fields (thus triggering a transaction exception)? Thoughts? On Oct 30, 2:48 pm, David Fuelling sappe

[appengine-java] Batch-Get Ordering not correct with JPA?

2009-10-29 Thread David Fuelling
I'm testing some code that mirrors the JPA batch-get example on this page (http://gae-java-persistence.blogspot.com/2009/10/executing-batch- gets.html). I start off with a list of 10 Keys (these happen to be in numerical order starting from Message(1) to Message(10)). When I execute the

[appengine-java] Re: Exception since upgrading to 1.2.5

2009-09-15 Thread David Fuelling
I was also getting this error after upgrading to 1.2.5, except that in my case the javax.jdo.JDODetachedFieldAccessException was happening when I tried to access a simple 'com.google.appengine.api.datastore.Text' field on a Detached object (Datanucleus must be treating Enumerated fields like a

[appengine-java] Max Read / Queries per Second in Datastore?

2009-08-30 Thread David Fuelling
Hi, In other threads on this forum I've read that the Datastore can handle between 1 and 10 Writes per Second for an Entity (or Entity Group). I'm wondering if there's a similar bottleneck for reads-ueries in the datastore. Does anyone know what the max number of Reads I should expect is?