Exception in thread "main" java.lang.NoSuchMethodError: 'org.pitest.plugin.Feature org.pitest.plugin.Feature.markMissing()'

17 views
Skip to first unread message

Ashbrringer

unread,
Jun 3, 2024, 10:42:44 AMJun 3
to PIT Users
I am getting this error when I am trying to run PIT in my project. I tried solving it with ChatGPT but i couldnt. 
Exception in thread "main" java.lang.NoSuchMethodError: 'org.pitest.plugin.Feature org.pitest.plugin.Feature.markMissing()'
at org.pitest.plugin.available.MissingKotlinFeature.provides(MissingKotlinFeature.java:18)
at org.pitest.mutationtest.config.SettingsFactory.lambda$checkRequestedFeatures$3(SettingsFactory.java:164)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:212)
at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1709)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:556)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:546)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:921)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:265)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:702)
at org.pitest.mutationtest.config.SettingsFactory.checkRequestedFeatures(SettingsFactory.java:165)
at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:90)
at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:63)
at org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:98)
at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:45)

Henry Coles

unread,
Jun 4, 2024, 11:15:38 AMJun 4
to pitu...@googlegroups.com
It sounds like you somehow have conflicting versions of pitest on your classpath.

What does your build file look like?

--
You received this message because you are subscribed to the Google Groups "PIT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to pitusers+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pitusers/e5d1d75e-7dd2-4085-b2be-44474918a7acn%40googlegroups.com.

Ashbrringer

unread,
Jun 5, 2024, 9:36:23 AMJun 5
to pitu...@googlegroups.com
Thank you for the reply, I was using a project from my colleague, he was using different versions of java, pit and junit. I fixed it. 

You received this message because you are subscribed to a topic in the Google Groups "PIT Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/pitusers/xTAlJM2FsSQ/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pitusers+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/pitusers/CALGd%2BSSx3VVFG75Q0sxg4ccMFri_R5as8aAswiB2XtmKfMLE-A%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages