CLV-4814 - Hit NPE and NoSuchMethodError in Clover for Eclipse

Product: Clover

Environment

Operating System  
Affect Version/s  
JVM  
Database DB2
Application Server Other

Error Message

Error when rebuilding annotation model for changed document

java.lang.NullPointerException
at com.cenqua.clover.registry.TestCaseInfo.getClassName(2.1.0.v20080227152940-build-696:158)
at com.cenqua.clover.eclipse.editors.java.CoverageAnnotationFilter.<init>(2.1.0.v20080227152940-build-696:67)
at com.cenqua.clover.eclipse.editors.java.CoverageAnnotationFilter.a(2.1.0.v20080227152940-build-696:32)
at com.cenqua.clover.eclipse.editors.java.CoverageAnnotationModel.a(2.1.0.v20080227152940-build-696:96)
at com.cenqua.clover.eclipse.editors.java.CoverageAnnotationModel.a(2.1.0.v20080227152940-build-696:223)
at com.cenqua.clover.eclipse.editors.java.CoverageAnnotationModel.a(2.1.0.v20080227152940-build-696:525)
at com.cenqua.clover.eclipse.editors.java.CoverageAnnotationModel.d(2.1.0.v20080227152940-build-696:90)
at com.cenqua.clover.eclipse.editors.java.CoverageAnnotationModel.a(2.1.0.v20080227152940-build-696:55)
at com.cenqua.clover.eclipse.editors.java.j.run(2.1.0.v20080227152940-build-696:78)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

An internal error occurred during: "Recalculating coverage annotations".

java.lang.NoSuchMethodError: org.eclipse.core.runtime.Status.<init>(ILjava/lang/String;Ljava/lang/String;Ljava/lang/Throwable;)V
at com.cenqua.clover.eclipse.CloverPlugin.logError(2.1.0.v20080227152940-build-696:112)
at com.cenqua.clover.eclipse.editors.java.j.run(2.1.0.v20080227152940-build-696:81)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)

Symptom

Diagnostics/Test

Root Cause

Source and testsource are created in different source folders. Furthermore, the test classes are not included in Clover Working Set.

Solution

Go to Clover Coverage Explorer - Edit Clover Working Set, and check the test class directory box.

Labels

clover clover Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.