Uploaded image for project: 'SonarQube'
  1. SonarQube
  2. SONAR-3346

Non-parsable pmd-result.xml

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.14
    • Fix Version/s: 3.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      Ubuntu Linux 8.04, JDK 1.6.0_24

      Description

      After the switch to Sonar 2.14 we get the following error: org.sonar.api.utils.XmlParserException: [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expansion character (code 0xffff at [row,col

      {unknown-source}

      ]: [34833,40]

      The analysis with Sonar 2.13.1 was ok.

      23:02:08  [INFO] [sonar:sonar {execution: default-cli}]
      23:02:08  [INFO] Sonar host: http://q4de3gsy260.gdc-leinf01.t-systems.com:8080/sonar
      23:02:08  [INFO] Sonar version: 2.14
      23:02:08  [INFO] Execute: org.codehaus.sonar:sonar-maven-plugin:2.14:sonar
      23:02:09  [INFO] [sonar:sonar {execution: default-sonar}]
      23:02:10  [INFO] [23:02:10.168] Create JDBC datasource
      23:02:11  [INFO] [23:02:11.110] Initializing Hibernate
      23:02:13  [INFO] [23:02:13.485] -------------  Analyzing foo foo-trunk
      23:02:17  [INFO] [23:02:17.096] Selected quality profile : [name=ams-default,language=java]
      23:02:17  [INFO] [23:02:17.116] Switch Off Violations plugin configured with: /export/build/hudson-slave/workspace/foo-trunk/foo/foo-ams-build/build/sonar/violations-filter.txt
      23:02:17  [INFO] [23:02:17.124] Configure maven plugins...
      23:02:17  [INFO] [23:02:17.275] Compare to previous analysis (2012-03-21)
      23:02:17  [INFO] [23:02:17.503] Compare over 5 days (2012-03-16, analysis of 2012-03-19 10:23:55.0)
      23:02:17  [INFO] [23:02:17.641] Compare over 30 days (2012-02-20, analysis of 2012-02-20 15:46:46.0)
      23:02:17  [INFO] [23:02:17.702] Compare to date 2011-10-01 (analysis of 2011-10-04)
      23:02:17  [INFO] [23:02:17.771] Initializer FindbugsMavenInitializer...
      23:02:17  [INFO] [23:02:17.801] Initializer FindbugsMavenInitializer done: 29 ms
      23:02:17  [INFO] [23:02:17.801] Initializer ProjectFileSystemLogger...
      23:02:17  [INFO] [23:02:17.803] Source directories:
      23:02:17  [INFO] [23:02:17.803]   /export/build/hudson-slave/workspace/foo-trunk/foo/foo-ams-build/build/sonar/source
      23:02:17  [INFO] [23:02:17.804] Initializer ProjectFileSystemLogger done: 3 ms
      23:02:17  [INFO] [23:02:17.804] Initializer MavenInitializer...
      23:02:17  [INFO] [23:02:17.805] Java source version: 1.5
      23:02:17  [INFO] [23:02:17.805] Java target version: 1.5
      23:02:17  [INFO] [23:02:17.805] Source encoding: null
      23:02:17  [INFO] [23:02:17.805] Initializer MavenInitializer done: 1 ms
      23:02:18  [INFO] [23:02:18.070] Sensor JavaSourceImporter...
      23:02:32  [INFO] [23:02:32.552] Sensor JavaSourceImporter done: 14482 ms
      23:02:32  [INFO] [23:02:32.552] Sensor SquidSensor...
      23:02:32  [INFO] [23:02:32.719] Java AST scan...
      23:02:59  [INFO] [23:02:59.330] Java AST scan done: 26611 ms
      23:02:59  [INFO] [23:02:59.360] Java bytecode scan...
      ...
      23:05:54  [INFO] [23:05:54.431] Execute Findbugs 1.3.9 done: 154609 ms
      23:05:55  [INFO] [23:05:55.118] Sensor FindbugsSensor done: 155296 ms
      23:05:55  [INFO] [23:05:55.118] Sensor JaCoCoSensor...
      23:05:55  [INFO] [23:05:55.200] Analysing /export/build/hudson-slave/workspace/foo-trunk/foo/foo-ams-build/build/junit/jacoco.exec
      23:06:02  [INFO] [23:06:02.013] Sensor JaCoCoSensor done: 6895 ms
      23:06:02  [INFO] [23:06:02.013] Sensor SurefireSensor...
      23:06:02  [INFO] [23:06:02.014] parsing /export/build/hudson-slave/workspace/foo-trunk/foo/foo-ams-build/build/junit
      23:06:02  [INFO] [23:06:02.072] Sensor SurefireSensor done: 59 ms
      23:06:02  [INFO] [23:06:02.072] Sensor CpdSensor...
      23:06:02  [INFO] [23:06:02.072] PmdEngine is used
      23:06:06  [INFO] [23:06:06.451] Sensor CpdSensor done: 4379 ms
      23:06:06  [INFO] [23:06:06.452] Sensor CheckstyleSensor...
      23:06:06  [INFO] [23:06:06.455] Execute Checkstyle 5.5...
      23:06:06  [INFO] [23:06:06.464] Checkstyle output report: /export/build/hudson-slave/workspace/foo-trunk/foo/foo-ams-build/build/sonar/target/sonar/checkstyle-result.xml
      23:06:06  [INFO] [23:06:06.472] Checkstyle configuration: /export/build/hudson-slave/workspace/foo-trunk/foo/doo-ams-build/build/sonar/target/sonar/checkstyle.xml
      23:06:30  [INFO] [23:06:30.121] Execute Checkstyle 5.5 done: 23666 ms
      23:06:30  [INFO] [23:06:30.132] Sensor CheckstyleSensor done: 23680 ms
      23:06:30  [INFO] [23:06:30.133] Sensor PmdSensor...
      23:06:30  [INFO] [23:06:30.135] Execute PMD 4.3...
      23:06:30  [INFO] [23:06:30.142] Java version: 1.5
      23:06:30  [INFO] [23:06:30.251] PMD configuration: /export/build/hudson-slave/workspace/foo-trunk/foo/foo-ams-build/build/sonar/target/sonar/pmd.xml
      23:09:33  [INFO] [23:09:33.506] PMD output report: /export/build/hudson-slave/workspace/foo-trunk/foo/foo-ams-build/build/sonar/target/sonar/pmd-result.xml
      23:09:33  [INFO] [23:09:33.591] Execute PMD 4.3 done: 183456 ms
      23:09:34  [INFO] ------------------------------------------------------------------------
      23:09:34  [ERROR] BUILD ERROR
      23:09:34  [INFO] ------------------------------------------------------------------------
      23:09:34  [INFO] Can not execute Sonar
      23:09:34  
      23:09:34  Embedded error: [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expansion character (code 0xffff
      23:09:34   at [row,col \{unknown-source\}]: [34833,40]
      23:09:34  [INFO] ------------------------------------------------------------------------
      23:09:34  [INFO] Trace
      23:09:34  org.apache.maven.lifecycle.LifecycleExecutionException: Can not execute Sonar
      23:09:34  	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
      23:09:34  	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:569)
      23:09:34  	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:539)
      23:09:34  	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
      23:09:34  	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:284)
      23:09:34  	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
      23:09:34  	at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
      23:09:34  	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
      23:09:34  	at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
      23:09:34  	at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
      23:09:34  	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      23:09:34  	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      23:09:34  	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      23:09:34  	at java.lang.reflect.Method.invoke(Method.java:597)
      23:09:34  	at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
      23:09:34  	at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
      23:09:34  	at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
      23:09:34  	at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
      23:09:34  Caused by: org.apache.maven.plugin.MojoExecutionException: Can not execute Sonar
      23:09:34  	at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:103)
      23:09:34  	at org.codehaus.mojo.sonar.Bootstraper.start(Bootstraper.java:79)
      23:09:34  	at org.codehaus.mojo.sonar.SonarMojo.execute(SonarMojo.java:88)
      23:09:34  	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      23:09:34  	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
      23:09:34  	... 17 more
      23:09:34  Caused by: org.sonar.api.utils.XmlParserException: [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expansion character (code 0xffff
      23:09:34   at [row,col \{unknown-source\}]: [34833,40]
      23:09:34  	at org.sonar.plugins.pmd.PmdSensor.analyse(PmdSensor.java:50)
      23:09:34  	at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:64)
      23:09:34  	at org.sonar.batch.phases.Phases.execute(Phases.java:93)
      23:09:34  	at org.sonar.batch.bootstrap.ProjectModule.doStart(ProjectModule.java:143)
      23:09:34  	at org.sonar.batch.bootstrap.Module.start(Module.java:83)
      23:09:34  	at org.sonar.batch.bootstrap.BatchModule.analyze(BatchModule.java:115)
      23:09:34  	at org.sonar.batch.bootstrap.BatchModule.doStart(BatchModule.java:105)
      23:09:34  	at org.sonar.batch.bootstrap.Module.start(Module.java:83)
      23:09:34  	at org.sonar.batch.bootstrap.BootstrapModule.doStart(BootstrapModule.java:102)
      23:09:34  	at org.sonar.batch.bootstrap.Module.start(Module.java:83)
      23:09:34  	at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:71)
      23:09:34  	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:58)
      23:09:34  	at org.sonar.maven.SonarMojo.execute(SonarMojo.java:151)
      23:09:34  	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
      23:09:34  	at org.codehaus.mojo.sonar.Bootstraper.executeMojo(Bootstraper.java:98)
      23:09:34  	... 21 more
      23:09:34  Caused by: [com.ctc.wstx.exc.WstxLazyException] com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expansion character (code 0xffff
      23:09:34   at [row,col \{unknown-source\}]: [34833,40]
      23:09:34  	at com.ctc.wstx.exc.WstxLazyException.throwLazily(WstxLazyException.java:43)
      23:09:34  	at com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:693)
      23:09:34  	at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3617)
      23:09:34  	at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:845)
      23:09:34  	at org.codehaus.staxmate.in.SMInputCursor.getText(SMInputCursor.java:457)
      23:09:34  	at org.codehaus.staxmate.in.SMInputCursor.collectDescendantText(SMInputCursor.java:491)
      23:09:34  	at org.codehaus.staxmate.in.SMInputCursor.collectDescendantText(SMInputCursor.java:522)
      23:09:34  	at org.sonar.plugins.pmd.PmdViolationsXmlParser$StreamHandler.streamViolations(PmdViolationsXmlParser.java:77)
      23:09:34  	at org.sonar.plugins.pmd.PmdViolationsXmlParser$StreamHandler.stream(PmdViolationsXmlParser.java:67)
      23:09:34  	at org.sonar.api.utils.StaxParser.parse(StaxParser.java:110)
      23:09:34  	at org.sonar.api.utils.StaxParser.parse(StaxParser.java:90)
      23:09:34  	at org.sonar.api.utils.StaxParser.parse(StaxParser.java:80)
      23:09:34  	at org.sonar.plugins.pmd.PmdViolationsXmlParser.parse(PmdViolationsXmlParser.java:53)
      23:09:34  	at org.sonar.plugins.pmd.PmdSensor.analyse(PmdSensor.java:46)
      23:09:34  	... 35 more
      23:09:34  Caused by: com.ctc.wstx.exc.WstxParsingException: Illegal character entity: expansion character (code 0xffff
      23:09:34   at [row,col \{unknown-source\}]: [34833,40]
      23:09:34  	at com.ctc.wstx.sr.StreamScanner.constructWfcException(StreamScanner.java:580)
      23:09:34  	at com.ctc.wstx.sr.StreamScanner.throwParseError(StreamScanner.java:453)
      23:09:34  	at com.ctc.wstx.sr.StreamScanner.reportIllegalChar(StreamScanner.java:2362)
      23:09:34  	at com.ctc.wstx.sr.StreamScanner.checkAndExpandChar(StreamScanner.java:2298)
      23:09:34  	at com.ctc.wstx.sr.StreamScanner.resolveSimpleEntity(StreamScanner.java:1185)
      23:09:34  	at com.ctc.wstx.sr.BasicStreamReader.readTextSecondary(BasicStreamReader.java:4633)
      23:09:34  	at com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:3661)
      23:09:34  	at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3615)
      23:09:34  	... 46 more
      23:09:34  [INFO] ------------------------------------------------------------------------
      23:09:34  [INFO] Total time: 7 minutes 27 seconds
      23:09:34  [INFO] Finished at: Wed Mar 21 23:09:34 CET 2012
      23:09:34  [INFO] Final Memory: 77M/756M
      23:09:34  [INFO] ------------------------------------------------------------------------
      

        Attachments

          Activity

            People

            Assignee:
            godin OLD - Evgeny Mandrikov
            Reporter:
            mrumpf Michael Rumpf
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: