开发者

AGENT_ERROR_INVALID_EVENT_TYPE when testing an eclipse plugin

开发者 https://www.devze.com 2023-02-22 03:00 出处:网络
I\'m developing an eclipse plugin. When testing开发者_运维问答 it, I sometimes encounter the following error:

I'm developing an eclipse plugin. When testing开发者_运维问答 it, I sometimes encounter the following error:

JDWP exit error AGENT_ERROR_INVALID_EVENT_TYPE(204): ExceptionOccurred [../../../src/share/back/eventHelper.c:808]
FATAL ERROR in native method: JDWP ExceptionOccurred, jvmtiError=AGENT_ERROR_INVALID_EVENT_TYPE(204)

Which immediately kills the running eclipse instance (not the eclipse host).

Does anyone know what can lead to this error? I suspect some multithreading shenanigans, but it's not easy pinpointing it.


Turns out this was the result of a wayward Thread.stop() method invoked when running eclipse in debug mode. This didn't happen in run mode, only in debug mode, and it no longer appeared after removing the stop() method.

I guess it is deprecated for a good reason!


You are passing wrong arguments to the jvm. You can try first by removing all the options and then adding one by one to find out which one causes the error

0

精彩评论

暂无评论...
验证码 换一张
取 消