# Sonar lint plugin issue - STS

**URL:** <https://community.sonarsource.com/t/sonar-lint-plugin-issue-sts/78295>\
**Category:** Eclipse\
**Tags:** sonarqube, sonarqube-ide, java\
**Created:** [December 2, 2022, 12:02pm UTC](https://community.sonarsource.com/t/sonar-lint-plugin-issue-sts/78295 "2022-12-02T12:02:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sagar.makwana.test](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sagar.makwana.test](https://community.sonarsource.com/u/sagar.makwana.test)\
**Post date:** [December 2, 2022, 12:02pm UTC](https://community.sonarsource.com/t/sonar-lint-plugin-issue-sts/78295/1 "2022-12-02T12:02:48Z")

</div>

- Operating system: Windows 10
- SonarLint plugin version: SonarLint for Eclipse 7.5.0.54140
- Programming language you’re coding in JAVA
- Is connected mode used: NO
- STS: Spring Tool Suite 4
  - Version: 4.13.0.RELEASE
  - Build Id: 202112031748

Facing an issue while analyzing the java file below is the error.

Starting SonarLint for Eclipse 7.5.0.54140  
Started security hotspot handler on port 64120  
SonarLint processing file:   
Starting standalone SonarLint engine 7.5.0.54140…  
Found 2 issue(s)  
Error during execution of SonarLint analysis  
java.lang.IllegalStateException: Failed to read local issue store index  
at org.sonarlint.eclipse.core.internal.tracking.StringStoreIndex.load(StringStoreIndex.java:53)  
at org.sonarlint.eclipse.core.internal.tracking.StringStoreIndex.keys(StringStoreIndex.java:43)  
at org.sonarlint.eclipse.core.internal.tracking.IndexedObjectStore.deleteInvalid(IndexedObjectStore.java:75)  
at org.sonarlint.eclipse.core.internal.tracking.IssueStore.(IssueStore.java:61)  
at org.sonarlint.eclipse.core.internal.SonarLintCorePlugin.lambda$0(SonarLintCorePlugin.java:124)  
at org.sonarlint.eclipse.core.internal.tracking.IssueTrackerRegistry.newTracker(IssueTrackerRegistry.java:54)  
at org.sonarlint.eclipse.core.internal.tracking.IssueTrackerRegistry.getOrCreate(IssueTrackerRegistry.java:43)  
at org.sonarlint.eclipse.core.internal.SonarLintCorePlugin.getOrCreateIssueTracker(SonarLintCorePlugin.java:204)  
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.trackIssues(AbstractAnalyzeProjectJob.java:308)  
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.lambda$19(AbstractAnalyzeProjectJob.java:296)  
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)  
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2333)  
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.updateMarkers(AbstractAnalyzeProjectJob.java:296)  
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.runAnalysisAndUpdateMarkers(AbstractAnalyzeProjectJob.java:203)  
at org.sonarlint.eclipse.core.internal.jobs.AbstractAnalyzeProjectJob.doRun(AbstractAnalyzeProjectJob.java:157)  
at org.sonarlint.eclipse.core.internal.jobs.AbstractSonarProjectJob.run(AbstractSonarProjectJob.java:45)  
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)  
Caused by: com.google.protobuf.InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).  
at com.google.protobuf.InvalidProtocolBufferException.invalidTag(InvalidProtocolBufferException.java:133)  
at com.google.protobuf.CodedInputStream$StreamDecoder.readTag(CodedInputStream.java:2116)  
at org.sonarlint.eclipse.core.internal.proto.Sonarlint$StorageIndex.(Sonarlint.java:2656)  
at org.sonarlint.eclipse.core.internal.proto.Sonarlint$StorageIndex$1.parsePartialFrom(Sonarlint.java:3300)  
at org.sonarlint.eclipse.core.internal.proto.Sonarlint$StorageIndex$1.parsePartialFrom(Sonarlint.java:1)  
at com.google.protobuf.AbstractParser.parsePartialFrom(AbstractParser.java:215)  
at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:232)  
at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:237)  
at com.google.protobuf.AbstractParser.parseFrom(AbstractParser.java:48)  
at com.google.protobuf.GeneratedMessageV3.parseWithIOException(GeneratedMessageV3.java:339)  
at org.sonarlint.eclipse.core.internal.proto.Sonarlint$StorageIndex.parseFrom(Sonarlint.java:2912)  
at org.sonarlint.eclipse.core.internal.tracking.StringStoreIndex.load(StringStoreIndex.java:51)  
… 16 more

Thanks!

---

<div class="post-metadata">

**Author:** ![Julien\_HENRY](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/julien_henry/32/61_2.png) [@Julien\_HENRY](https://community.sonarsource.com/u/Julien_HENRY)\
**Post date:** [December 2, 2022, 12:49pm UTC](https://community.sonarsource.com/t/sonar-lint-plugin-issue-sts/78295/2 "2022-12-02T12:49:04Z")

</div>

Hi,

It seems that SonarLint local issue cache somehow got corrupted. You can fix the issue by manually deleting the cache. It is located in `<your workspace root>/.metadata/.plugins/org.eclipse.core.resources/.projects/<your eclipse project name>/org.sonarlint.eclipse.core/issues/`  
You can simply remove the entire folder, and the error should go away.  
The consequence is that you’ll lose the “history” of your issues (when was the issue first discovered), so in the UI, all issues will have a fresh date.

---

<div class="post-metadata">

**Author:** ![sagar.makwana.test](https://avatars.discourse-cdn.com/v4/letter/s/a587f6/32.png) [@sagar.makwana.test](https://community.sonarsource.com/u/sagar.makwana.test)\
**Post date:** [December 5, 2022, 4:53am UTC](https://community.sonarsource.com/t/sonar-lint-plugin-issue-sts/78295/3 "2022-12-05T04:53:54Z")

</div>

Hi, the issue is fixed thank you so much…

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/system/32/31083_2.png) [@system](https://community.sonarsource.com/u/system)\
**Post date:** [December 12, 2022, 4:53am UTC](https://community.sonarsource.com/t/sonar-lint-plugin-issue-sts/78295/4 "2022-12-12T04:53:58Z")

</div>

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