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
JDI Event Dispatch nullpointerexception
提问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
回答by BaptisteL
It happened to me because I had a conditional breakpoint with a boolean test too long in terms of number of characters.
这发生在我身上,因为我有一个条件断点,布尔测试在字符数方面太长了。