无法摆脱 JdbcOdbcDriver.finalize() 中的断点
我使用 MyEclipse 8.6
+ Apache Tomcat 5.5.27
+ JRockit 1.6.0 05
进行 Web 开发。每次我从 MyEclipse 以调试模式启动 Tomcat 时,它都会在 JdbcOdbcDriver.finalize():96"
中的 NullPointerException
上挂起。堆栈跟踪仅是 Thread .run
(当然,终结器):
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 中?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试禁用未捕获异常的挂起执行 Window->Prefs->Java->Debug
Try to disable Suspend execution on uncaught exceptions Window->Prefs->Java->Debug
如果您无法关闭断点——这是 Eclipse 中的一个常见问题——关闭所有断点总是有效的。 (断点窗口中的双叉按钮)
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)