1

从 4.0 -> 4.5.6 -> 5.2 升级后,我看到无数次运行mvn sonar:sonar失败并出现空指针异常。奇怪的是,并非所有项目都受到影响,新项目也不会表现出这种行为。

对于那些失败的,下面的输出是一致的。当我单击为下面列出的请求报告的 url 时,我得到{"errors":[{"msg":""}]}

2015.11.23 18:17:41 ERROR web[o.s.s.w.WebServiceEngine] Fail to process request http://mysonarurl/batch/project.protobuf?key=com.groupid%3Aartifactid
java.lang.NullPointerException: null
    at com.google.protobuf.Utf8.encodedLength(Utf8.java:378) ~[protobuf-java-3.0.0-beta-1.jar:na]
    at com.google.protobuf.CodedOutputStream.computeStringSizeNoTag(CodedOutputStream.java:911) ~[protobuf-java-3.0.0-beta-1.jar:na]
    at com.google.protobuf.FieldSet.computeElementSizeNoTag(FieldSet.java:834) ~
[snip]

看起来类似的问题已在 5.1 中修复。

4

0 回答 0