2
Javaプロジェクトを解析するためにSonarQube 5.4(Linux x86_64のJRE 1.8.0_77で実行)を使用しています。最近、私はこのエラーが発生し始めた...それを解決する方法についての助けが大歓迎です。ありがとう!SonarQube 5.4 JavaファイルのNullPointerExceptionでバックグラウンドタスクが失敗する
2016.06.28 16:48:48 ERROR [o.s.s.c.t.CeWorkerCallableImpl] Failed to execute task AVWYxWzSMfmN2jNceiJu org.sonar.server.computation.component.VisitException: Visit of Component {key=IAR:src/java/gov/nih/era/iar/meetingannouncement/domain/MeetingAnnouncement.java,type=FILE} failed at org.sonar.server.computation.component.VisitException.rethrowOrWrap(VisitException.java:44) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.component.VisitorsCrawler.visit(VisitorsCrawler.java:64) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.component.VisitorsCrawler.visitChildren(VisitorsCrawler.java:100) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.component.VisitorsCrawler.visitImpl(VisitorsCrawler.java:87) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.component.VisitorsCrawler.visit(VisitorsCrawler.java:62) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.component.VisitorsCrawler.visitChildren(VisitorsCrawler.java:100) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.component.VisitorsCrawler.visitImpl(VisitorsCrawler.java:87) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.component.VisitorsCrawler.visit(VisitorsCrawler.java:62) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.step.ExecuteVisitorsStep.execute(ExecuteVisitorsStep.java:50) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.step.ComputationStepExecutor.execute(ComputationStepExecutor.java:39) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.taskprocessor.report.ReportTaskProcessor.process(ReportTaskProcessor.java:72) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.executeTask(CeWorkerCallableImpl.java:80) [sonar-server-5.4.jar:na] at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:55) [sonar-server-5.4.jar:na] at org.sonar.server.computation.taskprocessor.CeWorkerCallableImpl.call(CeWorkerCallableImpl.java:34) [sonar-server-5.4.jar:na] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_77] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [na:1.8.0_77] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [na:1.8.0_77] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180) [na:1.8.0_77] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293) [na:1.8.0_77] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [na:1.8.0_77] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [na:1.8.0_77] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_77] Caused by: java.lang.IllegalStateException: Fail to process issues of component 'IAR:src/java/gov/nih/era/iar/meetingannouncement/domain/MeetingAnnouncement.java' at org.sonar.server.computation.issue.IntegrateIssuesVisitor.processIssues(IntegrateIssuesVisitor.java:74) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.issue.IntegrateIssuesVisitor.visitAny(IntegrateIssuesVisitor.java:59) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.component.TypeAwareVisitorWrapper.visitAny(TypeAwareVisitorWrapper.java:82) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.component.VisitorsCrawler.visitNode(VisitorsCrawler.java:107) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.component.VisitorsCrawler.visitImpl(VisitorsCrawler.java:90) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.component.VisitorsCrawler.visit(VisitorsCrawler.java:62) ~[sonar-server-5.4.jar:na] ... 20 common frames omitted Caused by: java.lang.NullPointerException: null at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:213) ~[guava-17.0.jar:na] at com.google.common.base.Splitter.splitToList(Splitter.java:416) ~[guava-17.0.jar:na] at org.sonar.db.source.FileSourceDao.selectLineHashes(FileSourceDao.java:73) ~[sonar-db-5.4.jar:na] at org.sonar.server.computation.issue.TrackerBaseInputFactory$BaseLazyInput.loadLineHashSequence(TrackerBaseInputFactory.java:66) ~[sonar-server-5.4.jar:na] at org.sonar.core.issue.tracking.LazyInput.getLineHashSequence(LazyInput.java:34) ~[sonar-core-5.4.jar:na] at org.sonar.core.issue.tracking.LazyInput.getBlockHashSequence(LazyInput.java:42) ~[sonar-core-5.4.jar:na] at org.sonar.core.issue.tracking.BlockRecognizer.match(BlockRecognizer.java:40) ~[sonar-core-5.4.jar:na] at org.sonar.core.issue.tracking.Tracker.detectCodeMoves(Tracker.java:69) ~[sonar-core-5.4.jar:na] at org.sonar.core.issue.tracking.Tracker.track(Tracker.java:52) ~[sonar-core-5.4.jar:na] at org.sonar.server.computation.issue.TrackerExecution.track(TrackerExecution.java:41) ~[sonar-server-5.4.jar:na] at org.sonar.server.computation.issue.IntegrateIssuesVisitor.processIssues(IntegrateIssuesVisitor.java:67) ~[sonar-server-5.4.jar:na] ... 25 common frames omitted 2016.06.28 16:48:49 ERROR [o.s.s.c.t.CeWorkerCallableImpl] Executed task | project=IAR | id=AVWYxWzSMfmN2jNceiJu | time=5005ms
ここに同じエラーがあります。どんな解決策ですか? –
@出会い:はい、一種。問題のあるファイルを見つけて分析から除外し、分析を再実行して悪いDBエントリをクリアしてから、ファイルを再度組み込みます。 –
ソナーは次のアップデートでこのバグを修正したと思います。また、このエラーは完全に空のクラスなどで修正されています。乾杯! –