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

java.lang.ClassCastException: net.openhft.smoothie.Segment63 cannot be cast to net.openhft.smoothie.Segment #5

Closed
noahtaylor opened this issue Mar 1, 2018 · 3 comments

Comments

@noahtaylor
Copy link

I am getting the following exception when I am running a unit test. Any ideas?

java.lang.ClassCastException: net.openhft.smoothie.Segment63 cannot be cast to net.openhft.smoothie.Segment
at net.openhft.smoothie.SmoothieMap.makeSegment(SmoothieMap.java:589)
at net.openhft.smoothie.SmoothieMap.initSegments(SmoothieMap.java:446)
at net.openhft.smoothie.SmoothieMap.(SmoothieMap.java:429)
at net.openhft.smoothie.SmoothieMap.(SmoothieMap.java:411)

@noahtaylor
Copy link
Author

I should also mention this issue only occurs when running the build on TeamCity, I cannot reproduce the issue locally.

@noahtaylor
Copy link
Author

Ok so I was able to address the issue by removing PowerMockRunner from my unit tests. Not sure why that would have caused an issue. Perhaps due to class loader being different?

@leventov
Copy link
Member

leventov commented Oct 9, 2019

This should now be fixed in SmoothieMap 2.0.1

@leventov leventov closed this as completed Oct 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants