Details

    • Number of attachments :
      0

      Description

      13:56:12.515 ERROR - Can not analyze file C:\SonarSource\it-sources\html\Silverpeas-Core-master\war-core\src\main\webapp\selection\jsp\userpanel.jsp
      java.lang.NullPointerException: null
      	at org.sonar.plugins.web.checks.dependencies.LibraryDependencyCheck.expression(LibraryDependencyCheck.java:65) ~[na:na]
      	at org.sonar.plugins.web.visitor.HtmlAstScanner.scanElement(HtmlAstScanner.java:96) ~[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 -

          Works well Dinesh. That's a good opportunity to update the title and the description of this rule.

          Title: Some java packages/classes should not be used in JSP files

          Description : This rule allows to prevent the import of some java packages/classes into JSP files based on a configurable exclusion list.

          The following code snippet illustrates this rule when the exclusion list is 'sql,ArrayList':

          <%@ page import="java.util.ArrayList" %>  <!-- Non-compliant -->
          <%@ page import="java.io.*" %>        <!-- Compliant -->
          <%@ page import="java.sql.*" %>        <!-- Non-compliant -->
          
          Show
          Freddy Mallet added a comment - Works well Dinesh. That's a good opportunity to update the title and the description of this rule. Title: Some java packages/classes should not be used in JSP files Description : This rule allows to prevent the import of some java packages/classes into JSP files based on a configurable exclusion list. The following code snippet illustrates this rule when the exclusion list is 'sql,ArrayList': <%@ page import = "java.util.ArrayList" %> <!-- Non-compliant --> <%@ page import = "java.io.*" %> <!-- Compliant --> <%@ page import = "java.sql.*" %> <!-- Non-compliant -->
          Hide
          Dinesh Bolkensteyn added a comment -

          I've created the following ticket to cover that: SONARPLUGINS-3024

          Show
          Dinesh Bolkensteyn added a comment - I've created the following ticket to cover that: SONARPLUGINS-3024
          Hide
          Dinesh Bolkensteyn added a comment -

          Closing this ticket, your feedback Freddy will be taken into accont by the other ticket.

          Show
          Dinesh Bolkensteyn added a comment - Closing this ticket, your feedback Freddy will be taken into accont by the other ticket.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: