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
{{ message }}
This repository has been archived by the owner on Oct 2, 2023. It is now read-only.
I have recently downloaded the latest code from Master and trying to setup in my local.
When I am running the sonar collector and finding the bellow nullpointer. Please help.
[taskScheduler-1] INFO com.capitalone.dashboard.collector.CollectorTask - Running Collector: Sonar
[taskScheduler-1] ERROR org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task.
java.lang.NullPointerException
at java.util.ArrayList.addAll(Unknown Source)
at com.capitalone.dashboard.model.SonarCollector.prototype(SonarCollector.java:29)
at com.capitalone.dashboard.collector.SonarCollectorTask.getCollector(SonarCollectorTask.java:57)
at com.capitalone.dashboard.collector.SonarCollectorTask.getCollector(SonarCollectorTask.java:26)
at com.capitalone.dashboard.collector.CollectorTask.run(CollectorTask.java:48)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
@satishc1 - I have done the above but the it still throws the same error.
I am starting Sonar collector with the below command. I have used the same command for other versions of Hygieia. Running this in the target folder.
java -jar sonar-codequality-collector-2.0.5-SNAPSHOT.jar --spring.config.location=application.properties
Hi Team,
I have recently downloaded the latest code from Master and trying to setup in my local.
When I am running the sonar collector and finding the bellow nullpointer. Please help.
[taskScheduler-1] INFO com.capitalone.dashboard.collector.CollectorTask - Running Collector: Sonar
[taskScheduler-1] ERROR org.springframework.scheduling.support.TaskUtils$LoggingErrorHandler - Unexpected error occurred in scheduled task.
java.lang.NullPointerException
at java.util.ArrayList.addAll(Unknown Source)
at com.capitalone.dashboard.model.SonarCollector.prototype(SonarCollector.java:29)
at com.capitalone.dashboard.collector.SonarCollectorTask.getCollector(SonarCollectorTask.java:57)
at com.capitalone.dashboard.collector.SonarCollectorTask.getCollector(SonarCollectorTask.java:26)
at com.capitalone.dashboard.collector.CollectorTask.run(CollectorTask.java:48)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at org.springframework.scheduling.concurrent.ReschedulingRunnable.run(ReschedulingRunnable.java:81)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Below is the properties file content
dbname=dashboardfive
dbusername=dashboarduser
dbpassword=dbpassword
dbhost=localhost
dbport=27017
dbreplicaset=false
dbhostport=localhost:27017
server.contextPath=/api
server.port=8080
SONAR_CRON=0 * * * * *
sonar.servers[0]=https://sonarqube.xxx.com:8443
sonar.key=ojvBRi/EFhPNKc1GmNBbGVeF3Df0x4XO
#sonar.metrics=ncloc,code_coverage,rules,line_coverage,violations,critical_violations,major_violations,blocker_violations,sqale_index,test_success_density,test_failures,test_errors,tests
sonar.metrics=ncloc,code_coverage,rules,line_coverage,violations,critical_violations,major_violations,blocker_violations,sqale_index,test_success_density,test_failures,test_errors
The text was updated successfully, but these errors were encountered: