本文介绍了无法摆脱JdbcOdbcDriver.finalize()中的断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 MyEclipse 8.6 + Apache Tomcat 5.5.27 + JRockit 1.6.0 05 用于Web开发。每次在MyEclipse的调试模式下启动Tomcat时,它将在 JdbcOdbcDriver.finalize()中的一个 NullPointerException 上挂起:96。堆栈跟踪只有 Thread.run (当然是finalizer):

I use MyEclipse 8.6 + Apache Tomcat 5.5.27 + JRockit 1.6.0 05 for web development. Every time I start up Tomcat in debug mode from MyEclipse, it suspends on a NullPointerException in JdbcOdbcDriver.finalize():96". The stack trace is only Thread.run (of course, finalizer):

protected synchronized void finalize() {
  if (OdbcApi.getTracer().isTracing()) {
    OdbcApi.getTracer().trace("Driver.finalize");
  }

  try {
    if (hDbc != 0L) {
      disconnect(hDbc);
      closeConnection(hDbc);
      hDbc = 0L;
   }
  } catch (SQLException localSQLException) {}
}

这真的很烦人,每个工作日看到这几百次,我没有把这个断点放在这里,我无法禁用它,我检查到异常断点是关闭的,你有什么建议吗?断点如何冻结 JVM?

It is really annoying, seeing this hundreds of times every workday. I did not put this breakpoint here and I cannot disable it. I checked that exception breakpoints are off. Do you have any suggestion? How can a breakpoint "freeze" into the JVM?

推荐答案

尝试在未捕获的异常情况下禁用挂起执行窗口 - > Prefs-> Java-> Debug

Try to disable Suspend execution on uncaught exceptions Window->Prefs->Java->Debug

这篇关于无法摆脱JdbcOdbcDriver.finalize()中的断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

11-03 02:29