java.lang.SecurityException: Invalid signature file digest for Manifest main attributes

564 views
Skip to first unread message

fff d

unread,
Dec 8, 2020, 9:27:09 PM12/8/20
to JaCoCo and EclEmma Users

When I modify Jacobo and add a new class, execute install to prompt the exception information. What amount do I need to set

T E S T S

-------------------------------------------------------

java.lang.SecurityException: Invalid signature file digest for Manifest main attributes

at sun.security.util.SignatureFileVerifier.processImpl(SignatureFileVerifier.java:284)

at sun.security.util.SignatureFileVerifier.process(SignatureFileVerifier.java:238)

at java.util.jar.JarVerifier.processEntry(JarVerifier.java:316)

at java.util.jar.JarVerifier.update(JarVerifier.java:228)

at java.util.jar.JarFile.initializeVerifier(JarFile.java:383)

at java.util.jar.JarFile.getInputStream(JarFile.java:450)

at sun.misc.URLClassPath$JarLoader$2.getInputStream(URLClassPath.java:940)

at sun.misc.Resource.cachedInputStream(Resource.java:77)

at sun.misc.Resource.getByteBuffer(Resource.java:160)

at java.net.URLClassLoader.defineClass(URLClassLoader.java:454)

at java.net.URLClassLoader.access$100(URLClassLoader.java:73)

at java.net.URLClassLoader$1.run(URLClassLoader.java:368)

at java.net.URLClassLoader$1.run(URLClassLoader.java:362)

at java.security.AccessController.doPrivileged(Native Method)

at java.net.URLClassLoader.findClass(URLClassLoader.java:361)

at java.lang.ClassLoader.loadClass(ClassLoader.java:424)

at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)

at java.lang.ClassLoader.loadClass(ClassLoader.java:357)

at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:304)

at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)

FATAL ERROR in native method: processing of -javaagent failed

Exception in thread "main" 


Results :


Tests run: 0, Failures: 0, Errors: 0, Skipped: 0


[INFO] ------------------------------------------------------------------------

[INFO] BUILD FAILURE

[INFO] ------------------------------------------------------------------------

[INFO] Total time:  1.561 s

[INFO] Finished at: 2020-12-09T10:09:19+08:00

[INFO] ------------------------------------------------------------------------

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test (default-test) on project org.jacoco.examples.maven: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.12.4:test failed: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ? -> [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.

Marc Hoffmann

unread,
Dec 9, 2020, 2:59:13 AM12/9/20
to JaCoCo and EclEmma Users
How exactly did you “modify” JaCoCo? Maybe push your changes to a Github repository and provide steps to reproduce the problem.


--
You received this message because you are subscribed to the Google Groups "JaCoCo and EclEmma Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jacoco+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jacoco/e968fd27-42e2-4d11-b307-30408e873867n%40googlegroups.com.

fff d

unread,
Dec 10, 2020, 3:37:09 AM12/10/20
to JaCoCo and EclEmma Users

After I package Jacoco, there will be some such files ,example *.RSA *.SF. Now I manually delete the files in jar, and then they can be used normally. I can see that there are relevant configurations in this file, but it does not seem to take effect.

I modify Jacobo because I need to get incremental coverage, such as different branches and different commit


Reply all
Reply to author
Forward
0 new messages