Hi François,

I don't know how your exception has arisen. Do you know which line in
your code this error arose, or was it a result of GAE itself
processing your persistent entity classes at app start-up? Do you have
a code extract relating to where the exception was raised?

If you construct keys to entities yourself then something in building
your key chain may have gone wrong....

If you use keys as encoded strings in your entities (as I do) then you
may have defined both a primary key name ("gae.pk-name") and a primate
key ID ("gae.pk-id") in your persistent entity as well as an encoded
primary key, when at most one of "gae.pk-name" and "gae.pk-id" is
allowed. (By the way, the "gae.pk-id" field should not be set by the
app.)

(I refer to the section "Java | Storing Data | Creating, Getting and
Deleting Data | Keys | Key as Encoded String" in the GAE
documentation.)

Regards,

Ian Marshall
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to