Solution: Adding retransformable transformers is not supported in this environment

By 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:

Can-Retransform-Classes: true

That’s it folks!

YOUR VIEW POINT
NAME : (REQUIRED)
MAIL : (REQUIRED)
will not be displayed
WEBSITE : (OPTIONAL)
YOUR
COMMENT :