Hello, we can’t enable cluster in CMDBuild.
This is how we enable cluster-mode:
./cmdbuild.sh restws setconfig org.cmdbuild.cluster.enabled true
./cmdbuild.sh restws setconfig org.cmdbuild.cluster.nodes cmdbuild-stage-0.cmdbuild-stage,cmdbuild-stage-1.cmdbuild-stage.cmdbuild-stage
This is the error we get after restarting cmdbuild application:
at org.cmdbuild.cluster.IgniteServiceImpl.start(IgniteServiceImpl.java:137) ~[cmdbuild-core-system-3.4.jar:3.4]
at org.cmdbuild.minions.MinionServiceImpl$MinionEngine.doStart(MinionServiceImpl.java:305) ~[cmdbuild-core-system-3.4.jar:3.4]
at org.cmdbuild.minions.MinionServiceImpl$MinionEngine.start(MinionServiceImpl.java:263) ~[cmdbuild-core-system-3.4.jar:3.4]
at org.cmdbuild.minions.MinionServiceImpl.lambda$handleContextRefresh$1(MinionServiceImpl.java:176) ~[cmdbuild-core-system-3.4.jar:3.4]
at org.cmdbuild.utils.lang.CmExecutorUtils.runSafe(CmExecutorUtils.java:236) ~[cmdbuild-utils-lang-3.4.jar:3.4]
at org.cmdbuild.utils.lang.CmExecutorUtils.lambda$safe$5(CmExecutorUtils.java:143) ~[cmdbuild-utils-lang-3.4.jar:3.4]
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539) ~[na:na]
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136) ~[na:na]
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635) ~[na:na]
at java.base/java.lang.Thread.run(Thread.java:833) ~[na:na]
Caused by: java.lang.RuntimeException: java.nio.DirectByteBuffer.address field is unavailable.
at org.apache.ignite.internal.util.GridUnsafe$2.run(GridUnsafe.java:1570) ~[ignite-core-2.12.0.jar:2.12.0]
at org.apache.ignite.internal.util.GridUnsafe$2.run(GridUnsafe.java:1557) ~[ignite-core-2.12.0.jar:2.12.0]
at java.base/java.security.AccessController.doPrivileged(AccessController.java:318) ~[na:na]
at org.apache.ignite.internal.util.GridUnsafe.bufferAddressOffset(GridUnsafe.java:1557) ~[ignite-core-2.12.0.jar:2.12.0]
at org.apache.ignite.internal.util.GridUnsafe.<clinit>(GridUnsafe.java:109) ~[ignite-core-2.12.0.jar:2.12.0]
... 15 common frames omitted
Caused by: java.lang.reflect.InaccessibleObjectException: Unable to make field long java.nio.Buffer.address accessible: module java.base does not “opens java.nio” to unnamed module @54534abf
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:354) ~[na:na]
at java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:297) ~[na:na]
at java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:178) ~[na:na]
at java.base/java.lang.reflect.Field.setAccessible(Field.java:172) ~[na:na]
at org.apache.ignite.internal.util.GridUnsafe$2.run(GridUnsafe.java:1562) ~[ignite-core-2.12.0.jar:2.12.0]
... 19 common frames omitted