Skip to content
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

🪲 Null point exception in the DestinationPathFactory #4

Open
indigo423 opened this issue Nov 9, 2023 · 0 comments
Open

🪲 Null point exception in the DestinationPathFactory #4

indigo423 opened this issue Nov 9, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@indigo423
Copy link
Member

On startup I get the following Null Point Excpetion in the standard output from the Horizon core service:

gitops-opennms-horizon-1       | Exception in thread "Thread-133" Exception in thread "Timer-6" java.lang.NullPointerException: Cannot invoke "java.io.File.lastModified()" because "org.opennms.netmgt.config.DestinationPathFactory.m_pathsConfFile" is null
gitops-opennms-horizon-1       |        at org.opennms.netmgt.config.DestinationPathFactory.update(DestinationPathFactory.java:138)
gitops-opennms-horizon-1       |        at org.opennms.netmgt.config.DestinationPathManager.getPaths(DestinationPathManager.java:105)
gitops-opennms-horizon-1       |        at org.opennms.features.datachoices.internal.UsageStatisticsReporter.getDestinationPathCount(UsageStatisticsReporter.java:650)
gitops-opennms-horizon-1       |        at org.opennms.features.datachoices.internal.UsageStatisticsReporter.generateReport(UsageStatisticsReporter.java:295)
gitops-opennms-horizon-1       |        at org.opennms.features.datachoices.internal.UsageStatisticsReporter$Task.run(UsageStatisticsReporter.java:223)
gitops-opennms-horizon-1       |        at java.base/java.lang.Thread.run(Thread.java:833)
gitops-opennms-horizon-1       | java.lang.NullPointerException: Cannot invoke "java.io.File.lastModified()" because "org.opennms.netmgt.config.DestinationPathFactory.m_pathsConfFile" is null
gitops-opennms-horizon-1       |        at org.opennms.netmgt.config.DestinationPathFactory.update(DestinationPathFactory.java:138)
gitops-opennms-horizon-1       |        at org.opennms.netmgt.config.DestinationPathManager.getPaths(DestinationPathManager.java:105)
gitops-opennms-horizon-1       |        at org.opennms.features.datachoices.internal.UsageStatisticsReporter.getDestinationPathCount(UsageStatisticsReporter.java:650)
gitops-opennms-horizon-1       |        at org.opennms.features.datachoices.internal.UsageStatisticsReporter.generateReport(UsageStatisticsReporter.java:295)
gitops-opennms-horizon-1       |        at org.opennms.features.datachoices.internal.UsageStatisticsReporter$Task.run(UsageStatisticsReporter.java:223)
gitops-opennms-horizon-1       |        at java.base/java.util.TimerThread.mainLoop(Timer.java:566)
gitops-opennms-horizon-1       |        at java.base/java.util.TimerThread.run(Timer.java:516)

The service comes up and the UI is working. We should investigate if this is an error we have introduced with our custom configuration or if this is a bug in general.

@indigo423 indigo423 added the bug Something isn't working label Nov 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant