Error while running ant file EMMA 2.1.5320

Developers
abdmanna
2011-11-24
2013-05-09
  • abdmanna
    abdmanna
    2011-11-24

    Dear Experts,

    Greetings!!!

    I would really appreciate your urgent response the below error. I did RnD and workaround using jdk 1.5 and 1.6 and cud not make it. Steps: 1) Build successfully application.war with application.emma.
                                       2) Placing the application.war in Tomacat_6.0\Webapps
                                       3) Start Tomcat
                                       4) Running the ant file with <emma>
                                                                                                 <ctl connect="localhost:47653" >
                                                                             <command name="coverage.dump" args="D:/Tomcat_6.0/bin/coverage.ec,true,false" />
                                                                              <command>coverage.reset</command> 
                                                                                                </ctl>
                                                                                     </emma>
                                                              
                                          4) Below is the error:

    java.lang.IllegalAccessError: tried to access method com.vladium.emma.ctl.ctlCommand.tokenize(Ljava/lang/String;Ljava/lang/String;Z)[Ljava/la
    ng/String; from class com.vladium.emma.ctl.ctlTask$commandElement
            at com.vladium.emma.ctl.ctlTask$commandElement.setArgs(ctlTask.java:48)
            at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
            at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
    java:39)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
    sorImpl.java:25)
            at java.lang.reflect.Method.invoke(Method.java:585)
            at org.apache.tools.ant.IntrospectionHelper$AttributeSetter.setObject(In
    trospectionHelper.java:1498)
            at org.apache.tools.ant.IntrospectionHelper.setAttribute(IntrospectionHe
    lper.java:405)
            at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfig
    urable.java:388)
            at org.apache.tools.ant.RuntimeConfigurable.maybeConfigure(RuntimeConfig
    urable.java:344)
            at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:5
    80)
            at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.jav
    a:349)
            at org.apache.tools.ant.UnknownElement.handleChild(UnknownElement.java:5
    81)
            at org.apache.tools.ant.UnknownElement.handleChildren(UnknownElement.jav
    a:349)
            at org.apache.tools.ant.UnknownElement.configure(UnknownElement.java:201
    )
            at org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.jav
    a:163)
            at org.apache.tools.ant.Task.perform(Task.java:347)
            at org.apache.tools.ant.Target.execute(Target.java:390)
            at org.apache.tools.ant.Target.performTasks(Target.java:411)
            at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1399)
            at org.apache.tools.ant.Project.executeTarget(Project.java:1368)
            at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
    cutor.java:41)
            at org.apache.tools.ant.Project.executeTargets(Project.java:1251)
            at org.apache.tools.ant.Main.runBuild(Main.java:809)
            at org.apache.tools.ant.Main.startAnt(Main.java:217)
            at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280)
            at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109)

    Total time: 3 seconds

    Looking forward to hearing back from you soon.

    Thanks and Best Regards,
    Abdul Mannan