java中的nullpoInterException,没有stacktrace for OpenJDK

发布于 2025-02-07 09:23:57 字数 416 浏览 2 评论 0原文

我们正在通过 OpenJDK 64位服务器VM(构建25.91-B14,混合模式),Java 8

在我的组织中,

org.slf4j.Logger.error("ERROR in while processing data", e);

。有关隐式期望的无堆栈跟踪的相关文章(例如NPE),并在JVM中找到了运行命令-XX:-OMITSTACKTRACEINFASTTHOW

但是,我还读到,这是Hotspot JVM(由Oracle)的原因和解决方案(由Oracle)

在我的JVM中的解决方案是什么?

如果是-XX:-OMITSTACKTRACEINFASTTHROW,请教育如何和何处运行此命令。

In my organisation we are running our projects on OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode), java 8.

I am logging my error in a fashion shown below:

org.slf4j.Logger.error("ERROR in while processing data", e);

I have went through relevant articles regarding no stack trace for implicit expections(like NPE) and found running the command -XX:-OmitStackTraceInFastThrow in the JVM.

However, I have also read that this is a cause and solution for Hotspot JVM(By Oracle)

What is the solution for this in My JVM?

If it is -XX:-OmitStackTraceInFastThrow, please educate as to how and where to run this command.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文