Pit 0.28 with mvn 3: java.lang.NoClassDefFoundError: org/pitest/coverage/execute/CoverageSlave

1,055 views
Skip to first unread message

Philippe T'Seyen

unread,
Aug 28, 2012, 3:46:07 AM8/28/12
to pitu...@googlegroups.com
I'm trying to set up Pitest with mvn 3 on one of my projects, but I get the stacktrace below.

I attached the full command line output and my mvn pom. I have the same problem with other version: 0.23 -> 0.28.

Any help or advice to further root cause are appreciated.

stdout  : Installing PIT agent

stderr  : java.lang.NoClassDefFoundError: org/pitest/coverage/execute/CoverageSlave
Caused by: java.lang.ClassNotFoundException: org.pitest.coverage.execute.CoverageSlave
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessControlle
stderr  : r.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
stderr  : (ClassLoader.java:247)
Could not find the main class: org.pitest.coverage.execute.CoverageSlave.  Program will exit.
Exception in thread "main"
pitest.txt

henry

unread,
Aug 28, 2012, 7:30:34 AM8/28/12
to pitu...@googlegroups.com
Hi Philippe,

Thanks for the report.

I can't see anything obviously wrong from what you've posted. Could you put together a minimal project that reproduces the problem for you? If so I'll see if I can reproduce it locally.

Thanks

Henry

Philippe T'Seyen

unread,
Sep 3, 2012, 3:06:40 AM9/3/12
to pitu...@googlegroups.com
Hi Henry,

I was on a holiday last week, so sorry for the late reply.

I stripped my project as much as possible. With the attached zip file, you should be able to reproduce.

mvn org.pitest:pitest-maven:mutationCoverage

Let me know if you need extra info.

Philippe
deployer.zip

henry

unread,
Sep 3, 2012, 1:24:30 PM9/3/12
to pitu...@googlegroups.com
Thanks Philippe,

The project fails for me, but not due to a NoClassDefFound error. The filters are incorrect and PIT cannot find any code/mutate or tests to run

If I change them from

                        <param>be.amaris.deployer</param>

to

                        <param>be.amaris.deployer*</param>

Then everything works as expected.


Henry

Philippe T'Seyen

unread,
Sep 3, 2012, 3:12:47 PM9/3/12
to pitu...@googlegroups.com
hi Henry,

I tried on my labtop at home and here everything works fine like you said.

However at work, I don't manage to get it working. I'll try to investigate further at work tomorrow.

Which OS are you running? Which jdk are you using? Mvn version? 64 bit?

Philippe

Philippe T'Seyen

unread,
Sep 4, 2012, 1:26:58 AM9/4/12
to pitu...@googlegroups.com
Below you'll find more details about my environments at work and at home.

