Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.6k views
in Technique[技术] by (71.8m points)

serialization - WIldFly 21 and Infinispan cache

I am in the process of switching from WildFly 17 to 21. Everything runs just fine. But when I try to run a cluster with several nodes I do have problems with Infinispan and serialization. I get errors like there is no marshaller defined (not registered) for some classes that have to be transfered to another node. This is probably because of the new Infinispan version and the new way of marshalling objects. I think I can define a JavaSerilizationMarshaller for my classes. But how do I do this via standalone.xml where my cache-container and caches are defined? Or what other approach can I use? Like defining the caches via a separate infinispan configuration file. A first attempt using the latter lead to some "org.infinispan.commons.CacheException: Unable to construct a GlobalComponentRegistry" caused by "ClassNotFoundException: org.jboss.threads.management.ManageableThreadPoolExecutorService".

Any idea what to do?

Addition: An attempt to use the deprecated annotation "SerializeWith" on SessionInfoImpl class leads to this exception:

Caused by: java.lang.ClassNotFoundException: net.mycompany.myapp.cache.SessionInfoImpl$SessionInfoExternalizer from [Module "org.wildfly.clustering.server" version 21.0.2.Final from local module loader @52d239ba (finder: local module finder @315f43d5 (roots: /opt/wildfly/modules,/opt/wildfly/modules/system/layers/base))]

Thanks in advance.

--Heiko


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...