[appengine-java] Code does not run server side.

2009-12-25 Thread Bert Peters
Some code, that i created and tested using Eclipse and the google plugin, seems not to run while installed on the App Engine, no matter what. I have really no idea what it couldd be, Anyone else an idea? By the way, the code for all files is listed below. Main file: package poaphost; import jav

[appengine-java] Re: Spring Security with GAE - Adding object into HttpServletRequest does not appear to be working

2009-12-26 Thread Bert Peters
What you could do, is check the logs, in your admin panel. They show which error is generated, and at which line. I had a similar problem once, and that helped. On Dec 24, 9:46 pm, "sulaimanmra...@googlemail.com" wrote: > Hi, > > I've created a GAE web application using Spring 3.0 and Spring > Se

[appengine-java] Re: Eclipse AppEngine Plugin

2009-12-26 Thread Bert Peters
Yes, it certainly could. For every version of eclipse, there is a specific update of the Google Plugin you need. For Galileo, you nee this: http://dl.google.com/eclipse/plugin/3.5 Make sure you've got that one, instead of the 3.4 one or something. On Dec 24, 10:40 am, Ambiency wrote: > I have rec

[appengine-java] Re: First Request High CPU

2010-01-11 Thread Bert Peters
I believe that, in normal situations, App Engine shuts down your application if it has not had any request for the last 10 minutes. You could set your cron to run it every five, and it should be good. I however do not understand how your (Ikai) cron could take up so much CPU use. I'd profile that.

[appengine-java] Re: Beginner question: one to many relationship

2010-01-11 Thread Bert Peters
If your database has been normalized, I'd say you need something these 2 queries: "SELECT FROM author.id WHERE author.name = nameParam, PARAMETER string nameParam" "SELECT FROM books WHERE book.author = idParam, PARAMETERS Key idParam" Or something like that. HTH. On Jan 10, 11:40 pm, fhucho wro

[appengine-java] Can an Integer be a primary key for JDO?

2010-01-16 Thread Bert Peters
I was just wondering whether I could use an Integer for a primary key in JDO, as it would be a great convenience in my application. I couldn't really find an answer to this in the documentation, so I ask you. Can I? -- You received this message because you are subscribed to the Google Groups "Goo

[appengine-java] Re: Can an Integer be a primary key for JDO?

2010-01-16 Thread Bert Peters
on (as opposed to > update) with a key that has its id field set is strongly discouraged > unless the key was returned by a KeyRange." > > So basically the answer is still no. > > Twig gets around this by converting whatever field you declare as a > @Key into a String and

[appengine-java] Re: Can an Integer be a primary key for JDO?

2010-01-17 Thread Bert Peters
back to something smaller by the library). > > JeffOn Sat, Jan 16, 2010 at 5:59 AM, Bert Peters > wrote: > > Thank you for that information, but that's not what i meant. > > What i did mean is whether this is correct/possible: > > > @PrimaryKey > > @Persistent(id

[appengine-java] JDO doesn't save every modification

2010-01-19 Thread Bert Peters
I have a problem with testing my app. A class, handled by some other class, saves only partial updates. Why is this, and what could I do to prevent it? The object that is not converted is a serialized List. -- You received this message because you are subscribed to the Google Groups "Google App

[appengine-java] Re: JDO doesn't save every modification

2010-01-19 Thread Bert Peters
? On Jan 19, 2:22 pm, John Patterson wrote: > On 19 Jan 2010, at 19:43, Bert Peters wrote: > > > A class, handled by some other > > class, saves only partial updates. > > I think you'll need to give a bit more context. -- You received this message because you are su

[appengine-java] Re: JDO doesn't save every modification

2010-01-19 Thread Bert Peters
CurrentBuildDone() { return currentBuildDone; } public void setCurrentBuild(Integer currentBuild) { this.currentBuild = currentBuild; } public Integer getCurrentBuild() { return currentBuild; } } List buildings is not saved, t

[appengine-java] Re: JDO doesn't save every modification

2010-01-19 Thread Bert Peters
Ok, here is the rest. Sorry about the bad problem definition: Basically, it's like this. (cp.base is an instance of the before mentioned Base class) Integer cb = this.base.getCurrentBuild(); cp.base.setBuildings(cb , this.base.getBuildings(cb) + 1);

[appengine-java] Re: JDO doesn't save every modification

2010-01-19 Thread Bert Peters
The type returned is "class java.util.ArrayList". Is there a possible way to fix this? On Jan 19, 8:30 pm, datanucleus wrote: > Look in the log (at DEBUG level) and see if the List field is replaced > by a wrapper type when you retrieve the overall object from the > datastore. Alternatively, prin

[appengine-java] Re: Forcing update of JPA entity

2010-01-21 Thread Bert Peters
JDO does not do this too. I think it is a rather annoying bug. Serializing does not work (use that too myself) and just modifing an element does not work too, as your program clearly found out. Still waiting for a fix though... On Jan 22, 12:50 am, Elias Mårtenson wrote: > On 22 Jan, 00:26, datan

[appengine-java] Re: generating sequential ids

2010-01-23 Thread Bert Peters
What you could do is something like this: public class Employee { @PrimaryKey @Persistent(valueStrategy = IdGeneratorStrategy.INCREMENT) private Long id; @Persistent private String department; @Persistent private String firstName; @Persistent private String lastName; } sta

[appengine-java] Re: Development Server on Windows 7 continues to run after CTRL-C

2010-02-27 Thread Bert Peters
Did you press CTRL+C inside the cmd prompt window? On 26 feb, 23:04, brianl wrote: > Running the development server on Windows 7 64-bit.  After CTRL-C of > the development server still seeing the Java process running in the > task manager.  Have to kill the process from the task manager before >

[appengine-java] Re: createLoginURL() and Sing-up behavior when running locally under Eclipse debugger?

2010-02-27 Thread Bert Peters
If you read on on that page, you'll see that: QUOTE: "The development server knows how to simulate the Google Accounts sign- in facility. When run on your local machine, the redirect goes to the page where you can enter ANY email address to simulate an account sign- in." This explains your problem

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

2010-07-05 Thread Bert Peters
I succesfully tested FreeMarker (www.freemarker.org) on App Engine. Care to add it to the list? -- 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...@googlegroups.com. To unsubsc

[appengine-java] Datastore questions

2010-07-05 Thread Bert Peters
A while ago there was a problem with arrays and lists, once persisted, not getting updated properly after a change of a certain value. I have two questions on that matter. 1. Does that still occur? 2. Does this bug affect (Hash)Maps as well? Kind regards, Bert Peters. -- You received this