Skip to content

io.github.bucket4j.grid.hazelcast.Hazelcast is not registered #411

Discussion options

You must be logged in to vote

Looks that java.util.ServiceLoader.load behaves in different way after migration to java-17, as result this file is not discovered.

Bucket4j does not use ServiceLoader since 7.0.0, so I recommend to migrate to fresh Bucket4j.

If upgrading Bucket4j version is not possible, just rewrite your code to direct usage of class io.github.bucket4j.grid.hazelcast.Hazelcast:

new Hazelcast()
// instead of Bucket4j.extension(Haszelcast.class)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@lkcverma9
Comment options

Answer selected by vladimir-bukhtoyarov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants