Cannot get rid of breakpoint in JdbcOdbcDriver.fin

2019-05-23 07:56发布

问题:

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)