jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Sonar
  • SONAR-709

Cannot execute the command org.codehaus.mojo:javancss-maven-plugin::report

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.6
  • Fix Version/s: 1.9
  • Component/s: None
  • Labels:
    None
  • Environment:
    Windows XP, java 1.6 update 13

Description

When i run a command
mvn clean resources:copy-resources org.codehaus.sonar:sonar-maven-plugin:1.6:sonar -Duser.language=es -Dfile.encoding=UTF-8 -DsourceEncoding=UTF-8 -DforceEncoding=UTF-8 -e (I had to add parameters, but it had another problem)

a result is:

ERROR] Cannot execute the command org.codehaus.mojo:javancss-maven-plugin::report
rg.apache.maven.lifecycle.LifecycleExecutionException: An error has occurred in JavaNCSS Report report generation.
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:584)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
:331)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:292)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.sonar.maven.SonarMavenEmbedder.execute(SonarMavenEmbedder.java:151)
at org.sonar.maven.SonarMavenEmbedder.execute(SonarMavenEmbedder.java:115)
at org.sonar.maven.SonarMojo.executeMaven(SonarMojo.java:294)
at org.sonar.maven.SonarMojo.executeGoals(SonarMojo.java:256)
at org.sonar.maven.SonarMojo.execute(SonarMojo.java:115)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:513)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:483)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.jav
:331)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:228)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:301)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
aused by: org.apache.maven.plugin.MojoExecutionException: An error has occurred in JavaNCSS Report report generation.
at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:79)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:453)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559)
... 28 more
aused by: org.apache.maven.reporting.MavenReportException: Error while JavaNCSS was executing
at org.codehaus.mojo.javancss.NcssExecuter.execute(NcssExecuter.java:94)
at org.codehaus.mojo.javancss.NcssReportMojo.generateSingleReport(NcssReportMojo.java:245)
at org.codehaus.mojo.javancss.NcssReportMojo.executeReport(NcssReportMojo.java:166)
at org.apache.maven.reporting.AbstractMavenReport.generate(AbstractMavenReport.java:98)
at org.apache.maven.reporting.AbstractMavenReport.execute(AbstractMavenReport.java:73)
... 30 more
aused by: java.lang.Exception: javancss.TokenMgrError: Lexical error at line 214, column 30. Encountered: "\u00b1" (17
), after : ""

can you help me?

Thanks.

Issue Links

relates to

New Feature - A new feature of the product, which has yet to be developed. SONAR-765 Integrate the new Sonar-Squid core engine (JavaNCSS)

  • Critical - Crashes, loss of data, severe memory leak.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

Ascending order - Click to sort in descending order
  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Freddy Mallet added a comment - 25/Mar/09 3:29 PM - edited

There should be an occurrence of the "±" character somewhere in your source code. If you remove this occurrence, JavaNCSS should work. The new JavaNCSS version which will be embedded in Sonar 1.8 should fix this limitation. Could you send us an example of such a file which contains the "±" to do test on our side ?

Show
Freddy Mallet added a comment - 25/Mar/09 3:29 PM - edited There should be an occurrence of the "±" character somewhere in your source code. If you remove this occurrence, JavaNCSS should work. The new JavaNCSS version which will be embedded in Sonar 1.8 should fix this limitation. Could you send us an example of such a file which contains the "±" to do test on our side ?
Hide
Permalink
Eduardo Abi Zeid added a comment - 26/Mar/09 9:14 AM

i can not find where the character in the code. I will continue searching.
thanks

Show
Eduardo Abi Zeid added a comment - 26/Mar/09 9:14 AM i can not find where the character in the code. I will continue searching. thanks

People

  • Assignee:
    Unassigned
    Reporter:
    Eduardo Abi Zeid
Vote (0)
Watch (0)

Dates

  • Created:
    25/Mar/09 1:35 PM
    Updated:
    30/May/09 10:11 AM
    Resolved:
    25/Apr/09 5:54 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.