前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >【sonar错误提示】

【sonar错误提示】

作者头像
用户5640963
发布2019-07-25 14:35:36
2.2K0
发布2019-07-25 14:35:36
举报
文章被收录于专栏:卯金刀GG卯金刀GG

1、错误代码

代码语言:javascript
复制
/domain/xxxx.java for block at line 44. Keep only the first 100 references.
WARN: Too many duplication references on file src/main/java/com/easy3w/ebs/pb/be
/domain/xxxx.java for block at line 47. Keep only the first 100 references.
WARN: Too many duplication references on file src/main/java/com/easy3w/ebs/pb/be
/domain/PBBE0111.java for block at line 44. Keep only the first 100 references.
INFO: CPD calculation finished
INFO: Analysis report generated in 7791ms, dir size=44 MB
INFO: Analysis reports compressed in 7968ms, zip size=14 MB
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 16:14.080s
INFO: Final Memory: 29M/656M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarQube Scanner execution
ERROR: Failed to upload report - 500: An error has occurred. Please contact your
 administrator
ERROR:
ERROR: Re-run SonarQube Scanner using the -X switch to enable full debug logging
.
D:\xxx\project\xx\code\branch\dev\xxx>sonar-scanner
INFO: Scanner configuration file: D:\sonar-scanner-3.2.0.1227-windows\bin\..\con
f\sonar-scanner.properties
INFO: Project root configuration file: D:\xxx\project\xxx\code\branch\dev\d
xxx\sonar-project.properties
INFO: SonarQube Scanner 3.2.0.1227
INFO: Java 1.8.0_121 Oracle Corporation (64-bit)
INFO: Windows 7 6.1 amd64
INFO: User cache: C:\Users\Administrator\.sonar\cache
INFO: SonarQube server 7.2.1
INFO: Default locale: "zh_CN", source code encoding: "UTF-8"

2、解决方案一

2.1、修改配置文件 可以编辑my.cnf来修改(windows下my.ini),在[mysqld]段或者mysql的server配置段进行修改。 max_allowed_packet = 20M 如果找不到my.cnf可以通过 mysql –help | grep my.cnf 去寻找my.cnf文件。 linux下该文件在/etc/下。 2.2、在mysql命令行中修改 在mysql 命令行中运行 set global max_allowed_packet = 2*1024*1024*10 然后退出命令行,重启mysql服务,再进入。 show VARIABLES like ‘%max_allowed_packet%’; 查看下max_allowed_packet是否编辑成功

3、方案二

修改配置文件

代码语言:javascript
复制
sonar.projectKey=xx:xxx
sonar.projectName=xxx
sonar.projectVersion=0.0.1-SNAPSHOT
sonar.sourceEncoding=UTF-8
sonar.sources=src/main/java/com/xxx/xxx ###指定文件的确切位置,使错误文件的大小减小
sonar.java.binaries=target/classes
本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
相关产品与服务
云数据库 SQL Server
腾讯云数据库 SQL Server (TencentDB for SQL Server)是业界最常用的商用数据库之一,对基于 Windows 架构的应用程序具有完美的支持。TencentDB for SQL Server 拥有微软正版授权,可持续为用户提供最新的功能,避免未授权使用软件的风险。具有即开即用、稳定可靠、安全运行、弹性扩缩等特点。
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档