Problem

      After upgrading to Confluence v7.19.20 nodes cannot cluster.

      Environment

      Java 8
      Confluence 7.19.20

      Steps to Reproduce

      1. Setup TCPIP clustering for 2 nodes running Confluence 7.19.20
      2. Rolling start the nodes

      Expected Results

      Node will cluster.

      Actual Results

      Cluster panic. With the following exception logged by hazelcast on start up:

      2024-03-23 10:42:08,273 INFO [Catalina-utility-1] [confluence.cluster.hazelcast.HazelcastClusterManager] startCluster Confluence cluster node identifier is [41e4e742]
      Exception in thread "hz.confluence.cached.thread-3" java.lang.NoSuchMethodError: java.nio.ByteBuffer.flip()Ljava/nio/ByteBuffer;
      	at com.hazelcast.internal.networking.OutboundHandler.initDstBuffer(OutboundHandler.java:120)
      	at com.hazelcast.internal.networking.OutboundHandler.initDstBuffer(OutboundHandler.java:95)
      	at com.hazelcast.nio.tcp.UnifiedProtocolEncoder.handlerAdded(UnifiedProtocolEncoder.java:66)
      	at com.hazelcast.internal.networking.nio.NioOutboundPipeline.addLast(NioOutboundPipeline.java:324)
      	at com.hazelcast.nio.tcp.UnifiedChannelInitializer.initChannel(UnifiedChannelInitializer.java:68)
      	at com.hazelcast.internal.networking.nio.NioChannel.start(NioChannel.java:110)
      	at com.hazelcast.nio.tcp.TcpIpEndpointManager.newConnection(TcpIpEndpointManager.java:370)
      	at com.hazelcast.nio.tcp.TcpIpAcceptor$AcceptorIOThread.configureAndAssignSocket(TcpIpAcceptor.java:317)
      	at com.hazelcast.nio.tcp.TcpIpAcceptor$AcceptorIOThread.access$1400(TcpIpAcceptor.java:138)
      	at com.hazelcast.nio.tcp.TcpIpAcceptor$AcceptorIOThread$1.run(TcpIpAcceptor.java:305)
      	at com.hazelcast.util.executor.CachedExecutorServiceDelegate$Worker.run(CachedExecutorServiceDelegate.java:227)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:750)
      	at com.hazelcast.util.executor.HazelcastManagedThread.executeRun(HazelcastManagedThread.java:64)
      	at com.hazelcast.util.executor.HazelcastManagedThread.run(HazelcastManagedThread.java:80)
      23-Mar-2024 10:43:39.926 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8090"]
      

      Workaround

      Upgrade to Java 11 and set Confluence to use it.

      Notes

            [CONFSERVER-94970] Confluence nodes do not cluster

            A fix for this issue is available in Confluence Server and Data Center 7.19.21.
            Upgrade now or check out the Release Notes to see what other issues are resolved.

            Kshitij Rastogi added a comment - A fix for this issue is available in Confluence Server and Data Center 7.19.21. Upgrade now or check out the Release Notes to see what other issues are resolved.

              fd06b73b6ec9 Kshitij Rastogi
              63948a2d3746 Marco Salvi
              Affected customers:
              0 This affects my team
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: