Menu

#48 IllegalAccessError while running ctl task

open-fixed
BUILD (8)
5
2006-01-15
2005-08-29
Rijesh
No

The following task is run: <ctl
connect="localhost:47658"><command
name="coverage.dump"
args="${report.folder}/coverage.ec" /></ctl>

Then an error as shown below is coming:
java.lang.IllegalAccess
Error: tried to access method
com.vladium.emma.ctl.ctlCommand.tokenize(Ljava/lan
g/String;Ljava/lang/String;Z)[Ljava/lang/String; from class
com.vladium.emma.ctl
.ctlTask$commandElement

The emma version is 2.1.5320
Java version is 1.4.1_01
Ant version is 1.6.2

Discussion

  • Lee Walton

    Lee Walton - 2005-09-21

    Logged In: YES
    user_id=604940

    Same problem experienced running an application under
    Weblogic 8.1 SP 2 with bundled BEA JDK 1.4.1_05.

     
  • Alexander Yap

    Alexander Yap - 2005-11-10

    Logged In: YES
    user_id=610007

    I also encountered this problem using Weblogic 8.1 SP5
    (Linux) application with bundled JDK 1.4.2_05.

    How else to get the coverage data from a live server???

    Alex

     
  • Vlad Roubtsov

    Vlad Roubtsov - 2006-01-15

    Logged In: YES
    user_id=1013207

    I couldn't reproduce this in jrockit 1.4.2_08, but I believe
    I have a good idea what caused this. The fix will be in the
    next stable build.

     
  • Vlad Roubtsov

    Vlad Roubtsov - 2006-01-15
    • milestone: 410875 --> implemented/checked in
    • status: open --> open-fixed
     
  • John Rogers

    John Rogers - 2006-12-21

    Logged In: YES
    user_id=1672553
    Originator: NO

    I'm getting the identical error, and this is using emma version 2.1.5320, the IBM JDK 1.4.2 and the running code that I'm trying to get coverage is in WAS 6.0. I get this with the coverage.get command.

    Is there any way around this? I do notice that if I completely leave off the "args=..." attribute of the task, then it writes to coverage.ec in the default directory and doesn't produce the error. Every other combination of things I've tried produces the error.

     
  • John Rogers

    John Rogers - 2006-12-21

    Logged In: YES
    user_id=1672553
    Originator: NO

    I found a workaround already; if I stop trying to use the <emma> Ant task and instead use the <java> task to execute emma commands, everything is then fine. Its a bit of a shame not to be able to use the <emma> task, but its a minor problem that I can easily live with.

     

Log in to post a comment.