[appengine-java] Application works fine on localhost but not when deployed

2010-10-12 Thread swin swin
Hi, I keep having the same problem of not being able to get my application to work when deployed on GAE. It works fine locally on my laptop when i run it with the google app engine server. Online, I am able to view a 'login.jsp' page, but when I try to login as an authenticated user, it will

[appengine-java] Re: Application works fine on localhost but not when deployed

2010-10-12 Thread swin swin
Just to add on, my AuthenticateServlet has this error: /AuthenticateServlet java.lang.RuntimeException: java.io.NotSerializableException: BiddingSystem.model.Student at com.google.apphosting.runtime.jetty.SessionManager.serialize(SessionManager.java:387) at

Re: [appengine-java] Re: Application works fine on localhost but not when deployed

2010-10-12 Thread Guillaume Laforge
Looks like your Student class is not serializable. On Tue, Oct 12, 2010 at 09:35, swin swin swin...@gmail.com wrote: Just to add on, my AuthenticateServlet has this error: /AuthenticateServlet java.lang.RuntimeException: java.io.NotSerializableException: BiddingSystem.model.Student at

Re: [appengine-java] Is MemcacheService obtained from getMemcacheService(namespace) thread safe?

2010-10-12 Thread Maxim Veksler
Great, thank you for clarifying this. Perhaps It would be helpful to mention this in the javadoc ? Or maybe introduce some kind of @ThreadSafe annotation with RetentionPolicy.SOURCE ? Thanks, Maxim. On Mon, Oct 11, 2010 at 9:10 PM, Ikai Lan (Google)

[appengine-java] Re: OpenID Development server

2010-10-12 Thread Nacho Coloma
AFAIK you have two different behaviors on purpose. The idea is to allow anybody in your local environment, but require a proper OpenID account for your site. This means that you will have to test the OpenID behavior online or invoking directly _ah/login_required On Oct 10, 4:16 pm, Fabrizio

[appengine-java] Re: GAE and Log4j - A little solution to make things easier.

2010-10-12 Thread Nacho Coloma
JUL has been reported as 60 times slower than other implementations because of the way they log: http://www.infoq.com/news/2007/08/logback Just configuring properly log4j/logback to log to System.err or System.out should be enough to see messages properly in the AppEngine console. In logback,

[appengine-java] Configuring AName

2010-10-12 Thread Davide Cerbo
Hi everyone, I want allow the user of my site to have user pages with urls like: http://username.mysite.com To do this on GoDaddy I need to configure the Aname to star (*), but I can do this only if I have an IP address. I tried to ping ghs.l.google.com and I retrieve the ip address:

Re: [appengine-java] Configuring AName

2010-10-12 Thread gabriel munteanu
imho you can associate domains with your app only through the appengin admin interface. from your email i guess you try to make a subdomain per user registered with your site. that would be great, but i don't think it will work. On Tue, Oct 12, 2010 at 1:12 PM, Davide Cerbo davidece...@gmail.com

[appengine-java] Re: ClassCastException: String to Collection

2010-10-12 Thread decitrig
I may have stumbled across the answer by commenting out fields one at a time. Vendor had an embedded class PremiumInfo that referred to a non-embedded class Review. When I either a) removed the Review field from PremiumInfo or b) made PremiumInfo not embedded, the problem went away. Is having an

[appengine-java] Re: OneToOne relationship with java.lang.Long ids

2010-10-12 Thread curti...@gmail.com
The ID for the owned child User instances has to be a Key or String type because the it contains both the reference to the parent(s) and the unique id of the object. A Long alone will not contain enough information to navigate the object model to it. That statement doesn't make sense to

[appengine-java] Re: Application works fine on localhost but not when deployed

2010-10-12 Thread swin swin
Thanks Guillaume. I did a search for what you said and found out I had to implement serializable for anything that i wanted to use with session. It worked. :) -- You received this message because you are subscribed to the Google Groups Google App Engine for Java group. To post to this group,

[appengine-java] Implementing inequalities with multiple properties.

2010-10-12 Thread roberto_sc
I have a requirement to make searches with inequalities with multiple properties. This is not possible, as described in http://code.google.com/appengine/docs/java/datastore/queriesandindexes.html#Restrictions_on_Queries But I have to do it anyways. So, is there any hint on how to deal with this?

Re: [appengine-java] Implementing inequalities with multiple properties.

2010-10-12 Thread Cyrille Vincey
My workaround (I'm doing the testing so far) : - create a extra property that merges the content of the N properties you wish to filter on - query on that single extrat property with inequality filters That is what geohash does when merging latitude AND longitude into one single property :

Re: [appengine-java] Problem with large entities? Store in one or two separate entities

2010-10-12 Thread Ikai Lan (Google)
If it's a few small fields, I don't think the performance difference is worth the extra complexity. The size of the entities does have an impact on the overall performance of the fetch, but there difference is usually more material if each entity stores a few hundred kilobytes of data. -- Ikai

[appengine-java] Re: Cant compile javax.crypto

2010-10-12 Thread Stuart Johnson
Doh, your quite right Didier, it was because I had my class in shared. Thanks, Stuart. -- 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

[appengine-java] Is there a way to turn off Task Queue timeouts?

2010-10-12 Thread andy stevko
I really want to be able to debug step through a Task Queue initiated task and have it not time out. http method POST against URL http://0.0.0.0:8080/task/simple timed out. Also - have you noticed that the dev server does retry tasks that throw errors? This is contrary to the docs - the

[appengine-java] Re: Google App Engine MUD

2010-10-12 Thread 番頭Fattom
What you want is An Easy Version MUD or Complete Version MUD? If you want to hardcode all the thing, you only have to know what is AJAX. It's easy. But if you want to implement a real MUD, Complete Version MUD, you have to know a lot of things. ex: how to write a compiler... Because MUD is

Re: [appengine-java] Recommendations for a Greenfield project

2010-10-12 Thread Gal Dolber
Objectify is cool, but for real performance you should use GWT + slim3. I don't know about Roo, but the RequestFactory looks really good. http://code.google.com/intl/es/webtoolkit/doc/trunk/DevGuideRequestFactory.html On Tue, Oct 12, 2010 at 2:53 PM, Vikas Hazrati vhazr...@gmail.com wrote: We

[appengine-java] Re: OneToOne relationship with java.lang.Long ids

2010-10-12 Thread Stevko
Ah, if you want to do this with a relational model rather than a networked model, you would define your objects such that each is a root entity (and thereby ids can be type Long ). This is analogous to holding a foreign key rather than embedding the owned entity. @Entity public class Event { @Id