autogenerated space ids
I'm trying to use a SpaceId field with the autogenerate flag set, and having some issues.
When I try to write an object of this class into the space, I get this exception:
"Caused by: java.lang.RuntimeException: Class: Foo, operation: write , load-balancing: hash-based, Broadcast mode: BROADCAST_IF_NULL_VALUES , problem: NULL value in indexed field 'spaceID' is not permitted."
Isn't the point of the autogenerated space ids that an id will automatically be injected into the field when it's written to the space? So why is it NULL? What's the problem?
Also, I'm not getting this exception when I run in Eclipse with an IntegratedProcessingUnitContainer, only if I deploy to a GSC.
Ironically, earlier I was getting an exception when I tried to write an object with an autogenerated ID into the space complaining that the id field was not NULL. This occurred when I read the object from the space, then tried to write it back using the UPDATE_ONLY modifier. If the autogenerated id field must be null for any write operation, does that mean an object with an autogenerated ID cannot be updated?
{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=1988]{quote}