HazelcastEntryProcessorAdapter calss not found #186
-
If i import this class in my file i.e. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@haiderali22 Hello,
It is class with
You need to place bucket4j related jars on all nodes of the Hazelcast cluster, this exception usually is thrown when remote node does not contain Bucket4j classes. |
Beta Was this translation helpful? Give feedback.
-
I suppose that I have found the problem. When you are using the So you need to fix the permissions for added files FROM hazelcast/hazelcast:4.2
USER root
ENV BUCKET4J_VERSION 6.3.0
ENV JCACHE_VERSION 1.1.1
ENV HZ_VERSION 4.2
# Adding custom hazelcast.xml
ADD hazelcast.xml ${HZ_HOME}
ENV JAVA_OPTS -Dhazelcast.config=${HZ_HOME}/hazelcast.xml
# Download bucket4j jars from maven repo.
ADD https://repo.maven.apache.org/maven2/com/github/vladimir-bukhtoyarov/bucket4j-core/$BUCKET4J_VERSION/bucket4j-core-$BUCKET4J_VERSION.jar ${HZ_HOME}
ADD https://repo.maven.apache.org/maven2/com/github/vladimir-bukhtoyarov/bucket4j-jcache/$BUCKET4J_VERSION/bucket4j-jcache-$BUCKET4J_VERSION.jar ${HZ_HOME}
ADD https://repo.maven.apache.org/maven2/com/github/vladimir-bukhtoyarov/bucket4j-hazelcast/$BUCKET4J_VERSION/bucket4j-hazelcast-$BUCKET4J_VERSION.jar ${HZ_HOME}
RUN chmod a+r ${HZ_HOME}/bucket4j-*.jar This is commit 3f9a0f4 that shows that all things work correctly |
Beta Was this translation helpful? Give feedback.
@haiderali22
I suppose that I have found the problem. When you are using the
ADD https://repo.maven.apache.org/maven2/com/github/vladimir-bukhtoyarov/bucket4j-core/$BUCKET4J_VERSION/bucket4j-core-$BUCKET4J_VERSION.jar ${HZ_HOME}/lib
it creates the files with wrong permissions-rw-------
while jars that added by Hazelcast guys have-rw-r--r--
permissions, as result JVM can not use added jars as classpath entry.So you need to fix the permissions for added files