Work PC: not OK
c:\projects\deployer>mvn -version
Apache Maven 3.0.3 (r1075438; 2011-02-28 18:31:09+0100)
Maven home: C:\maven\apache-maven-3.0.3
Java version: 1.6.0_27, vendor: Sun Microsystems Inc.
Java home: C:\Java\jdk1.6.0_27\jre
Default locale: nl_BE, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
c:\projects\deployer>mvn org.pitest:pitest-maven:mutationCoverage -U
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Amaris Deployer 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- pitest-maven:0.28:mutationCoverage (default-cli) @ amaris-deployer ---
7:19:53 PIT >> INFO : Mutating from c:\projects\deployer\target\classes
Running report with ReportOptions [config=org.pitest.extension.common.CompoundConfiguration@22c28cb7, targetClasses=[^be
\.amaris\.deployer$], excludedMethods=[], excludedClasses=[], codePaths=[c:\projects\deployer\target\classes], reportDir
=c:\projects\deployer\target\pit-reports, sourceDirs=[c:\projects\deployer\src\main\java, c:\projects\deployer\src\test\
java], classPathElements=[c:\projects\deployer\target\test-classes, c:\projects\deployer\target\classes, c:\maven\m2repo
\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar, c:\maven\m2repo\commons-io\commons-io\1.4\commons-io-1.4.ja
r, c:\maven\m2repo\commons-collections\commons-collections\3.1\commons-collections-3.1.jar, c:\maven\m2repo\junit\junit\
4.10\junit-4.10.jar, c:\maven\m2repo\org\hamcrest\hamcrest-core\1.1\hamcrest-core-1.1.jar, c:\maven\m2repo\org\pitest\pi
test\0.28\pitest-0.28.jar, c:\maven\m2repo\org\testng\testng\6.1.1\testng-6.1.1.jar, c:\maven\m2repo\org\beanshell\bsh\2
.0b4\bsh-2.0b4.jar, c:\maven\m2repo\com\beust\jcommander\1.12\jcommander-1.12.jar, c:\maven\m2repo\org\yaml\snakeyaml\1.
6\snakeyaml-1.6.jar, c:\projects\deployer\target\classes, c:\maven\m2repo\org\apache\commons\commons-lang3\3.1\commons-l
ang3-3.1.jar, c:\maven\m2repo\commons-io\commons-io\1.4\commons-io-1.4.jar, c:\maven\m2repo\commons-collections\commons-
collections\3.1\commons-collections-3.1.jar, c:\maven\m2repo\junit\junit\4.10\junit-4.10.jar, c:\maven\m2repo\org\hamcre
st\hamcrest-core\1.1\hamcrest-core-1.1.jar, c:\maven\m2repo\org\pitest\pitest\0.28\pitest-0.28.jar, c:\maven\m2repo\org\
testng\testng\6.1.1\testng-6.1.1.jar, c:\maven\m2repo\org\beanshell\bsh\2.0b4\bsh-2.0b4.jar, c:\maven\m2repo\com\beust\j
commander\1.12\jcommander-1.12.jar, c:\maven\m2repo\org\yaml\snakeyaml\1.6\snakeyaml-1.6.jar, c:\projects\deployer\targe
t\classes, c:\maven\m2repo\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar, c:\maven\m2repo\commons-io\common
s-io\1.4\commons-io-1.4.jar, c:\maven\m2repo\commons-collections\commons-collections\3.1\commons-collections-3.1.jar, c:
\maven\m2repo\junit\junit\4.10\junit-4.10.jar, c:\maven\m2repo\org\hamcrest\hamcrest-core\1.1\hamcrest-core-1.1.jar, c:\
maven\m2repo\org\pitest\pitest\0.28\pitest-0.28.jar, c:\maven\m2repo\org\testng\testng\6.1.1\testng-6.1.1.jar, c:\maven\
m2repo\org\beanshell\bsh\2.0b4\bsh-2.0b4.jar, c:\maven\m2repo\com\beust\jcommander\1.12\jcommander-1.12.jar, c:\maven\m2
repo\org\yaml\snakeyaml\1.6\snakeyaml-1.6.jar, c:\projects\deployer\target\classes, c:\maven\m2repo\org\pitest\pitest-ma
ven\0.28\pitest-maven-0.28.jar, c:\maven\m2repo\org\pitest\pitest\0.28\pitest-0.28.jar], mutators=[INVERT_NEGS_MUTATOR,
RETURN_VALS_MUTATOR, MATH_MUTATOR, VOID_METHOD_CALL_MUTATOR, NEGATE_CONDITIONALS_MUTATOR, CONDITIONALS_BOUNDARY_MUTATOR,
 INCREMENTS_MUTATOR], dependencyAnalysisMaxDistance=-1, mutateStaticInitializers=false, jvmArgs=[], numberOfThreads=1, t
imeoutFactor=1.25, timeoutConstant=3000, targetTests=[^be\.amaris\.deployer$], loggingClasses=[], maxMutationsPerClass=-
1, verbose=true, failWhenNoMutations=true, outputs=[HTML], groupConfig=org.pitest.testng.TestGroupConfig@12a45435, mutat
ionUnitSize=0, shouldCreateTimestampedReports=true, detectInlinedCode=false]
7:19:53 PIT >> FINE : System class path is C:\maven\apache-maven-3.0.3\boot\plexus-classworlds-2.4.jar
7:19:53 PIT >> FINE : Maxmium available memory is 1820 mb
7:19:53 PIT >> FINE : using port 8092

stdout  : Installing PIT agent

stderr  : java.lang.NoClassDefFoundError: org/pitest/coverage/execute/CoverageSlave
Caused by: java.lang.ClassNotFoundException: org.pitest.coverage.execute.CoverageSlave
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessControlle
stderr  : r.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
stderr  : (ClassLoader.java:247)
Could not find the main class: org.pitest.coverage.execute.CoverageSlave.  Program will exit.
Exception in thread "main"

Home PC: OK

C:\projects\deployer>mvn -version
Apache Maven 3.0 (r1004208; 2010-10-04 13:50:56+0200)
Java version: 1.6.0_17
Java home: C:\Java\jdk1.6.0_17\jre
Default locale: nl_BE, platform encoding: Cp1252
OS name: "windows vista" version: "6.0" arch: "x86" Family: "windows"
C:\projects\deployer>mvn org.pitest:pitest-maven:mutationCoverage
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Amaris Deployer 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- pitest-maven:0.28:mutationCoverage (default-cli) @ amaris-deployer ---
7:21:47 PIT >> INFO : Mutating from C:\projects\deployer\target\classes
Running report with ReportOptions [config=org.pitest.extension.common.CompoundConfiguration@1958cc2, targetClasses=[^be\.amaris\.deployer.*$], excludedMethods=[
], excludedClasses=[], codePaths=[C:\projects\deployer\target\classes], reportDir=C:\projects\deployer\target\pit-reports, sourceDirs=[C:\projects\deployer\src\
main\java, C:\projects\deployer\src\test\java], classPathElements=[C:\projects\deployer\target\test-classes, C:\projects\deployer\target\classes, C:\Users\phili
ppe\.m2\repository\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar, C:\Users\philippe\.m2\repository\commons-io\commons-io\1.4\commons-io-1.4.jar, C:
\Users\philippe\.m2\repository\commons-collections\commons-collections\3.1\commons-collections-3.1.jar, C:\Users\philippe\.m2\repository\junit\junit\4.10\junit-
4.10.jar, C:\Users\philippe\.m2\repository\org\hamcrest\hamcrest-core\1.1\hamcrest-core-1.1.jar, C:\Users\philippe\.m2\repository\org\pitest\pitest\0.28\pitest-
0.28.jar, C:\Users\philippe\.m2\repository\org\testng\testng\6.1.1\testng-6.1.1.jar, C:\Users\philippe\.m2\repository\org\beanshell\bsh\2.0b4\bsh-2.0b4.jar, C:\
Users\philippe\.m2\repository\com\beust\jcommander\1.12\jcommander-1.12.jar, C:\Users\philippe\.m2\repository\org\yaml\snakeyaml\1.6\snakeyaml-1.6.jar, C:\proje
cts\deployer\target\classes, C:\Users\philippe\.m2\repository\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar, C:\Users\philippe\.m2\repository\commo
ns-io\commons-io\1.4\commons-io-1.4.jar, C:\Users\philippe\.m2\repository\commons-collections\commons-collections\3.1\commons-collections-3.1.jar, C:\Users\phil
ippe\.m2\repository\junit\junit\4.10\junit-4.10.jar, C:\Users\philippe\.m2\repository\org\hamcrest\hamcrest-core\1.1\hamcrest-core-1.1.jar, C:\Users\philippe\.m
2\repository\org\pitest\pitest\0.28\pitest-0.28.jar, C:\Users\philippe\.m2\repository\org\testng\testng\6.1.1\testng-6.1.1.jar, C:\Users\philippe\.m2\repository
\org\beanshell\bsh\2.0b4\bsh-2.0b4.jar, C:\Users\philippe\.m2\repository\com\beust\jcommander\1.12\jcommander-1.12.jar, C:\Users\philippe\.m2\repository\org\yam
l\snakeyaml\1.6\snakeyaml-1.6.jar, C:\projects\deployer\target\classes, C:\Users\philippe\.m2\repository\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.
jar, C:\Users\philippe\.m2\repository\commons-io\commons-io\1.4\commons-io-1.4.jar, C:\Users\philippe\.m2\repository\commons-collections\commons-collections\3.1
\commons-collections-3.1.jar, C:\Users\philippe\.m2\repository\junit\junit\4.10\junit-4.10.jar, C:\Users\philippe\.m2\repository\org\hamcrest\hamcrest-core\1.1\
hamcrest-core-1.1.jar, C:\Users\philippe\.m2\repository\org\pitest\pitest\0.28\pitest-0.28.jar, C:\Users\philippe\.m2\repository\org\testng\testng\6.1.1\testng-
6.1.1.jar, C:\Users\philippe\.m2\repository\org\beanshell\bsh\2.0b4\bsh-2.0b4.jar, C:\Users\philippe\.m2\repository\com\beust\jcommander\1.12\jcommander-1.12.ja
r, C:\Users\philippe\.m2\repository\org\yaml\snakeyaml\1.6\snakeyaml-1.6.jar, C:\projects\deployer\target\classes, C:\Users\philippe\.m2\repository\org\pitest\p
itest-maven\0.28\pitest-maven-0.28.jar, C:\Users\philippe\.m2\repository\org\pitest\pitest\0.28\pitest-0.28.jar], mutators=[INVERT_NEGS_MUTATOR, RETURN_VALS_MUT
ATOR, MATH_MUTATOR, VOID_METHOD_CALL_MUTATOR, NEGATE_CONDITIONALS_MUTATOR, CONDITIONALS_BOUNDARY_MUTATOR, INCREMENTS_MUTATOR], dependencyAnalysisMaxDistance=-1,
 mutateStaticInitializers=false, jvmArgs=[], numberOfThreads=1, timeoutFactor=1.25, timeoutConstant=3000, targetTests=[^be\.amaris\.deployer.*$], loggingClasses
=[], maxMutationsPerClass=-1, verbose=true, failWhenNoMutations=true, outputs=[HTML], groupConfig=org.pitest.testng.TestGroupConfig@14c28db, mutationUnitSize=0,
 shouldCreateTimestampedReports=true, detectInlinedCode=false]
7:21:49 PIT >> FINE : System class path is C:\apache-maven-3.0\boot\plexus-classworlds-2.2.3.jar
7:21:49 PIT >> FINE : Maxmium available memory is 63 mb
7:21:49 PIT >> FINE : using port 8092
stdout  : Installing PIT agent

7:21:50 PIT >> INFO : Sending 0 test classes to slave
7:21:50 PIT >> INFO : Sent tests to slave
stderr  : 7:21:51 PIT >> FINE : Expecting 0 tests classes from parent
7:21:51 PIT >> FINE : Tests classes received
7:21:51 PIT >> INFO : Found  0 tests
7:21:51 PIT >> INFO : Dependency analysis reduced number of potential tests by 0
7:21:51 PIT >> INFO : 0 tests
stderr  :  received
7:21:51 PIT >> INFO : Running 0 units

stderr  : 7:21:51 PIT >> INFO : Finished
7:21:51 PIT >> INFO : Calculated coverage in 1 seconds.
7:21:51 PIT >> FINE : Used memory after coverage calculation 4 mb
7:21:51 PIT >> FINE : Free Memory after coverage calculation 1 mb

7:21:51 PIT >> INFO : Created  0 mutation test units
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 7.993s
[INFO] Finished at: Tue Sep 04 07:21:51 CEST 2012
[INFO] Final Memory: 3M/6M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.pitest:pitest-maven:0.28:mutationCoverage (default-cli) on project amaris-deployer: fail: No mutations found. This probably m
eans there is an issue with either the supplied classpath or filters.
[ERROR] See http://pitest.org for more details.
[ERROR] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
C:\projects\deployer>

henry

unread,
Sep 4, 2012, 5:35:30 PM9/4/12
to pitu...@googlegroups.com
Hmm.

I suspect this isn't as simple as an os/maven/java version compatibility problem. PIT is being used successfully across a variety of flavours of linux, windows osx, maven and java. For the record it's built and tested on sun java 5 64bit, ubuntu 12.04 and maven 3.04 (since I treated myself to a new laptop). Previously it was built on the same, but on a 32bit jvm.

Do you have access to any other machines at work to try this on?

Bit of long shot, but has the work machine been setup to have a case sensitive file system?

Thanks

Henry

Philippe T'Seyen

unread,
Sep 5, 2012, 10:06:40 AM9/5/12
to pitu...@googlegroups.com
Hi Henry,

I did a bit more research and it seems that it is jdk related.

When I change to jdk 5 it works. Jdk 6 doesn't work.

I attached the full console output.

Could it be that we are hitting: http://bugs.sun.com/view_bug.do?bug_id=6434149

Grtz,

Philippe
pit_java_version.txt

Henry Coles

unread,
Sep 5, 2012, 11:31:24 AM9/5/12
to pitu...@googlegroups.com
Thanks for digging into this Philippe - it sounds like the likely root cause as some of the code is using loadClass. It ought to be straightforward to switch these to Class.forName. I'll push out an updated snapshot as soon as I get chance.

Does setting -Dsun.lang.ClassLoader.allowArraySyntax=true as suggested in the bug report resolve the issue for you?

Cheers

Henry

Philippe T'Seyen

