Issue in Ofbiz code coverage Report with cobertura

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Issue in Ofbiz code coverage Report with cobertura

lenka.prasanta
Hi All,

Please help me in below issue........

I am new to the ofbiz & trying to generate a code coverage report  with cobertura.I followed the
below steps to do the same.

1.Download the ofbiz release10.04 version.
2.download  cobertura-1.9.3.jar and put in "framework\base\lib"
3.changed the common.xml with below code
        <target name="tests" depends="jar">
       
       <antcall target="tests-cobertura"/>
    </target>
4.start the application by command "ant tests"  from command prompt.

In the process i got below error.


tests-cobertura:
[cobertura-instrument] java.lang.NoClassDefFoundError: org/objectweb/asm/ClassVisitor
[cobertura-instrument] Caused by: java.lang.ClassNotFoundException: org.objectweb.asm.ClassVisitor
[cobertura-instrument]  at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
[cobertura-instrument]  at java.security.AccessController.doPrivileged(Native Method)
[cobertura-instrument]  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
[cobertura-instrument]  at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
[cobertura-instrument]  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
[cobertura-instrument]  at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
[cobertura-instrument]  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
[cobertura-instrument] Exception in thread "main"

BUILD FAILED
C:\Workspace\release10.04\build.xml:133: The following error occurred while executing this line:
C:\Workspace\release10.04\framework\build.xml:127: The following error occurred while executing this line:
C:\Workspace\release10.04\common.xml:137: The following error occurred while executing this line:
C:\Workspace\release10.04\common.xml:161: Error instrumenting classes. See messages above.

Total time: 1 second

As ClassVisitor.class(asm-3.2.jar) is available in the classpath i am totally blank how to proceed further.

Please direct me know if i missed any steps or my approach is wrong ???

Thanks
Prasanta


Reply | Threaded
Open this post in threaded view
|

Re: Issue in Ofbiz code coverage Report with cobertura

Jacques Le Roux
Administrator
Did you look into the MLs?
http://ofbiz.markmail.org/search/cobertura

Jacques

From: "lenka.prasanta" <[hidden email]>

> Hi All,
>
> Please help me in below issue........
>
> I am new to the ofbiz & trying to generate a code coverage report  with
> cobertura.I followed the
> below steps to do the same.
>
> 1.Download the ofbiz release10.04 version.
> 2.download  cobertura-1.9.3.jar and put in "framework\base\lib"
> 3.changed the common.xml with below code
>        <target name="tests" depends="jar">
>       <!--<run-junit />-->
>       <antcall target="tests-cobertura"/>
>    </target>
> 4.start the application by command "ant tests"  from command prompt.
>
> In the process i got below error.
>
>
> tests-cobertura:
> [cobertura-instrument] java.lang.NoClassDefFoundError:
> org/objectweb/asm/ClassVisitor
> [cobertura-instrument] Caused by: java.lang.ClassNotFoundException:
> org.objectweb.asm.ClassVisitor
> [cobertura-instrument]  at
> java.net.URLClassLoader$1.run(URLClassLoader.java:200)
> [cobertura-instrument]  at
> java.security.AccessController.doPrivileged(Native Method)
> [cobertura-instrument]  at
> java.net.URLClassLoader.findClass(URLClassLoader.java:188)
> [cobertura-instrument]  at
> java.lang.ClassLoader.loadClass(ClassLoader.java:306)
> [cobertura-instrument]  at
> sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
> [cobertura-instrument]  at
> java.lang.ClassLoader.loadClass(ClassLoader.java:251)
> [cobertura-instrument]  at
> java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
> [cobertura-instrument] Exception in thread "main"
>
> BUILD FAILED
> C:\Workspace\release10.04\build.xml:133: The following error occurred while
> executing this line:
> C:\Workspace\release10.04\framework\build.xml:127: The following error
> occurred while executing this line:
> C:\Workspace\release10.04\common.xml:137: The following error occurred while
> executing this line:
> C:\Workspace\release10.04\common.xml:161: Error instrumenting classes. See
> messages above.
>
> Total time: 1 second
>
> As ClassVisitor.class(asm-3.2.jar) is available in the classpath i am
> totally blank how to proceed further.
>
> Please direct me know if i missed any steps or my approach is wrong ???
>
> Thanks
> Prasanta
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Issue-in-Ofbiz-code-coverage-Report-with-cobertura-tp2515816p2515816.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>


Reply | Threaded
Open this post in threaded view
|

Re: Issue in Ofbiz code coverage Report with cobertura

lenka.prasanta
In reply to this post by lenka.prasanta
I am not able to get any useful information from mail list.
is there any document or steps available for the same ???


Please help me .....


Reply | Threaded
Open this post in threaded view
|

Re: Issue in Ofbiz code coverage Report with cobertura

Jacques Le Roux
Administrator
Did you try this http://ofbiz.markmail.org/search/?q=cobertura

Jacques

From: "lenka.prasanta" <[hidden email]>

>
> I am not able to get any useful information from mail list.
> is there any document or steps available for the same ???
>
>
> Please help me .....
>
>
>
> --
> View this message in context:
> http://ofbiz.135035.n4.nabble.com/Issue-in-Ofbiz-code-coverage-Report-with-cobertura-tp2515816p2525296.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>