[appengine-java] Regarding execution flow of my sample app in jdo

2009-09-15 Thread anu
Hi everyone, I have been in process of developing a sample app in jdo using googleappengine with java, and i have developed that application by folowing sample apps in the demos folder appengine-java-sdk-1.2.5\demos\ and my application name is Guestbook in demos folder ,i followed the same

[appengine-java] Re: RPC call and variables

2009-09-15 Thread Sahil Mahajan
Hello Thanks leszek and Bulat for your reply I am learning datastore service and then would try to solve my problem through it. But I would like to know more about "external service to store variables". I need comet like feature in my application. My application would require many such calls and

[appengine-java] Accessing file from within a jar file

2009-09-15 Thread Sarhan
How do you access a file inside of a jar file in the appengine? I was able to successfully do it on my local box, but i get a FileNotFoundException while in the cloud. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups

[appengine-java] Re: cron query

2009-09-15 Thread antshpra
no... On Wed, Sep 16, 2009 at 3:47 AM, bgood wrote: > > Is it possible to specify the start time for a scheduled task that > happens at regular intervals? > > For example, if I want something to happen at 12:00, 12:10, 12:20 ... > (not e.g. 12:03, 12:13, 12:23...) > > ? > thanks > > > --~--~---

[appengine-java] Re: cron query

2009-09-15 Thread antshpra
no... On Wed, Sep 16, 2009 at 3:47 AM, bgood wrote: > > Is it possible to specify the start time for a scheduled task that > happens at regular intervals? > > For example, if I want something to happen at 12:00, 12:10, 12:20 ... > (not e.g. 12:03, 12:13, 12:23...) > > ? > thanks > > > --~--~---

[appengine-java] Re: JDO/JPA Snippets That Work - Creating a bidirectional, owned, one-to-many relationship

2009-09-15 Thread Max Ross
GAE does not support joins so Book.chapters is always lazy loaded. I'm guessing the old posts you're thinking of relate to lazy loading of non-relationship fields (Strings, ints, Dates, etc). These cannot be lazy loaded because GAE only fetches entire entities from the datastore (one exception to

[appengine-java] Re: Can I avoid Data Nucleus and still use JPA?

2009-09-15 Thread jeremy rose
On Sep 15, 2:46 am, WilliamF wrote: > As leszek says I think you have a few things confused: > > DataNucleus is a JDO/JPA implementation that can run within AppEngine. > > AppEngine provides 2 persistence mechanisms, BigTable and VFS (Virtual > File System). You cannot configure your GoogleApp

[appengine-java] Re: Can I avoid Data Nucleus and still use JPA?

2009-09-15 Thread jeremy rose
On Sep 15, 3:32 am, leszek wrote: > Nobody can contradict that DataNucleus is a high quality software. The > fact that it is Google's persistence provider of choice speaks for > itself. I haven't had the pleasure of really using DataNucleus (at least not yet) but I'm willing to believe its grea

[appengine-java] appengine with gwt and gwt-ext

2009-09-15 Thread GregGG
Just in case others are interested, after getting my app working with gwt, I decided to see if I could use gwt-ext as well. I seem to have gotten my app working with gwt-ext fine in my eclipse developer environment by following the helpful instructions at http://paulgrenyer.blogspot.com/2009/04/

[appengine-java] Re: Can I avoid Data Nucleus and still use JPA?

2009-09-15 Thread jeremy rose
On Sep 15, 12:30 am, leszek wrote: > Sorry, but I'm afraid that you are completely on the bad track : > > - Google App Engine JPA supports only some subset of JPA > implementation, it is unlikely that your existing-not trivial  JPA > application will migrate to Google App Engine without hefty c

[appengine-java] Re: JDO/JPA Snippets That Work - Creating a bidirectional, owned, one-to-many relationship

2009-09-15 Thread Bulat Sirazetdinov
I have several questions on lazy loading. How can I make JDO (or JPA) lazy load Book.chapters on GAE? Is Chapter.book in your example really lazy loaded on GAE? P.S. I've found some old posts stating that lazy loading is not working on GAE datastore service. That's why I'm asking those questions.

[appengine-java] Re: RPC call and variables

2009-09-15 Thread Bulat Sirazetdinov
There are two ways. To use a GAE datastore service. Or to use some external service to store that value there - especially when you need Comet or something like that. On Sep 15, 6:50 pm, leszek wrote: > It is a clustered environment and you cannot assume that every request > is run in the JVM. I

[appengine-java] Re: GWT Books

2009-09-15 Thread Rob
Looks like you posted to the App Engine group by accident when you meant to post to the GWT group. http://groups.google.com/group/google-web-toolkit Rob On Sep 15, 9:29 am, vijay wrote: > Hi All,I am new to GWT and would like to get in depth knowledge of GWT, I > ... --~--~-~--~~--

[appengine-java] Re: Maven

2009-09-15 Thread Nikolay Gorylenko
or here : http://code.google.com/p/google-maven-repository/source/browse/repository/com/google/appengine/ --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, sen

[appengine-java] Will Google App Engine be available in the Government Cloud?

2009-09-15 Thread Jay Wallingford
Today, Sept 15th, Google announced that they will have a separate cloud for government applications. This appeared to be targeted towards Google Apps - email, docs, etc. but I'm wondering whether anyone knows whether AppEngine, Java in particular, will be supported in the government cloud as well?

[appengine-java] Re: ClassLoading Problems in FileUpload Servlet

2009-09-15 Thread John
Ok having thought about what Toby said and allied to what I knew I went back to retest basics, which no longer worked!!! On investigation I see that all of my projects have empty lib areas, except for gwt- servlet.jar. I created a new Eclipse project and sure enough it has been created with all o

[appengine-java] Re: How to grow your data model over the long term

2009-09-15 Thread bgood
Purely from experimenting with this (if anyone can identify a reference to a good doc that would be great) I've succeeded with the "just add the new fields" approach described above. The hiccups I've experienced are that you have to use nullable types for your new properties (e.g. an int won't wo

[appengine-java] Re: ClassLoading Problems in FileUpload Servlet

2009-09-15 Thread John
Toby, thanks for taking the time to respond, I appreciate it. First some things I should have said before, I am using the GAE Eclipse plug in. GWT 1.7, App Engine 1.2.5. What I don't understand is why other test applications seem to work quite hapilly with datastore without me adding a load of

[appengine-java] Re: ClassLoading Problems in FileUpload Servlet

2009-09-15 Thread Toby Reyelts
John, The JDO/JPA support for App Engine lives entirely in "userland". Like all the other libraries under the sdk's /lib/user folder, you must bundle it with your application in order to use it. One nice aspect about the ORM support living in userland is that you can easily apply patches or try new

[appengine-java] cron query

2009-09-15 Thread bgood
Is it possible to specify the start time for a scheduled task that happens at regular intervals? For example, if I want something to happen at 12:00, 12:10, 12:20 ... (not e.g. 12:03, 12:13, 12:23...) ? thanks --~--~-~--~~~---~--~~ You received this message becaus

[appengine-java] Re: ClassLoading Problems in FileUpload Servlet

2009-09-15 Thread John
Actually I think I have simplified this further. The basic issue seems to be referencing anything to do with the datastore from an ordinary servlet. So if I have a servlet import java.io.IOException; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManagerFactory; import javax.servlet.Ser

[appengine-java] ClassLoading Problems in FileUpload Servlet

2009-09-15 Thread John
In an attempt to load data into a fledgling GAE Java application I am using XStream (xstream-gae.jar a patched version that others have developed to get a working version with GAE) coupled with a FileUploadServlet that upload an XML file description of some initial application to prime the applica

[appengine-java] Owned One-to-One Relationship and Owned One-to-Many Relationship aren't compatible

2009-09-15 Thread Tim
It appears that these two statements work individually but not together. @Persistent private ContactInfomanager; @Persistent private List staff = new ArrayList(); Change either @Persistent to @NotPersistent and the unit test succeeds. SDK: appengine-java-sdk-1.2.5 ***

[appengine-java] Re: Problem with a query that uses Date

2009-09-15 Thread datanucleus
> Any ideas why? In Java when you have an import statement what do you write ? Something like "import java.util.Date" ? so do that for JDOQL --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for Java

[appengine-java] No popup in GAE and cannot close popup in hosted mode.

2009-09-15 Thread Beanryu
Excuse my noobness, the problem I am having is the following In eclipse, I have an application that uses JSNI native methods that opens a popup to another website(i.e. yahoo.com) using javascript, namely, the window.open() method. I tried my GWT application in hosted mode, the popup opens up and

[appengine-java] Re: Eclipse GWT update error

2009-09-15 Thread AndrewG
It looks like something fundamental has been mangled - I have pulled a previous copy of the project off backup, which seems to work - I will start again from that. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Goog

[appengine-java] java.lang.IllegalArgumentException: id or name, but not both, must be set in each key path element

2009-09-15 Thread mably
I get this exception in my application. Anybody knows what is it about ? java.lang.IllegalArgumentException: id or name, but not both, must be set in each key path element at com.google.appengine.api.datastore.DatastoreApiHelper.translateError (DatastoreApiHelper.java:29) at com.

[appengine-java] Re: Announcing "JDO/JPA Snippets That Work"

2009-09-15 Thread Marcel Overdijk
+1 for mapping of JPA/JDO "RDBMS" like concepts onto the DS On Sep 15, 1:50 am, Larry Cable wrote: > I'd also encourage you as part of this to focus on the mapping of > JPA/JDO "RDBMS" like concepts onto the DS, as this I have > found to be most problematic ... (or at least include pointers from

[appengine-java] Re: self referral one-to-many relationship with null root

2009-09-15 Thread Arash
Can someone please answer it. I appreciate it. On Sep 14, 5:09 pm, Arash wrote: > I have a class which has a collection of itself as its children. It is > mapped as : > > @Persistent >     private Group parent; > @Persistent(mappedBy= "parent") >     private List children; > > The problem is I c

[appengine-java] Re: Cant deploy application

2009-09-15 Thread Ravi Mandliya
thanks a lot.. it worked.. thanks again.. cheerio :) On Sep 14, 7:30 pm, Jason Parekh wrote: > Also, the docs from the Eclipse plugin will be > helpful:http://code.google.com/eclipse/docs/appengine_deploy.htmlandhttp://code.google.com/eclipse/docs/appengine_appid_version.html > jason > > On

[appengine-java] How to reset the datastore

2009-09-15 Thread Steve B.
I seem to recall this question passing through the group before. But now I cannot find the answer (if there was one) in the maillist or in documentation... I would like to purge all data from my datastore on the App Engine. (I do this locally by deleting the 2 files in /WEB-INF/appengine-gene

[appengine-java] Re: Eclipse GWT update error

2009-09-15 Thread AndrewG
Miguel, ok - I think that I am closer to the problem now. At the moment I am running the web app under tomcat 6 with the re- installed gwt 1.6.4 sdk, following the problematic upgrade. There now appears to be what looks like a classloader problem - the various servlets which this app runs canno

[appengine-java] Re: Eclipse GWT update error

2009-09-15 Thread Miguel Méndez
Let us know when you have something. On Tue, Sep 15, 2009 at 12:43 PM, AndrewG wrote: > > Miguel, > > I have sorted that last problem out - when I switched versions some > 'phantom' jar references appeared in the build path - which I have > removed. > > There is something else strange going on t

[appengine-java] Re: Eclipse GWT update error

2009-09-15 Thread AndrewG
Miguel, I have sorted that last problem out - when I switched versions some 'phantom' jar references appeared in the build path - which I have removed. There is something else strange going on though - I will post again when I have pinned it down. Andrew --~--~-~--~~~--

[appengine-java] Re: Eclipse GWT update error

2009-09-15 Thread AndrewG
Miguel, thank you - just before I picked up yr msg I figured out that I had tried to install it in the wrong place, and tried again. I have now (re-)installed the 'web toolkit' at v1.6.4, but I haven't yet reinstalled the app engine to its previous state. With just the toolkit re-installed, I a

[appengine-java] Task Queues questions

2009-09-15 Thread Patrizio Munzi
Hi all, I'm thinking of using the Task Queue feature in order to split a particular resource consuming request which could hit the 30 secs request limits. I've got a few questions about queues (for the moment, maybe more are coming :-))... 1) is it possible to simulate a serial tasks executio

