Cannot get rid of breakpoint in JdbcOdbcDriver.finalize()

匆匆过客 提交于 2019-12-08 02:27:47

问题


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) {}
}

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?


回答1:


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




回答2:


If you can't turn off a breakpoint - it is a common problem in Eclipse - turning off ALL breakpoints always work. (doubled crosses button in breakpoints window)



来源:https://stackoverflow.com/questions/6223705/cannot-get-rid-of-breakpoint-in-jdbcodbcdriver-finalize

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!