Scanning RStudio

Template for a good bug report, formatted with Markdown:

  • versions used (SonarQube, Scanner, Plugin, and any relevant extension)
    /home/sonarqube/sonar-scanner-cli/bin/sonar-scanner -v
    INFO: Scanner configuration file: /home/sonarqube/sonar-scanner-cli/conf/sonar-scanner.properties
    INFO: Project root configuration file: NONE
    INFO: SonarScanner 4.6.2.2472
    INFO: Java 11.0.11 AdoptOpenJDK (64-bit)
    INFO: Linux 4.18.0-240.22.1.el8_3.x86_64 amd64

  • error observed (wrap logs/code around triple quote ``` for proper formatting)

ERROR: Unable to parse source file : 'openshift/aap-rstudio/rstudio-main/src/gwt/tools/prefs/UserStateAccessor.java'
ERROR: Parse error at line 42 column 0: Syntax error on tokens, delete these tokens
ERROR: Unable to run check class org.sonar.java.se.SymbolicExecutionVisitor -  on file 'openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/common/mirrors/ChooseMirrorDialog.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.lang.NullPointerException: null
        at org.eclipse.jdt.core.dom.MethodBinding.filterTypeAnnotations(MethodBinding.java:244)
        at org.eclipse.jdt.core.dom.MethodBinding.getAnnotations(MethodBinding.java:133)
        at org.sonar.java.model.JSymbol.convertMetadata(JSymbol.java:354)
        at org.sonar.java.model.JSymbol.metadata(JSymbol.java:334)
        at org.sonar.java.se.NullableAnnotationUtils.isAnnotatedNonNull(NullableAnnotationUtils.java:152)
        at org.sonar.java.se.ExplodedGraphWalker.handleSpecialMethods(ExplodedGraphWalker.java:814)
        at org.sonar.java.se.ExplodedGraphWalker.executeMethodInvocation(ExplodedGraphWalker.java:799)
        at org.sonar.java.se.ExplodedGraphWalker.visit(ExplodedGraphWalker.java:635)
        at org.sonar.java.se.ExplodedGraphWalker.execute(ExplodedGraphWalker.java:262)
        at org.sonar.java.se.ExplodedGraphWalker.visitMethod(ExplodedGraphWalker.java:218)
        at org.sonar.java.se.ExplodedGraphWalker.visitMethod(ExplodedGraphWalker.java:210)
        at org.sonar.java.se.SymbolicExecutionVisitor.execute(SymbolicExecutionVisitor.java:84)
        at org.sonar.java.se.SymbolicExecutionVisitor.visitNode(SymbolicExecutionVisitor.java:70)
        at org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:100)
        at org.sonar.java.ast.visitors.SubscriptionVisitor.visitChildren(SubscriptionVisitor.java:125)
        at org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:102)
        at org.sonar.java.ast.visitors.SubscriptionVisitor.visitChildren(SubscriptionVisitor.java:125)
        at org.sonar.java.ast.visitors.SubscriptionVisitor.visit(SubscriptionVisitor.java:102)
        at org.sonar.java.ast.visitors.SubscriptionVisitor.scanTree(SubscriptionVisitor.java:83)
        at org.sonar.java.ast.visitors.SubscriptionVisitor.scanFile(SubscriptionVisitor.java:69)
        at org.sonar.java.se.SymbolicExecutionVisitor.scanFile(SymbolicExecutionVisitor.java:59)
        at org.sonar.java.model.VisitorsBridge.lambda$runScanner$0(VisitorsBridge.java:154)
        at org.sonar.java.model.VisitorsBridge.runScanner(VisitorsBridge.java:159)
        at org.sonar.java.model.VisitorsBridge.runScanner(VisitorsBridge.java:154)
        at org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:128)
        at org.sonar.java.ast.JavaAstScanner.simpleScan(JavaAstScanner.java:127)
        at org.sonar.java.ast.JavaAstScanner.scan(JavaAstScanner.java:79)
        at org.sonar.java.JavaSquid.scanSources(JavaSquid.java:130)
        at org.sonar.java.JavaSquid.scan(JavaSquid.java:116)
        at org.sonar.plugins.java.JavaSquidSensor.execute(JavaSquidSensor.java:105)
        at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:59)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:77)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:59)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:392)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:388)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:357)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:150)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy0.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
        at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
        at org.sonarsource.scanner.cli.Main.main(Main.java:61)

ERROR: Unable to run check class org.sonar.java.filters.PostAnalysisIssueFilter -  on file 'openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/common/mirrors/ChooseMirrorDialog.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.lang.NullPointerException: null
        at org.eclipse.jdt.core.dom.MethodBinding.filterTypeAnnotations(MethodBinding.java:244)
        at org.eclipse.jdt.core.dom.MethodBinding.getAnnotations(MethodBinding.java:133)
        at org.sonar.java.model.JSymbol.convertMetadata(JSymbol.java:354)
        at org.sonar.java.model.JSymbol.metadata(JSymbol.java:334)
        at org.sonar.java.filters.GeneratedCodeFilter.isGenerated(GeneratedCodeFilter.java:55)
        at org.sonar.java.filters.GeneratedCodeFilter.visitMethod(GeneratedCodeFilter.java:48)
        at org.sonar.java.model.declaration.MethodTreeImpl.accept(MethodTreeImpl.java:222)
        at org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:40)
        at org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:34)
        at org.sonar.plugins.java.api.tree.BaseTreeVisitor.visitClass(BaseTreeVisitor.java:68)
        at org.sonar.java.filters.GeneratedCodeFilter.visitClass(GeneratedCodeFilter.java:43)
        at org.sonar.java.model.declaration.ClassTreeImpl.accept(ClassTreeImpl.java:220)
        at org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:40)
        at org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:34)
        at org.sonar.plugins.java.api.tree.BaseTreeVisitor.visitClass(BaseTreeVisitor.java:68)
        at org.sonar.java.filters.GeneratedCodeFilter.visitClass(GeneratedCodeFilter.java:43)
        at org.sonar.java.model.declaration.ClassTreeImpl.accept(ClassTreeImpl.java:220)
        at org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:40)
        at org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:34)
        at org.sonar.plugins.java.api.tree.BaseTreeVisitor.visitCompilationUnit(BaseTreeVisitor.java:52)
        at org.sonar.java.model.JavaTree$CompilationUnitTreeImpl.accept(JavaTree.java:185)
        at org.sonar.plugins.java.api.tree.BaseTreeVisitor.scan(BaseTreeVisitor.java:40)
        at org.sonar.java.filters.AnyRuleIssueFilter.scanFile(AnyRuleIssueFilter.java:45)
        at org.sonar.java.filters.GeneratedCodeFilter.scanFile(GeneratedCodeFilter.java:35)
        at org.sonar.java.filters.PostAnalysisIssueFilter.lambda$scanFile$1(PostAnalysisIssueFilter.java:56)
        at java.base/java.util.Arrays$ArrayList.forEach(Unknown Source)
        at java.base/java.util.Collections$UnmodifiableCollection.forEach(Unknown Source)
        at org.sonar.java.filters.PostAnalysisIssueFilter.scanFile(PostAnalysisIssueFilter.java:56)
        at org.sonar.java.model.VisitorsBridge.lambda$runScanner$0(VisitorsBridge.java:154)
        at org.sonar.java.model.VisitorsBridge.runScanner(VisitorsBridge.java:159)
        at org.sonar.java.model.VisitorsBridge.runScanner(VisitorsBridge.java:154)
        at org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:128)
        at org.sonar.java.ast.JavaAstScanner.simpleScan(JavaAstScanner.java:127)
        at org.sonar.java.ast.JavaAstScanner.scan(JavaAstScanner.java:79)
        at org.sonar.java.JavaSquid.scanSources(JavaSquid.java:130)
        at org.sonar.java.JavaSquid.scan(JavaSquid.java:116)
        at org.sonar.plugins.java.JavaSquidSensor.execute(JavaSquidSensor.java:105)
        at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:59)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:77)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:59)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:392)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:388)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:357)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:150)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy0.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
        at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
        at org.sonarsource.scanner.cli.Main.main(Main.java:61)

ERROR: Unable to run check class org.sonar.java.checks.spring.PersistentEntityUsedAsRequestParameterCheck - S4684 on file 'openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/common/mirrors/ChooseMirrorDialog.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.lang.NullPointerException: null
        at org.eclipse.jdt.core.dom.MethodBinding.filterTypeAnnotations(MethodBinding.java:244)
        at org.eclipse.jdt.core.dom.MethodBinding.getAnnotations(MethodBinding.java:133)
        at org.sonar.java.model.JSymbol.convertMetadata(JSymbol.java:354)
        at org.sonar.java.model.JSymbol.metadata(JSymbol.java:334)
        at org.sonar.java.checks.spring.PersistentEntityUsedAsRequestParameterCheck.isRequestMappingAnnotated(PersistentEntityUsedAsRequestParameterCheck.java:69)
        at org.sonar.java.checks.spring.PersistentEntityUsedAsRequestParameterCheck.visitNode(PersistentEntityUsedAsRequestParameterCheck.java:60)
        at org.sonar.java.model.VisitorsBridge$IssuableSubsciptionVisitorsRunner.lambda$visit$6(VisitorsBridge.java:287)
        at org.sonar.java.model.VisitorsBridge$IssuableSubsciptionVisitorsRunner.lambda$forEach$9(VisitorsBridge.java:303)
        at org.sonar.java.model.VisitorsBridge.runScanner(VisitorsBridge.java:159)
        at org.sonar.java.model.VisitorsBridge.access$100(VisitorsBridge.java:62)
        at org.sonar.java.model.VisitorsBridge$IssuableSubsciptionVisitorsRunner.forEach(VisitorsBridge.java:303)
        at org.sonar.java.model.VisitorsBridge$IssuableSubsciptionVisitorsRunner.visit(VisitorsBridge.java:289)
        at org.sonar.java.model.VisitorsBridge$IssuableSubsciptionVisitorsRunner.visitChildren(VisitorsBridge.java:273)
        at org.sonar.java.model.VisitorsBridge$IssuableSubsciptionVisitorsRunner.visit(VisitorsBridge.java:293)
        at org.sonar.java.model.VisitorsBridge$IssuableSubsciptionVisitorsRunner.visitChildren(VisitorsBridge.java:273)
        at org.sonar.java.model.VisitorsBridge$IssuableSubsciptionVisitorsRunner.visit(VisitorsBridge.java:293)
        at org.sonar.java.model.VisitorsBridge$IssuableSubsciptionVisitorsRunner.visitChildren(VisitorsBridge.java:273)
        at org.sonar.java.model.VisitorsBridge$IssuableSubsciptionVisitorsRunner.visit(VisitorsBridge.java:293)
        at org.sonar.java.model.VisitorsBridge$IssuableSubsciptionVisitorsRunner.run(VisitorsBridge.java:264)
        at org.sonar.java.model.VisitorsBridge.visitFile(VisitorsBridge.java:139)
        at org.sonar.java.ast.JavaAstScanner.simpleScan(JavaAstScanner.java:127)
        at org.sonar.java.ast.JavaAstScanner.scan(JavaAstScanner.java:79)
        at org.sonar.java.JavaSquid.scanSources(JavaSquid.java:130)
        at org.sonar.java.JavaSquid.scan(JavaSquid.java:116)
        at org.sonar.plugins.java.JavaSquidSensor.execute(JavaSquidSensor.java:105)
        at org.sonar.scanner.sensor.AbstractSensorWrapper.analyse(AbstractSensorWrapper.java:48)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:85)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.lambda$execute$1(ModuleSensorsExecutor.java:59)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.withModuleStrategy(ModuleSensorsExecutor.java:77)
        at org.sonar.scanner.sensor.ModuleSensorsExecutor.execute(ModuleSensorsExecutor.java:59)
        at org.sonar.scanner.scan.ModuleScanContainer.doAfterStart(ModuleScanContainer.java:82)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.scanner.scan.ProjectScanContainer.scan(ProjectScanContainer.java:392)
        at org.sonar.scanner.scan.ProjectScanContainer.scanRecursively(ProjectScanContainer.java:388)
        at org.sonar.scanner.scan.ProjectScanContainer.doAfterStart(ProjectScanContainer.java:357)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.scanner.bootstrap.GlobalContainer.doAfterStart(GlobalContainer.java:150)
        at org.sonar.core.platform.ComponentContainer.startComponents(ComponentContainer.java:137)
        at org.sonar.core.platform.ComponentContainer.execute(ComponentContainer.java:123)
        at org.sonar.batch.bootstrapper.Batch.doExecute(Batch.java:72)
        at org.sonar.batch.bootstrapper.Batch.execute(Batch.java:66)
        at org.sonarsource.scanner.api.internal.batch.BatchIsolatedLauncher.execute(BatchIsolatedLauncher.java:46)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.base/java.lang.reflect.Method.invoke(Unknown Source)
        at org.sonarsource.scanner.api.internal.IsolatedLauncherProxy.invoke(IsolatedLauncherProxy.java:60)
        at com.sun.proxy.$Proxy0.execute(Unknown Source)
        at org.sonarsource.scanner.api.EmbeddedScanner.doExecute(EmbeddedScanner.java:189)
        at org.sonarsource.scanner.api.EmbeddedScanner.execute(EmbeddedScanner.java:138)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:112)
        at org.sonarsource.scanner.cli.Main.execute(Main.java:75)
        at org.sonarsource.scanner.cli.Main.main(Main.java:61)

INFO: 776/2475 files analyzed, current file: openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/panmirror/outline/PanmirrorOutlineWidget.java
ERROR: Unable to run check class org.sonar.java.se.SymbolicExecutionVisitor -  on file 'openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/workbench/views/source/NewShinyWebApplication.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.lang.NullPointerException: null

ERROR: Unable to run check class org.sonar.java.filters.PostAnalysisIssueFilter -  on file 'openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/workbench/views/source/NewShinyWebApplication.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.lang.NullPointerException: null

ERROR: Unable to run check class org.sonar.java.checks.spring.PersistentEntityUsedAsRequestParameterCheck - S4684 on file 'openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/workbench/views/source/NewShinyWebApplication.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.lang.NullPointerException: null

ERROR: Unable to run check class org.sonar.java.se.SymbolicExecutionVisitor -  on file 'openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/workbench/views/source/DocumentOutlineWidget.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.lang.NullPointerException: null

ERROR: Unable to run check class org.sonar.java.filters.PostAnalysisIssueFilter -  on file 'openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/workbench/views/source/DocumentOutlineWidget.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.lang.NullPointerException: null

ERROR: Unable to run check class org.sonar.java.checks.spring.PersistentEntityUsedAsRequestParameterCheck - S4684 on file 'openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/workbench/views/source/DocumentOutlineWidget.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.lang.NullPointerException: null

INFO: 1051/2475 files analyzed, current file: openshift/aap-rstudio/rstudio-main/src/gwt/src/com/sksamuel/gwt/websockets/Base64Utils.java
INFO: 1440/2475 files analyzed, current file: openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/workbench/ui/WorkbenchScreen.java
INFO: 1824/2475 files analyzed, current file: openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/workbench/views/source/editors/text/AceEditor.java
ERROR: Unable to run check class org.sonar.java.se.SymbolicExecutionVisitor -  on file 'openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/workbench/views/source/NewPlumberAPI.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.lang.NullPointerException: null

ERROR: Unable to run check class org.sonar.java.filters.PostAnalysisIssueFilter -  on file 'openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/workbench/views/source/NewPlumberAPI.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.lang.NullPointerException: null

ERROR: Unable to run check class org.sonar.java.checks.spring.PersistentEntityUsedAsRequestParameterCheck - S4684 on file 'openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/workbench/views/source/NewPlumberAPI.java', To help improve the SonarSource Java Analyzer, please report this problem to SonarSource: see https://community.sonarsource.com/
java.lang.NullPointerException: null

ERROR: Unable to parse source file : 'openshift/aap-rstudio/rstudio-main/src/gwt/tools/prefs/UserPrefsAccessor.java'
ERROR: Parse error at line 45 column 0: Syntax error on tokens, delete these tokens
INFO: 2222/2475 files analyzed, current file: openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/workbench/views/console/events/ConsoleBusyEvent.java
INFO: 2475/2475 source files have been analyzed
INFO: Slowest analyzed files:
    openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/studio/client/workbench/views/source/editors/text/TextEditingTarget.java (1841ms, 277081B)
    openshift/aap-rstudio/rstudio-main/src/gwt/src/org/rstudio/core/client/StringUtil.java (1167ms, 42544B)
WARN: Dependencies/libraries were not provided for analysis of SOURCE files. The 'sonar.java.libraries' property is empty. Verify your configuration, as you might end up with less precise results.
WARN: Unresolved imports/types have been detected during analysis. Enable DEBUG mode to see them.
  • steps to reproduce
/bin/rm -rf /home/sonarqube/rstudio.zip
/bin/wget https://github.com/rstudio/rstudio/archive/refs/heads/main.zip -O /home/sonarqube/rstudio.zip
/bin/unzip /home/sonarqube/rstudio.zip -d /home/sonarqube/openshift/aap-rstudio
/bin/rm -rf /home/sonarqube/rstudio.zip
/bin/cd /home/sonarqube/openshift/aap-rstudio/rstudio-main/src/gwt/
/bin/ls  /home/sonarqube/openshift/aap-rstudio/
/bin/ant -buildfile /home/sonarqube/openshift/aap-rstudio/rstudio-main/src/gwt/build.xml javac

# https://docs.sonarqube.org/latest/analysis/scan/sonarscanner/

/home/sonarqube/sonar-scanner-cli/bin/sonar-scanner \
  -Dsonar.projectKey=openshift \
  -Dsonar.sources=/home/sonarqube/openshift/ \
  -Dsonar.host.url=http://localhost:9000 \
  -Dsonar.java.binaries=/home/sonarqube/openshift/aap-rstudio/rstudio-main/src/gwt/bin/ \
  -Dsonar.login=...
  • potential workaround

I’m pretty new to scanning with sonarqube, so I plan to ignore the error… I’m just reporting it because the software asked me to…

P.S.: use the #bug:fault sub-category if you’re hitting a specific crash/error , or the #bug:fp sub-category for rules-related behaviour

Hello @Cynthia_Rempel

Thanks for taking the time to report these issues, it is really helpful to improve our products.

ERROR: Unable to parse source file : ‘openshift/aap-rstudio/rstudio-main/src/gwt/tools/prefs/UserStateAccessor.java’
ERROR: Parse error at line 42 column 0: Syntax error on tokens, delete these tokens

UserStateAccessor.java is generated, and looking at it, it is not valid Java code. It is therefore expected, you should consider excluding generated files from the analysis.

Then, the other errors are more interesting, I therefore created a ticket to improve the situation: SONARJAVA-3872.
The good part is that we made sure to keep the consequences relatively low: a few lines in the logs and part of the rules not executed on the current file, but the analysis should continue to the next one.

All in all: nothing alarming, especially if you are just starting to play with the tool.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.