org.pitest.util.PitError: error in opening zip file - pitest-ant-0.32

430 views
Skip to first unread message

Alkaoud

unread,
Mar 14, 2014, 10:07:46 PM3/14/14
to pitu...@googlegroups.com
Hello

I get this error once I ran the "pit" target. What could be the problem?

pit:
   [pitest] Exception in thread "main" org.pitest.util.PitError: error in opening zip file
   [pitest]
   [pitest] Please copy and paste the information and the complete stacktrace below when reporting an issue
   [pitest] VM : OpenJDK 64-Bit Server VM
   [pitest] Vendor : Oracle Corporation
   [pitest] Version : 24.45-b08
   [pitest] Uptime : 112
   [pitest] Input ->
   [pitest] BootClassPathSupported : true
   [pitest]
   [pitest]     at org.pitest.util.Unchecked.translateCheckedException(Unchecked.java:20)
   [pitest]     at org.pitest.classpath.ArchiveClassPathRoot.getRoot(ArchiveClassPathRoot.java:116)
   [pitest]     at org.pitest.classpath.ArchiveClassPathRoot.getData(ArchiveClassPathRoot.java:45)
   [pitest]     at org.pitest.classpath.CompoundClassPathRoot.getData(CompoundClassPathRoot.java:25)
   [pitest]     at org.pitest.classpath.ClassPath.getClassData(ClassPath.java:100)
   [pitest]     at org.pitest.classpath.ClassPathByteArraySource.getBytes(ClassPathByteArraySource.java:36)
   [pitest]     at org.pitest.classinfo.Repository.querySource(Repository.java:81)
   [pitest]     at org.pitest.classinfo.Repository.nameToClassInfo(Repository.java:67)
   [pitest]     at org.pitest.classinfo.Repository.fetchClass(Repository.java:59)
   [pitest]     at org.pitest.mutationtest.config.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:50)
   [pitest]     at org.pitest.mutationtest.commandline.OptionsParser.setTestConfiguration(OptionsParser.java:420)
   [pitest]     at org.pitest.mutationtest.commandline.OptionsParser.parseCommandLine(OptionsParser.java:388)
   [pitest]     at org.pitest.mutationtest.commandline.OptionsParser.parse(OptionsParser.java:319)
   [pitest]     at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:33)
   [pitest] Caused by: java.util.zip.ZipException: error in opening zip file
   [pitest]     at java.util.zip.ZipFile.open(Native Method)
   [pitest]     at java.util.zip.ZipFile.<init>(ZipFile.java:215)
   [pitest]     at java.util.zip.ZipFile.<init>(ZipFile.java:145)
   [pitest]     at java.util.zip.ZipFile.<init>(ZipFile.java:159)
   [pitest]     at org.pitest.classpath.ArchiveClassPathRoot.getRoot(ArchiveClassPathRoot.java:114)
   [pitest]     ... 12 more

Thanks,
Hessah

Jarkko Rantavuori

unread,
Mar 15, 2014, 4:14:03 AM3/15/14
to pitu...@googlegroups.com
When I got this error, it was about having a class path entry that was neither a directory or a .jar. So a misconfigured classpath. Check that.

There is an issue about showing which exact entry is the culprit (since your error message doesn't tell that), and the fix for it has already been merged to source code: 


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.

Hessah

unread,
Mar 15, 2014, 2:52:53 PM3/15/14
to pitu...@googlegroups.com
 
I will check the class path probably I missed because the code I am working on is an open source code.

Thanks Jarkko
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/3hhed3tT0Jk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to pitusers+u...@googlegroups.com.

Hessah Alkaoud

unread,
Mar 17, 2014, 7:48:28 PM3/17/14
to pitu...@googlegroups.com


I changed the classpath and Pitest worked well now put I get "0" coverage for both the line and mutation coverage. Why is that?
Thank you very much.
Hessah

henry

unread,
Mar 18, 2014, 10:05:25 AM3/18/14
to pitu...@googlegroups.com


On Monday, 17 March 2014 23:48:28 UTC, Alkaoud wrote:

I changed the classpath and Pitest worked well now put I get "0" coverage for both the line and mutation coverage. Why is that?

 Can you provide some more details - how are you launching pitest? What do the log messages say?

Thanks

Henry

Alkaoud

unread,
Mar 18, 2014, 2:59:47 PM3/18/14
to pitu...@googlegroups.com
Here is the message that I get. I am using PIT through ant.

pit:
   [pitest] 12:52:53 PM PIT >> INFO : Verbose logging is disabled. If you encounter an problem please enable it before reporting an issue.
   [pitest] 12:52:53 PM PIT >> INFO : Sending 28 test classes to slave
   [pitest] 12:52:53 PM PIT >> INFO : Sent tests to slave
   [pitest] 12:52:53 PM PIT >> WARNING : Error while watching child process
   [pitest] java.util.concurrent.ExecutionException: org.pitest.util.PitError: Connection reset

   [pitest]
   [pitest] Please copy and paste the information and the complete stacktrace below when reporting an issue
   [pitest] VM : OpenJDK 64-Bit Server VM
   [pitest] Vendor : Oracle Corporation
   [pitest] Version : 24.45-b08
   [pitest] Uptime : 548

   [pitest] Input ->
   [pitest] BootClassPathSupported : true
   [pitest]
   [pitest]     at java.util.concurrent.FutureTask.report(FutureTask.java:122)
   [pitest]     at java.util.concurrent.FutureTask.get(FutureTask.java:188)
   [pitest]     at org.pitest.util.CommunicationThread.waitToFinish(CommunicationThread.java:60)
   [pitest]     at org.pitest.coverage.execute.CoverageProcess.waitToDie(CoverageProcess.java:34)
   [pitest]     at org.pitest.coverage.execute.DefaultCoverageGenerator.gatherCoverageData(DefaultCoverageGenerator.java:127)
   [pitest]     at org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:82)
   [pitest]     at org.pitest.coverage.execute.DefaultCoverageGenerator.calculateCoverage(DefaultCoverageGenerator.java:46)
   [pitest]     at org.pitest.mutationtest.tooling.MutationCoverage.runReport(MutationCoverage.java:118)
   [pitest]     at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:100)
   [pitest]     at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:42)
   [pitest]     at org.pitest.mutationtest.commandline.MutationCoverageReport.runReport(MutationCoverageReport.java:69)
   [pitest]     at org.pitest.mutationtest.commandline.MutationCoverageReport.main(MutationCoverageReport.java:41)
   [pitest] Caused by: org.pitest.util.PitError: Connection reset

   [pitest]
   [pitest] Please copy and paste the information and the complete stacktrace below when reporting an issue
   [pitest] VM : OpenJDK 64-Bit Server VM
   [pitest] Vendor : Oracle Corporation
   [pitest] Version : 24.45-b08
   [pitest] Uptime : 548

   [pitest] Input ->
   [pitest] BootClassPathSupported : true
   [pitest]
   [pitest]     at org.pitest.util.Unchecked.translateCheckedException(Unchecked.java:20)
   [pitest]     at org.pitest.util.SafeDataInputStream.readByte(SafeDataInputStream.java:65)
   [pitest]     at org.pitest.util.SocketReadingCallable.receiveResults(SocketReadingCallable.java:64)
   [pitest]     at org.pitest.util.SocketReadingCallable.call(SocketReadingCallable.java:37)
   [pitest]     at org.pitest.util.SocketReadingCallable.call(SocketReadingCallable.java:13)
   [pitest]     at java.util.concurrent.FutureTask.run(FutureTask.java:262)
   [pitest]     at java.lang.Thread.run(Thread.java:744)
   [pitest] Caused by: java.net.SocketException: Connection reset
   [pitest]     at java.net.SocketInputStream.read(SocketInputStream.java:196)
   [pitest]     at java.net.SocketInputStream.read(SocketInputStream.java:122)
   [pitest]     at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)
   [pitest]     at java.io.BufferedInputStream.read(BufferedInputStream.java:254)
   [pitest]     at java.io.DataInputStream.readByte(DataInputStream.java:265)
   [pitest]     at org.pitest.util.SafeDataInputStream.readByte(SafeDataInputStream.java:63)
   [pitest]     ... 5 more
   [pitest] 12:52:53 PM PIT >> INFO : Calculated coverage in 0 seconds.
   [pitest] 12:52:53 PM PIT >> INFO : Created  29 mutation test units
   [pitest]/================================================================================
   [pitest] - Timings
   [pitest] ================================================================================
   [pitest] > scan classpath : < 1 second
   [pitest] > coverage and dependency analysis : < 1 second
   [pitest] > build mutation tests : < 1 second
   [pitest] > run mutation analysis : < 1 second
   [pitest] --------------------------------------------------------------------------------
   [pitest] > Total  : 1 seconds
   [pitest] --------------------------------------------------------------------------------
   [pitest] ================================================================================
   [pitest] - Statistics
   [pitest] ================================================================================
   [pitest] >> Generated 841 mutations Killed 0 (0%)
   [pitest] >> Ran 0 tests (0 tests per mutation)
   [pitest] ================================================================================
   [pitest] - Mutators
   [pitest] ================================================================================
   [pitest] > org.pitest.mutationtest.engine.gregor.mutators.MathMutator
   [pitest] >> Generated 89 Killed 0 (0%)
   [pitest] > KILLED 0 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0
   [pitest] > MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0
   [pitest] > NO_COVERAGE 89
   [pitest] --------------------------------------------------------------------------------
   [pitest] > org.pitest.mutationtest.engine.gregor.mutators.ConditionalsBoundaryMutator
   [pitest] >> Generated 34 Killed 0 (0%)
   [pitest] > KILLED 0 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0
   [pitest] > MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0
   [pitest] > NO_COVERAGE 34
   [pitest] --------------------------------------------------------------------------------
   [pitest] 12:52:54 PM PIT >> INFO : Completed in 1 seconds
   [pitest] > org.pitest.mutationtest.engine.gregor.mutators.ReturnValsMutator
   [pitest] >> Generated 36 Killed 0 (0%)
   [pitest] > KILLED 0 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0
   [pitest] > MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0
   [pitest] > NO_COVERAGE 36
   [pitest] --------------------------------------------------------------------------------
   [pitest] > org.pitest.mutationtest.engine.gregor.mutators.VoidMethodCallMutator
   [pitest] >> Generated 86 Killed 0 (0%)
   [pitest] > KILLED 0 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0
   [pitest] > MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0
   [pitest] > NO_COVERAGE 86
   [pitest] --------------------------------------------------------------------------------
   [pitest] > org.pitest.mutationtest.engine.gregor.mutators.IncrementsMutator
   [pitest] >> Generated 4 Killed 0 (0%)
   [pitest] > KILLED 0 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0
   [pitest] > MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0
   [pitest] > NO_COVERAGE 4
   [pitest] --------------------------------------------------------------------------------
   [pitest] > org.pitest.mutationtest.engine.gregor.mutators.NegateConditionalsMutator
   [pitest] >> Generated 592 Killed 0 (0%)
   [pitest] > KILLED 0 SURVIVED 0 TIMED_OUT 0 NON_VIABLE 0
   [pitest] > MEMORY_ERROR 0 NOT_STARTED 0 STARTED 0 RUN_ERROR 0
   [pitest] > NO_COVERAGE 592
   [pitest] --------------------------------------------------------------------------------

 
Reply all
Reply to author
Forward
0 new messages