DCEVM And JMockit Initialisation Error
Answered
When I start a JMockit test using a DCEVM enabled JDK I get the following error that requires me to modify the run config:
java.lang.IllegalStateException: To run on Dynamic Code Evolution 64-Bit Server VM use -javaagent:C:\Project\test\lib\jmockit-1.28.jar
[TestNG] Running:
C:\tools\java\.IntelliJIdea\system\temp-testng-customsuite.xml
java.lang.ExceptionInInitializerError
at my.package.TestClass.java:33)
Caused by: java.lang.IllegalStateException: To run on Dynamic Code Evolution 64-Bit Server VM use -javaagent:C:\Project\test\lib\jmockit-1.28.jar
... 1 more
I can't find anything similar when searching online.
Is this coming from IDEA, DCEVM or JMockit?
Please sign in to leave a comment.
It comes from JMockit, see http://www.lookatsrc.com/source/mockit/internal/startup/AgentLoader.java?a=org.jmockit:jmockit (lines 129-139).
that link is dead, besides even adding the relevant -javaagent line in the pom.xml does not solve it for Intellij.
Hello,
What DCEVM, JDK, Testng versions do you use? Can you please create an issue at YouTrack (https://youtrack.jetbrains.com/issues/IDEA) sharing the little sample project where the problem is reproduced for you? Thank you