`
hanmiao
  • 浏览: 54989 次
  • 性别: Icon_minigender_1
  • 来自: 上海
文章分类
社区版块
存档分类
最新评论

在 Eclipse 中启动 Debug 模式时提示 Can not find a free socket for the debugger in eclipse

阅读更多
昨天下午在 eclipse 中调试壹個 Java 程序,结果前面几次启动调试器都是正常进入断点,后来我退出了调试,再次以 Debug 模式启动程序时,eclipse 弹出壹個窗口,报出如下错误信息:
Can not find a free socket for the debugger in eclipse.

这种错误之前从未见过,当时令我非常的莫名其妙,于是把这串文本作为关键字 Google 了壹把,还真让我找到了,Stackoverflow 上有個国外网友也遇到了同样的问题,而且看他的描述,与我遇到错误时的情景几乎壹样。
when i try to debug the java programe , it says "Cannot find a free socket for the debugger in eclipse".Could you explain how to resolve the error ?
以下是网友们提供的在 Windows 环境下壹個不太确定的解决方法:
The usual checks (some are Windows specifics) are:

•switch off the vista firewall (it wasn't activated, to be precise)
•add a firewall rule for java.exe/javaw.exe/eclipse.exe and reactivated it (just to be sure it didn't interfere although it was deactivated)
•deactivated my antivirus tool (avira antivir)
•ran eclipse as administrator
•disabled UAC
•activated/deactivated wired and wireless network interfaces
•changed priorities of the network interfaces
•used different jvms (1.6 and 1.7)
•created an entirely new workspace

比较遗憾的是,问题下方的网友答案对于我而言无壹点用处。为什么我这麽确定呢,因为同样的环境同样的条件,我在前面几次调试中并没有发生这個错误,但是重复壹段时间之后错误才会出现,所以可以确定是其它的外部因素引起的问题。

我继续想了想,发现壹個比较重要的线索就是,我们的程序堆栈中报了 NullPointerException,而报错的地方是读取 SQL 脚本写数据库的操作,于是我想,IO 流对象和文件路径都正确无误的情况下,那最大的嫌疑人肯定就是数据库连接了,马上检查了下获取 Connection 实例的地方,再问问同事,反映的情况是我们当前在使用的数据库还有很多用户也在使用,那麽问题就可以确定为连接数过多导致的失败了。我们随即登录管理端,清除了几個状态处于 IDLE 的连接,再次重新启动 eclipse ,问题解决。
0
0
分享到:
评论

相关推荐

    eclipse debugger flash教程

    eclipse debugger flash教程 lesson3

    Eclipse debugger教程(英文)

    Eclipse debugger教程,包括视频,练习与答案 Eclipse debugger教程,包括视频,练习与答案 Eclipse debugger教程,包括视频,练习与答案

    Using kgdb, kdb and the kernel debugger internals

    Kgdb is intended to be used as a source level debugger for the Linux kernel. It is used along with gdb to debug a Linux kernel. The expectation is that gdb can be used to "break in" to the kernel to ...

    The_Ultimate_Anti-Reversing_Reference

    These tricks can simply detect the presence of the debugger, disable the debugger, escape from the control of the debugger, or even exploit a vulnerability in the debugger. The presence of a debugger...

    开机启动任意程序_VC

    For example, you can run your programs in the Visual Studio debugger and step into the source code to find bugs, etc. When it is "bug free," you can deploy it in production, starting it from the ...

    socket调试工具for mac

    socket调试工具for mac tcp udp,mac 安装包,无需配置,自动获取本地ip,可配置ip, 客户端 服务端都支持

    CC2430 CC2530 debug时出现“a target cannot be selected ”解决办法及驱动

    用IAR和仿真器给板子下载程序时出现“a target cannot be selected when used in another debug session or in other applications.”解决办法及驱动。

    AndBug-A Scriptable Android Debugger

    AndBug is a debugger targeting the Android platform's Dalvik virtual machine intended for reverse engineers and developers. It uses the same interfaces as Android's Eclipse debugging plugin, the Java ...

    acpi控制笔记本风扇转速

    Integrated a fix for a problem with PCI Express HID detection in the PCI Config Space setup procedure. (BZ 7145) Moved all FADT-related functions to a new file, tbfadt.c. Eliminated the ...

    Debugger for Mysql procedure

    Debugger for MySQL offers a balanced set of advanced debugging features that will help you minimize the time needed for managing and testing even the most complex stored functions and procedures....

    eclipse-jee-photon-R-win32-x86_64.zip

    Take Your Code to the Next Level With Eclipse Photon Eclipse IDE, Photon Edition New and Noteworthy Table of Contents Java™ development tools Java™ 10 Support Java™ 9 Support JUnit Java Editor Java...

    Remote Debugger

    Remote Debugger

    Delve is a debugger for the Go programming language..zip

    Delve is a debugger for the Go programming language.

    Turbo Debugger v5.5 by Borland

    (You can use the Debugger with programs written in high level languages as well, observing both the source code and the assembly language code generated by the compilation of those programs.)

    EPIC - Perl Editor and IDE for Eclipse

    下载了官网中的稳定与测试版本... EPIC is the most feature-rich and extensible free Perl IDE available today, thanks to a seamless integration with all the major features and GUI conventions of Eclipse.

    CE中文版-启点CE过NP中文.exe

    structure data from PDB files can now be used, and are stored in a database for lookup later dissect structures form can now show a list of known structures (pdb, mono, ...) Added a "revert to saved ...

    Android 出现“Can’t bind to local 8602 for debugger”错误的解决方法

    Android 出现“Can’t bind to local 8602 for debugger”错误的解决方法 为了适应Android5.0的开发,把JDK升级到了1.7,然后在ADT中想调试一下程序(我连接的真机),结果报错如下: [2015-04-23 15:31:37 - ddms]...

    UE(官方下载)

    The lists lines option can be a handy tool when searching because it presents all occurrences of the find string in a floating dialog box. You can use the dialog to navigate to each instance by double...

    the Zend Debugger V5.2 for linux

    the Zend Debugger V5.2 for linux

    IDEA Debug 模式

    Debug 模式也称调试工具或调试程序,可以用于查看程序的执行流程和追踪程序执行过程,具体流程如下: 1. 设置断点 行号后面左键; 程序会运行到第一个断点,调试后可以跳到下一个断点也可以逐行检查,详见 “5. 具体...

Global site tag (gtag.js) - Google Analytics