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!
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With