简体   繁体   English

Infinispan 警告:org.jgroups.conf.XmlConfigurator:配置文件中缺少版本

[英]Infinispan Warning: org.jgroups.conf.XmlConfigurator: version is missing in the configuration file

at my company I am currently upgrading from Wildfly 19 to Wildfly 20. As a result I hab to upgrade the version of our Infinispan Cache from 9.x to 10.x.在我的公司,我目前正在从 Wildfly 19 升级到 Wildfly 20。因此,我习惯将 Infinispan Cache 的版本从 9.x 升级到 10.x。 When I start my application I'm now getting multiple lines of warnings that always say:当我启动我的应用程序时,我现在收到多行警告,这些警告总是说:
WARN [org.jgroups.conf.XmlConfigurator] (MSC service thread 1-1) version is missing in the configuration file

My DefaultCacheManager gets initialized like this:我的 DefaultCacheManager 像这样初始化:
EmbeddedCacheManager infManager = new DefaultCacheManager(new GlobalConfigurationBuilder().build());
So Infinispan would use its default jgroups configuration file.因此 Infinispan 将使用其默认的 jgroups 配置文件。

How can I avoid that warnings?我怎样才能避免这些警告? Is there something wrong with the default configuration file?默认配置文件有问题吗? Do I have to provide a custom one, although I'm only using local caches?尽管我只使用本地缓存,但我是否必须提供自定义缓存? Or is it a completly different problem?或者这是一个完全不同的问题?

Thanks in advance for everyone who can help me.提前感谢所有可以帮助我的人。

JGroups (which is used for clustering in Infinispan and Wildfy) introduced a version attribute in the configuration files, with release 4.2.2.Final (see https://issues.redhat.com/browse/JGRP-2401 ). JGroups(用于 Infinispan 和 Wildfy 中的集群)在配置文件中引入了版本属性,版本为 4.2.2.Final(参见https://issues.redhat.com/browse/JGRP-2401 )。

Infinispan 10/11 still uses JGroups 4.2.1.Final and so the default configuration files shipped don't have the version attribute. Infinispan 10/11 仍然使用 JGroups 4.2.1.Final,因此出厂的默认配置文件没有版本属性。

IMO, it is safe to ignore since I don't expect any significant (API) changes between 4.2.1.Final and 4.2.4.Final (for the record, Wildfly 20 is using JGroups 4.2.4.Final). IMO,可以安全地忽略,因为我预计 4.2.1.Final 和 4.2.4.Final 之间没有任何重大(API)变化(为了记录,Wildfly 20 正在使用 JGroups 4.2.4.Final)。

If you want to remove the warning, you can copy the default configuration files from Infinispan (or create your own) and add the missing version attribute.如果要删除警告,可以从 Infinispan 复制默认配置文件(或创建自己的)并添加缺少的版本属性。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Hibernate Search,Infinispan,jgroups,Wildfly集群集成配置 - Hibernate Search, Infinispan, jgroups, Wildfly cluster integration configuration CacheException:无法对JGroupsTransport类型的对象调用public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() - CacheException:Unable to invoke public void org.infinispan.remoting.transport.jgroups.JGroupsTransport.start() on object of type JGroupsTransport 如何在Infinispan中启用JGroups日志记录 - How to enable JGroups logging in Infinispan Infinispan JGROUPS强制更改视图 - Infinispan JGROUPS force Change View NoClassDefFoundError:org / apache / hadoop / conf / Configuration - NoClassDefFoundError: org/apache/hadoop/conf/Configuration 在 JGroups 配置中放置 test-jgroups-jdbc_ping.xml jgroup 文件的位置 - where to place test-jgroups-jdbc_ping.xml jgroup file in JGroups configuration Jboss 6.4 Infinispan 8.2和JGroups-ClassNotFoundException - Jboss 6.4 Infinispan 8.2 and JGroups - ClassNotFoundException 5.3.0最终版中缺少Infinispan.war - Infinispan.war missing in 5.3.0.Final version JGroups 版本变更 - JGroups version change 警告 org.apache.maven.plugins:maven-deploy-plugin 的“build.plugins.plugin.version”丢失 - WARNING 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-deploy-plugin is missing
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM