首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件开发 >

Sonar Unable to read and import 的有关问题处理

2013-07-09 
Sonar Unable to read and import的问题处理Exception in thread main org.sonar.batch.bootstrapper.Bo

Sonar Unable to read and import 的问题处理
Exception in thread "main" org.sonar.batch.bootstrapper.BootstrapException: org.sonar.api.utils.SonarException: Unable to read and import the source file : '/home/marc/projects/MyProject/srcs/LATEST/fw/tiny_mq/src/mp_transport.c' with the charset : 'UTF-8'. at org.sonar.runner.Runner.delegateExecution(Runner.java:189) at org.sonar.runner.Runner.execute(Runner.java:78) at org.sonar.runner.Main.main(Main.java:61)Caused by: org.sonar.api.utils.SonarException: Unable to read and import the source file : '/home/marc/projects/MyProject/srcs/LATEST/fw/tiny_mq/src/mp_transport.c' with the charset : 'UTF-8'. at org.sonar.api.batch.AbstractSourceImporter.parseDirs(AbstractSourceImporter.java:84) at org.sonar.api.batch.AbstractSourceImporter.analyse(AbstractSourceImporter.java:69) at org.sonar.api.batch.AbstractSourceImporter.analyse(AbstractSourceImporter.java:60) at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)

?这个其实有两种可能:

??? 1, 真的是文件编码问题,? Sonar 默认的是按UTF-8的编码处理;

??? 2, 在同一个项目有两个文件名相同的问题。? 我在项目中发现的问题既是如此, 开发人员在main/test 目录下面相同的命名空间下放了两个相同的文件导致这个问题。

?

?

热点排行