At this last line, we have this rule : "PreparedStatement" and "ResultSet" methods should be called with valid indices
Rule is looking for a parameter but can’t find it because it’s loaded from a file.
It seems similar from SONARJAVA-2036 but I still get the issue.
I know it’s a late reaction, but as we say, better late than never.
I’m afraid your post did not get a lot of attention probably because it seems to me that it is working fine both on SonarQube Version 7.9.3 and in the latest version 8.6.
I tried with this sample code inspired by yours: