[appengine-java] Performance issue for GAE auto-restart

2010-06-02 Thread Tin
Hi all: We're using GAE to develop our project, but I found I have a performance issue, when checking the logs I found the GAE will auto- restart every 30-60 sec. Someone tell me this's because if the web app wasn't used much, GAE will dispose the instances, and after that made a load request to s

[appengine-java] Re: Transaction exception when not using a transaction ?

2010-06-02 Thread Millisecond
Even though you're not using transactions, I think it's trying to make the .close() call atomic (maybe with an internal implicit transaction), failing or succeeding as a whole. And as I understand it, entities not in the same group can be stored on separate machines so can't be operated on atomica

Re: [appengine-java] simple relation

2010-06-02 Thread John Patterson
You will need to use an ObjectDatastore instead of JDO if you want to use direct references as in your example. http://code.google.com/p/twig-persist/ If you @Embed Work in User you can retrieve all in a single query http://code.google.com/p/twig-persist/wiki/Configuration#Storage_Options On

Re: [appengine-java] stuck indexes ?

2010-06-02 Thread RAVINDER MAAN
I see same problem it takes hours to build indexes.is there any faster way? On Thu, Jun 3, 2010 at 10:03 AM, Bruce wrote: > Hi, > I have an app at 'omwatcher.appspot.com' with a very small database, > yet two indexes seem to be stuck with Status=Building. Can someone > help? > Thanks. > > -- >

Re: [appengine-java] simple relation

2010-06-02 Thread RAVINDER MAAN
Thanks Bill I have experience with hibernate thats why i thought it could be possible. On Thu, Jun 3, 2010 at 12:00 AM, Bill Milligan wrote: > > I believe you're going to have to change this to > > class User { > String name; > List workNames; // or List workIds; > } > > class Work { > Stri

[appengine-java] stuck indexes ?

2010-06-02 Thread Bruce
Hi, I have an app at 'omwatcher.appspot.com' with a very small database, yet two indexes seem to be stuck with Status=Building. Can someone help? Thanks. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send

[appengine-java] Transaction exception when not using a transaction ?

2010-06-02 Thread JD
I have a PersistenceManager PersistenceManager pm = PMF.get().getPersistenceManager(); which I use to do a bunch of operations on different objects, but WITHOUT transaction (run queries, store entities and lookup entities). I then close the manager with pm.close() and get this obscure error tha

[appengine-java] Re: Spring Roo + GWT Demo

2010-06-02 Thread EN
Scroll down for the "Deploy to Google App Engine" section: http://blog.springsource.com/2010/06/02/using-springsource-tool-suite-2-3-3-m1-with-roo-and-gwt/ On May 30, 11:42 am, Marcel Overdijk wrote: > Yes would be cool if they finally share the code. > It was a big announcement and people want t

[appengine-java] Nested Embedded Classes do not work with GAE 1.3.4?

2010-06-02 Thread Johnny
I have a simple 3 class example: @PersistenceCapable public class MyUser { @Persistent @Embedded private ContactDetails contactInfo; ... } @PersistenceCapable @EmbeddedOnly public class ContactDetails { @Persistent @Embedded private MyPostalAddress address ... } @PersistenceCapable @

[appengine-java] Uploading to blobstore gives OutOfMemoryError

2010-06-02 Thread Jean Hsu
Hi all, I am trying to set up a basic file upload to blobstore, but I get this OutOfMemoryError: WARNING: Error for /_ah/upload/ aghvbWdkcmVzc3IcCxIVX19CbG9iVXBsb2FkU2Vzc2lvbl9fGMACDA java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2786) at java

[appengine-java] Re: Spring Roo + GWT Demo

2010-06-02 Thread Roger Itai
You can search "Deploy to Google App Engine" on this post http://blog.springsource.com/2010/06/02/using-springsource-tool-suite-2-3-3-m1-with-roo-and-gwt/ On 28 maio, 15:44, caritos wrote: > Looking for documentation to deploy Spring Roo + GWT + STS on GAE. > > On May 28, 11:03 am, geoaxis wrote

[appengine-java] the support to JPA

2010-06-02 Thread Tao
Hi everyone in the tuto, why there is so few articles with JPA? -- 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 unsubscribe from this group, send emai

Re: [appengine-java] "timestamp check failed" error

2010-06-02 Thread Ikai L (Google)
If I had to guess: your system clock is off. Try syncing it with a network time server and try again. On Wed, Jun 2, 2010 at 6:57 PM, iodsfjoipsdfi ijsdpfijd < gaefjga...@gmail.com> wrote: > Hi, > > I deployed some of my GAE apps to the production server some months > ago and it worked perfectly.

