HazelcastException: CP Subsystem is not enabled

49 views
Skip to first unread message

vaishnavi banait

unread,
Sep 25, 2023, 9:00:35 AM9/25/23
to Hazelcast
Hello Hazelcast,

While doing hazelcast migration from 3.12.13 to 5.1.6 version facing issue anyone know how this could be fixed let me know. code -

import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import com.hazelcast.cp.ISemaphore;

public class HazelcastSemaphore implements MetaSemaphore {

    private HazelcastInstance hazelcastInstance;

public boolean init(int permits) {

        if(semaphore == null){
            hz1.getCPSubsystem().getSemaphore(id);
            semaphore.init(permits);
        }
        return true;
    }
}
Facing error
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.services.config.ConfigService]: Factory method 'configService' threw exception; nested exception is com.hazelcast.core.HazelcastException: CP Subsystem is not enabled!















Reply all
Reply to author
Forward
0 new messages