I have two Wildfly 10.1.0 Final server running on the same machine. Each has the same application deployed but for different clients. Each server is also configured to use Inifinispan 8.2.4 as a second level cache.
Now, here is the situation: the first server starts and it comes to the following log entries:
2017-04-19 06:25:29,414 INFO (ServerService Thread Pool -- 61) [org.infinispan.remoting.transport.jgroups.JGroupsTransport.start) ISPN000078: Starting JGroups channel infinispan-hibernate-cluster
2017-04-19 06:25:36,166 INFO (ServerService Thread Pool -- 61) [org.infinispan.remoting.transport.jgroups.JGroupsTransport.viewAccepted) ISPN000094: Received new cluster …Run Code Online (Sandbox Code Playgroud) 我们在生产中使用 wildfly 10 和 16,并且某些版本的 log4j 存在零日漏洞 CVE-2021-44228。
我如何确定代码和库都没有使用存在该问题的 log4j 库?
我不使用任何 log4j 属性文件,也不自己添加依赖项。
任何帮助将不胜感激!
我有反思的有线经验.首先是一些示例代码:
public abstract class A {
public A () {
init();
}
public abstract void init ();
}
public class B extends A {
private int i = 0;
public B () {
super();
System.out.println(i);
}
public void init () {
i = 1;
}
}
Run Code Online (Sandbox Code Playgroud)
在我的代码中的某处,我使用反射api来实例化一个对象B.
Class<AbstractSection> bc = (Class<AbstractSection>) Class.forName(B);
Constructor<?> bcon = bc.getConstructor();
B b = (B) bcon.newInstance();
Run Code Online (Sandbox Code Playgroud)
我期望的是B的实例,变量i设置为值'1'.我得到的是一个B的实例,我仍然设置为'0'.通过调试器仔细观察,我发现这不完全正确:我仍然没有设置为'0'.它在init()方法中更改为"1",并在super()调用返回的那一刻设置回"0".
谁有线索?提前致谢,
曼努埃尔
PS:我知道我可以通过调用init()而不是在超类中但在继承构造函数中来解决这个问题.