Metrics Reloaded: Can't collect metrics

I've been getting a lot of exceptions with some of the metrics reloaded metrics:

This one was during a collection of halstead E and B measures.

The Package Encapsulation ration doesn't seem to work.

Also When I ran module metrics (halstead e,b) at the same time as packaage efferent coupling and LOC, the package metrics don't show.

Mike


No message
java.lang.NullPointerException
at com.siyeh.metrics.utils.StringToFractionMap.put(StringToFractionMap.java:43)
at com.siyeh.metrics.metricModel.MetricsResultImpl.postValue(MetricsResultImpl.java:32)
at com.siyeh.metrics.metricModel.MetricsResultImpl.postValue(MetricsResultImpl.java:22)
at com.siyeh.metrics.metricModel.MetricsRunImpl.postMetric(MetricsRunImpl.java:45)
at com.siyeh.metrics.execution.BaseMetricsCalculator.postMetric(BaseMetricsCalculator.java:183)
at com.siyeh.metrics.classCalculators.ClassCalculator.postMetric(ClassCalculator.java:9)
at com.siyeh.metrics.classCalculators.HalsteadClassCalculator.beforeClass(HalsteadClassCalculator.java:17)
at com.siyeh.metrics.execution.Traversal.visitClass(Traversal.java:227)
at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:53)
at com.intellij.psi.impl.source.tree.CompositePsiElement.acceptChildren(CompositePsiElement.java:60)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:21)
at com.intellij.psi.JavaElementVisitor.visitStatement(JavaElementVisitor.java:282)
at com.siyeh.metrics.execution.Traversal.visitStatement(Traversal.java:120)
at com.intellij.psi.JavaElementVisitor.visitDeclarationStatement(JavaElementVisitor.java:82)
at com.siyeh.metrics.execution.Traversal.visitDeclarationStatement(Traversal.java:298)
at com.intellij.psi.impl.source.tree.java.PsiDeclarationStatementImpl.accept(PsiDeclarationStatementImpl.java:8)
at com.intellij.psi.impl.source.tree.CompositePsiElement.acceptChildren(CompositePsiElement.java:60)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:21)
at com.intellij.psi.JavaElementVisitor.visitCodeBlock(JavaElementVisitor.java:66)
at com.intellij.psi.impl.source.tree.java.PsiCodeBlockImpl.accept(PsiCodeBlockImpl.java:49)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.acceptChildren(TreeWrapperPsiElement.java:57)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:21)
at com.intellij.psi.JavaElementVisitor.visitMethod(JavaElementVisitor.java:190)
at com.siyeh.metrics.execution.Traversal.visitMethod(Traversal.java:165)
at com.intellij.psi.impl.source.PsiMethodImpl.accept(PsiMethodImpl.java:107)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.acceptChildren(TreeWrapperPsiElement.java:57)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:21)
at com.intellij.psi.JavaElementVisitor.visitClass(JavaElementVisitor.java:54)
at com.siyeh.metrics.execution.Traversal.visitClass(Traversal.java:229)
at com.intellij.psi.impl.source.PsiClassImpl.accept(PsiClassImpl.java:53)
at com.intellij.psi.impl.source.TreeWrapperPsiElement.acceptChildren(TreeWrapperPsiElement.java:57)
at com.intellij.psi.PsiRecursiveElementVisitor.visitElement(PsiRecursiveElementVisitor.java:21)
at com.intellij.psi.JavaElementVisitor.visitFile(JavaElementVisitor.java:130)
at com.siyeh.metrics.execution.Traversal.visitFile(Traversal.java:219)
at com.intellij.psi.JavaElementVisitor.visitJavaFile(JavaElementVisitor.java:338)
at com.siyeh.metrics.execution.Traversal.visitJavaFile(Traversal.java:151)
at com.intellij.psi.impl.source.PsiJavaFileBaseImpl.accept(PsiJavaFileBaseImpl.java:71)
at com.siyeh.metrics.execution.MetricsExecutionContextImpl$1.run(MetricsExecutionContextImpl.java:78)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:56)
at com.intellij.openapi.application.impl.ApplicationImpl$1MyThread.run(ApplicationImpl.java:13)

0
1 comment
Avatar
Permanently deleted user


Cool. Fixes for these will be in the next MetricsReloaded release, which will be precisely one month after the Irida release (in order to get InspectionGadgets and IntentionPowerPack as stable as possible).

--Dave Griffith

0

Please sign in to leave a comment.