unread,
Sep 5, 2012, 12:07:01 PM9/5/12
to pitu...@googlegroups.com, henry...@googlemail.com
Yes I tried that.

I put the property in the jvmargs section of the plugin, but that didn't solve the issue.

The -D options are not displayed in the verbose log, so I couldn't veryify whether the setting was picked up by the launcher.

Ok, let me know when the new build arrives. Then I'll validate.

Grtz,

Philippe

Henry Coles

unread,
Sep 5, 2012, 1:35:32 PM9/5/12
to pitu...@googlegroups.com
There was one call to loadClass, which has been replaced in the latest 0.29 snapshot.

Let me know how you get on.

Cheers

Henry

Philippe T'Seyen

unread,
Sep 6, 2012, 4:21:55 AM9/6/12
to pitu...@googlegroups.com, henry...@googlemail.com
Hi Henry,

Sorry if I overlooked it, but where can I find the latest 0.29 snapshot?

Philippe

Philippe T'Seyen

unread,
Sep 6, 2012, 7:07:14 AM9/6/12
to pitu...@googlegroups.com, henry...@googlemail.com
hi Henry,

I validated with the latest 0.29 snapshot, but the issue is still there :-(

Philippe


c:\projects\deployer>mvn org.pitest:pitest-maven:mutationCoverage
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Amaris Deployer 1.0.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- pitest-maven:0.29-SNAPSHOT:mutationCoverage (default-cli) @ amaris-deployer ---
13:04:23 PIT >> INFO : Mutating from c:\projects\deployer\target\classes
Running report with ReportOptions [config=org.pitest.extension.common.CompoundConfiguration@2bb83048, targetClasses=[^be
\.amaris\.deployer.*$], excludedMethods=[], excludedClasses=[], codePaths=[c:\projects\deployer\target\classes], reportD
ir=c:\projects\deployer\target\pit-reports, sourceDirs=[c:\projects\deployer\src\main\java, c:\projects\deployer\src\tes
t\java], classPathElements=[c:\projects\deployer\target\test-classes, c:\projects\deployer\target\classes, c:\maven\m2re
po\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar, c:\maven\m2repo\commons-io\commons-io\1.4\commons-io-1.4.
jar, c:\maven\m2repo\commons-collections\commons-collections\3.1\commons-collections-3.1.jar, c:\maven\m2repo\junit\juni
t\4.10\junit-4.10.jar, c:\maven\m2repo\org\hamcrest\hamcrest-core\1.1\hamcrest-core-1.1.jar, c:\projects\deployer\target
\classes, c:\maven\m2repo\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar, c:\maven\m2repo\commons-io\commons
-io\1.4\commons-io-1.4.jar, c:\maven\m2repo\commons-collections\commons-collections\3.1\commons-collections-3.1.jar, c:\
maven\m2repo\junit\junit\4.10\junit-4.10.jar, c:\maven\m2repo\org\hamcrest\hamcrest-core\1.1\hamcrest-core-1.1.jar, c:\p
rojects\deployer\target\classes, c:\maven\m2repo\org\apache\commons\commons-lang3\3.1\commons-lang3-3.1.jar, c:\maven\m2
repo\commons-io\commons-io\1.4\commons-io-1.4.jar, c:\maven\m2repo\commons-collections\commons-collections\3.1\commons-c

ollections-3.1.jar, c:\maven\m2repo\junit\junit\4.10\junit-4.10.jar, c:\maven\m2repo\org\hamcrest\hamcrest-core\1.1\hamc
rest-core-1.1.jar, c:\projects\deployer\target\classes, c:\maven\m2repo\org\pitest\pitest-maven\0.29-SNAPSHOT\pitest-mav
en-0.29-SNAPSHOT.jar, c:\maven\m2repo\org\pitest\pitest\0.29-SNAPSHOT\pitest-0.29-SNAPSHOT.jar], mutators=[INVERT_NEGS_M

UTATOR, RETURN_VALS_MUTATOR, MATH_MUTATOR, VOID_METHOD_CALL_MUTATOR, NEGATE_CONDITIONALS_MUTATOR, CONDITIONALS_BOUNDARY_
MUTATOR, INCREMENTS_MUTATOR], dependencyAnalysisMaxDistance=-1, mutateStaticInitializers=false, jvmArgs=[], numberOfThre
ads=1, timeoutFactor=1.25, timeoutConstant=3000, targetTests=[^be\.amaris\.deployer.*$], loggingClasses=[], maxMutations
PerClass=-1, verbose=true, failWhenNoMutations=true, outputs=[HTML], groupConfig=org.pitest.testng.TestGroupConfig@4969d
d64, mutationUnitSize=0, shouldCreateTimestampedReports=true, detectInlinedCode=false]
13:04:23 PIT >> FINE : System class path is C:\maven\apache-maven-3.0.3\boot\plexus-classworlds-2.4.jar
13:04:23 PIT >> FINE : Maxmium available memory is 1820 mb
13:04:23 PIT >> FINE : using port 8092

stdout  : Installing PIT agent

stderr  : java.lang.NoClassDefFoundError: org/pitest/coverage/execute/CoverageSlave
Caused by: java.lang.ClassNotFoundException: org.pitest.coverage.execute.CoverageSlave
        at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
        at java.security.AccessControlle
stderr  : r.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
stderr  : (ClassLoader.java:247)
Could not find the main class: org.pitest.coverage.execute.CoverageSlave.  Program will exit.
Exception in thread "main"

Henry Coles

unread,
Sep 6, 2012, 7:26:43 AM9/6/12
to pitu...@googlegroups.com
Just to rule out this being some sort of strange issue with your install of 1.6, could you try running with a clean new 1.6 installation? I don't believe there is a general issue with PIT and 1.6 . . . although now I think of it all my own testing will have been with OpenJDK 1.6 rather than Sun/Oracle . . .

Thanks

Henry

Philippe T'Seyen

unread,
Sep 6, 2012, 8:35:21 AM9/6/12
to pitu...@googlegroups.com, henry...@googlemail.com
I have installed the latest 1.6.0_35 jdk and the issue is still there. Also used the latest mvn 3.0.4.

It's not a jdk 6 issue only, because at home I'm using jdk 6 as well and there it works.

I'm clueless.

Philippe

Philippe T'Seyen

unread,
Sep 6, 2012, 9:13:06 AM9/6/12
to pitu...@googlegroups.com, henry...@googlemail.com

henry

unread,
Sep 21, 2012, 7:34:08 AM9/21/12
to pitu...@googlegroups.com, henry...@googlemail.com
I've finally managed to get a windows 7 vm running to test this out :-

Apache Maven 3.0.4 (r1232337; 2012-01-17 08:44:56+0000)
Maven home: C:\maven3\apache-maven-3.0.4
Java version: 1.6.0_33, vendor: Sun Microsystems Inc.
Java home: C:\glassfish3\jdk\jre
Default locale: en_GB, platform encoding: Cp1252

OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"

Runs without issue.

I'm having issues with the vm hanging which is making testing this very painful, I'll try again with 1.6.0_35 when I've resolved this . . .
Message has been deleted

testsmar...@gmail.com

unread,
Mar 24, 2014, 6:56:39 AM3/24/14
to pitu...@googlegroups.com
Hi,

Does anyone managed to solve the problem? I'm encountering the same issue now, can't run PIT because the same error. I've tried different version of JVMs but it doesn't help. The weird thing is that it works on my colleagues laptop which seems to have identical configuration as mine. I have no idea what might be the cause of a problem. Does anyone have any clue?

Jarkko Rantavuori

unread,
Mar 24, 2014, 7:03:12 AM3/24/14
to pitu...@googlegroups.com
Hi,

Could you provide a test case / a pom file and the command line you've used to execute your maven build?

One thing you can test is using a clean local maven repo (run it with -Dmaven.repo.local=/tmp/location). If that doesn't help, you can try to run it with maven debug on (-X) for extra information.

Br,

-Jarkko


--
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.
For more options, visit https://groups.google.com/d/optout.

testsmar...@gmail.com

unread,
Mar 24, 2014, 8:48:39 AM3/24/14
to pitu...@googlegroups.com
Hi Jarkko,

Thank you for a quick response. Attached you will find simple Maven project (zip file) which I'm trying to run. I've also attached log file after execution using below command:
mvn org.pitest:pitest-maven:mutationCoverage -Dmaven.repo.local=/tmp/location -X -l log.txt
Unfortunately switching to clean Maven local repository didn't help.
I would be grateful for any other suggestions.

Best regards

Emil


On Tuesday, August 28, 2012 9:46:07 AM UTC+2, Philippe T'Seyen wrote:
pit_test.zip
log.txt
Reply all
Reply to author
Forward
0 new messages