Micro Focus COBOL for Eclipse Essential Support 9.0.74 com.microfocus.eclipse.coretools
Eclipse EGit Git integration for Eclipse 6.2.0.202206071550-r org.eclipse.egit
And a thorough description of the problem / question:
Analyzing a Cobol Source in Micro Focus COBOL for Eclipse throws the following exception:
"
Error during execution of SonarLint analysis
java.lang.NullPointerException: Cannot invoke “java.util.Optional.ifPresent(java.util.function.Consumer)” because the return value of “org.sonarlint.eclipse.core.resource.ISonarLintProject.find(String)” is null
at org.sonarlint.eclipse.core.internal.tracking.ProjectIssueTracker.lambda$3(ProjectIssueTracker.java:140)
at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:721)
at org.sonarlint.eclipse.core.internal.tracking.ProjectIssueTracker.trackWithServerIssues(ProjectIssueTracker.java:139)
at org.sonarlint.eclipse.core.internal.jobs.AnalyzeConnectedProjectJob.trackFileIssues(AnalyzeConnectedProjectJob.java:88)
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.trackIssues(AbstractAnalyzeProjectJob.java:404)
at org.sonarlint.eclipse.core.internal.jobs.AnalyzeConnectedProjectJob.trackIssues(AnalyzeConnectedProjectJob.java:76)
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.lambda$25(AbstractAnalyzeProjectJob.java:368)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2380)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2400)
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.updateMarkers(AbstractAnalyzeProjectJob.java:368)
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.runAnalysisAndUpdateMarkers(AbstractAnalyzeProjectJob.java:268)
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.doRun(AbstractAnalyzeProjectJob.java:187)
at org.sonarlint.eclipse.core.internal.jobs.AbstractSonarJob.run(AbstractSonarJob.java:37)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
"
Question: How to avoid this exception?
What has to be done?
thank you for reaching out to us on that matter. After some investigation into that issue, I think I have to require some more information from you, please.
Could you please share with me the full logs as described HERE when you re-open the file again?
Additionally can you please provide me with the list of all installed features and plug-ins in your installation? You can access them by exporting them at About Eclipse → Installation Details → Features and About Eclipse → Installation Details → Plug-ins.
The reason behind the latter request is that I assume there is a plug-in installed that is extending SonarLint and therefore causing that issue. It must not be a plug-in installed by you but I assume something coming with Micro Focus COBOL itself.
If you don’t feel comfortable sharing the information publicly in the thread, you can also reach out to me and provide it to me via private message.
Hello Tobias,
thank you for your effort.
Here are the required information from sonarlint:
Starting SonarLint for Eclipse 10.0.1.81733
Using JRE from C:\Users\Public\Micro Focus\Enterprise Developer\eclipse\plugins\org.sonarlint.eclipse.sloop.windows.x64_10.0.1.81733\sloop\jre
SonarLint backend started, instance=org.sonarsource.sonarlint.core.rpc.impl.SonarLintRpcServerImpl@18df8434
Started embedded server on port 64120
Can’t open directory channel. Log directory fsync won’t be performed.
Downloaded plugin list in 43ms
[SYNC] Synchronizing analyzer configuration for project ‘dvag_mainframe’
Downloaded settings in 67ms
[SYNC] Active rules for ‘abap’ are up-to-date
[SYNC] Active rules for ‘apex’ are up-to-date
[SYNC] Active rules for ‘cobol’ are up-to-date
[SYNC] Active rules for ‘css’ are up-to-date
[SYNC] Active rules for ‘java’ are up-to-date
[SYNC] Active rules for ‘js’ are up-to-date
[SYNC] Active rules for ‘jsp’ are up-to-date
[SYNC] Active rules for ‘kotlin’ are up-to-date
[SYNC] Active rules for ‘php’ are up-to-date
[SYNC] Active rules for ‘pli’ are up-to-date
[SYNC] Active rules for ‘plsql’ are up-to-date
[SYNC] Active rules for ‘py’ are up-to-date
[SYNC] Active rules for ‘rpg’ are up-to-date
[SYNC] Active rules for ‘ruby’ are up-to-date
[SYNC] Active rules for ‘scala’ are up-to-date
[SYNC] Active rules for ‘secrets’ are up-to-date
[SYNC] Active rules for ‘ts’ are up-to-date
[SYNC] Active rules for ‘tsql’ are up-to-date
[SYNC] Active rules for ‘web’ are up-to-date
[SYNC] Active rules for ‘xml’ are up-to-date
Synchronizing project branches for project ‘dvag_mainframe’
[SYNC] Synchronizing issues for project ‘dvag_mainframe’ on branch ‘produktion’
Node.js could not be automatically detected, has to be configured manually in the SonarLint preferences!
[SYNC] Synchronizing taint issues for project ‘dvag_mainframe’ on branch ‘produktion’
[SYNC] Synchronizing issues for project ‘dvag_mainframe’ on branch ‘produktion’
[SYNC] Synchronizing taint issues for project ‘dvag_mainframe’ on branch ‘produktion’
GET 200 https://<HIDDEN_FOR_PRIVACY_REASONS>/api/developers/search_events?projects=dvag_mainframe&from=2024-04-08T09%3A47%3A07%2B0200 | response time=49ms
Storing last event polling in C:\Projekte\mainframe\workspace.sonarlint\storage\6170702d736f6e61722d30312d7072642e617a75726577656273697465732e6e6574\projects\647661675f6d61696e6672616d65\last_event_polling.pb
Trigger: MANUAL
Analysis started with the engines being ready
Computing file exclusion for uri ‘file:/C:/Projekte/mainframe/repositories/mainframe/test/cobol/PMZI0052.CBL’
Server excluded sources: /target/generated-sources/ /src/test/java/ /target/generated/
File exclusion for uri ‘file:/C:/Projekte/mainframe/repositories/mainframe/test/cobol/PMZI0052.CBL’ is false
Clear markers on 0 excluded files
SonarLint processing file /AT-201/cobol/PMZI0052.CBL…
Connected mode (using configuration of ‘dvag_mainframe’ in connection ‘<HIDDEN_FOR_PRIVACY_REASONS>’)
Starting analysis with configuration:
[
baseDir: C:\Projekte\mainframe\workspace\Projekte\AT-201
extraProperties: {sonar.cobol.copy.suffixes=cbl,cob,cobol,copy,cpy, sonar.cobol.file.suffixes=cbl,cob,cobol,copy,cpy, sonar.pli.file.suffixes=ibmpli,pl1,pli,plm,inc}
moduleKey: null
inputFiles: [
file:/C:/Projekte/mainframe/repositories/mainframe/test/cobol/PMZI0052.CBL (UTF-8)
]
]
Starting SonarLint engine for connection ‘<HIDDEN_FOR_PRIVACY_REASONS>’…
Plugin ‘JavaScript/TypeScript/CSS Code Quality and Security’ requires Node.js 16.0.0. Skip loading it.
Loaded 16 plugins
Python Code Quality and Security 3.24.1.11916 (python)
RPG Code Quality 3.3.0.3147 (rpg)
Kotlin Code Quality and Security 2.12.0.1956 (kotlin)
T-SQL Code Quality and Security 1.7.0.5449 (tsql)
PL/I Code Quality and Security 1.12.0.3443 (pli)
Apex Code Quality and Security 1.11.0.3905 (sonarapex)
PL/SQL Code Quality and Security 3.8.0.4948 (plsql)
Ruby Code Quality and Security 1.11.0.3905 (ruby)
Scala Code Quality and Security 1.11.0.3905 (sonarscala)
Java Code Quality and Security 7.16.0.30901 (java)
COBOL Code Quality 5.2.1.7644 (cobol)
HTML Code Quality and Security 3.14.0.5048 (web)
XML Code Quality and Security 2.10.0.4108 (xml)
PHP Code Quality and Security 3.27.1.9352 (php)
Text Code Quality and Security 2.8.0.1635 (text)
ABAP Code Quality and Security 3.11.0.4030 (abap)
css: 23 active rules
Extracting rules metadata for connection ‘<HIDDEN_FOR_PRIVACY_REASONS>’
Loaded 17 plugins
Python Code Quality and Security 3.24.1.11916 (python)
RPG Code Quality 3.3.0.3147 (rpg)
Kotlin Code Quality and Security 2.12.0.1956 (kotlin)
PL/I Code Quality and Security 1.12.0.3443 (pli)
T-SQL Code Quality and Security 1.7.0.5449 (tsql)
Apex Code Quality and Security 1.11.0.3905 (sonarapex)
JavaScript/TypeScript/CSS Code Quality and Security 10.12.0.25537 (javascript)
Ruby Code Quality and Security 1.11.0.3905 (ruby)
PL/SQL Code Quality and Security 3.8.0.4948 (plsql)
Scala Code Quality and Security 1.11.0.3905 (sonarscala)
Java Code Quality and Security 7.16.0.30901 (java)
COBOL Code Quality 5.2.1.7644 (cobol)
HTML Code Quality and Security 3.14.0.5048 (web)
XML Code Quality and Security 2.10.0.4108 (xml)
PHP Code Quality and Security 3.27.1.9352 (php)
Text Code Quality and Security 2.8.0.1635 (text)
ABAP Code Quality and Security 3.11.0.4030 (abap)
Cannot connect to server event-stream (500), retrying in 60s
Received event-stream data while not connected: 500 - The request timed out.
500 - The request timed out.
The web server failed to respond within the specified time.
scala: 30 active rules
Rule scala:S1313 is enabled on the server, but not available in SonarLint
Rule scala:S2068 is enabled on the server, but not available in SonarLint
jsp: 6 active rules
Rule findsecbugs-jsp:JSP_JSTL_OUT is enabled on the server, but not available in SonarLint
Rule findsecbugs-jsp:XSS_REQUEST_PARAMETER_TO_JSP_WRITER is enabled on the server, but not available in SonarLint
Rule findsecbugs-jsp:JSP_INCLUDE is enabled on the server, but not available in SonarLint
Rule findsecbugs-jsp:JSP_XSLT is enabled on the server, but not available in SonarLint
Rule findsecbugs-jsp:JSP_SPRING_EVAL is enabled on the server, but not available in SonarLint
Rule findsecbugs-jsp:XSS_JSP_PRINT is enabled on the server, but not available in SonarLint
kotlin: 94 active rules
Rule kotlin:S5322 is enabled on the server, but not available in SonarLint
Rule kotlin:S5324 is enabled on the server, but not available in SonarLint
Rule kotlin:S5320 is enabled on the server, but not available in SonarLint
Rule kotlin:S6293 is enabled on the server, but not available in SonarLint
Rule kotlin:S4790 is enabled on the server, but not available in SonarLint
Rule kotlin:S6291 is enabled on the server, but not available in SonarLint
Rule kotlin:S4507 is enabled on the server, but not available in SonarLint
Rule kotlin:S2245 is enabled on the server, but not available in SonarLint
Rule kotlin:S1313 is enabled on the server, but not available in SonarLint
Rule kotlin:S6363 is enabled on the server, but not available in SonarLint
Rule kotlin:S6288 is enabled on the server, but not available in SonarLint
Rule kotlin:S6362 is enabled on the server, but not available in SonarLint
Rule kotlin:S2068 is enabled on the server, but not available in SonarLint
Rule kotlin:S5332 is enabled on the server, but not available in SonarLint
Rule kotlin:S6300 is enabled on the server, but not available in SonarLint
rpg: 30 active rules
Rule rpg:S4507 is enabled on the server, but not available in SonarLint
js: 234 active rules
Rule jssecurity:S5146 is enabled on the server, but not available in SonarLint
Rule jssecurity:S5147 is enabled on the server, but not available in SonarLint
Rule javascript:S5728 is enabled on the server, but not available in SonarLint
Rule javascript:S5604 is enabled on the server, but not available in SonarLint
Rule javascript:S5725 is enabled on the server, but not available in SonarLint
Rule jssecurity:S3649 is enabled on the server, but not available in SonarLint
Rule javascript:S4507 is enabled on the server, but not available in SonarLint
Rule javascript:S6245 is enabled on the server, but not available in SonarLint
Rule javascript:S4502 is enabled on the server, but not available in SonarLint
Rule javascript:S6249 is enabled on the server, but not available in SonarLint
Rule javascript:S6252 is enabled on the server, but not available in SonarLint
Rule javascript:S5042 is enabled on the server, but not available in SonarLint
Rule javascript:S5148 is enabled on the server, but not available in SonarLint
Rule jssecurity:S5131 is enabled on the server, but not available in SonarLint
Rule jssecurity:S6105 is enabled on the server, but not available in SonarLint
Rule javascript:S4721 is enabled on the server, but not available in SonarLint
Rule jssecurity:S5144 is enabled on the server, but not available in SonarLint
Rule jssecurity:S6350 is enabled on the server, but not available in SonarLint
Rule jssecurity:S2631 is enabled on the server, but not available in SonarLint
Rule javascript:S5247 is enabled on the server, but not available in SonarLint
Rule javascript:S4036 is enabled on the server, but not available in SonarLint
Rule javascript:S5122 is enabled on the server, but not available in SonarLint
Rule javascript:S6330 is enabled on the server, but not available in SonarLint
Rule javascript:S6332 is enabled on the server, but not available in SonarLint
Rule javascript:S6333 is enabled on the server, but not available in SonarLint
Rule jssecurity:S2083 is enabled on the server, but not available in SonarLint
Rule javascript:S6327 is enabled on the server, but not available in SonarLint
Rule javascript:S6329 is enabled on the server, but not available in SonarLint
Rule javascript:S1313 is enabled on the server, but not available in SonarLint
Rule javascript:S2092 is enabled on the server, but not available in SonarLint
Rule javascript:S2077 is enabled on the server, but not available in SonarLint
Rule javascript:S6319 is enabled on the server, but not available in SonarLint
Rule javascript:S2068 is enabled on the server, but not available in SonarLint
Rule javascript:S6308 is enabled on the server, but not available in SonarLint
Rule javascript:S5332 is enabled on the server, but not available in SonarLint
Rule javascript:S5693 is enabled on the server, but not available in SonarLint
Rule jssecurity:S5696 is enabled on the server, but not available in SonarLint
Rule jssecurity:S5334 is enabled on the server, but not available in SonarLint
Rule javascript:S6302 is enabled on the server, but not available in SonarLint
Rule javascript:S6303 is enabled on the server, but not available in SonarLint
Rule jssecurity:S2076 is enabled on the server, but not available in SonarLint
Rule javascript:S5443 is enabled on the server, but not available in SonarLint
Rule javascript:S1523 is enabled on the server, but not available in SonarLint
Rule javascript:S2612 is enabled on the server, but not available in SonarLint
Rule javascript:S5689 is enabled on the server, but not available in SonarLint
Rule javascript:S5691 is enabled on the server, but not available in SonarLint
Rule jssecurity:S6096 is enabled on the server, but not available in SonarLint
Rule jssecurity:S5883 is enabled on the server, but not available in SonarLint
Rule javascript:S4790 is enabled on the server, but not available in SonarLint
Rule javascript:S6299 is enabled on the server, but not available in SonarLint
Rule jssecurity:S6287 is enabled on the server, but not available in SonarLint
Rule javascript:S2245 is enabled on the server, but not available in SonarLint
Rule javascript:S3330 is enabled on the server, but not available in SonarLint
Rule javascript:S5759 is enabled on the server, but not available in SonarLint
Rule javascript:S5757 is enabled on the server, but not available in SonarLint
Rule javascript:S5743 is enabled on the server, but not available in SonarLint
Rule javascript:S5742 is enabled on the server, but not available in SonarLint
Rule javascript:S6275 is enabled on the server, but not available in SonarLint
Rule javascript:S6281 is enabled on the server, but not available in SonarLint
Rule javascript:S5732 is enabled on the server, but not available in SonarLint
Rule javascript:S5852 is enabled on the server, but not available in SonarLint
Rule javascript:S5730 is enabled on the server, but not available in SonarLint
Rule javascript:S5739 is enabled on the server, but not available in SonarLint
Rule javascript:S6265 is enabled on the server, but not available in SonarLint
Rule javascript:S5736 is enabled on the server, but not available in SonarLint
Rule javascript:S6268 is enabled on the server, but not available in SonarLint
Rule javascript:S5734 is enabled on the server, but not available in SonarLint
Rule javascript:S6270 is enabled on the server, but not available in SonarLint
py: 206 active rules
Rule python:S5443 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S2091 is enabled on the server, but not available in SonarLint
Rule python:S2612 is enabled on the server, but not available in SonarLint
Rule python:S2068 is enabled on the server, but not available in SonarLint
Rule python:S6308 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5131 is enabled on the server, but not available in SonarLint
Rule python:S5332 is enabled on the server, but not available in SonarLint
Rule python:S6303 is enabled on the server, but not available in SonarLint
Rule pythonbugs:S5633 is enabled on the server, but not available in SonarLint
Rule python:S6302 is enabled on the server, but not available in SonarLint
Rule python:S6304 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5135 is enabled on the server, but not available in SonarLint
Rule python:S6319 is enabled on the server, but not available in SonarLint
Rule python:S2077 is enabled on the server, but not available in SonarLint
Rule pythonbugs:S2259 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S2631 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S2078 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S2076 is enabled on the server, but not available in SonarLint
Rule python:S6329 is enabled on the server, but not available in SonarLint
Rule python:S4828 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S2083 is enabled on the server, but not available in SonarLint
Rule python:S6327 is enabled on the server, but not available in SonarLint
Rule python:S1313 is enabled on the server, but not available in SonarLint
Rule python:S6332 is enabled on the server, but not available in SonarLint
Rule python:S5122 is enabled on the server, but not available in SonarLint
Rule python:S6333 is enabled on the server, but not available in SonarLint
Rule python:S5247 is enabled on the server, but not available in SonarLint
Rule python:S6330 is enabled on the server, but not available in SonarLint
Rule python:S2092 is enabled on the server, but not available in SonarLint
Rule python:S3752 is enabled on the server, but not available in SonarLint
Rule python:S6463 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5334 is enabled on the server, but not available in SonarLint
Rule python:S4502 is enabled on the server, but not available in SonarLint
Rule python:S4507 is enabled on the server, but not available in SonarLint
Rule pythonbugs:S2583 is enabled on the server, but not available in SonarLint
Rule python:S6245 is enabled on the server, but not available in SonarLint
Rule pythonbugs:S2589 is enabled on the server, but not available in SonarLint
Rule python:S5042 is enabled on the server, but not available in SonarLint
Rule python:S6252 is enabled on the server, but not available in SonarLint
Rule python:S6265 is enabled on the server, but not available in SonarLint
Rule python:S6270 is enabled on the server, but not available in SonarLint
Rule python:S6275 is enabled on the server, but not available in SonarLint
Rule python:S2245 is enabled on the server, but not available in SonarLint
Rule python:S3330 is enabled on the server, but not available in SonarLint
Rule pythonbugs:S6465 is enabled on the server, but not available in SonarLint
Rule pythonbugs:S6464 is enabled on the server, but not available in SonarLint
Rule pythonbugs:S6466 is enabled on the server, but not available in SonarLint
Rule python:S6281 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S6287 is enabled on the server, but not available in SonarLint
Rule python:S2257 is enabled on the server, but not available in SonarLint
Rule python:S4792 is enabled on the server, but not available in SonarLint
Rule python:S4790 is enabled on the server, but not available in SonarLint
Rule pythonbugs:S6417 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S6350 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S3649 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5144 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5146 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5145 is enabled on the server, but not available in SonarLint
Rule pythonsecurity:S5147 is enabled on the server, but not available in SonarLint
pli: 17 active rules
tsql: 57 active rules
Rule tsql:S2068 is enabled on the server, but not available in SonarLint
Rule tsql:S4790 is enabled on the server, but not available in SonarLint
Rule tsql:S1523 is enabled on the server, but not available in SonarLint
Rule tsql:S1313 is enabled on the server, but not available in SonarLint
secrets: 7 active rules
apex: 41 active rules
Rule apex:S5378 is enabled on the server, but not available in SonarLint
Rule apex:S2068 is enabled on the server, but not available in SonarLint
Rule apex:S1313 is enabled on the server, but not available in SonarLint
plsql: 132 active rules
Rule plsql:S4790 is enabled on the server, but not available in SonarLint
Rule plsql:S1523 is enabled on the server, but not available in SonarLint
ruby: 30 active rules
Rule ruby:S2068 is enabled on the server, but not available in SonarLint
Rule ruby:S1313 is enabled on the server, but not available in SonarLint
java: 506 active rules
Rule java:S2077 is enabled on the server, but not available in SonarLint
Rule java:S2092 is enabled on the server, but not available in SonarLint
Rule java:S5122 is enabled on the server, but not available in SonarLint
Rule java:S5247 is enabled on the server, but not available in SonarLint
Rule java:S4036 is enabled on the server, but not available in SonarLint
Rule javasecurity:S6173 is enabled on the server, but not available in SonarLint
Rule javasecurity:S6287 is enabled on the server, but not available in SonarLint
Rule javasecurity:S6398 is enabled on the server, but not available in SonarLint
Rule javasecurity:S6399 is enabled on the server, but not available in SonarLint
Rule java:S6362 is enabled on the server, but not available in SonarLint
Rule java:S6363 is enabled on the server, but not available in SonarLint
Rule javasecurity:S6390 is enabled on the server, but not available in SonarLint
Rule javasecurity:S6384 is enabled on the server, but not available in SonarLint
Rule java:S5042 is enabled on the server, but not available in SonarLint
Rule java:S6263 is enabled on the server, but not available in SonarLint
Rule javasecurity:S5144 is enabled on the server, but not available in SonarLint
Rule javasecurity:S6350 is enabled on the server, but not available in SonarLint
Rule javasecurity:S5147 is enabled on the server, but not available in SonarLint
Rule javasecurity:S5146 is enabled on the server, but not available in SonarLint
Rule javasecurity:S5145 is enabled on the server, but not available in SonarLint
Rule java:S3330 is enabled on the server, but not available in SonarLint
Rule java:S2245 is enabled on the server, but not available in SonarLint
Rule java:S4544 is enabled on the server, but not available in SonarLint
Rule javasecurity:S5131 is enabled on the server, but not available in SonarLint
Rule javasecurity:S5135 is enabled on the server, but not available in SonarLint
Rule java:S4790 is enabled on the server, but not available in SonarLint
Rule java:S4792 is enabled on the server, but not available in SonarLint
Rule java:S2257 is enabled on the server, but not available in SonarLint
Rule java:S4434 is enabled on the server, but not available in SonarLint
Rule javasecurity:S2091 is enabled on the server, but not available in SonarLint
Rule javasecurity:S2083 is enabled on the server, but not available in SonarLint
Rule javasecurity:S2078 is enabled on the server, but not available in SonarLint
Rule javasecurity:S2076 is enabled on the server, but not available in SonarLint
Rule javasecurity:S5334 is enabled on the server, but not available in SonarLint
Rule java:S5320 is enabled on the server, but not available in SonarLint
Rule java:S5322 is enabled on the server, but not available in SonarLint
Rule java:S5443 is enabled on the server, but not available in SonarLint
Rule java:S5324 is enabled on the server, but not available in SonarLint
Rule java:S5689 is enabled on the server, but not available in SonarLint
Rule java:S6418 is enabled on the server, but not available in SonarLint
Rule java:S5693 is enabled on the server, but not available in SonarLint
Rule java:S5332 is enabled on the server, but not available in SonarLint
Rule java:S6300 is enabled on the server, but not available in SonarLint
Rule java:S2068 is enabled on the server, but not available in SonarLint
Rule java:S5804 is enabled on the server, but not available in SonarLint
Rule javasecurity:S5883 is enabled on the server, but not available in SonarLint
Rule java:S3752 is enabled on the server, but not available in SonarLint
Rule java:S4502 is enabled on the server, but not available in SonarLint
Rule java:S4507 is enabled on the server, but not available in SonarLint
Rule java:S4512 is enabled on the server, but not available in SonarLint
Rule java:S5852 is enabled on the server, but not available in SonarLint
Rule javabugs:S6417 is enabled on the server, but not available in SonarLint
Rule javabugs:S6416 is enabled on the server, but not available in SonarLint
Rule javasecurity:S3649 is enabled on the server, but not available in SonarLint
Rule java:S6288 is enabled on the server, but not available in SonarLint
Rule javabugs:S2190 is enabled on the server, but not available in SonarLint
Rule java:S6291 is enabled on the server, but not available in SonarLint
Rule java:S6293 is enabled on the server, but not available in SonarLint
Rule javabugs:S6322 is enabled on the server, but not available in SonarLint
Rule javabugs:S6320 is enabled on the server, but not available in SonarLint
Rule javasecurity:S2631 is enabled on the server, but not available in SonarLint
Rule java:S1313 is enabled on the server, but not available in SonarLint
Rule java:S2612 is enabled on the server, but not available in SonarLint
Rule javasecurity:S6096 is enabled on the server, but not available in SonarLint
cobol: 124 active rules
Rule cobol:S4507 is enabled on the server, but not available in SonarLint
Rule cobol:SQL.SelectWithNoWhereClauseCheck is enabled on the server, but not available in SonarLint
Rule cobol:SQL.DynamicSqlCheck is enabled on the server, but not available in SonarLint
web: 28 active rules
Rule Web:S5725 is enabled on the server, but not available in SonarLint
Rule Web:S5148 is enabled on the server, but not available in SonarLint
xml: 24 active rules
Rule xml:S4507 is enabled on the server, but not available in SonarLint
Rule xml:S2068 is enabled on the server, but not available in SonarLint
Rule xml:S6358 is enabled on the server, but not available in SonarLint
Rule xml:S5604 is enabled on the server, but not available in SonarLint
Rule xml:S6361 is enabled on the server, but not available in SonarLint
Rule xml:S5122 is enabled on the server, but not available in SonarLint
Rule xml:S5332 is enabled on the server, but not available in SonarLint
Rule xml:S5322 is enabled on the server, but not available in SonarLint
Rule xml:S3330 is enabled on the server, but not available in SonarLint
php: 197 active rules
Rule php:S5693 is enabled on the server, but not available in SonarLint
Rule php:S5332 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S2083 is enabled on the server, but not available in SonarLint
Rule php:S2068 is enabled on the server, but not available in SonarLint
Rule php:S2077 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S2091 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S2631 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S2078 is enabled on the server, but not available in SonarLint
Rule php:S1523 is enabled on the server, but not available in SonarLint
Rule php:S2612 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5335 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S2076 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5334 is enabled on the server, but not available in SonarLint
Rule php:S5328 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S6350 is enabled on the server, but not available in SonarLint
Rule php:S3330 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5144 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5146 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5145 is enabled on the server, but not available in SonarLint
Rule php:S2245 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S3649 is enabled on the server, but not available in SonarLint
Rule php:S4792 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5131 is enabled on the server, but not available in SonarLint
Rule php:S4790 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5135 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S6173 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S5883 is enabled on the server, but not available in SonarLint
Rule phpsecurity:S6287 is enabled on the server, but not available in SonarLint
Rule php:S4502 is enabled on the server, but not available in SonarLint
Rule php:S4507 is enabled on the server, but not available in SonarLint
Rule php:S5042 is enabled on the server, but not available in SonarLint
Rule php:S6341 is enabled on the server, but not available in SonarLint
Rule php:S6343 is enabled on the server, but not available in SonarLint
Rule php:S6345 is enabled on the server, but not available in SonarLint
Rule php:S6346 is enabled on the server, but not available in SonarLint
Rule php:S6348 is enabled on the server, but not available in SonarLint
Rule php:S1313 is enabled on the server, but not available in SonarLint
Rule php:S4828 is enabled on the server, but not available in SonarLint
Rule php:S5122 is enabled on the server, but not available in SonarLint
Rule php:S2092 is enabled on the server, but not available in SonarLint
abap: 67 active rules
Rule abap:S1313 is enabled on the server, but not available in SonarLint
Rule abap:S1492 is enabled on the server, but not available in SonarLint
Rule abap:S1493 is enabled on the server, but not available in SonarLint
Rule abap:S2068 is enabled on the server, but not available in SonarLint
Rule abap:S4721 is enabled on the server, but not available in SonarLint
Rule abap:S4790 is enabled on the server, but not available in SonarLint
ts: 223 active rules
Rule typescript:S5728 is enabled on the server, but not available in SonarLint
Rule typescript:S5604 is enabled on the server, but not available in SonarLint
Rule typescript:S5725 is enabled on the server, but not available in SonarLint
Rule typescript:S5730 is enabled on the server, but not available in SonarLint
Rule typescript:S5732 is enabled on the server, but not available in SonarLint
Rule typescript:S6268 is enabled on the server, but not available in SonarLint
Rule typescript:S5852 is enabled on the server, but not available in SonarLint
Rule typescript:S6265 is enabled on the server, but not available in SonarLint
Rule typescript:S5739 is enabled on the server, but not available in SonarLint
Rule typescript:S5734 is enabled on the server, but not available in SonarLint
Rule typescript:S5736 is enabled on the server, but not available in SonarLint
Rule typescript:S6270 is enabled on the server, but not available in SonarLint
Rule typescript:S5743 is enabled on the server, but not available in SonarLint
Rule typescript:S5742 is enabled on the server, but not available in SonarLint
Rule typescript:S6275 is enabled on the server, but not available in SonarLint
Rule tssecurity:S5883 is enabled on the server, but not available in SonarLint
Rule typescript:S6281 is enabled on the server, but not available in SonarLint
Rule typescript:S2245 is enabled on the server, but not available in SonarLint
Rule typescript:S3330 is enabled on the server, but not available in SonarLint
Rule typescript:S5759 is enabled on the server, but not available in SonarLint
Rule typescript:S5757 is enabled on the server, but not available in SonarLint
Rule tssecurity:S6287 is enabled on the server, but not available in SonarLint
Rule typescript:S6299 is enabled on the server, but not available in SonarLint
Rule typescript:S4790 is enabled on the server, but not available in SonarLint
Rule tssecurity:S2076 is enabled on the server, but not available in SonarLint
Rule tssecurity:S2631 is enabled on the server, but not available in SonarLint
Rule tssecurity:S5696 is enabled on the server, but not available in SonarLint
Rule tssecurity:S5334 is enabled on the server, but not available in SonarLint
Rule tssecurity:S6096 is enabled on the server, but not available in SonarLint
Rule typescript:S5443 is enabled on the server, but not available in SonarLint
Rule typescript:S5689 is enabled on the server, but not available in SonarLint
Rule typescript:S1523 is enabled on the server, but not available in SonarLint
Rule typescript:S2612 is enabled on the server, but not available in SonarLint
Rule tssecurity:S6350 is enabled on the server, but not available in SonarLint
Rule tssecurity:S5144 is enabled on the server, but not available in SonarLint
Rule tssecurity:S5146 is enabled on the server, but not available in SonarLint
Rule tssecurity:S5147 is enabled on the server, but not available in SonarLint
Rule typescript:S5691 is enabled on the server, but not available in SonarLint
Rule typescript:S6303 is enabled on the server, but not available in SonarLint
Rule typescript:S2068 is enabled on the server, but not available in SonarLint
Rule typescript:S6302 is enabled on the server, but not available in SonarLint
Rule typescript:S5693 is enabled on the server, but not available in SonarLint
Rule typescript:S5332 is enabled on the server, but not available in SonarLint
Rule tssecurity:S6105 is enabled on the server, but not available in SonarLint
Rule typescript:S6308 is enabled on the server, but not available in SonarLint
Rule tssecurity:S5131 is enabled on the server, but not available in SonarLint
Rule typescript:S2077 is enabled on the server, but not available in SonarLint
Rule typescript:S6319 is enabled on the server, but not available in SonarLint
Rule typescript:S6329 is enabled on the server, but not available in SonarLint
Rule tssecurity:S2083 is enabled on the server, but not available in SonarLint
Rule typescript:S1313 is enabled on the server, but not available in SonarLint
Rule typescript:S6327 is enabled on the server, but not available in SonarLint
Rule typescript:S2092 is enabled on the server, but not available in SonarLint
Rule typescript:S4036 is enabled on the server, but not available in SonarLint
Rule typescript:S5247 is enabled on the server, but not available in SonarLint
Rule typescript:S6332 is enabled on the server, but not available in SonarLint
Rule typescript:S6333 is enabled on the server, but not available in SonarLint
Rule typescript:S6330 is enabled on the server, but not available in SonarLint
Rule typescript:S5122 is enabled on the server, but not available in SonarLint
Rule typescript:S4721 is enabled on the server, but not available in SonarLint
Rule typescript:S5148 is enabled on the server, but not available in SonarLint
Rule typescript:S6249 is enabled on the server, but not available in SonarLint
Rule typescript:S6245 is enabled on the server, but not available in SonarLint
Rule typescript:S4507 is enabled on the server, but not available in SonarLint
Rule typescript:S4502 is enabled on the server, but not available in SonarLint
Rule typescript:S6252 is enabled on the server, but not available in SonarLint
Rule typescript:S5042 is enabled on the server, but not available in SonarLint
Rule tssecurity:S3649 is enabled on the server, but not available in SonarLint
Creating transient module container
Start analysis
Index files
Language of file “file:/C:/Projekte/mainframe/repositories/mainframe/test/cobol/PMZI0052.CBL” is detected to be “COBOL”
1 file indexed
Setting filesystem encoding: UTF-8
‘JavaSensor’ skipped because there is no related files in the current project
Execute Sensor: CobolSquidSensor
About to analyse COBOL Programs using ‘ibm-enterprise-cobol’ dialect and ‘fixed’ source code format.
Analysis cache is disabled, we are in SonarLint context
1 source file to be analyzed
Unable to find copybook ‘DRZI0019’ (at line=110 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DRAT0004’ (at line=126 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DRAT0006’ (at line=131 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DRAT0021’ (at line=136 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DRAT0007’ (at line=141 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DRAT0109’ (at line=146 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DWAT0068’ (at line=190 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DWAT0069’ (at line=193 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DRAT0044’ (at line=262 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DRAT0009’ (at line=265 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DRAN0023’ (at line=280 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DRAN0321’ (at line=283 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DRAT0138’ (at line=288 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DRAT0151’ (at line=290 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DRVB0111’ (at line=295 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DRVB0112’ (at line=297 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DPAT0068’ (at line=1263 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DPAT0069’ (at line=1286 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DPAT0073’ (at line=1294 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DPAT0035’ (at line=1351 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DPAT0036’ (at line=1359 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DPAT0038’ (at line=1375 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Unable to find copybook ‘DPAT0039’ (at line=1382 in file=‘C:\Projekte\mainframe\repositories\mainframe\test\cobol\PMZI0052.CBL’.)
Initializing metadata of file file:/C:/Projekte/mainframe/repositories/mainframe/test/cobol/PMZI0052.CBL
1/1 source file has been analyzed
Analysis time: 405ms
Decoration time: 0ms
‘Python Sensor’ skipped because there is no related files in the current project
‘Kotlin Sensor’ skipped because there is no related files in the current project
‘RPG sensor’ skipped because there is no related files in the current project
‘PliSquidSensor’ skipped because there is no related files in the current project
‘T-SQL Sensor’ skipped because there is no related files in the current project
‘Apex Sensor’ skipped because there is no related files in the current project
‘PL/SQL Sensor’ skipped because there is no related files in the current project
‘Ruby Sensor’ skipped because there is no related files in the current project
‘Scala Sensor’ skipped because there is no related files in the current project
Execute Sensor: HTML
‘XML Sensor’ skipped because there is no related files in the current project
‘PHP sensor’ skipped because there is no related files in the current project
‘Analyzer for “php.ini” files’ skipped because there is no related files in the current project
Execute Sensor: TextAndSecretsSensor
1 source file to be analyzed
1/1 source file has been analyzed
‘AbapSquidSensor’ skipped because there is no related files in the current project
Found 9 issue(s)
0 entries removed from the store
Skip downloading file issues on SonarQube 9.6+
Error during execution of SonarLint analysis
java.lang.NullPointerException: Cannot invoke “java.util.Optional.ifPresent(java.util.function.Consumer)” because the return value of “org.sonarlint.eclipse.core.resource.ISonarLintProject.find(String)” is null
at org.sonarlint.eclipse.core.internal.tracking.ProjectIssueTracker.lambda$3(ProjectIssueTracker.java:140)
at java.base/java.util.LinkedHashMap.forEach(LinkedHashMap.java:721)
at org.sonarlint.eclipse.core.internal.tracking.ProjectIssueTracker.trackWithServerIssues(ProjectIssueTracker.java:139)
at org.sonarlint.eclipse.core.internal.jobs.AnalyzeConnectedProjectJob.trackFileIssues(AnalyzeConnectedProjectJob.java:88)
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.trackIssues(AbstractAnalyzeProjectJob.java:404)
at org.sonarlint.eclipse.core.internal.jobs.AnalyzeConnectedProjectJob.trackIssues(AnalyzeConnectedProjectJob.java:76)
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.lambda$25(AbstractAnalyzeProjectJob.java:368)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2380)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2400)
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.updateMarkers(AbstractAnalyzeProjectJob.java:368)
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.runAnalysisAndUpdateMarkers(AbstractAnalyzeProjectJob.java:268)
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.doRun(AbstractAnalyzeProjectJob.java:187)
at org.sonarlint.eclipse.core.internal.jobs.AbstractSonarJob.run(AbstractSonarJob.java:37)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
GET 200 https://<HIDDEN_FOR_PRIVACY_REASONS>/api/developers/search_events?projects=dvag_mainframe&from=2024-04-08T09%3A48%3A07%2B0200 | response time=50ms
Storing last event polling in C:\Projekte\mainframe\workspace.sonarlint\storage\6170702d736f6e61722d30312d7072642e617a75726577656273697465732e6e6574\projects\647661675f6d61696e6672616d65\last_event_polling.pb
Sending the information of the plug-in installed is difficult.
i try later.
thank you for the stack trace. The issue is not coming from SonarLint itself but from the Micro Focus COBOL for Essential tooling - they have a plug-in that is integrating into SonarLint. That was the reason I was asking for the list of plug-ins installed.
Sadly, we don’t have access to this software at all, and I have to forward you to Micro Focus to open a support ticket there. You can provide them with this thread and the information that the issues are coming from their integration plug-in into SonarLint.
We are in no contact with Micro Focus itself or the direct maintainers.