Uploaded image for project: 'SonarLint For IntelliJ'
  1. SonarLint For IntelliJ
  2. SLI-456

Error when computing the checksum of an issue

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.13
    • Component/s: None
    • Labels:
      None

      Description

      An error can happen sometimes when computing the hash of the text range of an issue:

       

      {{java.lang.ArrayIndexOutOfBoundsException: arraycopy: length -45 is negative}}
        at java.base/sun.security.provider.DigestBase.engineUpdate(DigestBase.java:118)
        at java.base/java.security.MessageDigest$Delegate.engineUpdate(MessageDigest.java:623)
        at java.base/java.security.MessageDigest.update(MessageDigest.java:355)
        at java.base/java.security.MessageDigest.digest(MessageDigest.java:430)
        at org.sonarlint.intellij.issue.LiveIssue.checksum(LiveIssue.java:93)
        at org.sonarlint.intellij.issue.LiveIssue.<init>(LiveIssue.java:85)
        at org.sonarlint.intellij.issue.IssueProcessor.transformIssue(IssueProcessor.java:185)
        at org.sonarlint.intellij.issue.IssueProcessor.transformIssues(IssueProcessor.java:166)
        at org.sonarlint.intellij.issue.IssueProcessor.lambda$process$0(IssueProcessor.java:68)
        at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:869)
        at com.intellij.openapi.application.ReadAction.compute(ReadAction.java:61)
        at org.sonarlint.intellij.issue.IssueProcessor.process(IssueProcessor.java:66)
        at org.sonarlint.intellij.analysis.SonarLintTask.run(SonarLintTask.java:122)
        at com.intellij.openapi.progress.impl.CoreProgressManager$TaskRunnable.run(CoreProgressManager.java:935)
        at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcessWithProgressAsync$5(CoreProgressManager.java:442)
        at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$3(ProgressRunner.java:235)
        at com.intellij.openapi.progress.impl.CoreProgressManager.lambda$runProcess$2(CoreProgressManager.java:170)
        at com.intellij.openapi.progress.impl.CoreProgressManager.registerIndicatorAndRun(CoreProgressManager.java:629)
        at com.intellij.openapi.progress.impl.CoreProgressManager.executeProcessUnderProgress(CoreProgressManager.java:581)
        at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:60)
        at com.intellij.openapi.progress.impl.CoreProgressManager.runProcess(CoreProgressManager.java:157)
        at com.intellij.openapi.progress.impl.ProgressRunner.lambda$submit$4(ProgressRunner.java:235)
        at java.base/java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:668)
        at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1$1.run(Executors.java:665)
        at java.base/java.security.AccessController.doPrivileged(Native Method)
        at java.base/java.util.concurrent.Executors$PrivilegedThreadFactory$1.run(Executors.java:665)
        at java.base/java.lang.Thread.run(Thread.java:834)

        Attachments

          Activity

            People

            • Assignee:
              damien.urruty Damien Urruty
              Reporter:
              damien.urruty Damien Urruty
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Due:
                Created:
                Updated:
                Resolved: