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

Could not initialize class com.koloboke.collect.map.hash.HashIntObjMaps$DefaultFactoryHolder #70

Open
persal opened this issue Dec 9, 2019 · 1 comment

Comments

@persal
Copy link

persal commented Dec 9, 2019

Using AdoptOpenJDK 11.0.5
First of all, is ver 1.0.0 compatible with JDK 11?

We get a NoClassDefFoundError with below stacktrace:

Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.koloboke.collect.map.hash.HashIntObjMaps$DefaultFactoryHolder
at com.koloboke.collect.map.hash.HashIntObjMaps.getDefaultFactory(HashIntObjMaps.java:55) ~[koloboke-api-jdk8-1.0.0.jar:?]
at com.koloboke.collect.map.hash.HashIntObjMaps.newImmutableMap(HashIntObjMaps.java:1499) ~[koloboke-api-jdk8-1.0.0.jar:?]

Code that breaks:
TreeMap<Integer, DeserializeAction> map = new TreeMap<>();
..do stuff
this.map = HashIntObjMaps.newImmutableMap(map); //this line throws exception

The above code is initiated in a class in its initialization
public class Myclass {
DoStuff stuff = new DoStuff(); // triggers the above call to HashIntObjMaps.newImmutableMap(map);

}

We have following jar files in the classpath:
koloboke-api-jdk8-1.0.0.jar
koloboke-impl-common-jdk8-1.0.0.jar
koloboke-impl-jdk8-1.0.0.jar

We have not been able to reproduce it consequently, but seem to happen from time to time.

@persal
Copy link
Author

persal commented Dec 17, 2019

Understand this project is not actively being developed any more, but for the record the above issue has been solved and has nothing to do with this library but with another library managing the classloading.

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

1 participant