Exception in thread "main" org.pitest.util.PitError: error in opening zip file

391 views
Skip to first unread message

Rohit Sahay

unread,
Jul 15, 2016, 9:29:39 AM7/15/16
to PIT Users
What i have done:
1. Added below in my root project build.gradle

buildscript {

    repositories {

        mavenCentral()

        //Needed only for SNAPSHOT versions

        //maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }

    }

    dependencies {

        classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.1.9'

    }

}


2. Added below in my subproject build.gradle


apply plugin: "info.solidsoft.pitest"


3. Ran the below command against my subproject:


gradle pitest 


4. Getting below issue :


Please copy and paste the information and the complete stacktrace below when reporting an issue

VM : Java HotSpot(TM) 64-Bit Server VM

Vendor : Oracle Corporation

Version : 25.65-b01

Uptime : 299

Input -> 

 1 : -Dfile.encoding=UTF-8

 2 : -Duser.country=US

 3 : -Duser.language=en

 4 : -Duser.variant

BootClassPathSupported : true


at org.pitest.util.Unchecked.translateCheckedException(Unchecked.java:25)

at org.pitest.classpath.ArchiveClassPathRoot.getRoot(ArchiveClassPathRoot.java:120)

at org.pitest.classpath.ArchiveClassPathRoot.getData(ArchiveClassPathRoot.java:46)

at org.pitest.classpath.CompoundClassPathRoot.getData(CompoundClassPathRoot.java:27)

at org.pitest.classpath.ClassPath.getClassData(ClassPath.java:97)

at org.pitest.classpath.ClassPathByteArraySource.getBytes(ClassPathByteArraySource.java:41)

at org.pitest.classinfo.Repository.querySource(Repository.java:82)

at org.pitest.classinfo.Repository.nameToClassInfo(Repository.java:68)

at org.pitest.classinfo.Repository.fetchClass(Repository.java:60)

at org.pitest.mutationtest.config.ConfigurationFactory.createConfiguration(ConfigurationFactory.java:50)

at org.pitest.mutationtest.config.LegacyTestFrameworkPlugin.createTestFrameworkConfiguration(LegacyTestFrameworkPlugin.java:36)

at org.pitest.mutationtest.config.SettingsFactory.getTestFrameworkPlugin(SettingsFactory.java:132)

at org.pitest.mutationtest.config.SettingsFactory.createCoverageOptions(SettingsFactory.java:140)

at org.pitest.mutationtest.tooling.EntryPoint.execute(EntryPoint.java:80)

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)

Caused by: java.util.zip.ZipException: error in opening zip file

at java.util.zip.ZipFile.open(Native Method)

at java.util.zip.ZipFile.<init>(ZipFile.java:219)

at java.util.zip.ZipFile.<init>(ZipFile.java:149)

at java.util.zip.ZipFile.<init>(ZipFile.java:163)

at org.pitest.classpath.ArchiveClassPathRoot.getRoot(ArchiveClassPathRoot.java:118)

... 15 more


Please help. Stuck in this for quite sometime.


Thanks,

Rohit

Sanju Thomas

unread,
Jul 15, 2016, 9:39:05 AM7/15/16
to pitu...@googlegroups.com
Could you please clean your local repo and try again? it looks like the jar that you have in local repo is not in good shape.


Thanks & Regards,
Sanju Thomas 



--
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.

Message has been deleted
Message has been deleted

Rohit Sahay

unread,
Jul 15, 2016, 10:13:00 AM7/15/16
to PIT Users
Thanks for your reply. Have already tried cleaning my local repo but still no luck :(



Marcin Zajączkowski

unread,
Jul 16, 2016, 7:49:40 PM7/16/16
to pitu...@googlegroups.com
Is it reproducible with the same project on another machine?

Marcin


On 2016-07-15 15:29, Rohit Sahay wrote:
> What i have done:
> 1. Added below in my root project build.gradle
>
> *buildscript {*
>
> * repositories {*
>
> * mavenCentral()*
>
> * //Needed only for SNAPSHOT versions*
>
> * //maven { url
> "http://oss.sonatype.org/content/repositories/snapshots/" }*
>
> * }*
>
> * dependencies {*
>
> * classpath
> 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.1.9'*
>
> * }*
>
> *}*
>
>
> 2. Added below in my subproject build.gradle
>
>
> *apply plugin: "info.solidsoft.pitest"*
>
>
> 3. Ran the below command against my subproject:
>
>
> *gradle pitest*

Rohit Sahay

unread,
Jul 16, 2016, 11:47:34 PM7/16/16
to pitu...@googlegroups.com

Yes it is.

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

Marcin Zajączkowski

unread,
Jul 17, 2016, 10:51:27 AM7/17/16
to pitu...@googlegroups.com
On 2016-07-17 05:47, Rohit Sahay wrote:
> Yes it is.

To confirm that the problem is with the local jar in caches on your
machine you can temporary rename ~/.gradle/caches to something else and
retrigger the build.

I built fine you could restore this directory and find and remove all
pitest*.jar files in it.

Marcin
--
http://blog.solidsoft.info/ - Working code is not enough

Vihari P

unread,
Aug 5, 2016, 2:04:52 PM8/5/16
to PIT Users
Can you please post your detail message. I believe you are getting this , 


Exception in thread "main" org.pitest.util.PitError: error in opening zip file. Can you please share the file name which it was trying to open. Sometimes it fails to open orbit file. Wanted to check if it was the same issue.

Reply all
Reply to author
Forward
0 new messages