[appengine-java] "timestamp check failed" error

2010-06-02 Thread iodsfjoipsdfi ijsdpfijd
Hi, I deployed some of my GAE apps to the production server some months ago and it worked perfectly. Recently I haven't been using GAE but now I have to. When I try to deploy my app to the production server I always get this error log: Unable to update: javax.net.ssl.SSLHandshakeException: sun.s

[appengine-java] Re: Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4

2010-06-02 Thread Andrew
Hi Bill, Can you send me the steps to reproduce it so I can see if I am observing the same thing please? Regards, Andrew. On Jun 3, 10:32 am, Bill Milligan wrote: > If you've gotten past point 2, I'd love to see it.  Redeploying every time I > make a change is driving me batty. -- You receive

Re: [appengine-java] Re: Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4

2010-06-02 Thread Bill Milligan
If you've gotten past point 2, I'd love to see it. Redeploying every time I make a change is driving me batty. On Wed, Jun 2, 2010 at 7:38 PM, Andrew wrote: > Thank you very much Bill. The suggestion in point 1 worked a treat. > > To answer your other questions, I am using asm 2.1 and spring

[appengine-java] Re: Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4

2010-06-02 Thread Andrew
Thank you very much Bill. The suggestion in point 1 worked a treat. To answer your other questions, I am using asm 2.1 and spring 3.0.2. My url pattern is: /* When I said that the app was actually running, I meant that even though there were those errors in the console, I was able to browse to

[appengine-java] Re: Problems enabling Second-level cache with JPA

2010-06-02 Thread Erik Bengtson
Fixed in datanucleus 2.1 http://www.jpox.org/servlet/jira/browse/NUCCORE-539 On 4 mai, 21:22, Sérgio Lopes wrote: > Thanks for the reply. > > And about citing GAE caveats: maybe that's a good idea to promote your > product (I can speak for myself: I never heard about datanucleus before GAE, > and

Re: [appengine-java] MemCache expiring around once a day

2010-06-02 Thread Rahul Juneja
Ikai, Yes you are right the expensive part is initializing the EntityManagerFactory in my case. Is there any way we can improve the performance on that. Thanks, Rahul -- Rahul Juneja http://techlabs.thoughtclicks.com On Wed, Jun 2, 2010 at

Re: [appengine-java] Already has the maximum number of versions, but I have only one.

2010-06-02 Thread Miroslav Genov
Today all day I get the same error when trying to upload an updated version of my application. I try to remove one existing version (currently I have 5 version of my app) but the administrative panel is failing with the following error: " A server error has occurred.". Any idea what is causing

Re: [appengine-java] simple relation

2010-06-02 Thread Bill Milligan
I believe you're going to have to change this to class User { String name; List workNames; // or List workIds; } class Work { String name; String userName; // or Long userId; } This is actually you'd design this under the MDA paradigm, actually. You need to be able to change each independentl

Re: [appengine-java] simple relation

2010-06-02 Thread RAVINDER MAAN
Thank you so much for your answer Bill yes you are rite the way i wrote its many to many relation.Actually I want relation as below class User{ Long id; String username; List workList; } class Work{ Long id; String workname; String username; } you can see work class has username and user

[appengine-java] Dev Server: response.setHeader() has no effect

2010-06-02 Thread keyurva
On the dev server I call setHeader() on the response but it doesn't seem to set it - coz when I call containsHeader() immediately after calling setHeader() it returns false. response.setHeader("Content-Encoding", "gzip"); logger.info(response.containsHeader("Content-Encoding")); //prints false Is

Re: [appengine-java] Failure to write objects to HttpSession - NotSerializableException : LazyResult

2010-06-02 Thread Ikai L (Google)
The User isn't serializable. Are you using the standard User class or a custom User class? On Tue, Jun 1, 2010 at 8:03 PM, Shawn Draper wrote: > I am storing user-profile information in the data store and retrieving > with the following code: > > public static User getUserByID ( String userName

Re: [appengine-java] simple relation

2010-06-02 Thread Bill Milligan
Are you trying one-to-many or many-to-many? By using a third table it sounds like you're trying to do many-to-many, not one-to-many. As best I can determine, the only real way to do this in GAE is to have a User class with a collection of string properties, containing the list of all Work ids. I

Re: [appengine-java] guest book appln throws exception

2010-06-02 Thread Ikai L (Google)
You're using a JRE instead of a JDK. There are a couple of posts about these: http://www.google.com/search?sourceid=chrome&ie=UTF-8&q=Caused+by:+java.lang.ClassNotFoundException:com.sun.tools.javac.Main+servlet&qscrl=1 On Tue, Jun 1, 2010 at 10:37 PM, shanthi ramabhadran <77can...@gmail.com>wrote

Re: [appengine-java] Using Task Queue while storing entities

2010-06-02 Thread Ikai L (Google)
Move method1() to a method inside a servlet invoked by the Task Queue, then inside your servlet call queue.add(). On Tue, Jun 1, 2010 at 8:49 PM, drift elysium wrote: > hi, > > I'd like to know how exactly I should include the code for TaskQueue. > > I saw this line in the docs. > > queue.add(url

Re: [appengine-java] MemCache expiring around once a day

2010-06-02 Thread Ikai L (Google)
There's very little cost to "connecting" to the datastore. If this is an issue, I'd look at the low-level API for anything that could be a warm-up request. The expensive part of this is initializing your PersistenceManagerFactory/EntityManagerFactory, not establishing a datastore connection. On Tu

Re: [appengine-java] Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4

2010-06-02 Thread Bill Milligan
Originally, I'd thought something along the same lines, but this isn't the case. In my running server there's no asm running in my application classpath, environment, or lib/ext. It's only in GAE and my application. On Wed, Jun 2, 2010 at 12:04 PM, Toby Reyelts wrote: > It looks like you hav

[appengine-java] Failure to write objects to HttpSession - NotSerializableException : LazyResult

2010-06-02 Thread Shawn Draper
I am storing user-profile information in the data store and retrieving with the following code: public static User getUserByID ( String userName ) throws Exception { PersistenceManager mgr = PMF.getInstance ( ).getPersistenceManager ( ); Query query = mgr.newQuery ( User.class

[appengine-java] Re: Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4

2010-06-02 Thread Bill
Okay, a few things I found out -- 1. The suggestion at http://code.google.com/p/googleappengine/issues/detail?id=2527 works quite well. You'll find the afflicted appengine-agent.jar in your eclipse plugins folder under com.google.appengine.eclipse.sdkbundle./appengine-java-sdk- /lib/agent. Us

[appengine-java] simple relation

2010-06-02 Thread RAVINDER MAAN
Hello all can anybody please tell me how to implement simple one many relation in java.I have user table and work table .Any user can do many type of works.In user table i have userid but it is not primary key of the user table.Then i have work table which has workid it is also not primary key o

[appengine-java] Re: JSP code debug: Compiled JSP location in local environment

2010-06-02 Thread Philip Tucker
FYI, on a Mac I found it in /var/folders/zz/zzzivhrRnAmviuee++-ZXU+ +NMs/-Tmp-/Jetty_127_0_0_1__war.g0qk00/jsp/org/apache/jsp -- 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-appen

[appengine-java] Re: Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4

2010-06-02 Thread Bill
I am stuck at precisely the same point. Which version of asm are you using? I've tried 3.3 and 2.1. I'm assuming you're using the latest Spring? That article uses the old M2 from a year back. It almost appears that the ClassLoader is doing some on-the-fly rewriting of class code, but that th

Re: [appengine-java] Security restrictions may not be entirely emulated errors in Dev mode with Spring 3.0 on 1.3.4

2010-06-02 Thread Toby Reyelts
It looks like you have a version of ASM that is incompatible with the dev_appserver's version hanging around. Do you have ASM in your JRE's lib/ext folder? On Tue, Jun 1, 2010 at 10:56 PM, Andrew wrote: > Hi, > > I'm trying to get spring 3.0 up and running as per the blog post at > > > http://ww

[appengine-java] Re: node allocation

2010-06-02 Thread theresia freska
Yes, I mean the node as computational unit, the JVM. Thanks for the clear explanation! On Jun 1, 4:28 pm, Wilson MacGyver wrote: > I think he wants to control how many JVMs GAE spawn up to run > your app. obviously the answer is no. > > On Tue, Jun 1, 2010 at 10:17 AM, Tristan wrote: > > ... > >

[appengine-java] Re: JSONMarshaller on GAE

2010-06-02 Thread François
This is happening locally. I'm using eclipse galileo. I tested all the tips i found on this page http://groups.google.com/group/google-appengine-java/browse_thread/thread/67cb7cdaefc8429f but i'm still stuck. Thank you for your time. On 2 juin, 00:42, "Ikai L (Google)" wrote: > Is this exceptio

[appengine-java] Re: Debug Local var.

2010-06-02 Thread ww34ww34
Yes ,you're right... I got it! Dummy problem, thank's a lot! On 2 Giu, 00:54, "Ikai L (Google)" wrote: > Try setting your default logging level to .INFO or .FINE. You're probably > seeing some of the info printed to your console, but not all. > > > > On Mon, May 24, 2010 at 4:37 AM, ww34ww34 wro