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

Ask Your Question
0

Exception when updating entry Set field with SpaceIndex

I have an entry which has a List<string> property annotated as so:

@SpaceIndex(path="[*]")
public Set<String> getItems() {
    return items;
}

I'm updating the items with a new TreeSet and then calling gigaSpace.write(MyEntry) to update. When I do that I see this exception:

java.lang.ClassCastException: com.j_spaces.core.cache.MemoryBasedEntryCacheInfo cannot be cast to com.j_spaces.core.cache.MultiValueIndexBackref at com.j_spaces.core.cache.AbstractMultiValueIndexHandler.consolidateMultiValueIndexOnXtnEnd(AbstractMultiValueIndexHandler.java:516) at com.j_spaces.core.cache.CustomMultiValueTypeDataIndex.consolidateIndexValueOnXtnEnd(CustomMultiValueTypeDataIndex.java:104) at com.j_spaces.core.cache.CacheManager.consolidateWithShadowEntry(CacheManager.java:4991) at com.j_spaces.core.cache.TypeData.updateEntryReferencesUnderXtn(TypeData.java:1166) at com.j_spaces.core.cache.TypeData.updateEntryReferences(TypeData.java:945) at com.j_spaces.core.cache.CacheManager.updateEntryInCache(CacheManager.java:3663) at com.j_spaces.core.cache.CacheManager.associateEntryWithXtn(CacheManager.java:2060) at com.gigaspaces.internal.server.space.SpaceEngine.performUpdateTemplateOnEntryCoreSA(SpaceEngine.java:5397) at com.gigaspaces.internal.server.space.SpaceEngine.performTemplateOnEntryCoreSA_impl(SpaceEngine.java:5069) etc...

Any idea what I might be doing wrong here?

Thanks

asked 2014-12-19 03:11:53 -0500

stereolad gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

I suggest you submit a support ticket for this issue. Please provide a test case.

answered 2014-12-19 05:23:22 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

I haven't been successful in reproducing this issue in a minimal test case. I have made some minor changes to the application where I observed this issue and it no longer occurs.

stereolad gravatar imagestereolad ( 2014-12-19 07:20:37 -0500 )edit

Can you please explain the changes you have made?

We would like to understand how these made this issue to go away.

shay hassidim gravatar imageshay hassidim ( 2014-12-19 08:43:36 -0500 )edit

The changes aren't directly related to this issue so I'm not sure I can really provide much more information. Sorry.

stereolad gravatar imagestereolad ( 2014-12-19 09:26:49 -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

Stats

Asked: 2014-12-19 03:11:53 -0500

Seen: 199 times

Last updated: Dec 19 '14