Errors in Bitbucket Pipeline Run that stop the analysis

Trying to integrate SonarCloud to bitbucket cloud through the pipe commands. In this example i’m just running bandit on some files and piping it to sonarcloud.

However these errors pop up in the log that kill the process

WARNING: An illegal reflective access operation has occurred

WARNING: Illegal reflective access by net.sf.cglib.core.ReflectUtils$1 (file:/root/.sonar/cache/a89f1943fc75b65becd9fb4ecab8d913/sonar-tsql-plugin.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,

WARNING: Please consider reporting this to the maintainers of net.sf.cglib.core.ReflectUtils$1

WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations

WARNING: All illegal access operations will be denied in a future release

WARN: Invalid character encountered in file /opt/atlassian/pipelines/agent/build/bin/lib/pkg_resources/ at line 1799 for encoding UTF-8. Please fix file content or configure the encoding to be used using property 'sonar.sourceEncoding'.

Hello! And welcome to the community forum!

Seeing the last warning it seems like the file is not parseable, is it part of you sources ? Should it really be analyzed ?
And if yes, is it encoded in something else that UTF-8 ? Did you try changing the sonar.sourceEncoding property ?