Error during upgrade "ClassnotFound with hazelcast.cluster"
book
Article ID: 132133
calendar_today
Updated On:
Products
STARTER PACK-7CA Rapid App SecurityCA API Gateway
Issue/Introduction
During upgrade of API Gateway the start of the ssg fails with the following error:
2019-05-08T15:08:08.003+0200 SEVERE 108 com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl: [172.21.8.171]:8777 [gateway] [3.10.2] Problem while reading DataSerializable, namespace: 0, ID: 0, class: 'com.hazelcast.cluster.impl.operations.JoinCheckOperation', exception: com.hazelcast.cluster.impl.operations.JoinCheckOperation com.hazelcast.nio.serialization.HazelcastSerializationException: Problem while reading DataSerializable, namespace: 0, ID: 0, class: 'com.hazelcast.cluster.impl.operations.JoinCheckOperation', exception: com.hazelcast.cluster.impl.operations.JoinCheckOperation at com.hazelcast.internal.serialization.impl.DataSerializableSerializer.rethrowReadException(DataSerializableSerializer.java:180) at com.hazelcast.internal.serialization.impl.DataSerializableSerializer.readInternal(DataSerializableSerializer.java:161) at com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(DataSerializableSerializer.java:105) at com.hazelcast.internal.serialization.impl.DataSerializableSerializer.read(DataSerializableSerializer.java:50) at com.hazelcast.internal.serialization.impl.StreamSerializerAdapter.read(StreamSerializerAdapter.java:48) at com.hazelcast.internal.serialization.impl.AbstractSerializationService.toObject(AbstractSerializationService.java:187) at com.hazelcast.spi.impl.NodeEngineImpl.toObject(NodeEngineImpl.java:322) at com.hazelcast.spi.impl.operationservice.impl.OperationRunnerImpl.run(OperationRunnerImpl.java:390) at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.process(OperationThread.java:115) at com.hazelcast.spi.impl.operationexecutor.impl.OperationThread.run(OperationThread.java:100) Caused by: java.lang.ClassNotFoundException: com.hazelcast.cluster.impl.operations.JoinCheckOperation at com.l7tech.server.policy.module.j.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(ClassLoader.java:424) at com.l7tech.server.policy.module.j.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(ClassLoader.java:357) at com.hazelcast.nio.ClassLoaderUtil.tryLoadClass(ClassLoaderUtil.java:173) at com.hazelcast.nio.ClassLoaderUtil.loadClass(ClassLoaderUtil.java:147) at com.hazelcast.nio.ClassLoaderUtil.newInstance(ClassLoaderUtil.java:101) at com.hazelcast.internal.serialization.impl.DataSerializableSerializer.readInternal(DataSerializableSerializer.java:150) ... 8 more Caused by: java.security.PrivilegedActionException: java.lang.ClassNotFoundException: com.hazelcast.cluster.impl.operations.JoinCheckOperation at java.security.AccessController.doPrivileged(Native Method) ... 16 more Caused by: java.lang.ClassNotFoundException: com.hazelcast.cluster.impl.operations.JoinCheckOperation at com.l7tech.server.policy.module.c.run(Unknown Source) at com.l7tech.server.policy.module.c.run(Unknown Source) ... 17 more Caused by: java.lang.ClassNotFoundException: com.hazelcast.cluster.impl.operations.JoinCheckOperation at java.net.URLClassLoader.findClass(URLClassLoader.java:381) at com.l7tech.server.policy.module.j.access$301(Unknown Source) ... 19 more 2019-05-08T15:08:08.018+0200 SEVERE 108 com.hazelcast.spi.impl.operationexecutor.impl.OperationExecutorImpl: [172.21.8.171]:8777 [gateway] [3.10.2] Failed to process packet: Packet{partitionId=-1, conn=Connection[id=1, /172.21.8.171:8859->/172.21.8.172:8777, endpoint=[172.21.8.172]:8777, alive=true, type=MEMBER], rawFlags=10001, isUrgent=true, packetType=OPERATION, typeSpecificFlags=[isResponse=false, isOpControl=false]} on hz.gateway-hazelcast.priority-generic-operation.thread-0 [2] https://comm.support.ca.com/kb/how-to-disable-hazelcast-extension-completely-in-ca-api-gateway/kb000125758
Environment
Release: Component: APIGTW
Resolution
There is inconsistent data in the cluster_info table. Use the following steps to fix the situation:
- mysql ssg -e "truncate cluster_info" - restart of the gateway : service ssg restart