Using sonar1.9.2 facing build error while executing PMD plugin

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

Using sonar1.9.2 facing build error while executing PMD plugin

by k_cnoo :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

I'm using Sonar 1.9.2 & maven 2.1.0 and executing a project. When the PMD plugin gets executed I'm getting an error like

[INFO] [pmd:pmd]
[WARNING] Error while parsing E:\CommonCodes\common-codes-jar\src\main\java\**\**\**\**\**\*.java: Encountered "<EOF>" at line 417, column 35.
Was expecting one of:
    <IDENTIFIER> ...
    "..." ...

[WARNING] Error while parsing E:\CommonCodes\common-codes-jar\src\main\java\**\**\**\**\**\*.java: Encountered "<EOF>" at line 806, column 43.
Was expecting one of:
    "boolean" ...
    "byte" ...
    "char" ...
    "double" ...
    "false" ...
    "float" ...
    "int" ...
    "long" ...
    "new" ...
    "null" ...
    "short" ...
    "super" ...
    "this" ...
    "true" ...
    "void" ...
    <INTEGER_LITERAL> ...
    <FLOATING_POINT_LITERAL> ...
    <HEX_FLOATING_POINT_LITERAL> ...
    <CHARACTER_LITERAL> ...
    <STRING_LITERAL> ...
    <IDENTIFIER> ...
    "(" ...
    "{" ...
    "!" ...
    "~" ...
    "++" ...
    "--" ...
    "+" ...
    "-" ...
.....

Strangely the same code if i run it in a different machine I'm not facing this issue
Have anyone faced the same kind of issue ? If so pls help me out to solve this issue.

The machine where the code is not working contains family name as "dos" while running the maven command : mvn -version
C:\Documents and Settings\701177>mvn -version
Apache Maven 2.1.0 (r755702; 2009-03-19 00:40:27+0530)
Java version: 1.5.0_08
Java home: C:\Program Files\Java\jdk1.5.0_08\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "dos"

whereas in the machine where the code is working contains family name as "windows" while running the maven command : mvn -version
C:\Documents and Settings\701177>mvn -version
Apache Maven 2.1.0 (r755702; 2009-03-19 00:40:27+0530)
Java version: 1.5.0_08
Java home: C:\Program Files\Java\jdk1.5.0_08\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

Pls help me to solve this issue.

Regards,
Srini

Re: Using sonar1.9.2 facing build error while executing PMD plugin

by Olivier Gaudin-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hello Srini,

What character do you have at that position ?

I think you issue has been fixed in 1.10 with SONAR-948. Can you try to upgrade ?

Olivier


On Wed, Nov 11, 2009 at 8:41 AM, k_cnoo <srinivasan.kannaiyan@...> wrote:

Hi,

I'm using Sonar 1.9.2 & maven 2.1.0 and executing a project. When the PMD
plugin gets executed I'm getting an error like

[INFO] [pmd:pmd]
[WARNING] Error while parsing
E:\CommonCodes\common-codes-jar\src\main\java\**\**\**\**\**\*.java:
Encountered "<EOF>" at line 417, column 35.
Was expecting one of:
   <IDENTIFIER> ...
   "..." ...

[WARNING] Error while parsing
E:\CommonCodes\common-codes-jar\src\main\java\**\**\**\**\**\*.java:
Encountered "<EOF>" at line 806, column 43.
Was expecting one of:
   "boolean" ...
   "byte" ...
   "char" ...
   "double" ...
   "false" ...
   "float" ...
   "int" ...
   "long" ...
   "new" ...
   "null" ...
   "short" ...
   "super" ...
   "this" ...
   "true" ...
   "void" ...
   <INTEGER_LITERAL> ...
   <FLOATING_POINT_LITERAL> ...
   <HEX_FLOATING_POINT_LITERAL> ...
   <CHARACTER_LITERAL> ...
   <STRING_LITERAL> ...
   <IDENTIFIER> ...
   "(" ...
   "{" ...
   "!" ...
   "~" ...
   "++" ...
   "--" ...
   "+" ...
   "-" ...
.....

Strangely the same code if i run it in a different machine I'm not facing
this issue
Have anyone faced the same kind of issue ? If so pls help me out to solve
this issue.

The machine where the code is not working contains family name as "dos"
while running the maven command : mvn -version
C:\Documents and Settings\701177>mvn -version
Apache Maven 2.1.0 (r755702; 2009-03-19 00:40:27+0530)
Java version: 1.5.0_08
Java home: C:\Program Files\Java\jdk1.5.0_08\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "dos"

whereas in the machine where the code is working contains family name as
"windows" while running the maven command : mvn -version
C:\Documents and Settings\701177>mvn -version
Apache Maven 2.1.0 (r755702; 2009-03-19 00:40:27+0530)
Java version: 1.5.0_08
Java home: C:\Program Files\Java\jdk1.5.0_08\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows xp" version: "5.1" arch: "x86" Family: "windows"

Pls help me to solve this issue.

Regards,
Srini
--
View this message in context: http://old.nabble.com/Using-sonar1.9.2-facing-build-error-while-executing-PMD-plugin-tp26297225p26297225.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