SonarQube Scanner执行期间的责备错误

时间:2016-10-05 10:53:19

标签: sonarqube git-blame

我正在使用sonarqube-6.0,我尝试使用示例示例与声纳扫描仪一起运行

当我在声纳扫描仪中运行任何项目时,我得到了责备错误

声纳扫描仪配置中的文件Conf是vi sonar-scanner.properties

# must be unique in a given SonarQube instance
sonar.projectKey=SonarSource-sonar-examples-8051d9d
# this is the name and version displayed in the SonarQube UI. Was mandatory prior to SonarQube 6.1.
sonar.projectName=java-maven-simple
sonar.projectVersion=1.0

# Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
# Since SonarQube 4.2, this property is optional if sonar.modules is set.
# If not set, SonarQube starts looking for source code from the directory containing
# the sonar-project.properties file.
sonar.sources=/Users/kingslee/work/software/projects/sonar-scanner-2.8/bin/sonar-examples

# Encoding of the source code. Default is default system encoding
#sonar.sourceEncoding=UTF-8
~                                                                          
                                     

当我运行命令./sonar-scanner时,这些是我经常遇到的错误

ERROR: Error during SonarQube Scanner execution
java.lang.IllegalStateException: Unable to blame file sonar-examples/plugins/java-custom-rules/src/main/java/org/sonar/samples/java/MyJavaFileCheckRegistrar.java
	at org.sonarsource.scm.git.JGitBlameCommand.blame(JGitBlameCommand.java:128)
	at org.sonarsource.scm.git.JGitBlameCommand.access$000(JGitBlameCommand.java:44)
	at org.sonarsource.scm.git.JGitBlameCommand$1.call(JGitBlameCommand.java:112)
	at org.sonarsource.scm.git.JGitBlameCommand$1.call(JGitBlameCommand.java:109)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.NullPointerException
	at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache$Table.index(UnpackedObjectCache.java:146)
	at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache$Table.contains(UnpackedObjectCache.java:109)
	at org.eclipse.jgit.internal.storage.file.UnpackedObjectCache.isUnpacked(UnpackedObjectCache.java:64)
	at org.eclipse.jgit.internal.storage.file.ObjectDirectory.openObject(ObjectDirectory.java:376)
	at org.eclipse.jgit.internal.storage.file.WindowCursor.open(WindowCursor.java:142)
	at org.eclipse.jgit.lib.ObjectReader.open(ObjectReader.java:226)
	at org.eclipse.jgit.blame.BlameGenerator.push(BlameGenerator.java:317)
	at org.eclipse.jgit.api.BlameCommand.call(BlameCommand.java:216)
	at org.sonarsource.scm.git.JGitBlameCommand.blame(JGitBlameCommand.java:126)
	... 7 more
ERROR: 
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging.

0 个答案:

没有答案
相关问题