New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
NullPointerException at stopping Tomcat with Cobertura 2.0.3 #180
Comments
Hi, (Thread-113) Exception in thread "Thread-113" java.lang.NoClassDefFoundError: net/sourceforge/cobertura/coveragedata/TouchCollector$ApplyToClassDataLightClassmapListener |
Did any of you find a way out? |
No, i switched to JaCoCo. |
Looks like someone attempted a work-around if catalina.home is defined: TouchCollector may need to be added |
I am still seeing this issue with 2.1.1. Cobertura.jar is copied to tomcat's lib as well as WEB-INF/lib of applications. Exception in thread "Thread-2" java.lang.NoClassDefFoundError: net/sourceforge/cobertura/coveragedata/TouchCollector$ApplyToClassDataLightClassmapListener |
i have the same question with 2.1.1. When i shut down tomcat ,the issue occur. |
Do any one found out solution on this ... I am facing the same |
There are two methods to save coverage. 1.shut down toimcat 2.use coberturaFlush.war, and call the |
Hi Thanks for your help |
When I stop the tomcat server for cobertura to write the cobertura.ser file, a NullPointerException is thrown.
Instrumentation works fine.
[cobertura-instrument] Information: Cobertura: Saved information on 803 classes.
Start of Tomcat and jUnit Test execution works also fine. Tests pass all with no errors. The jUnit-repors are written successfully. However the coverage data is not written to cobertura.ser.
At stopping the tomcat server, the following exception is thrown:
Exception in thread "Thread-2" java.lang.NullPointerException
at net.sourceforge.cobertura.coveragedata.TouchCollector.applyTouchesOnProjectData(TouchCollector.java:104)
at net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(ProjectData.java:270)
at net.sourceforge.cobertura.coveragedata.ProjectData.initialize(ProjectData.java:221)
at net.sourceforge.cobertura.coveragedata.ProjectData.getGlobalProjectData(ProjectData.java:208)
at net.sourceforge.cobertura.coveragedata.ProjectData.saveGlobalProjectData(ProjectData.java:248)
at net.sourceforge.cobertura.coveragedata.SaveTimer.run(SaveTimer.java:32)
at java.lang.Thread.run(Thread.java:744)
Tomcat is startet/stopped with cargo.
Any suggestion what goes wrong?
The text was updated successfully, but these errors were encountered: