Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question

Template Query with Collections

Seem to have hit a catch 22 with pojo that has a child collection.

I started with development in a local space. I need to null the collection when creating a template for search, works fine. But when I deploy to a partitioned space the read fails with

Class: [my class name] , operation: read , load-balancing: hash-based, Broadcast mode: BROADCAST_IF_NULL_VALUES , problem: NULL value in indexed field '[my field]' is not permitted.

My field is a ArrayList if that matters.

I can with an empty list and I get past that error, but the query returns no results, of course that's why I nulled the field in the first place.

Any help?

  • Peace

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=2059]{quote}

asked 2007-11-04 14:35:04 -0500

djking gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

What's your routing field value? This must be declared when using partitioned space and should be null in case you want to query all partitions.
Do you perform read operation with timeout >0? This is not supported with null routing field with partitioned space.


answered 2007-11-04 14:52:03 -0500

shay hassidim gravatar image
edit flag offensive delete link more


Thanks Shay, I hadn't yet declared a routing field. Course a clear exception in that case would go a long way. I was using a non zero read time. Routing field in place fixed it.

- Peace

djking gravatar imagedjking ( 2007-11-04 15:25:03 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2007-11-04 14:35:04 -0500

Seen: 54 times

Last updated: Nov 04 '07