JavaSourceImporter sonar sensor fails parsing source files

View: New views
2 Messages — Rating Filter:   Alert me  

JavaSourceImporter sonar sensor fails parsing source files

by Jeroen Wolff :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

During sonar:sonar on my project i get an sun.io.MalformedInputException

see log.txt for the maven log.

i looks like a encoding problem, but i cant find it.
I worte a peace of java code that did FileUtils.readFileToString() to crawl over my java sources
to find the problem, but this test was fine. No ByteToCharUTF8.convert problems.

I hope someone can help me with this...thanks,

Regards,

Jeroen Wolff

Re: JavaSourceImporter sonar sensor fails parsing source files

by Freddy Mallet :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Hi Jeroen,

Looks like the character encoding used by Sonar is not the good one. Are you using the Maven property project.build.sourceEncoding ? If not, could you try to launch "mvn sonar:sonar -Dproject.build.sourceEncoding=UTF-8" ?

Hope it helps,
Freddy

http://www.ibm.com/developerworks/forums/thread.jspa?messageID=14077235


On Wed, Oct 28, 2009 at 4:59 AM, Jeroen Wolff <jeroen.wolff@...> wrote:

Hi,

During sonar:sonar on my project i get an sun.io.MalformedInputException

see  http://www.nabble.com/file/p26091322/log.txt log.txt  for the maven
log.

i looks like a encoding problem, but i cant find it.
I worte a peace of java code that did FileUtils.readFileToString() to crawl
over my java sources
to find the problem, but this test was fine. No ByteToCharUTF8.convert
problems.

I hope someone can help me with this...thanks,

Regards,

Jeroen Wolff
--
View this message in context: http://www.nabble.com/JavaSourceImporter-sonar-sensor-fails-parsing-source-files-tp26091322p26091322.html
Sent from the Sonar user mailing list archive at Nabble.com.


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

   http://xircles.codehaus.org/manage_email