Hi Ikai,

Thanks for your reply. Anyway, the problem is a bit deeper. When I set
the property to null, my App Engine Data Vievwer panel was fixed. So
null is valid value for my field. Before that, I accessed the field
programically (JAVA through JDO) and get very strange value for that
field:

com.google.appengine.api.datastore.PostalAddress@0 <- zero is probably
bad value here.

I suppose that it was a bug in JDO when persisting the entity do
DataStore. After fixing property (setting it to null), it seems to
work.

On Dec 2, 7:16 pm, "Ikai Lan (Google)" <ika...@google.com> wrote:
> HI bart,
>
> Oy, I know what is causing this. The datastore admin is written using
> Python which has validations for fields like Address or GeoPt. The Java
> code does not, so it's possible to set this to null, which would cause this
> to error out.
>
> In general I advise people to use StringProperty as much as possible. To
> fix this, you have two choices:
>
> 1. Change the Address property to be non-null programmatically
> 2. Change the property on all entities to be a String property. You'll
> probably use App Engine mapreduce for this.
>
> I'm going to make a list of "polish" bugs and feature requests that I'm
> going to champion in an upcoming release. I'm wondering what the
> implications of a quick and dirty fix to remove the validations are.
> Unfortunately, if history is any kind of a teacher, the fix is NEVER that
> easy.
>
> --
> Ikai Lan
> Developer Programs Engineer, Google App Engine
> plus.ikailan.com | twitter.com/ikai
>
>
>
>
>
>
>
> On Fri, Dec 2, 2011 at 12:55 AM, bartprokop <prokop.b...@gmail.com> wrote:
> > Hi, My application is developed in JAVA, utilizing JDO.
> > Unfortunatelly, I started today getting starnge errors - 500 when
> > trying to run GQL queries on my data:
>
> > SELECT * FROM Przedszkole where __key__ =
> > Key('agtzfmUtZHppZWNrb3ITCxILUHJ6ZWRzemtvbGUYgooIDA')
>
> > results with Server error 500 and strange message: "address must not
> > be empty."
>
> > My application ishttp://e-dziecko.appspot.com.
>
> > Any hint on this?
>
> > More funny, access object programatically seems to work without any
> > interruption.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Google App Engine" group.
> > To post to this group, send email to google-appengine@googlegroups.com.
> > To unsubscribe from this group, send email to
> > google-appengine+unsubscr...@googlegroups.com.
> > For more options, visit this group at
> >http://groups.google.com/group/google-appengine?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to google-appengine@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to