[appengine-java] Re: Persistant Objects to GWT front-end (and vice versa)

2011-01-25 Thread Didier Durand
Hi Jonas, Yes, moving to Objectify is definitely a good move: especially since the GAE google team pushes toward 3rd party package rather than datanucleus impl of JDO/JPA currently used by GAE. But, it doesn't sometimes prevent the need of DTO: if, for example (my own cas), you want all your back

[appengine-java] Re: Can't fetch a dataset using primary key

2011-01-25 Thread hrbaer
Ok guys, even if the gql query is running I'm still not able to port this logic into my java class. Maybe someone could have a look at my code and correct/refer to my mistake(s): public GuestbookDetails( final PageParameters parameters ) throws StringValueConversionException { Persistence

[appengine-java] Re: Persistant Objects to GWT front-end (and vice versa)

2011-01-25 Thread Didier Durand
Hi Jonas, I am a fan of Objectify: i abandonned JDO for Objectify. But, I had the need for DTOs anyway: what you state about GWT & Ofy is true, but if your mixed (front-end + back-end) objects needs to inherit from a hierarchy in the back-end to have generic functions then you are in trouble beca

[appengine-java] Re: Persistant Objects to GWT front-end (and vice versa)

2011-01-25 Thread Jonas Gehring
hi, take a look at the persistance framework "Objectify" http://code.google.com/p/objectify-appengine/ Objectify entities can be used in GWT without the need for Data Transfer Objects. On 25 Jan., 21:52, GeneralSlaine wrote: > Hi all, > I've been having some issues with getting my persistant o

[appengine-java] Re: Persistant Objects to GWT front-end (and vice versa)

2011-01-25 Thread Didier Durand
Hi GeneralSlaine, I use the same approach to preserve GWT from back-end specificities. To answer your question, I reduced my helper code to a minimum by using java reflection to copy front-end version to back-end version and vice versa. The code is a bit complex but it's written once for all clas

Re: [appengine-java] Advantage of Some type of entity

2011-01-25 Thread Ikai Lan (Google)
You're almost always going to want to use String. The specific property types have very weak validation (basically not null) but have been known to cause issues. They were introduced to make serialization to XML easier, but very few developers actually care about this feature. -- Ikai Lan Develope

[appengine-java] Re: Persistant Objects to GWT front-end (and vice versa)

2011-01-25 Thread nacho
What's the difference between those classes? Why do you need 2 classes for a model? -- 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 unsubscribe from t

[appengine-java] Re: Custom RPC Exception in GWT 2.0.4

2011-01-25 Thread nacho
I think that you should post this in GWT Group https://groups.google.com/forum/#!forum/google-web-toolkit But anyway, your Exception must implement Serialize, are you implementing it? For example: public class SecurityException extends RuntimeException implements Serializable { // blah } -

[appengine-java] Custom RPC Exception in GWT 2.0.4

2011-01-25 Thread joe kolba
I am trying to send a custom Exception from the server side to the client via RPC. Here is my current set up: serviceImpl throws ErrorException service: throws ErrorException serviceAsync: throws ErrorException ErrorException extends IllegalArgumentException implements IsSerializable In my o

[appengine-java] Persistant Objects to GWT front-end (and vice versa)

2011-01-25 Thread GeneralSlaine
Hi all, I've been having some issues with getting my persistant object to GWT web front-end for example when implementing a web page to modify this object. Ideally I would like to be able to reuse the same class both for back-end as for front-end. So far, I have not managed. Instead I have a backbo

Re: [appengine-java] ClassLoader can't find resources at runtime

2011-01-25 Thread Don Schwarz
You can try touching (i.e. re-saving) your appengine-web.xml file. That should cause the DevAppServer to reload your application within the next 5 seconds. I don't know if that's faster than restarting the whole DevAppServer manually for you. There is also a /_ah/reloadwebapp URL that you can hi

[appengine-java] ClassLoader can't find resources at runtime

2011-01-25 Thread Micah Martin
Hi all, I'd really appreciate some help with an issue I'm having. The crux of the problem is that the ClassLoader is not able to find new resources at runtime. When I restart the server, my files are found, but when I add new file the running server can't find them. It's as though the ClassL

Re: [appengine-java] Re: passing multiple parameters to JDOQL

2011-01-25 Thread Vik
hi Thanks for replying... so anyone on the group came up with a code which i can use to print the query using these low level apis instead of re-inventing the wheel Thankx and Regards Vik Founder www.sakshum.com www.sakshum.blogspot.com On Tue, Jan 25, 2011 at 12:42 PM, A. Stevko wrote: > S

Re: [appengine-java] Re: Can't fetch a dataset using primary key

2011-01-25 Thread Stephen Johnson
Good to hear! On Tue, Jan 25, 2011 at 5:24 AM, hrbaer wrote: > Both the database query and the PMF singleton are working - 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 email to > goo

[appengine-java] Xstream patched

2011-01-25 Thread Bat
Hi, I saw that everybody had some problems with XStream and Gae due to the restriction of google. Is there someone who has the xstream.jar that can run correctly on the server of google. I mean the .jar builded with the patch located at this url :http://jira.codehaus.org/browse/XSTR-566. Thank

[appengine-java] Spring Roo 1.1.1 with GAE : how to deal with parent/child relationships

2011-01-25 Thread Cyrille Vincey
Have some of you succeeded in bootstrapping a project with Spring Roo with use of ACTUAL parent/child relationships ? I mean with real Parent(X)/Child(Y) keys, NOT with the use of Long as keys in entitiesŠ -- You received this message because you are subscribed to the Google Groups "Google App

[appengine-java] Using the "Python" datastore replication in Java

2011-01-25 Thread Peter Liu
http://code.google.com/appengine/docs/adminconsole/datastoreadmin.html#Copying_Entities_to_Another_Application Anyone successfully transfer a table from one app to another? I need to update a test app with data from a production app, and the bulk download utility just take too long (and too many

Re: [appengine-java] can i use css in my app ?

2011-01-25 Thread Ben
Hi Vishnupradeep, Absolutely! In my gaelyk app, I place the static content (images, javascript and css) in the /war/ directory. So, you'd have /project/war/images/img.png or /project/war/css/style.css As for referencing them, you would just use the absolute path of: /css/style.css or /images/img.

Re: [appengine-java] can i use css in my app ?

2011-01-25 Thread Khor Yong Hao
I think HTML development in appengine is same as what you do in the other type of site either local or own server. Therefore, Sure, CSS is possible. You may found CSS tutorial from: http://www.w3schools.com/css/default.asp On Tue, Jan 25, 2011 at 9:47 PM, Vishnupradeep wrote: > is it possible to

[appengine-java] Re: can i use css in my app ?

2011-01-25 Thread Didier Durand
Hi, Yes, you can. Example is here http://code.google.com/appengine/docs/java/gettingstarted/staticfiles.html Then you should read http://code.google.com/appengine/docs/java/config/appconfig.html#Static_Files_and_Resource_Files regards didier On Jan 25, 2:47 pm, Vishnupradeep wrote: >  is i

[appengine-java] can i use css in my app ?

2011-01-25 Thread Vishnupradeep
is it possible to use css in my app. if yes show me how to do ? -- 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 unsubscribe from this group, send emai

[appengine-java] Re: Blobstore upload loading bar

2011-01-25 Thread Didier Durand
Hi, To my knowledge it is impossible based on infos provided by GAE: the blobstore will call your servlet once only at the very end of the upload process. So, no hope from back-end perspective but maybe possible from a front- end perpective it the client can detect and feed the loading bar with h

[appengine-java] Problems with upload to blobstore

2011-01-25 Thread Michael Weinberg
I am experiencing very high rate of failures with uploads to blobstore this morning. About 1/3 of requests have failed (and I automatically attempt it two times). Is anyone else seeing this today? Google - any feedback would be appreciated.. Thanks, Michael Weinberg -- You received this mess

[appengine-java] Receiving incomplete HTML MimeMessage

2011-01-25 Thread Dan Crow
I'm writing a simple email handler on GAE. It receives multipart MimeMessages, parses them and stores the text/html part if present, otherwise it stores the text/plain part. I'm sending emails from gmail so they typically have both parts. What's strange is the text/plain part arrives as expecte

[appengine-java] Blobstore upload loading bar

2011-01-25 Thread WillSpecht
What would be the best way to implement a loading bar for a blob store upload. Right now I click submit and the page freezes while the file is uploaded. Is there a way to create a loading bar on screen so the user knows the file is loading and doesn't try to refresh or navigate to another page an

[appengine-java] Re: Can't fetch a dataset using primary key

2011-01-25 Thread hrbaer
Both the database query and the PMF singleton are working - 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 email to google-appengine-java@googlegroups.com. To unsubscribe from this group, send e

[appengine-java] Re: Server Error (500) : A server error has occurred.

2011-01-25 Thread Didier Durand
Hi, I think that you could file an issue about this: the parsing of xml done by GAE could probably be a bit more solid, i.e. warn you that you file contains chars that they don't like (or accept them properly...) regards didier On Jan 25, 12:24 pm, Edouard Marquez wrote: > Thanks, the problem

Re: [appengine-java] Re: Server Error (500) : A server error has occurred.

2011-01-25 Thread Edouard Marquez
Thanks, the problem was here. Is it a bug ? On Tue, Jan 25, 2011 at 12:09 PM, Didier Durand wrote: > Hi, > > I would try without french chars (accents, etc.) or replace them with > their xml equivs (é etc.) > > regards > > didier > > On Jan 25, 11:40 am, Edouard Marquez wrote: > > Sorry the real

[appengine-java] Re: Server Error (500) : A server error has occurred.

2011-01-25 Thread Didier Durand
Hi, I would try without french chars (accents, etc.) or replace them with their xml equivs (é etc.) regards didier On Jan 25, 11:40 am, Edouard Marquez wrote: > Sorry the real cron.xml : > >     > > > > > > /cron/nettoyagePings > > Déconnecte les utilisateurs n'ayant pas répondu à 2 pings de

[appengine-java] Re: Server Error (500) : A server error has occurred.

2011-01-25 Thread Edouard Marquez
Sorry the real cron.xml : /cron/nettoyagePings Déconnecte les utilisateurs n'ayant pas répondu à 2 pings every 1 minutes On Tue, Jan 25, 2011 at 11:33 AM, g123k wrote: > Hello, > > When I try to deploy my code, I get this error : > > Closing update: new version is ready to start

[appengine-java] Server Error (500) : A server error has occurred.

2011-01-25 Thread g123k
Hello, When I try to deploy my code, I get this error : Closing update: new version is ready to start serving. Uploading index definitions. Uploading cron jobs. java.io.IOException: Error posting to URL: https://appengine.google.com/api/datastore/cron/update?app_id=ehitcchiker&version=1&; 500 Int

[appengine-java] Advantage of Some type of entity

2011-01-25 Thread ale
Hi, What are the advantage of data type like PhoneNumber o Email ( http://code.google.com/intl/it-IT/appengine/docs/java/datastore/entities.html#Properties_and_Value_Types )? For example if I have to store an email, why I should prefer en email type instad a simple String? Thanks Ale -- You r