error while executing sonarqube - java.lang.IllegalArgumentException: Malformed \uxxxx encoding

560 views
Skip to first unread message

Niharika Rao Dergasi

unread,
Nov 25, 2015, 5:21:14 AM11/25/15
to SonarQube
Hi,

I get below mentioned error while executing sonarqube. please suggest

ERROR: Error during Sonar runner execution
java.lang.IllegalStateException: Fail to load file: D:\ARPSubTask\sonar-project.
properties
        at org.sonar.runner.Conf.toProperties(Conf.java:192)
        at org.sonar.runner.Conf.loadProjectProperties(Conf.java:77)
        at org.sonar.runner.Conf.properties(Conf.java:52)
        at org.sonar.runner.Main.executeTask(Main.java:70)
        at org.sonar.runner.Main.execute(Main.java:59)
        at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
        at java.util.Properties.loadConvert(Unknown Source)
        at java.util.Properties.load0(Unknown Source)
        at java.util.Properties.load(Unknown Source)
        at org.sonar.runner.Conf.toProperties(Conf.java:184)
        ... 5 more

Niharika Rao Dergasi

unread,
Nov 25, 2015, 5:23:29 AM11/25/15
to SonarQube
I am using sonar 4.5.6 version

G. Ann Campbell

unread,
Dec 1, 2015, 11:56:56 AM12/1/15
to SonarQube
You need to provide values that tell SonarQube Scanner about your project. Typically, that's done in a file named sonar-project.properties which is (again typically) found in the root directory of your project. The error message is telling you it can't find that file.

See the docs for more detail.


Ann

pasumarthi...@gmail.com

unread,
Jan 6, 2017, 1:24:29 AM1/6/17
to SonarQube

Hi Niharika,

Did solve the issue? Even i am facing same even after i place the sonar-project.properties file with all needful details.
$ sonar-runner -X
SonarQube Runner 2.4
Java 1.8.0_101 Oracle Corporation (64-bit)
Windows 7 6.1 amd64
INFO: Error stacktraces are turned on.
INFO: Runner configuration file: C:\soft\sonar-runner-2.4\conf\sonar-runner.properties
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
Total time: 0.011s
Final Memory: 1M/123M
INFO: ------------------------------------------------------------------------

ERROR: Error during Sonar runner execution
java.lang.IllegalStateException: Fail to load file: C:\soft\sonar-runner-2.4\conf\sonar-runner.properties
        at org.sonar.runner.Conf.toProperties(Conf.java:192)
        at org.sonar.runner.Conf.loadGlobalProperties(Conf.java:63)
        at org.sonar.runner.Conf.properties(Conf.java:51)

        at org.sonar.runner.Main.executeTask(Main.java:70)
        at org.sonar.runner.Main.execute(Main.java:59)
        at org.sonar.runner.Main.main(Main.java:53)
Caused by: java.lang.IllegalArgumentException: Malformed \uxxxx encoding.
        at java.util.Properties.loadConvert(Unknown Source)
        at java.util.Properties.load0(Unknown Source)
        at java.util.Properties.load(Unknown Source)
        at org.sonar.runner.Conf.toProperties(Conf.java:184)
        ... 5 more

Can you pls help me here?
Reply all
Reply to author
Forward
0 new messages