Skip to content

Always getting java.lang.IllegalArgumentException when running as PIT Mutation Test #74

Description

@ricardojaferreira

I am always getting the following errors when I try to run my jUnit tests with PIT.

I am using macOs High Sierra, with JDK 1.9 and with Eclipse Oxygen .2 Release 4.7; Pitclipse 0.31.4.201401081810 installed directly from the marketplace.

I have also tried with the lastest Eclipse Oxygen .3 Release and JDK1.10

Connecting to: localhost/127.0.0.1:55327 Connected Received request: PitRequest [options=PitOptions [reportDir=/Users/ricardo/Documents/eclipse-workspace/.metadata/.plugins/org.pitest.pitclipse.core/html_results, classUnderTest=null, classesToMutate=[dkeep.cli.DungeonKeep, dkeep.cli.Interpreter, dkeep.gui.GUIInterpreter, dkeep.gui.DungeonKeppGUI, dkeep.logic.LevelTwo, dkeep.logic.Map, dkeep.logic.Level, dkeep.logic.Hero, dkeep.logic.Guard, dkeep.logic.LevelOne, dkeep.logic.Basher, dkeep.logic.OnlyOneInstanceException, dkeep.logic.Personality, dkeep.logic.Move, dkeep.logic.WrongCallException, dkeep.logic.GameElements, dkeep.logic.MessageType, dkeep.logic.Game, dkeep.logic.Rookie, dkeep.logic.Sentinel, dkeep.logic.LevelOptions, dkeep.logic.AvailableLevels, dkeep.logic.Characters, dkeep.logic.Wall, dkeep.logic.Club, dkeep.logic.Ogre, dkeep.logic.Drunken, dkeep.logic.Lever, dkeep.logic.Door, dkeep.logic.Objects, dkeep.logic.MessageCenter, dkeep.logic.Suspicious, dkeep.logic.Weapon, dkeep.logic.Key, dkeep.logic.EmptySpace, dkeep.test.TestInterpreter, dkeep.test.Z_GameTests_ToDelete, dkeep.test.GameTests], sourceDirs=[/Users/ricardo/Documents/eclipse-workspace/LPOO1718_T1G/guided_project/src], packages=[dkeep.test.*], threads=4, historyLocation=null, excludedClasses=[], excludedMethods=[], avoidCallsTo=[java.util.logging, org.apache.log4j, org.slf4j, org.apache.commons.logging], mutators=[DEFAULTS], timeoutConst=3000, timeoutFactor=1.25], projects=[guided_project]] WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.pitest.reloc.xstream.core.util.Fields (file:/Applications/Eclipse.app/Contents/Eclipse/plugins/org.pitest.osgi_1.1.9.jar) to field java.util.TreeMap.comparator WARNING: Please consider reporting this to the maintainers of org.pitest.reloc.xstream.core.util.Fields WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 11:50:50 AM PIT >> FINE : Running report with ReportOptions [targetClasses=[^dkeep\.cli\.DungeonKeep$, ^dkeep\.cli\.Interpreter$, ^dkeep\.gui\.GUIInterpreter$, ^dkeep\.gui\.DungeonKeppGUI$, ^dkeep\.logic\.LevelTwo$, ^dkeep\.logic\.Map$, ^dkeep\.logic\.Level$, ^dkeep\.logic\.Hero$, ^dkeep\.logic\.Guard$, ^dkeep\.logic\.LevelOne$, ^dkeep\.logic\.Basher$, ^dkeep\.logic\.OnlyOneInstanceException$, ^dkeep\.logic\.Personality$, ^dkeep\.logic\.Move$, ^dkeep\.logic\.WrongCallException$, ^dkeep\.logic\.GameElements$, ^dkeep\.logic\.MessageType$, ^dkeep\.logic\.Game$, ^dkeep\.logic\.Rookie$, ^dkeep\.logic\.Sentinel$, ^dkeep\.logic\.LevelOptions$, ^dkeep\.logic\.AvailableLevels$, ^dkeep\.logic\.Characters$, ^dkeep\.logic\.Wall$, ^dkeep\.logic\.Club$, ^dkeep\.logic\.Ogre$, ^dkeep\.logic\.Drunken$, ^dkeep\.logic\.Lever$, ^dkeep\.logic\.Door$, ^dkeep\.logic\.Objects$, ^dkeep\.logic\.MessageCenter$, ^dkeep\.logic\.Suspicious$, ^dkeep\.logic\.Weapon$, ^dkeep\.logic\.Key$, ^dkeep\.logic\.EmptySpace$, ^dkeep\.test\.TestInterpreter$, ^dkeep\.test\.Z_GameTests_ToDelete$, ^dkeep\.test\.GameTests$], excludedMethods=[], excludedClasses=[], codePaths=[], reportDir=/Users/ricardo/Documents/eclipse-workspace/.metadata/.plugins/org.pitest.pitclipse.core/html_results, historyInputLocation=null, historyOutputLocation=null, sourceDirs=[/Users/ricardo/Documents/eclipse-workspace/LPOO1718_T1G/guided_project/src], classPathElements=[/Users/ricardo/Documents/eclipse-workspace/LPOO1718_T1G/guided_project/bin, /Applications/Eclipse.app/Contents/Eclipse/plugins/org.junit_4.12.0.v201504281640/junit.jar, /Applications/Eclipse.app/Contents/Eclipse/plugins/org.hamcrest.core_1.3.0.v201303031735.jar, /Applications/Eclipse.app/Contents/Eclipse/plugins/org.pitest.command-line-osgi_1.1.9.jar, /Applications/Eclipse.app/Contents/Eclipse/plugins/org.pitest.html-report-osgi_1.1.9.jar, /Applications/Eclipse.app/Contents/Eclipse/plugins/org.pitest.osgi_1.1.9.jar, /Applications/Eclipse.app/Contents/Eclipse/plugins/org.pitest.pitrunner_1.1.6.201607050705.jar, /Applications/Eclipse.app/Contents/Eclipse/plugins/org.pitest.guava-shade-osgi_18.0.0.jar], mutators=[DEFAULTS], dependencyAnalysisMaxDistance=-1, mutateStaticInitializers=false, jvmArgs=[], numberOfThreads=4, timeoutFactor=1.25, timeoutConstant=3000, targetTests=[^dkeep\.test\..*$], loggingClasses=[java.util.logging, org.apache.log4j, org.slf4j, org.apache.commons.logging], maxMutationsPerClass=0, verbose=true, failWhenNoMutations=false, outputs=[HTML, PITCLIPSE_MUTATIONS], groupConfig=TestGroupConfig [excludedGroups=[], includedGroups=[]], mutationUnitSize=0, shouldCreateTimestampedReports=true, detectInlinedCode=false, exportLineCoverage=false, mutationThreshold=0, coverageThreshold=0, mutationEngine=gregor, javaExecutable=null, includeLaunchClasspath=true] 11:50:50 AM PIT >> FINE : System class path is /Users/ricardo/Documents/eclipse-workspace/LPOO1718_T1G/guided_project/bin:/Applications/Eclipse.app/Contents/Eclipse/plugins/org.junit_4.12.0.v201504281640/junit.jar:/Applications/Eclipse.app/Contents/Eclipse/plugins/org.hamcrest.core_1.3.0.v201303031735.jar:/Applications/Eclipse.app/Contents/Eclipse/plugins/org.pitest.command-line-osgi_1.1.9.jar:/Applications/Eclipse.app/Contents/Eclipse/plugins/org.pitest.html-report-osgi_1.1.9.jar:/Applications/Eclipse.app/Contents/Eclipse/plugins/org.pitest.osgi_1.1.9.jar:/Applications/Eclipse.app/Contents/Eclipse/plugins/org.pitest.pitrunner_1.1.6.201607050705.jar:/Applications/Eclipse.app/Contents/Eclipse/plugins/org.pitest.guava-shade-osgi_18.0.0.jar 11:50:50 AM PIT >> FINE : Maximum available memory is 2048 mb Closing server Closed Exception in thread "main" java.lang.IllegalArgumentException at org.pitest.reloc.asm.ClassReader.<init>(Unknown Source) at org.pitest.reloc.asm.ClassReader.<init>(Unknown Source) at org.pitest.classinfo.ClassInfoVisitor.getClassInfo(ClassInfoVisitor.java:41) at org.pitest.classinfo.Repository.nameToClassInfo(Repository.java:70) at org.pitest.classinfo.Repository.fetchClass(Repository.java:60) at org.pitest.classinfo.NameToClassInfo.apply(NameToClassInfo.java:16) at org.pitest.classinfo.NameToClassInfo.apply(NameToClassInfo.java:6) at org.pitest.functional.FCollection.flatMapTo(FCollection.java:56) at org.pitest.functional.FCollection.flatMap(FCollection.java:66) at org.pitest.classpath.CodeSource.getCode(CodeSource.java:46) at org.pitest.mutationtest.verify.DefaultBuildVerifier.verify(DefaultBuildVerifier.java:32) at org.pitest.mutationtest.tooling.MutationCoverage.verifyBuildSuitableForMutationTesting(MutationCoverage.java:206) at org.pitest.mutationtest.tooling.MutationCoverage.runReport(MutationCoverage.java:108) at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:103) at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:45) at org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:76) at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:45) at org.pitest.pitclipse.pitrunner.PitRunner.runPIT(PitRunner.java:46) at org.pitest.pitclipse.pitrunner.PitRunner.main(PitRunner.java:25)

Metadata

Metadata

Assignees

Labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions