Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: WEB-1.2
    • Fix Version/s: WEB-2.0
    • Component/s: Web
    • Labels:
      None
    • Number of attachments :
      0

      Description

      With default settings.

      13:56:11.704 ERROR - Can not analyze file C:\SonarSource\it-sources\html\Silverpeas-Core-master\config-core\src\main\config\web\weblib.war\look\login\Login.jsp
      java.lang.NullPointerException: null
      	at java.util.regex.Pattern.<init>(Pattern.java:1336) ~[na:1.7.0_04]
      	at java.util.regex.Pattern.compile(Pattern.java:1047) ~[na:1.7.0_04]
      	at org.sonar.plugins.web.checks.header.HeaderCheck.matchHeader(HeaderCheck.java:74) ~[na:na]
      	at org.sonar.plugins.web.checks.header.HeaderCheck.comment(HeaderCheck.java:58) ~[na:na]
      	at org.sonar.plugins.web.visitor.HtmlAstScanner.scanElement(HtmlAstScanner.java:93) ~[na:na]
      	at org.sonar.plugins.web.visitor.HtmlAstScanner.scan(HtmlAstScanner.java:65) ~[na:na]
      	at org.sonar.plugins.web.core.WebSensor.analyse(WebSensor.java:87) ~[na:na]
      	at org.sonar.batch.phases.SensorsExecutor.execute(SensorsExecutor.java:72) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.batch.phases.PhaseExecutor.execute(PhaseExecutor.java:114) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.batch.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:142) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:88) [sonar-plugin-api-3.7-SNAPSHOT.jar:na]
      	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:73) [sonar-plugin-api-3.7-SNAPSHOT.jar:na]
      	at org.sonar.batch.scan.ProjectScanContainer.scan(ProjectScanContainer.java:162) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.batch.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:157) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.batch.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:150) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:88) [sonar-plugin-api-3.7-SNAPSHOT.jar:na]
      	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:73) [sonar-plugin-api-3.7-SNAPSHOT.jar:na]
      	at org.sonar.batch.scan.ScanTask.scan(ScanTask.java:57) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.batch.scan.ScanTask.execute(ScanTask.java:45) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.batch.bootstrap.TaskContainer.doAfterStart(TaskContainer.java:80) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:88) [sonar-plugin-api-3.7-SNAPSHOT.jar:na]
      	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:73) [sonar-plugin-api-3.7-SNAPSHOT.jar:na]
      	at org.sonar.batch.bootstrap.BootstrapContainer.executeTask(BootstrapContainer.java:156) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.batch.bootstrap.BootstrapContainer.doAfterStart(BootstrapContainer.java:144) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.api.platform.ComponentContainer.startComponents(ComponentContainer.java:88) [sonar-plugin-api-3.7-SNAPSHOT.jar:na]
      	at org.sonar.api.platform.ComponentContainer.execute(ComponentContainer.java:73) [sonar-plugin-api-3.7-SNAPSHOT.jar:na]
      	at org.sonar.batch.bootstrapper.Batch.startBatch(Batch.java:86) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:68) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.batch.Batch.execute(Batch.java:103) [sonar-batch-3.7-SNAPSHOT.jar:na]
      	at org.sonar.runner.internal.batch.Launcher.executeBatch(Launcher.java:69) [sonar-runner.jar:na]
      	at org.sonar.runner.internal.batch.Launcher.execute(Launcher.java:61) [sonar-runner.jar:na]
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.7.0_04]
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) ~[na:1.7.0_04]
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.7.0_04]
      	at java.lang.reflect.Method.invoke(Method.java:601) ~[na:1.7.0_04]
      	at org.sonar.runner.Runner.delegateExecution(Runner.java:285) [sonar-runner.jar:na]
      	at org.sonar.runner.Runner.execute(Runner.java:151) [sonar-runner.jar:na]
      	at org.sonar.runner.Main.execute(Main.java:84) [sonar-runner.jar:na]
      	at org.sonar.runner.Main.main(Main.java:56) [sonar-runner.jar:na]
      

        Issue Links

          Activity

          Hide
          Dinesh Bolkensteyn added a comment -

          Done

          Show
          Dinesh Bolkensteyn added a comment - Done
          Hide
          Freddy Mallet added a comment -

          Manually tested !

          Show
          Freddy Mallet added a comment - Manually tested !

            People

            • Assignee:
              Dinesh Bolkensteyn
              Reporter:
              Dinesh Bolkensteyn
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: