1

我们一直在使用旧版本的 infinispan 和 wildfly(10.x 和 infinispan 6.x)。缓存已被用作嵌入式缓存,例如它是从应用程序代码(实际上是 wildfly 模块)启动的。每当在集群模式下创建缓存时,代码都会创建一个带有特定类加载器的装饰缓存,该类加载器允许处理远程数据传输并提供了所有必需的课程。在 inifinspan 9.4.x 中, with(ClassLoader) 在 AdvancedCache 和 DecoratedCache 上都已弃用,在检查代码时我们发现它什么也没做。结果当缓存项被存储并发送到远程节点时发生远程异常(java.lang.ClassNotFoundException)

15:32:45,028 ERROR [org.infinispan.interceptors.impl.InvocationContextInterceptor] (jgroups-10,ip-10-0-0-82-23088) ISPN000136: Error executing command PrepareCommand on Cache 'ra-data-SipRA'

, 写键 [1-14341@127.0.0.1:c803fe42:null]: org.infinispan.remoting.RemoteException: ISPN000217: Received exception from ip-10-0-0-82-50680, see cause for remote stack trace at org .infinispan.remoting.transport.ResponseCollectors.wrapRemoteException(ResponseCollectors.java:28)

at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:255)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:410)
    at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
    at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:348)
    at org.jboss.marshalling.AbstractClassResolver.loadClass(AbstractClassResolver.java:123)
    at org.jboss.marshalling.AbstractClassResolver.resolveClass(AbstractClassResolver.java:104)
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadClassDescriptor(RiverUnmarshaller.java:1079)
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadNewObject(RiverUnmarshaller.java:1355)
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:272)
    at org.jboss.marshalling.river.RiverUnmarshaller.doReadObject(RiverUnmarshaller.java:205)
    at org.jboss.marshalling.AbstractObjectInput.readObject(AbstractObjectInput.java:41)
    at org.infinispan.marshall.core.ExternalJBossMarshaller.objectFromObjectStream(ExternalJBossMarshaller.java:47)
    at org.infinispan.marshall.core.GlobalMarshaller.readUnknown(GlobalMarshaller.java:873)
    at org.infinispan.marshall.core.GlobalMarshaller.readNonNullableObject(GlobalMarshaller.java:697)
    at org.infinispan.marshall.core.GlobalMarshaller.readNullableObject(GlobalMarshaller.java:361)

源代码显示全局配置现在正在存储类加载器,它是从wildfly提供的。有没有办法为 infinispan 9.x 提供自定义类加载器,或者至少定义在远程操作处理中使用哪一个

BR Yulian Oifa

4

0 回答 0