java class 在 catalina.out 上发出警告
Which java class issues warning on catalina.out
我目前正在调试为什么我们在 Tomcat 8.5
上部署的在 Java 1.8
中编译的遗留 Maven
Web 应用程序一直发送以下消息:
Warning: Could not get charToByteConverterClass!
奇怪的是,在我的本地 Tomcat 实例上启动它时,我在控制台中看到警告,但在 catalina.out
文件中没有。
到目前为止我的猜测是这是由某种依赖性引起的,因为我们的代码中没有这样的警告。
问题是我们有非常旧的依赖项,而且很多,所以在尝试升级它们之前,我想知道是否有任何方法可以:
- 查看正在打印的“调用堆栈”。
- 或者至少看到 哪个 class 正在打印那个 。
到目前为止我尝试过的事情:
- 正在将应用程序日志级别设置为信息。
- 正在将 Tomcat 的日志记录级别设置为全部。
由于自 2.7 版本以来已修复的问题,您需要升级 xalan:
issue is now resolved as being fixed in the Xalan-J 2.7 release. As the issue reporter please confirm the code no longer has this problem so that we can close this issue down.
Actually the code that had the problem is totally gone, haha! Through XALANJ-2087 the dependancy on CharToByteConverter was removed plus a number of bugs were fixed due to an incorrect algorithm.
如果有人遇到这个问题。 xalan 2.7 没有消除该消息。将以下存根 class 添加到您的构建中将使错误消息静音:
package sun.io;
public class CharToByteConverter {
public static CharToByteConverter getConverter(String encoding) {
return new CharToByteConverter();
}
}
我目前正在调试为什么我们在 Tomcat 8.5
上部署的在 Java 1.8
中编译的遗留 Maven
Web 应用程序一直发送以下消息:
Warning: Could not get charToByteConverterClass!
奇怪的是,在我的本地 Tomcat 实例上启动它时,我在控制台中看到警告,但在 catalina.out
文件中没有。
到目前为止我的猜测是这是由某种依赖性引起的,因为我们的代码中没有这样的警告。
问题是我们有非常旧的依赖项,而且很多,所以在尝试升级它们之前,我想知道是否有任何方法可以:
- 查看正在打印的“调用堆栈”。
- 或者至少看到 哪个 class 正在打印那个 。
到目前为止我尝试过的事情:
- 正在将应用程序日志级别设置为信息。
- 正在将 Tomcat 的日志记录级别设置为全部。
由于自 2.7 版本以来已修复的问题,您需要升级 xalan:
issue is now resolved as being fixed in the Xalan-J 2.7 release. As the issue reporter please confirm the code no longer has this problem so that we can close this issue down.
Actually the code that had the problem is totally gone, haha! Through XALANJ-2087 the dependancy on CharToByteConverter was removed plus a number of bugs were fixed due to an incorrect algorithm.
如果有人遇到这个问题。 xalan 2.7 没有消除该消息。将以下存根 class 添加到您的构建中将使错误消息静音:
package sun.io;
public class CharToByteConverter {
public static CharToByteConverter getConverter(String encoding) {
return new CharToByteConverter();
}
}