我正在获得运行声纳的不足特权错误.这是在我将sonarQube升级到5.0后开始发生的.
错误:声纳运行程序执行期间出错ERROR:无法执行声纳错误:引起:无法装饰'org.sonar.api.resources.File@152f931e [key = ........]'错误:由:{"errors":[{"msg":"权限不足"}}}
对于现有项目,我重命名了密钥,现在我有了新的声纳项目.那些似乎现在工作正常.创建的新项目正在抛出此错误.有什么建议?
当我使用 SonarQube 5.0.1 运行分析时,我在 java 源上收到以下异常
我通过运行以下命令使用 Maven 项目运行此分析: mvn sonar:sonar -Psonar 请帮助 Gidi
[22:04:35]: [ERROR] [22:04:35.535] Class not found: javafx.beans.Observable
[22:04:35]: [ERROR] [22:04:35.884] Class not found: javafx.beans.Observable
[22:04:36]: [ERROR] [22:04:36.403] Class not found: javafx.beans.Observable
[22:04:37]: [ERROR] [22:04:37.014] Unable to create symbol table for : /home/ciuser/buildAgent/work/f9bff052f3e7989d/cobrowse-server/cobrowse-server-core/src/main/java/net/synchronite/common/ImmutableCollectors.java
[22:04:37]: java.lang.IllegalStateException: Type not resolved methodReference tokenValue='ImmutableMap' tokenLine=31 tokenColumn=62
[22:04:37]: at org.sonar.java.resolve.TypeAndReferenceSolver.resolveAs(TypeAndReferenceSolver.java:275) ~[java-squid-2.8.jar:na]
[22:04:37]: at org.sonar.java.resolve.TypeAndReferenceSolver.resolveAs(TypeAndReferenceSolver.java:241) ~[java-squid-2.8.jar:na]
[22:04:37]: at org.sonar.java.resolve.TypeAndReferenceSolver.resolveAs(TypeAndReferenceSolver.java:234) ~[java-squid-2.8.jar:na]
[22:04:37]: at org.sonar.java.resolve.TypeAndReferenceSolver.visitVariable(TypeAndReferenceSolver.java:453) ~[java-squid-2.8.jar:na]
[22:04:37]: at org.sonar.java.model.declaration.VariableTreeImpl.accept(VariableTreeImpl.java:180) ~[java-squid-2.8.jar:na]
[22:04:37]: at org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:42) ~[java-squid-2.8.jar:na]
[22:04:37]: …
Run Code Online (Sandbox Code Playgroud) 在声纳转轮分析期间,SVN指责命令被执行多次.有时会发生错误.连接可能会丢失一段时间,以便发生超时并且无法访问SVN服务器.
声纳运行器在发生此类错误时中止执行.
是否可以配置声纳以便忽略此类SVN错误?
调试使用IDE(IntelliJ Idea)在单独的JVM中运行的Rails和Ruby代码(即断点,调用堆栈等等)的方法是什么?Sonarqube和IntelliJ需要什么配置?
我没有在Sonarqube网站或其他地方找到此信息.
是否可以从Sonar的SCM责备数据收集中排除文件?
我在这条路径上有一个文件: ./projects/ichrg/ichrg.Web/bottombar.cs
命令行的svn blame在文件上运行正常,但是当我用声纳运行它时,我得到以下错误:
java.lang.IllegalStateException:
svn blame命令:
svn blame --xml --non-interactive -x -w --username ******** --password ******** --trust-server-cert BottomBar.cs
失败:
svn:警告:W155010:
'D:\JenkinsBuilds\svntrunk\projects\ichrg\ichrg.Web\BottomBar.cs'
找不到节点 .svn:E200009:无法对所有目标执行责任,因为某些目标不存在
这听起来像是一个svn问题.
目前,我只想从SCM分析中排除有问题的文件,我将以下模式添加到门户网站"文件排除"下的"源文件排除"属性中:
**/bottombar*
但它继续试图获取文件的责备数据.
有没有其他方法我可以阻止声纳试图为我的文件指责数据?
我正在安装SonarQube v5.0.
我正在运行Windows Server 2012 64位(虚拟操作系统),Java 1.8 64位和SonarQube windows-x86-64包装器.
SonarQube,无论是使用命令提示符作为管理员还是作为Windows服务通过StartSonar.bat运行,都会不断发出以下警告:
WARNING - Unable to load the Wrapper's native library 'wrapper.dll'.
The file is located on the path at the following location but
could not be loaded:
C:\sonarqube-5.0.1\bin\windows-x86-64\.\lib\wrapper.dll
Please verify that the file is readable by the current user
and that the file has not been corrupted in any way.
One common cause of this problem is running a 32-bit version
of the Wrapper with a 64-bit version of Java, or …
Run Code Online (Sandbox Code Playgroud) 这是我的方法,当我尝试通过sonarQube分析我的代码时出现此错误:
异常处理程序应保留原始异常:记录或重新抛出此异常.
如果我没有像我的方法那样捕获异常,为什么会出现此错误?
我的方法:
for (String QT : Q_T) {
try {
// some logic
}
} catch (JsonParseException e) {
LOG.log(Level.SEVERE, e.toString());
} catch (JsonMappingException e) {
LOG.log(Level.SEVERE, e.toString());
} catch (IOException e) {
LOG.log(Level.SEVERE, e.toString());
}
catch (Exception e) {
LOG.log(Level.SEVERE, e.toString());
}
}
}
Run Code Online (Sandbox Code Playgroud) 我正在使用SonarQube进行代码分析.我想让Sonar连接到Oracle DB.我收到此错误 - 将上下文初始化事件发送到类org.sonar.server.platform.PlatformServletContextListener org.sonar.api.utils.MessageException的侦听器实例的异常:Oracle必须具有UTF8字符集和BINARY排序.NLS_CHARACTERSET是WE8MSWIN1252,NLS_SORT是BINARY. 除了UTF8之外,还有什么办法让Sonar使用Oracle charset?
目前我正在使用最新版本 5.0 的 SonarQube 。
我正在使用 SonarQube 通过 PHP 插件扫描 PHP 项目。
现在我对 SonarQube 和 PHP 插件有一些疑问。
预先感谢您的回答。
我需要通过api获取新的代码更改的单元测试覆盖率数据.指标.我可以在SonarQubeDashboard中看到数据,但是api没有返回指标的任何值,例如:
我正在调用api:
HTTPS:/// API /资源格式= JSON和指标= ncloc,line_coverage,new_line_coverage
即使是公共Nemo实例也不会返回这些指标值:
上面的API只返回每个项目的ncloc和line_coverage.
请不要告诉我检查这些指标是否在版本中不可用.如果您调用API,它们是:
sonarqube-5.0 ×10
sonarqube ×9
sonar-runner ×4
java ×2
blame ×1
drupal ×1
jenkins ×1
php ×1
ruby ×1
sonarqube5.1 ×1
sonarqube5.3 ×1
svn ×1