IllegalAccessError while running ctl task
Brought to you by:
vlad_r
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
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.
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
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.
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.
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.