Execution Failure: Caused by: java.lang.IllegalArgumentException: Malformed \uxxxx encoding.

448 views
Skip to first unread message

pasumarthi...@gmail.com

unread,
Jan 6, 2017, 1:26:46 AM1/6/17
to SonarQube

Hi All,

The sonar-runner.properties is working good for very sample project but when i try to for my project base, it fails like below.. Can any one help on this.?

$ 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
$ 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

Julien HENRY

unread,
Jan 9, 2017, 4:40:05 AM1/9/17
to SonarQube, pasumarthi...@gmail.com
Hi,

First of all, SonarQube Scanner 2.4 is getting very old. Please consider upgrading.

Then the error message basically say there is an invalid character in C:\soft\sonar-runner-2.4\conf\sonar-runner.properties. Note that encoding of this file have to be ISO-8859-1.

++

Julien
Reply all
Reply to author
Forward
0 new messages