Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ClassCastException in MultiMap.get() #256

Closed
psfung opened this issue Aug 30, 2012 · 4 comments

Comments

Projects
None yet
2 participants
@psfung
Copy link

commented Aug 30, 2012

In the test program https://gist.github.com/3524148, there is

  1. A putter thread which puts values at random intervals.
  2. A remover thread which removes all values at random intervals, having tryLock() for each key.

ClassCastException is thrown in MultiMap.get():

java.lang.ClassCastException: java.util.UUID cannot be cast to java.util.Collection
at com.hazelcast.impl.ConcurrentMapManager$MMultiGet.get(ConcurrentMapManager.java:1335)
at com.hazelcast.impl.MultiMapProxyImpl$MultiMapReal.get(MultiMapProxyImpl.java:272)
at com.hazelcast.impl.MultiMapProxyImpl.get(MultiMapProxyImpl.java:115)
at mm.Remover.run(Remover.java:27)
at java.lang.Thread.run(Thread.java:662)

I tested on Hazelcast 2.3.

@ghost ghost assigned mdogan Aug 30, 2012

@mdogan mdogan closed this in af9c2c5 Aug 31, 2012

@psfung

This comment has been minimized.

Copy link
Author

commented Sep 7, 2012

I re-tested on 2.3.1, the error still exists

@mdogan

This comment has been minimized.

Copy link
Member

commented Sep 7, 2012

Please make sure you are using exactly 2.3.1. I can not reproduce using your code on 2.3.1 (I can on 2.3).

@psfung

This comment has been minimized.

Copy link
Author

commented Sep 7, 2012

sorry, you're correct. I've mis-configured classpath.

@mdogan

This comment has been minimized.

Copy link
Member

commented Sep 7, 2012

No problem. Also line numbers don't match with version 2.3.1.

at com.hazelcast.impl.ConcurrentMapManager$MMultiGet.get(
ConcurrentMapManager.java:1324)
at com.hazelcast.impl.MultiMapProxyImpl$MultiMapReal.get(
MultiMapProxyImpl.java:269)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.