Menu

#88 SecurityException when running an instrumented JAR.

open
nobody
None
9
2007-09-20
2007-09-20
No

SecurityException when running an instrumented JAR.

Using EMMA 2.0.5312 and IBM Java 5 (pwi32devifx-20070323), the follow exception is thrown when running a JAR instrumented using the EMMA offline instrumentation:

The java class could not be loaded. java.lang.SecurityException: Invalid signature file digest for Manifest main attributes

Enclosed is the instrumented JAR created using the following command:

java -cp emma.jar emma instr -m overwrite -cp manual.runner.jar

Note: The following dependencies are required to run the instrumented JAR (see http://www.eclipse.org/downloads/download.php?file=/tptp/4.4.0.2/TPTP-4.4.0.2/tptp.test.runtime-TPTP-4.4.0.2.zip and http://download.eclipse.org/eclipse/downloads/drops/R-3.3-200706251500/download.php?dropFile=eclipse-SDK-3.3-win32.zip\):

org.eclipse.core.commands_3.3.0.I20070605-0010.jar
org.eclipse.equinox.common_3.3.0.v20070426.jar
org.eclipse.osgi_3.3.0.v20070530.jar
org.eclipse.jface_3.3.0.I20070606-0010.jar
org.eclipse.swt_3.3.0.v3346.jar
org.eclipse.swt.win32.win32.x86_3.3.0.v3346.jar
org.eclipse.hyades.test.tools.core_4.4.0.v200706050100\common.runner.jar

Discussion

  • Paul Slauenwhite

    • priority: 5 --> 9
     
  • Paul Slauenwhite

    Uninstrumented JAR.

     
  • Paul Slauenwhite

    Logged In: YES
    user_id=1783489
    Originator: YES

    I cannot attached the instrumented JAR. You can instrument the attached JAR using the following:

    java -cp emma.jar emma instr -m overwrite -cp manual.runner.jar
    File Added: manual.runner.jar

     

Log in to post a comment.