-
Bug
-
Resolution: Done
-
Critical
-
14.0.9.Final
-
None
When creating cache with backup in the Console and setting the `merge-policy` for it, the following exception is thrown during create button clicking process:
Caused by: org.infinispan.commons.CacheListenerException: ISPN000280: Caught exception [org.infinispan.commons.CacheConfigurationException] while invoking method [public java.util.concurrent.CompletionStage org.infinispan.globalstate.impl.GlobalConfigurationStateListener.handleCreate(org.infinispan.notifications.cachelistener.event.CacheEntryCreatedEvent)] on listener instance: org.infinispan.globalstate.impl.GlobalConfigurationStateListener@e0c250c ispn-lon-2 | at org.infinispan.marshall.exts.ThrowableExternalizer.readMessageAndCause(ThrowableExternalizer.java:258) ispn-lon-2 | at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:184) ispn-lon-2 | at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:44) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:727) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:708) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:357) ispn-lon-2 | at org.infinispan.marshall.core.BytesObjectInput.readObject(BytesObjectInput.java:32) ispn-lon-2 | at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:49) ispn-lon-2 | at org.infinispan.remoting.responses.ExceptionResponse$Externalizer.readObject(ExceptionResponse.java:41) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:727) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:708) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:357) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.objectFromObjectInput(GlobalMarshaller.java:191) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.objectFromByteBuffer(GlobalMarshaller.java:220) ispn-lon-2 | at org.infinispan.remoting.transport.jgroups.JGroupsTransport.processResponse(JGroupsTransport.java:1570) ispn-lon-2 | ... 26 more ispn-lon-2 | Caused by: org.infinispan.commons.CacheConfigurationException: Cannot instantiate class 'org.infinispan.xsite.spi.DefaultXSiteEntryMergePolicy@6163a2a5' ispn-lon-2 | at org.infinispan.marshall.exts.ThrowableExternalizer.readMessageAndCause(ThrowableExternalizer.java:258) ispn-lon-2 | at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:180) ispn-lon-2 | at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:44) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:727) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:708) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:357) ispn-lon-2 | at org.infinispan.marshall.core.BytesObjectInput.readObject(BytesObjectInput.java:32) ispn-lon-2 | at org.infinispan.marshall.exts.ThrowableExternalizer.readMessageAndCause(ThrowableExternalizer.java:257) ispn-lon-2 | ... 40 more ispn-lon-2 | Suppressed: java.lang.ClassNotFoundException: org.infinispan.xsite.spi.DefaultXSiteEntryMergePolicy@6163a2a5 ispn-lon-2 | at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ispn-lon-2 | at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77) ispn-lon-2 | at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ispn-lon-2 | at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499) ispn-lon-2 | at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480) ispn-lon-2 | at org.infinispan.marshall.exts.ThrowableExternalizer.newThrowableInstance(ThrowableExternalizer.java:287) ispn-lon-2 | at org.infinispan.marshall.exts.ThrowableExternalizer.readGenericThrowable(ThrowableExternalizer.java:265) ispn-lon-2 | at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:240) ispn-lon-2 | at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:44) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:727) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:708) ispn-lon-2 | at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:357) ispn-lon-2 | at org.infinispan.marshall.core.BytesObjectInput.readObject(BytesObjectInput.java:32) ispn-lon-2 | at org.infinispan.commons.marshall.MarshallUtil.unmarshallArray(MarshallUtil.java:216) ispn-lon-2 | at org.infinispan.marshall.exts.ThrowableExternalizer.readSuppressed(ThrowableExternalizer.java:270) ispn-lon-2 | ... 48 more
For other `merge-policy` option it throws:
Caused by: org.infinispan.commons.CacheConfigurationException: Cannot instantiate class 'org.infinispan.xsite.spi.AlwaysRemoveXSiteEntryMergePolicy@6b88f91d'
ispn-lon-1 | at org.infinispan.marshall.exts.ThrowableExternalizer.readMessageAndCause(ThrowableExternalizer.java:258)
ispn-lon-1 | at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:180)
ispn-lon-1 | at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:44)
ispn-lon-1 | at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:727)
ispn-lon-1 | at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:708)
ispn-lon-1 | at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:357)
ispn-lon-1 | at org.infinispan.marshall.core.BytesObjectInput.readObject(BytesObjectInput.java:32)
ispn-lon-1 | at org.infinispan.marshall.exts.ThrowableExternalizer.readMessageAndCause(ThrowableExternalizer.java:257)
ispn-lon-1 | ... 40 more
ispn-lon-1 | Suppressed: java.lang.ClassNotFoundException: org.infinispan.xsite.spi.AlwaysRemoveXSiteEntryMergePolicy@6b88f91d
ispn-lon-1 | at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
ispn-lon-1 | at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
ispn-lon-1 | at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
ispn-lon-1 | at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
ispn-lon-1 | at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
ispn-lon-1 | at org.infinispan.marshall.exts.ThrowableExternalizer.newThrowableInstance(ThrowableExternalizer.java:287)
ispn-lon-1 | at org.infinispan.marshall.exts.ThrowableExternalizer.readGenericThrowable(ThrowableExternalizer.java:265)
ispn-lon-1 | at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:240)
ispn-lon-1 | at org.infinispan.marshall.exts.ThrowableExternalizer.readObject(ThrowableExternalizer.java:44)
ispn-lon-1 | at org.infinispan.marshall.core.GlobalMarshaller.readWithExternalizer(GlobalMarshaller.java:727)
ispn-lon-1 | at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:708)
ispn-lon-1 | at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:357)
ispn-lon-1 | at org.infinispan.marshall.core.BytesObjectInput.readObject(BytesObjectInput.java:32)
ispn-lon-1 | at org.infinispan.commons.marshall.MarshallUtil.unmarshallArray(MarshallUtil.java:216)
ispn-lon-1 | at org.infinispan.marshall.exts.ThrowableExternalizer.readSuppressed(ThrowableExternalizer.java:270)
ispn-lon-1 | ... 48 more
UPDATE: also once the server throws this exception, then the further xsite cache creation process is broken.