# Sonar scanner throwing exception after marking security hotspot as safe

**URL:** <https://community.sonarsource.com/t/sonar-scanner-throwing-exception-after-marking-security-hotspot-as-safe/111998>\
**Category:** SonarQube Cloud\
**Tags:** issues, python, scanner, java\
**Created:** [March 25, 2024, 2:16pm UTC](https://community.sonarsource.com/t/sonar-scanner-throwing-exception-after-marking-security-hotspot-as-safe/111998 "2024-03-25T14:16:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan1604](https://avatars.discourse-cdn.com/v4/letter/d/779978/32.png) [@Dan1604](https://community.sonarsource.com/u/Dan1604)\
**Post date:** [March 25, 2024, 2:16pm UTC](https://community.sonarsource.com/t/sonar-scanner-throwing-exception-after-marking-security-hotspot-as-safe/111998/1 "2024-03-25T14:16:40Z")

</div>

Running sonar scanner against a python repository via gitlab and after marking a security hotspot (Rule - python:S2245) as safe in SonarCloud the job now fails due to the below error. Marking the hotspot as fixed fixes the issue. Would ideally like to be able to mark these issues as safe to be more accurate.

```auto
ERROR: Error during SonarScanner execution

[118](some_repo)java.lang.IllegalStateException: The field 'ignoreAnnotations' does not exist or is not annotated with @RuleProperty in the class org.sonar.java.checks.unused.UnusedPrivateFieldCheck

```

---

<div class="post-metadata">

**Author:** ![Colin](https://dub1.discourse-cdn.com/sonarsource/user_avatar/community.sonarsource.com/colin/32/55255_2.png) [@Colin](https://community.sonarsource.com/u/Colin)\
**Post date:** [March 26, 2024, 11:30am UTC](https://community.sonarsource.com/t/sonar-scanner-throwing-exception-after-marking-security-hotspot-as-safe/111998/2 "2024-03-26T11:30:12Z")

</div>

Hey there.

This issue got fixed yesterday.

> [@The field 'ignoreAnnotations' does not exist](https://community.sonarsource.com/t/the-field-ignoreannotations-does-not-exist/111972/9):
>
> Hi all, Welcome to the community and thanks for these reports. We’ve initiated a rollback of a recent change. E.T.A. is approximately 2h. Thanks for your patience and we apologize for the inconvenience. &nbsp; Ann & the SonarCloud team

Let us know if you’re still facing an issue.

---

<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:** [April 2, 2024, 11:31am UTC](https://community.sonarsource.com/t/sonar-scanner-throwing-exception-after-marking-security-hotspot-as-safe/111998/3 "2024-04-02T11:31:04Z")

</div>

Closed on April 2, 2024, 11:31am UTC

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