Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: ARTIFACT-SIZE-0.2
    • Fix Version/s: ARTIFACT-SIZE-0.3
    • Component/s: Artifact Size
    • Labels:
      None
    • Environment:
      Windows Sonar 2.8
    • Number of attachments :
      0

      Description

      I just upgraded Sonar 2.7 to 2.8 and tried to run a project which ran OK on Sonar 2.7 but fails here:

      plugin: sonar-artifact-size-plugin-0.2.jar

            [sonar] [INFO]  Sensor VersionEventsSensor... 
            [sonar] [INFO]  Sensor VersionEventsSensor done: 31 ms 
            [sonar] [INFO]  Sensor org.sonar.plugins.artifactsize.ArtifactSizeSensor@a303f8... 
         
        BUILD FAILED 
        java.lang.NullPointerException 
                at org.sonar.plugins.artifactsize.ArtifactSizeSensor.searchArtifactFile(ArtifactSizeSensor.java:77) 
                at org.sonar.plugins.artifactsize.ArtifactSizeSensor.analyse(ArtifactSizeSensor.java:53) 
                at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:58) 
                at org.sonar.batch.phases.Phases.execute(Phases.java:80) 
                at org.sonar.batch.ProjectBatch.execute(ProjectBatch.java:59) 
                at org.sonar.batch.Batch.analyzeModule(Batch.java:164) 
                at org.sonar.batch.Batch.analyzeModules(Batch.java:82) 
                at org.sonar.batch.Batch.execute(Batch.java:62) 
                at org.sonar.ant.Launcher.executeBatch(Launcher.java:121) 
                at org.sonar.ant.Launcher.execute(Launcher.java:60) 
                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:585) 
                at org.sonar.ant.SonarTask.delegateExecution(SonarTask.java:167) 
                at org.sonar.ant.SonarTask.execute(SonarTask.java:151) 
                at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291) 
                at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) 
                at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
                at java.lang.reflect.Method.invoke(Method.java:585) 
                at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106) 
                at org.apache.tools.ant.Task.perform(Task.java:348) 
                at org.apache.tools.ant.Target.execute(Target.java:390) 
                at org.apache.tools.ant.Target.performTasks(Target.java:411) 
                at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397) 
                at org.apache.tools.ant.Project.executeTarget(Project.java:1366) 
                at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41) 
                at org.apache.tools.ant.Project.executeTargets(Project.java:1249) 
                at org.apache.tools.ant.Main.runBuild(Main.java:801) 
                at org.apache.tools.ant.Main.startAnt(Main.java:218) 
                at org.apache.tools.ant.launch.Launcher.run(Launcher.java:280) 
                at org.apache.tools.ant.launch.Launcher.main(Launcher.java:109) 
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Simon Brandhof
            Reporter:
            levi ma levi
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: