« Return to Thread: error executing mvn sonar:sonar: 'Incorrect string value: '...' for column 'data' at row 1'

Re: error executing mvn sonar:sonar: 'Incorrect string value: '...' for column 'data' at row 1'

by Nikolay Elenkov :: Rate this Message:

Reply to Author | View in Thread

Freddy Mallet wrote:

> As your source code is
> not UTF8 encoded, I guess you should specify the Shift_JIS character
> encoding when you create the Mysql schema.
> Could you give a try with the following command :
>
> CREATE DATABASE sonar CHARACTER SET sjis COLLATE sjis_japanese_ci;
>

Thanks. I tried it but I still get the same error?

I am right to assume that what gets inserted into snapshot_sources#data is
java source code? I haven't look at the source (no time right now...), but if
the file encoding is specified properly (in pom.xml or with a system property),
once it is read successfully, one should be able to save it again in UTF-8.

BTW, is there a way to specify trace logging for ImportJavaSourceMavenCollector,
so that I can at least track down what file the string that fails is coming
from?


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


 « Return to Thread: error executing mvn sonar:sonar: 'Incorrect string value: '...' for column 'data' at row 1'