eclipse JDI 事件调度空指针异常

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/11546190/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 18:37:31  来源:igfitidea点击:

JDI Event Dispatch nullpointerexception

eclipseeventsdispatchjdi

提问by Fungijl

When I try to debug on my device I sometimes get an error and the debugger doesn't stop on any breakpoint. Also, the application doesn't even start properly, it just freezes at kinda black screen with the app icon and name at the top.

当我尝试在我的设备上调试时,我有时会收到一个错误并且调试器不会在任何断点处停止。此外,该应用程序甚至无法正常启动,它只是在有点黑屏的情况下冻结,顶部有应用程序图标和名称。

The error is a popup in eclipse with title "'JDI Event Dispatch' has encountered a problem. An internal error occured during: 'JDI Event Dispatch'." I have an ok and details button, when I press the latter I get the following details: "An internal error occurred during: "JDI Event Dispatch". java.lang.NullPointerException"

错误是 Eclipse 中的弹出窗口,标题为“'JDI 事件调度'遇到问题。在:'JDI 事件调度'期间发生内部错误。” 我有一个确定和详细信息按钮,当我按下后者时,我得到以下详细信息:“发生内部错误:“JDI 事件调度”。java.lang.NullPointerException”

I work in Eclipse Java EE Helios Service Release 2. Any help would be appreciated

我在 Eclipse Java EE Helios Service Release 2 工作。任何帮助将不胜感激

回答by Holger

Try increasing the debugger timeout in eclipse menu Window > Preferences > Java > Debug. That worked for me in a similar situation.

尝试在eclipse menu Window > Preferences > Java > Debug. 在类似的情况下,这对我有用。

Otherwise you could try to get a clue on the problem cause by looking at the error log entries (Window > Show View > Others > Error Log).

否则,您可以尝试通过查看错误日志条目 ( Window > Show View > Others > Error Log)来获取有关问题原因的线索。

回答by Fenil

Try Removing all the breakpoint. It happens if you have too many breakpoints.

尝试删除所有断点。如果断点太多,就会发生这种情况。

回答by javaPlease42

I got this error on Eclipse Kepler too while trying to remote debug.

尝试远程调试时,我在 Eclipse Kepler 上也遇到了这个错误。

enter image description here

在此处输入图片说明

I did not have to do anything special to get past this error. All I did was launch debug mode again.

我不需要做任何特别的事情来克服这个错误。我所做的只是再次启动调试模式。

回答by BaptisteL

It happened to me because I had a conditional breakpoint with a boolean test too long in terms of number of characters.

这发生在我身上,因为我有一个条件断点,布尔测试在字符数方面太长了。