Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

AGENT_ERROR_INVALID_EVENT_TYPE when testing an eclipse plugin

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.

like image 892
Oak Avatar asked Jul 21 '26 12:07

Oak


1 Answers

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!

like image 50
Oak Avatar answered Jul 23 '26 03:07

Oak