Menu

#121 ctl error from ant, cmd line ok

open
BUILD (8)
5
2010-11-05
2010-11-05
emmaGuy
No

Hi ,

I am trying to get application server side coverage.
I used following in my ant build:
<target name="server.stats">
<emma>
<ctl connect="localhost:47653">
<command name="coverage.dump" args="${coverage.dir}/server.ec,true,false"/>
</ctl>
</emma>
</target>

While my tests were running ( I could see message Emma runtime controller started on port 47653), I ran this ant target.
But I received following error:

"java.lang.IllegalAccessError: tried to access method com.vladium.emma.ctl.ctlCommand.tokenize(Ljava/lang/String;Ljava/lang/String;Z)[Ljava/lang/String; from class com.vladium.emma.ctl.ctlTask$commandElement"

But, it works well from command line:
java -cp c:\cc_view\V6.1_code_coverage\SANscreen\Tools\emma\lib\emma.jar emma ctl -connect localhost:47653 -command coverage.get,mycoverage.ec -command coverage.reset

I am using emma-2.0.5312.zip

Discussion

  • emmaGuy

    emmaGuy - 2010-11-05

    correction: using emma emma-stable-2.1.5320-lib.zip

     
  • bala vinod

    bala vinod - 2011-11-23

    even when i am using emma-2.1.5312 i am getting the same error..even its is from command line or through ant

     
  • bala vinod

    bala vinod - 2011-12-07

    i think the error is Emma is compatible with 1.5 java version only..its not compatible with latest version.
    if java version is above 1.5 the Emma ctr tool doesn't work

     

Log in to post a comment.