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?

2
3 comments

that link is dead, besides even adding the relevant -javaagent line in the pom.xml does not solve it for Intellij.

0

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

0

Please sign in to leave a comment.