java.lang.NullPointerException at ProjectMetrics #1149
Unanswered
JonathanMeer
asked this question in
Q&A
Replies: 1 comment
-
I have found an issue that explains how the error occurred. #995 Now, can someone help me fix the error without losing data? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I do not see the projects anymore and also not the components.
In the browser I see the following error when opening the projects page:
After a restart of the apiserver it is executing metrics updates and is throwing the following error again and again (in the logs):
ERROR [MetricsUpdateTask] An unexpected error occurred while updating portfolio metrics and iterating through projects. The error occurred while updating metrics for project: 12e6cba0-65f6-4779-a138-2babfc566321
java.lang.NullPointerException: null
at org.dependencytrack.model.ProjectMetrics.getPolicyViolationsFail(ProjectMetrics.java:300)
at org.dependencytrack.tasks.MetricsUpdateTask.updateProjectMetrics(MetricsUpdateTask.java:338)
at org.dependencytrack.tasks.MetricsUpdateTask.updatePortfolioMetrics(MetricsUpdateTask.java:102)
at org.dependencytrack.tasks.MetricsUpdateTask.inform(MetricsUpdateTask.java:66)
at alpine.event.framework.BaseEventService.lambda$publish$0(BaseEventService.java:99)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Does anyone have ever had such an issue?
Could anyone support/help me?
If more information is needed, just let me know!
Thanks in advance
Johnny
Beta Was this translation helpful? Give feedback.
All reactions