Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Fatal error: processing of -javaagent failed #28
I get the following stack trace trying to run tests with JMockit:
Ausnahmebedingung in Thread "main"# START NON-TRANSLATABLEjava.lang.reflect.InvocationTargetException
Used to work well with prior versions of JMockit, including 1.9, only changed JMockit version to 1.10.
I think this is an incompatibility with the IBM JRE. Although this particular issue could be fixed, the IBM JRE is known to have other problems in its implementation of the java.lang.instrument API, which JMockit uses. So, in the end, the fact is that JMockit cannot run reliably on the IBM JRE.
We have been using JMockit with the IBM JRE's since almost 3 years now. So far, we did not have too many problems, taken the size of the projects and the number of people working in those into account. Even though we would like to switch to a different JRE, that's not a choice we have. As I said, everything is fine with the JMockit versions prior to 1.10.