java.lang.instrument.IllegalClassFormatException: Error while instrumenting class com/company/a/b/c/dUtil.

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Jenkins JIRA by Adam Sloan, 1 year ago
Error while instrumenting class com/company/a/b/c/dUtil.
via jenkins-ci.org by Unknown author, 2 years ago
via Jenkins JIRA by Adam Sloan, 1 year ago
Error while instrumenting class com/company/a/b/c/dUtil.
via GitHub by pedroborges73
, 11 months ago
Error while instrumenting class com/nsn/nas/trc/trc_services/entity/CorTraceHeader.
via Stack Overflow by Arun Sangal
, 2 years ago
Error while instrumenting class org/gradle/internal/service/UnknownServiceException.
java.lang.IllegalStateException: Missing or invalid stackmap frames.
at org.jacoco.agent.rt.internal_5d10cad.core.internal.instr.FrameTracker.assertValidFrames(FrameTracker.java:613)
at org.jacoco.agent.rt.internal_5d10cad.core.internal.instr.FrameTracker.pop(FrameTracker.java:608)
at org.jacoco.agent.rt.internal_5d10cad.core.internal.instr.FrameTracker.visitJumpInsn(FrameTracker.java:518)
at org.jacoco.agent.rt.internal_5d10cad.core.internal.instr.MethodInstrumenter.visitJumpInsnWithProbe(MethodInstrumenter.java:68)
at org.jacoco.agent.rt.internal_5d10cad.core.internal.flow.MethodProbesAdapter.visitJumpInsn(MethodProbesAdapter.java:72)
at org.jacoco.agent.rt.internal_5d10cad.asm.tree.JumpInsnNode.accept(Unknown Source)
at org.jacoco.agent.rt.internal_5d10cad.asm.tree.InsnList.accept(Unknown Source)
at org.jacoco.agent.rt.internal_5d10cad.asm.tree.MethodNode.accept(Unknown Source)
at org.jacoco.agent.rt.internal_5d10cad.core.internal.flow.ClassProbesAdapter$1.visitEnd(ClassProbesAdapter.java:124)
at org.jacoco.agent.rt.internal_5d10cad.asm.ClassReader.b(Unknown Source)
at org.jacoco.agent.rt.internal_5d10cad.asm.ClassReader.accept(Unknown Source)
at org.jacoco.agent.rt.internal_5d10cad.asm.ClassReader.accept(Unknown Source)
at org.jacoco.agent.rt.internal_5d10cad.core.instr.Instrumenter.instrument(Instrumenter.java:74)
at org.jacoco.agent.rt.internal_5d10cad.core.instr.Instrumenter.instrument(Instrumenter.java:87)
at org.jacoco.agent.rt.internal_5d10cad.CoverageTransformer.transform(CoverageTransformer.java:89)
at sun.instrument.TransformerManager.transform(TransformerManager.java:169)
at sun.instrument.InstrumentationImpl.transform(InstrumentationImpl.java:365)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Class.java:2291)
at org.junit.runners.model.TestClass.(TestClass.java:44)
at org.junit.runners.ParentRunner.(ParentRunner.java:73)
at org.junit.runners.BlockJUnit4ClassRunner.(BlockJUnit4ClassRunner.java:55)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at org.junit.internal.builders.AnnotatedBuilder.buildRunner(AnnotatedBuilder.java:31)
at org.junit.internal.builders.AnnotatedBuilder.runnerForClass(AnnotatedBuilder.java:24)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
at org.junit.internal.builders.AllDefaultPossibilitiesBuilder.runnerForClass(AllDefaultPossibilitiesBuilder.java:29)
at org.junit.runners.model.RunnerBuilder.safeRunnerForClass(RunnerBuilder.java:57)
at org.apache.maven.surefire.junit4.JUnit4TestSet.(JUnit4TestSet.java:45)
at org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.locateTestSets(AbstractDirectoryTestSuite.java:96)
at org.apache.maven.surefire.Surefire.createSuiteFromDefinition(Surefire.java:209)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:345)

Users with the same issue

You are the first who have seen this exception.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.