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.NoSuchMethodError: it.unimi.dsi.fastutil.longs.LongOpenHashSet.clone() #12

Open
subprotocol opened this issue Sep 23, 2014 · 1 comment

Comments

@subprotocol
Copy link

I've found a condition where a NoSuchMethodError can be thrown. Below is what I do to get it to trigger (I hope you don't mind that it's in scala). I am using hll version 1.6.0 out of maven.

val h1 = new HLL(13, 5)
val h2 = new HLL(13, 5)
h2.addRaw(2)
h1.union(h2) // <-- exception here

results in:

Exception in thread "main" java.lang.NoSuchMethodError: it.unimi.dsi.fastutil.longs.LongOpenHashSet.clone()Lit/unimi/dsi/fastutil/longs/LongOpenHashSet;
    at net.agkn.hll.HLL.heterogenousUnion(HLL.java:679)
    at net.agkn.hll.HLL.union(HLL.java:639)

Is anyone else running into this issue?

@hossman
Copy link

hossman commented Apr 27, 2015

I attempted to reproduce this problem via a patch to SparseHLLTest.java (not really sure if this is the optimal test class, but i noticed some existing EMPTY union tests there) and was unable to reproduce the described bug.

I suspect the initial bug report was due to a classpath issue (ie: multiple versions of the same depedent jar containing it.unimi.dsi.fastutil.longs.LongOpenHashSet)

https://gist.github.com/hossman/eda007700e0f6183654e

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