You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
drtools-metric.sh /Users/gelias/workspace/java-2019/ssl-pinning/ -a --console
Error:
SUMMARY OF METRICS
Total of Namespaces: 0
Total of Types: 0Exception in thread "main" java.lang.reflect.InvocationTargetException
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:61)
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 0
at structures.results.NamespaceMetricResult.getMedianOfTypes(NamespaceMetricResult.java:125)
at output.MetricResultConsole.showSummary(MetricResultConsole.java:81)
at output.MetricResultConsole.show(MetricResultConsole.java:94)
at general.options.AllMetricsOption.execute(AllMetricsOption.java:11)
at general.ProjectInfo.show(ProjectInfo.java:59)
at main.Bootstrapper.analyzeAndShow(Bootstrapper.java:51)
at main.Bootstrapper.runApp(Bootstrapper.java:36)
at main.Bootstrapper.main(Bootstrapper.java:26)
... 5 more
The text was updated successfully, but these errors were encountered:
This problem happened because project doesn't have explicit reference to packages/namespaces.
In the new version of drtools-metric (1.6.0), this problem has been fixed.
Steps ...
git clone https://github.com/gelias/ssl-pinning-java.git
drtools-metric.sh /Users/gelias/workspace/java-2019/ssl-pinning/ -a --console
Error:
SUMMARY OF METRICS
Caused by: java.lang.ArrayIndexOutOfBoundsException: Index -1 out of bounds for length 0
at structures.results.NamespaceMetricResult.getMedianOfTypes(NamespaceMetricResult.java:125)
at output.MetricResultConsole.showSummary(MetricResultConsole.java:81)
at output.MetricResultConsole.show(MetricResultConsole.java:94)
at general.options.AllMetricsOption.execute(AllMetricsOption.java:11)
at general.ProjectInfo.show(ProjectInfo.java:59)
at main.Bootstrapper.analyzeAndShow(Bootstrapper.java:51)
at main.Bootstrapper.runApp(Bootstrapper.java:36)
at main.Bootstrapper.main(Bootstrapper.java:26)
... 5 more
The text was updated successfully, but these errors were encountered: