Solution: Adding retransformable transformers is not supported in this environmentBy angsuman, Gaea News Network
Tuesday, July 21, 2015
I a sure you have come to this article to find a solution o the maddening error: Caused by: java.lang.UnsupportedOperationException: adding retransformable transformers is not supported in this environment while calling Instrumentation.addTransformer(transformer, true).
The problem while vexing, thanks to the cryptic error message has a simple solution. You need to add the following to your MANIFEST.MF file in your agent jar:
That’s it folks!