[appengine-java] Re: Eclipse GWT update error

2009-09-15 Thread Miguel Méndez
Hi Andrew, This is confusing, but the App Engine SDK and the GWT SDKs are separate SDKs (one does not contain the other) and they are added via separate preferences. Trying to add the GWT SDK via the App Engine preferences will fail in the manner that you described. To clarify, if you want to ad

[appengine-java] Re: RPC call and variables

2009-09-15 Thread leszek
It is a clustered environment and you cannot assume that every request is run in the JVM. If you want to share data between requests you should persist them (data) in datastore. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google

[appengine-java] Problem with a query that uses Date

2009-09-15 Thread lucian
I have this simple query: Query query = pm.newQuery(Contact.class); query.setFilter("accountKey == accountKeyParam && lastActionDate < lastActionDateParam"); query.declareParameters("com.google.appengine.api.datastore.Key accountKeyParam, Date lastActionDateParam"); query.declareImports("java.util

[appengine-java] Re: Eclipse GWT update error

2009-09-15 Thread AndrewG
Miguel, I have now tried this - but not had any luck making it work as yet. I have downloaded and unzipped 'gwt-windows-1.6.4' - then put it into eclipse/plugins. If I try to 'Add App Engine SDK' - it just says: "Failed to Initialise App Engine SDK at ./gwt-windows-1.6.4" - don't know why.

[appengine-java] Re: Regarding Error in Jsp Code

2009-09-15 Thread Rajeev Dayal
It looks like there is a problem with your import statement: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iudaqf\jsp\org\apache\jsp\ex_jsp.java:9: cannot find symbol [javac] symbol : class query [javac] location: package javax.jdo [javac] import

[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 Col

[appengine-java] Re: Fetch by string equality stopped working

2009-09-15 Thread Max Ross
http://code.google.com/p/datanucleus-appengine/issues/detail?id=128 Unfortunately the only real workaround is to use named params instead of positional params. Do you think you can make that work? Max On Tue, Sep 15, 2009 at 7:36 AM, Max Ross > wrote: > Looks like a regression in handling of

[appengine-java] Re: Fetch by string equality stopped working

2009-09-15 Thread Max Ross
Looks like a regression in handling of positional params. I could've sworn I had tests for these.but no, they don't exist. I'll follow up with a bug number you can use to track this issue. I'll also try to find you a workaround. Sorry for the trouble, Max On Tue, Sep 15, 2009 at 12:33 AM, d

[appengine-java] RPC call and variables

2009-09-15 Thread sahil mahajan
Hello In my application, If a client A makes an rpc call and changes a variable at server, I want this change to be immediately reflected to other clients when they make same rpc call. But it looks that my clients are interacting with different servers and changes are not reflected. What can I do

[appengine-java] Re: JDO/JPA Snippets That Work - Creating a bidirectional, owned, one-to-many relationship

2009-09-15 Thread Max Ross
This example only demonstrates creation of parent and child when both parent and child use datastore id generation. If you wanted to use a named Key for either of these objects as opposed to datastore id generation, the KeyFactory and the KeyFactory.Builder class would be involved. This would als

[appengine-java] Re: testing applications in GAE - jUnit4

2009-09-15 Thread Vince Bonfanti
Hi Nicolas, I'm interested in seeing what you've done. Thanks. Vince On Tue, Sep 15, 2009 at 9:33 AM, Nicolas Melendez wrote: > Hi EveryBody: > > The how-to for testing in GAE is for Junit3 > , there should be also for junit4 which has > -Annotations > -Assert of expeted Exceptions > -Test cla

[appengine-java] testing applications in GAE - jUnit4

2009-09-15 Thread Nicolas Melendez
Hi EveryBody: The how-to for testing in GAE is for Junit3, there should be also for junit4 which has -Annotations -Assert of expeted Exceptions -Test classes don't extends from TestCase, so we are more free to design class hirarchy

[appengine-java] GWT Books

2009-09-15 Thread vijay
Hi All,I am new to GWT and would like to get in depth knowledge of GWT, I think it would be better to read through some books which have more detailed information about GWT features and its internal working. I referred GWT page http://code.google.com/webtoolkit/books.html but it has books whose ed

[appengine-java] Re: Regarding debugging error

2009-09-15 Thread leszek
Replace: AuthFilter With com.org.login.AuthFilter --~--~-~--~~~---~--~~ 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-java@googlegroups.com To u

[appengine-java] CPU Occasionally Spikes when HttpSession is Created

2009-09-15 Thread Traveler1980
Hi Everyone, I've noticed that CPU occasionally spikes when creating an HTTPSession. It only seems to happen when it's been awhile since an app has been accessed or when an app is initially deployed. For example, I created a simple test servlet that creates a session and and writes a response:

[appengine-java] Regarding debugging error

2009-09-15 Thread anu
hi Iam working with an app and the coresponding java files and web.xml are as follows java classes: AuthenticatefilterappServlet.java package com.org.login; import java.io.IOException; import java.io.PrintWriter; import javax.servlet.http.*; import javax.servlet.*; @SuppressWarnings("serial

[appengine-java] Re: ArrayIndexOutOfBoundsException: at org.datanucleus.plugin.ConfigurationElement.putAttribute(Configuratio nElement.java:104)

2009-09-15 Thread Patrizio Munzi
No one has any update on this??? Thanks Patrizio Munzi wrote: Mmm, I think there's need of datanucleus experts. Hope someone could clarify this subject wada3 wrote: It would be bug or limitation of development environment. I have not met them on real appengine environme

[appengine-java] Re: Bulk writes to datastore

2009-09-15 Thread Richard
Hi Larry > I am wondering about writing a Servlet that would form/multi-part > upload large files and cache them in memcache then use the > cron API to "trickle" persist them into the DS over time ... I've been thinking about using something like this as well. I think you could likely cache the

[appengine-java] Re: How to save GeoPt in JPA?

2009-09-15 Thread Matt Farnell
use geohash Sent from my iPhone On 15/09/2009, at 7:09 AM, "Jason (Google)" wrote: > Release 1.2.5 did add a GeoPt property type for Java so you can more > easily store geographic coordinates in the datastore, but App Engine > itself does not provide the logic necessary for doing bounding-b

[appengine-java] Updating ordered collection (owned relationship)

2009-09-15 Thread B Jansen
I implemented the basic example of Employee and ContactInfoSets. (Employee has a List) When doing this it works fine: EmployeeService es = new EmployeeService(); Employee e = new Employee(); es.save(e); ContactInfo ci = new Contac

[appengine-java] built in security features of GAE

2009-09-15 Thread George Simon
Has anyone know the built in security features in GAE. Thanks in Advance --~--~-~--~~~---~--~~ 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-java@

[appengine-java] Re: JDO/JPA Snippets That Work - Creating a bidirectional, owned, one-to-many relationship

2009-09-15 Thread Jeff Arbaugh
Max, Love the examples, however I have one question. In the GAE JDO documentation there's much written about the KeyFactory, Builder(s) and creating hierarcal Key(s). It's doesn't appear that your example has factored these in. I know littered through out my code are KeyFactory and Builders for the

[appengine-java] Re: Can I avoid Data Nucleus and still use JPA?

2009-09-15 Thread leszek
Nobody can contradict that DataNucleus is a high quality software. The fact that it is Google's persistence provider of choice speaks for itself. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Google App Engine for

[appengine-java] Re: Can I avoid Data Nucleus and still use JPA?

2009-09-15 Thread datanucleus
@WilliamF, I don't see how any of my responses in this thread can be construed even remotely as "barking" at somebody. In fact providing references to docs would likely be the opposite, as the user indeed recognised in his post. In fact you can review all of my responses to people over the last 5

[appengine-java] Re: Can I avoid Data Nucleus and still use JPA?

2009-09-15 Thread WilliamF
As leszek says I think you have a few things confused: DataNucleus is a JDO/JPA implementation that can run within AppEngine. AppEngine provides 2 persistence mechanisms, BigTable and VFS (Virtual File System). You cannot configure your GoogleApp to use an external RDBMS, nor can you host an RDB

[appengine-java] Regarding nullpoint exception

2009-09-15 Thread mahesh
Hi i have been working with an application and when i send a url request thru the browser,iam getting a null point exception,so someone tell me how can i rectift dat error --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Grou

[appengine-java] Re: I broke something using Eclipse plugin

2009-09-15 Thread Clay Lenhart
I included appengine-local-runtime.jar, because it is needed to resolve ApiProxyLocalImpl in my unit tests. How do I configure both unit tests and the local webserver? This type is documented here: http://code.google.com/appengine/docs/java/howto/unittesting.html This thread suggests that we s

[appengine-java] Unicode problems

2009-09-15 Thread George Moschovitis
I have created a simple application that uses Unicode html files and Unicode data in the Datastore. To be more specific I use Greek text. The application runs fine in the development server. However, when I deployed the application to GAE all the Unicode (Greek) strings show up as '??

[appengine-java] Re: Bulk update throws exception

2009-09-15 Thread Anita
Hi Jason, I could solve my previous problem. But now i am facing some other problem with many to many relationship tables. My schema looks as follows: TableA ---> TableC <- TableB which means there is many to many relationship between TableA & TableB. So i want TableA and TableB primary ke

[appengine-java] Re: JDO/JPA Snippets That Work - Creating a bidirectional, owned, one-to-many relationship

2009-09-15 Thread leszek
I suggest the next step. How to run some query on Chapter referencing to the property in Book, E.g Book is having a 'Genre', Chapter is having a 'Number' and query: find all Chapter number 4 in Books being of genre 'Fiction'. And two ways how to resolve this query: - keeping scheme normalized: mul

[appengine-java] Fetch by string equality stopped working

2009-09-15 Thread damnpana...@googlemail.com
I have a jpa/spring dao that returns a user by open id url. Running on sdk 1.2.1, his worked without a problem. moving to 1.2.2, and now 1.2.5, it no longer returns any records. Returning all records and using String.equals works fine: String openIdUrl = "http://blah/me";; List results = em.cre

[appengine-java] Re: Can I avoid Data Nucleus and still use JPA?

2009-09-15 Thread leszek
Sorry, but I'm afraid that you are completely on the bad track : - Google App Engine JPA supports only some subset of JPA implementation, it is unlikely that your existing-not trivial JPA application will migrate to Google App Engine without hefty coding. More probably that you can migrate smoot

[appengine-java] Re: JDO/JPA Snippets That Work - Creating a bidirectional, owned, one-to-many relationship

2009-09-15 Thread vadbars
Thanks for the snippets! This is very important and useful idea. I have a question about my data model: Person has Tags (any interests, things or qualities). Any person can have many tags, one tag, or do not have tags at all. The same tag can belong to several persons, but without persons it does

[appengine-java] Re: Regarding Error in Jsp Code

2009-09-15 Thread nimmala anukarthi
Hi Richard, Thanks for ur reply.i have tried with ur suggestion and recompiled it then i am getting the following error.so plz check out this error and help me in rectifying the error. HTTP ERROR: 500 Unable to compile class for JSP Generated servlet error: [javac] C:\Users

[appengine-java] Re: Regarding Error in Jsp Code

2009-09-15 Thread nimmala anukarthi
Hi rajeev, Thanks for your reply, i have included <% %> between the curly braces and compiled it again then iam getiing following error. HTTP ERROR: 500 Unable to compile class for JSP Generated servlet error: [javac] C:\Users\DEVELO~1.ADM\AppData\Local\Temp\Jetty_127_0_0_1_8087_war-iu